From 8ec94e0cdfd0a82961678f8ba7e8d910277d2652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 31 Jan 2024 00:43:27 +0100 Subject: [PATCH] Adding fixed pool of machines to ProxMox --- server/src/uds/REST/methods/providers.py | 4 +- server/src/uds/REST/methods/services.py | 14 +- server/src/uds/REST/methods/services_pools.py | 2 +- server/src/uds/core/types/ui.py | 2 +- server/src/uds/core/util/fields.py | 69 +++-- server/src/uds/services/OVirt/client/ovirt.py | 132 ++++---- server/src/uds/services/OVirt/helpers.py | 2 +- server/src/uds/services/OVirt/jobs.py | 1 - server/src/uds/services/OVirt/provider.py | 70 ++--- server/src/uds/services/OVirt/publication.py | 1 - .../uds/services/Proxmox/client/__init__.py | 32 +- .../src/uds/services/Proxmox/client/types.py | 66 ++-- .../uds/services/Proxmox/deployment_fixed.py | 0 server/src/uds/services/Proxmox/helpers.py | 54 ++-- server/src/uds/services/Proxmox/provider.py | 105 ++++--- server/src/uds/services/Proxmox/service.py | 103 ++---- .../src/uds/services/Proxmox/service_fixed.py | 292 ++++++++++++++++++ server/src/uds/static/admin/main.js | 2 +- server/src/uds/templates/uds/admin/index.html | 2 +- .../src/uds/transports/HTML5SSH/html5ssh.py | 3 +- 20 files changed, 624 insertions(+), 332 deletions(-) create mode 100644 server/src/uds/services/Proxmox/deployment_fixed.py create mode 100644 server/src/uds/services/Proxmox/service_fixed.py diff --git a/server/src/uds/REST/methods/providers.py b/server/src/uds/REST/methods/providers.py index 4e084820f..5279be7a3 100644 --- a/server/src/uds/REST/methods/providers.py +++ b/server/src/uds/REST/methods/providers.py @@ -137,7 +137,7 @@ class Providers(ModelHandler): try: perm = permissions.effective_permissions(self._user, s) if perm >= uds.core.types.permissions.PermissionType.READ: - yield DetailServices.serviceToDict(s, perm, True) + yield DetailServices.service_to_dict(s, perm, True) except Exception: logger.exception('Passed service cause type is unknown') @@ -149,7 +149,7 @@ class Providers(ModelHandler): service = Service.objects.get(uuid=self._args[1]) self.ensure_has_access(service.provider, uds.core.types.permissions.PermissionType.READ) perm = self.get_permissions(service.provider) - return DetailServices.serviceToDict(service, perm, True) + return DetailServices.service_to_dict(service, perm, True) except Exception: # logger.exception('Exception') return {} diff --git a/server/src/uds/REST/methods/services.py b/server/src/uds/REST/methods/services.py index 9ff3be201..397587a1d 100644 --- a/server/src/uds/REST/methods/services.py +++ b/server/src/uds/REST/methods/services.py @@ -63,10 +63,10 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods Detail handler for Services, whose parent is a Provider """ - custom_methods = ['servicesPools'] + custom_methods = ['servicepools'] @staticmethod - def serviceInfo(item: models.Service) -> dict[str, typing.Any]: + def service_info(item: models.Service) -> dict[str, typing.Any]: info = item.get_type() return { @@ -86,7 +86,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods } @staticmethod - def serviceToDict( + def service_to_dict( item: models.Service, perm: int, full: bool = False ) -> dict[str, typing.Any]: """ @@ -113,7 +113,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods 'permission': perm, } if full: - retVal['info'] = Services.serviceInfo(item) + retVal['info'] = Services.service_info(item) return retVal @@ -123,9 +123,9 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods perm = permissions.effective_permissions(self._user, parent) try: if item is None: - return [Services.serviceToDict(k, perm) for k in parent.services.all()] + return [Services.service_to_dict(k, perm) for k in parent.services.all()] k = parent.services.get(uuid=process_uuid(item)) - val = Services.serviceToDict(k, perm, full=True) + val = Services.service_to_dict(k, perm, full=True) return self.fill_instance_fields(k, val) except Exception as e: logger.error('Error getting services for %s: %s', parent, e) @@ -334,7 +334,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods except Exception: raise self.invalid_item_response() from None - def servicesPools(self, parent: 'Model', item: str) -> typing.Any: + def servicepools(self, parent: 'Model', item: str) -> typing.Any: parent = ensure.is_instance(parent, models.Provider) service = parent.services.get(uuid=process_uuid(item)) logger.debug('Got parameters for servicepools: %s, %s', parent, item) diff --git a/server/src/uds/REST/methods/services_pools.py b/server/src/uds/REST/methods/services_pools.py index 18213ca63..2442bcf33 100644 --- a/server/src/uds/REST/methods/services_pools.py +++ b/server/src/uds/REST/methods/services_pools.py @@ -253,7 +253,7 @@ class ServicesPools(ModelHandler): val['tags'] = [tag.tag for tag in item.tags.all()] val['restrained'] = restrained val['permission'] = permissions.effective_permissions(self._user, item) - val['info'] = Services.serviceInfo(item.service) # type: ignore + val['info'] = Services.service_info(item.service) # type: ignore val['pool_group_id'] = poolGroupId val['pool_group_name'] = poolGroupName val['pool_group_thumb'] = poolGroupThumb diff --git a/server/src/uds/core/types/ui.py b/server/src/uds/core/types/ui.py index de4063581..09f6a170c 100644 --- a/server/src/uds/core/types/ui.py +++ b/server/src/uds/core/types/ui.py @@ -110,7 +110,7 @@ class FieldPatternType(enum.StrEnum): class CallbackResultItem(typing.TypedDict): - # data = [{'name': 'datastore', 'choices': res}] + # {'name': 'datastore', 'choices': res} name: str choices: typing.List['ChoiceItem'] diff --git a/server/src/uds/core/util/fields.py b/server/src/uds/core/util/fields.py index 193df8c74..15e3a4b49 100644 --- a/server/src/uds/core/util/fields.py +++ b/server/src/uds/core/util/fields.py @@ -131,24 +131,24 @@ def get_server_group_from_field(fld: ui.gui.ChoiceField) -> models.ServerGroup: # Ticket validity time field (for http related tunnels) -def tunnel_ticket_validity_field() -> ui.gui.NumericField: +def tunnel_ticket_validity_field(order: int = 90, tab: 'types.ui.Tab|None' = types.ui.Tab.ADVANCED) -> ui.gui.NumericField: return ui.gui.NumericField( length=3, label=_('Ticket Validity'), default=60, - order=90, + order=order, tooltip=_( 'Allowed time, in seconds, for HTML5 client to reload data from UDS Broker. The default value of 60 is recommended.' ), required=True, min_value=60, - tab=types.ui.Tab.ADVANCED, + tab=tab, old_field_name='ticketValidity', ) # Tunnel wait time (for uds client related tunnels) -def tunnel_wait_time_field(order: int = 2) -> ui.gui.NumericField: +def tunnel_wait_time_field(order: int = 2, tab: 'types.ui.Tab|None' = types.ui.Tab.TUNNEL) -> ui.gui.NumericField: return ui.gui.NumericField( length=3, label=_('Tunnel wait time'), @@ -158,7 +158,7 @@ def tunnel_wait_time_field(order: int = 2) -> ui.gui.NumericField: order=order, tooltip=_('Maximum time, in seconds, to wait before disable new connections on client tunnel listener'), required=True, - tab=types.ui.Tab.TUNNEL, + tab=tab, old_field_name='tunnelWait', ) @@ -192,7 +192,7 @@ def get_certificates_from_field( def timeout_field( default: int = 3, order: int = 90, - tab: 'types.ui.Tab|str|None|bool' = None, + tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED, old_field_name: typing.Optional[str] = None, ) -> ui.gui.NumericField: return ui.gui.NumericField( @@ -203,7 +203,7 @@ def timeout_field( tooltip=_('Timeout in seconds for network connections'), required=True, min_value=1, - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name=old_field_name, ) @@ -226,26 +226,26 @@ def verify_ssl_field( # Basename field -def basename_field(order: int = 32, tab: 'types.ui.Tab|str|None|bool' = None) -> ui.gui.TextField: +def basename_field(order: int = 32, tab: 'types.ui.Tab|str|None' = None) -> ui.gui.TextField: return ui.gui.TextField( label=_('Base Name'), order=order, tooltip=_('Base name for clones from this service'), - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, required=True, old_field_name='baseName', ) # Length of name field -def lenname_field(order: int = 33, tab: 'types.ui.Tab|str|None|bool' = None) -> ui.gui.NumericField: +def lenname_field(order: int = 33, tab: 'types.ui.Tab|str|None' = None) -> ui.gui.NumericField: return ui.gui.NumericField( length=1, label=_('Name Length'), default=3, order=order, tooltip=_('Size of numeric part for the names derived from this service'), - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, required=True, old_field_name='lenName', ) @@ -253,7 +253,8 @@ def lenname_field(order: int = 33, tab: 'types.ui.Tab|str|None|bool' = None) -> # Max preparing services field def concurrent_creation_limit_field( - order: int = 50, tab: 'types.ui.Tab|str|None|bool' = None + order: int = 50, + tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED, ) -> ui.gui.NumericField: # Advanced tab return ui.gui.NumericField( @@ -265,13 +266,14 @@ def concurrent_creation_limit_field( order=order, tooltip=_('Maximum number of concurrently creating VMs'), required=True, - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name='maxPreparingServices', ) def concurrent_removal_limit_field( - order: int = 51, tab: 'types.ui.Tab|str|None|bool' = None + order: int = 51, + tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED, ) -> ui.gui.NumericField: return ui.gui.NumericField( length=3, @@ -282,25 +284,27 @@ def concurrent_removal_limit_field( order=order, tooltip=_('Maximum number of concurrently removing VMs'), required=True, - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name='maxRemovingServices', ) -def remove_duplicates_field(order: int = 102, tab: 'types.ui.Tab|str|None|bool' = None) -> ui.gui.CheckBoxField: +def remove_duplicates_field( + order: int = 102, tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED +) -> ui.gui.CheckBoxField: return ui.gui.CheckBoxField( label=_('Remove found duplicates'), default=True, order=order, tooltip=_('If active, found duplicates vApps for this service will be removed'), - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name='removeDuplicates', ) def soft_shutdown_field( order: int = 103, - tab: 'types.ui.Tab|str|None|bool' = None, + tab: 'types.ui.Tab|str|None' = None, old_field_name: typing.Optional[str] = None, ) -> ui.gui.CheckBoxField: return ui.gui.CheckBoxField( @@ -308,16 +312,16 @@ def soft_shutdown_field( default=False, order=order, tooltip=_( - 'If active, UDS will try to shutdown (soft) the machine using Nutanix ACPI. Will delay 30 seconds the power off of hanged machines.' + 'If active, UDS will try to shutdown (soft) the machine. Will delay 90 seconds the power off of hanged machines.' ), - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name=old_field_name, ) def keep_on_access_error_field( order: int = 104, - tab: 'types.ui.Tab|str|None|bool' = None, + tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED, old_field_name: typing.Optional[str] = None, ) -> ui.gui.CheckBoxField: return ui.gui.CheckBoxField( @@ -325,7 +329,7 @@ def keep_on_access_error_field( value=False, order=order, tooltip=_('If active, access errors found on machine will not be considered errors.'), - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name=old_field_name, ) @@ -333,7 +337,7 @@ def keep_on_access_error_field( def macs_range_field( default: str, order: int = 91, - tab: 'types.ui.Tab|str|None|bool' = None, + tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED, readonly: bool = False, ) -> ui.gui.TextField: return ui.gui.TextField( @@ -346,12 +350,12 @@ def macs_range_field( default=default ), required=True, - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, old_field_name='macsRange', ) -def mfa_attr_field(order: int = 20, tab: 'types.ui.Tab|str|None|bool' = None) -> ui.gui.TextField: +def mfa_attr_field(order: int = 20, tab: 'types.ui.Tab|str|None' = types.ui.Tab.MFA) -> ui.gui.TextField: return ui.gui.TextField( length=2048, lines=2, @@ -359,15 +363,17 @@ def mfa_attr_field(order: int = 20, tab: 'types.ui.Tab|str|None|bool' = None) -> order=order, tooltip=_('Attribute from where to extract the MFA code'), required=False, - tab=None if tab is False else None if tab is None else types.ui.Tab.MFA, + tab=tab, old_field_name='mfaAttr', ) -def on_logout_field(order: int = 10, tab: 'types.ui.Tab|str|None|bool' = False) -> ui.gui.ChoiceField: +def on_logout_field( + order: int = 10, tab: 'types.ui.Tab|str|None' = types.ui.Tab.ADVANCED +) -> ui.gui.ChoiceField: return ui.gui.ChoiceField( label=_('Logout Action'), - order=10, + order=order, readonly=True, tooltip=_('What to do when user logs out from service'), choices=[ @@ -375,15 +381,18 @@ def on_logout_field(order: int = 10, tab: 'types.ui.Tab|str|None|bool' = False) ui.gui.choice_item('remove', _('Remove service')), ui.gui.choice_item('keep-always', _('Keep service assigned even on new publication')), ], - tab=None if tab is False else None if tab is None else types.ui.Tab.ADVANCED, + tab=tab, default='keep', ) + def onlogout_field_is_persistent(fld: ui.gui.ChoiceField) -> bool: return fld.value == 'keep-always' + def onlogout_field_is_removable(fld: ui.gui.ChoiceField) -> bool: return fld.value == 'remove' + def onlogout_field_is_keep(fld: ui.gui.ChoiceField) -> bool: - return fld.value == 'keep' \ No newline at end of file + return fld.value == 'keep' diff --git a/server/src/uds/services/OVirt/client/ovirt.py b/server/src/uds/services/OVirt/client/ovirt.py index c62c1d393..aaba325ab 100644 --- a/server/src/uds/services/OVirt/client/ovirt.py +++ b/server/src/uds/services/OVirt/client/ovirt.py @@ -75,9 +75,9 @@ class Client: _password: str _timeout: int _cache: 'Cache' - _needsUsbFix = True + _needs_usb_fix = True - def __getKey(self, prefix: str = '') -> str: + def _generate_key(self, prefix: str = '') -> str: """ Creates a key for the cache, using the prefix indicated as part of it @@ -88,7 +88,7 @@ class Client: prefix, self._host, self._username, self._password, self._timeout ) - def __getApi(self) -> ovirt.Connection: + def _api(self) -> ovirt.Connection: """ Gets the api connection. @@ -97,7 +97,7 @@ class Client: Must be accesed "locked", so we can safely alter cached_api and cached_api_key """ - aKey = self.__getKey('o-host') + the_key = self._generate_key('o-host') # if cached_api_key == aKey: # return cached_api @@ -108,7 +108,7 @@ class Client: # Nothing happens, may it was already disconnected pass try: - Client.cached_api_key = aKey + Client.cached_api_key = the_key Client.cached_api = ovirt.Connection( url='https://' + self._host + '/ovirt-engine/api', username=self._username, @@ -137,25 +137,25 @@ class Client: self._password = password self._timeout = int(timeout) self._cache = cache - self._needsUsbFix = True + self._needs_usb_fix = True def test(self) -> bool: try: lock.acquire(True) - return self.__getApi().test() + return self._api().test() except Exception as e: logger.error('Testing Server failed for oVirt: %s', e) return False finally: lock.release() - def isFullyFunctionalVersion(self) -> tuple[bool, str]: + def is_fully_functional_version(self) -> tuple[bool, str]: """ '4.0 version is always functional (right now...) """ return True, 'Test successfully passed' - def getVms( + def list_machines( self, force: bool = False ) -> list[collections.abc.MutableMapping[str, typing.Any]]: """ @@ -172,7 +172,7 @@ class Client: 'cluster_id' """ - vmsKey = self.__getKey('o-vms') + vmsKey = self._generate_key('o-vms') val: typing.Optional[typing.Any] = self._cache.get(vmsKey) if val is not None and force is False: @@ -181,7 +181,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() vms: collections.abc.Iterable[typing.Any] = api.system_service().vms_service().list() # type: ignore @@ -210,7 +210,7 @@ class Client: finally: lock.release() - def getClusters( + def list_clusters( self, force: bool = False ) -> list[collections.abc.MutableMapping[str, typing.Any]]: """ @@ -228,7 +228,7 @@ class Client: 'datacenter_id' """ - clsKey = self.__getKey('o-clusters') + clsKey = self._generate_key('o-clusters') val: typing.Optional[typing.Any] = self._cache.get(clsKey) if val and not force: @@ -237,7 +237,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() clusters: list[typing.Any] = api.system_service().clusters_service().list() # type: ignore @@ -254,7 +254,7 @@ class Client: } # Updates cache info for every single cluster - clKey = self.__getKey('o-cluster' + cluster.id) + clKey = self._generate_key('o-cluster' + cluster.id) self._cache.put(clKey, val) if dc is not None: @@ -267,7 +267,7 @@ class Client: finally: lock.release() - def getClusterInfo( + def get_cluster_info( self, clusterId: str, force: bool = False ) -> collections.abc.MutableMapping[str, typing.Any]: """ @@ -285,7 +285,7 @@ class Client: 'id' 'datacenter_id' """ - clKey = self.__getKey('o-cluster' + clusterId) + clKey = self._generate_key('o-cluster' + clusterId) val = self._cache.get(clKey) if val and not force: @@ -294,7 +294,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() c: typing.Any = api.system_service().clusters_service().service(clusterId).get() # type: ignore @@ -309,7 +309,7 @@ class Client: finally: lock.release() - def getDatacenterInfo( + def get_datacenter_info( self, datacenterId: str, force: bool = False ) -> collections.abc.MutableMapping[str, typing.Any]: """ @@ -336,7 +336,7 @@ class Client: 'active' -> True or False """ - dcKey = self.__getKey('o-dc' + datacenterId) + dcKey = self._generate_key('o-dc' + datacenterId) val = self._cache.get(dcKey) if val is not None and force is False: @@ -345,7 +345,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() datacenter_service = ( api.system_service().data_centers_service().service(datacenterId) @@ -383,7 +383,7 @@ class Client: finally: lock.release() - def getStorageInfo( + def get_storage_info( self, storageId: str, force: bool = False ) -> collections.abc.MutableMapping[str, typing.Any]: """ @@ -405,7 +405,7 @@ class Client: # 'active' -> True or False --> This is not provided by api?? (api.storagedomains.get) """ - sdKey = self.__getKey('o-sd' + storageId) + sdKey = self._generate_key('o-sd' + storageId) val = self._cache.get(sdKey) if val and not force: @@ -414,7 +414,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() dd: typing.Any = api.system_service().storage_domains_service().service(storageId).get() # type: ignore @@ -431,7 +431,7 @@ class Client: finally: lock.release() - def makeTemplate( + def create_template( self, name: str, comments: str, @@ -467,7 +467,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() # cluster = ov.clusters_service().service('00000002-0002-0002-0002-0000000002e4') # .get() # vm = ov.vms_service().service('e7ff4e00-b175-4e80-9c1f-e50a5e76d347') # .get() @@ -506,7 +506,7 @@ class Client: finally: lock.release() - def getTemplateState(self, templateId: str) -> str: + def get_template_state(self, templateId: str) -> str: """ Returns current template state. This method do not uses cache at all (it always tries to get template state from oVirt server) @@ -521,7 +521,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() try: template: typing.Any = ( @@ -538,16 +538,16 @@ class Client: finally: lock.release() - def deployFromTemplate( + def deploy_from_template( self, name: str, comments: str, - templateId: str, - clusterId: str, - displayType: str, - usbType: str, - memoryMB: int, - guaranteedMB: int, + template_id: str, + cluster_id: str, + display_type: str, + usb_type: str, + memory_mb: int, + guaranteed_mb: int, ) -> str: """ Deploys a virtual machine on selected cluster from selected template @@ -567,24 +567,24 @@ class Client: logger.debug( 'Deploying machine with name "%s" from template %s at cluster %s with display %s and usb %s, memory %s and guaranteed %s', name, - templateId, - clusterId, - displayType, - usbType, - memoryMB, - guaranteedMB, + template_id, + cluster_id, + display_type, + usb_type, + memory_mb, + guaranteed_mb, ) try: lock.acquire(True) - api = self.__getApi() + api = self._api() logger.debug('Deploying machine %s', name) - cluster = ovirt.types.Cluster(id=clusterId) - template = ovirt.types.Template(id=templateId) + cluster = ovirt.types.Cluster(id=cluster_id) + template = ovirt.types.Template(id=template_id) - if self._needsUsbFix is False and usbType in ( + if self._needs_usb_fix is False and usb_type in ( 'native', ): # Removed 'legacy', from 3.6 is not used anymore, and from 4.0 not available usb = ovirt.types.Usb(enabled=True, type=ovirt.types.UsbType.NATIVE) @@ -592,7 +592,7 @@ class Client: usb = ovirt.types.Usb(enabled=False) memoryPolicy = ovirt.types.MemoryPolicy( - guaranteed=guaranteedMB * 1024 * 1024 + guaranteed=guaranteed_mb * 1024 * 1024 ) par = ovirt.types.Vm( name=name, @@ -600,7 +600,7 @@ class Client: template=template, description=comments, type=ovirt.types.VmType.DESKTOP, - memory=memoryMB * 1024 * 1024, + memory=memory_mb * 1024 * 1024, memory_policy=memoryPolicy, usb=usb, ) # display=display, @@ -610,7 +610,7 @@ class Client: finally: lock.release() - def removeTemplate(self, templateId: str) -> None: + def remove_template(self, templateId: str) -> None: """ Removes a template from ovirt server @@ -619,14 +619,14 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() api.system_service().templates_service().service(templateId).remove() # type: ignore # This returns nothing, if it fails it raises an exception finally: lock.release() - def getMachineState(self, machineId: str) -> str: + def get_machine_state(self, machineId: str) -> str: """ Returns current state of a machine (running, suspended, ...). This method do not uses cache at all (it always tries to get machine state from oVirt server) @@ -645,7 +645,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() try: vm = api.system_service().vms_service().service(machineId).get() # type: ignore @@ -660,7 +660,7 @@ class Client: finally: lock.release() - def startMachine(self, machineId: str) -> None: + def start_machine(self, machineId: str) -> None: """ Tries to start a machine. No check is done, it is simply requested to oVirt. @@ -674,7 +674,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) @@ -688,7 +688,7 @@ class Client: finally: lock.release() - def stopMachine(self, machineId: str) -> None: + def stop_machine(self, machineId: str) -> None: """ Tries to start a machine. No check is done, it is simply requested to oVirt @@ -700,7 +700,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) @@ -714,7 +714,7 @@ class Client: finally: lock.release() - def suspendMachine(self, machineId: str) -> None: + def suspend_machine(self, machineId: str) -> None: """ Tries to start a machine. No check is done, it is simply requested to oVirt @@ -726,7 +726,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) @@ -740,7 +740,7 @@ class Client: finally: lock.release() - def removeMachine(self, machineId: str) -> None: + def remove_machine(self, machineId: str) -> None: """ Tries to delete a machine. No check is done, it is simply requested to oVirt @@ -752,7 +752,7 @@ class Client: try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) @@ -766,14 +766,14 @@ class Client: finally: lock.release() - def updateMachineMac(self, machineId: str, macAddres: str) -> None: + def update_machine_mac(self, machineId: str, macAddres: str) -> None: """ Changes the mac address of first nic of the machine to the one specified """ try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) @@ -794,13 +794,13 @@ class Client: finally: lock.release() - def fixUsb(self, machineId: str) -> None: + def fix_usb(self, machineId: str) -> None: # Fix for usb support - if self._needsUsbFix: + if self._needs_usb_fix: try: lock.acquire(True) - api = self.__getApi() + api = self._api() usb = ovirt.types.Usb(enabled=True, type=ovirt.types.UsbType.NATIVE) vms: typing.Any = api.system_service().vms_service().service(machineId) vmu = ovirt.types.Vm(usb=usb) @@ -808,7 +808,7 @@ class Client: finally: lock.release() - def getConsoleConnection( + def get_console_connection( self, machineId: str ) -> typing.Optional[collections.abc.MutableMapping[str, typing.Any]]: """ @@ -816,7 +816,7 @@ class Client: """ try: lock.acquire(True) - api = self.__getApi() + api = self._api() vmService: typing.Any = ( api.system_service().vms_service().service(machineId) diff --git a/server/src/uds/services/OVirt/helpers.py b/server/src/uds/services/OVirt/helpers.py index 3faaa5ec4..5e96e8c00 100644 --- a/server/src/uds/services/OVirt/helpers.py +++ b/server/src/uds/services/OVirt/helpers.py @@ -31,7 +31,7 @@ def get_resources(parameters: typing.Any) -> types.ui.CallbackResultType: provider.deserialize(parameters['ov']) # Obtains datacenter from cluster - ci = provider.getClusterInfo(parameters['cluster']) + ci = provider.get_cluster_info(parameters['cluster']) res: list[types.ui.ChoiceItem] = [] # Get storages for that datacenter diff --git a/server/src/uds/services/OVirt/jobs.py b/server/src/uds/services/OVirt/jobs.py index 05645904a..720b83b58 100644 --- a/server/src/uds/services/OVirt/jobs.py +++ b/server/src/uds/services/OVirt/jobs.py @@ -89,7 +89,6 @@ class OVirtDeferredRemoval(jobs.Job): logger.debug('Looking for deferred vm removals') - provider: Provider # Look for Providers of type Ovirt for provider in Provider.objects.filter( maintenance_mode=False, data_type=OVirtProvider.type_type diff --git a/server/src/uds/services/OVirt/provider.py b/server/src/uds/services/OVirt/provider.py index cfc347aac..6d07531fa 100644 --- a/server/src/uds/services/OVirt/provider.py +++ b/server/src/uds/services/OVirt/provider.py @@ -37,7 +37,7 @@ from django.utils.translation import gettext_noop as _ from uds.core import services, types, consts from uds.core.ui import gui -from uds.core.util import validators +from uds.core.util import validators, fields from uds.core.util.cache import Cache from uds.core.util.decorators import cached @@ -95,7 +95,7 @@ class OVirtProvider( # but used for sample purposes # If we don't indicate an order, the output order of fields will be # "random" - ovirtVersion = gui.ChoiceField( + ovirt_version = gui.ChoiceField( order=1, label=_('oVirt Version'), tooltip=_('oVirt Server Version'), @@ -106,6 +106,7 @@ class OVirtProvider( gui.choice_item('4', '4.x'), ], default='4', # Default value is the ID of the choicefield + old_field_name='ovirtVersion', ) host = gui.TextField( @@ -131,30 +132,9 @@ class OVirtProvider( required=True, ) - concurrent_creation_limit = gui.NumericField( - length=3, - label=_('Creation concurrency'), - default=10, - min_value=1, - max_value=65536, - order=50, - tooltip=_('Maximum number of concurrently creating VMs'), - required=True, - tab=types.ui.Tab.ADVANCED, - old_field_name='maxPreparingServices', - ) - concurrent_removal_limit = gui.NumericField( - length=3, - label=_('Removal concurrency'), - default=5, - min_value=1, - max_value=65536, - order=51, - tooltip=_('Maximum number of concurrently removing VMs'), - required=True, - tab=types.ui.Tab.ADVANCED, - old_field_name='maxRemovingServices', - ) + concurrent_creation_limit = fields.concurrent_creation_limit_field() + concurrent_removal_limit = fields.concurrent_removal_limit_field() + timeout = fields.timeout_field() timeout = gui.NumericField( length=3, @@ -227,7 +207,7 @@ class OVirtProvider( """ Checks that this version of ovirt if "fully functional" and does not needs "patchs' """ - return list(self.__getApi().isFullyFunctionalVersion()) + return list(self.__getApi().is_fully_functional_version()) def getMachines( self, force: bool = False @@ -247,7 +227,7 @@ class OVirtProvider( 'cluster_id' """ - return self.__getApi().getVms(force) + return self.__getApi().list_machines(force) def getClusters( self, force: bool = False @@ -267,9 +247,9 @@ class OVirtProvider( 'datacenter_id' """ - return self.__getApi().getClusters(force) + return self.__getApi().list_clusters(force) - def getClusterInfo( + def get_cluster_info( self, clusterId: str, force: bool = False ) -> collections.abc.MutableMapping[str, typing.Any]: """ @@ -287,7 +267,7 @@ class OVirtProvider( 'id' 'datacenter_id' """ - return self.__getApi().getClusterInfo(clusterId, force) + return self.__getApi().get_cluster_info(clusterId, force) def getDatacenterInfo( self, datacenterId: str, force: bool = False @@ -317,7 +297,7 @@ class OVirtProvider( 'active' -> True or False """ - return self.__getApi().getDatacenterInfo(datacenterId, force) + return self.__getApi().get_datacenter_info(datacenterId, force) def getStorageInfo( self, storageId: str, force: bool = False @@ -341,7 +321,7 @@ class OVirtProvider( # 'active' -> True or False --> This is not provided by api?? (api.storagedomains.get) """ - return self.__getApi().getStorageInfo(storageId, force) + return self.__getApi().get_storage_info(storageId, force) def makeTemplate( self, @@ -366,7 +346,7 @@ class OVirtProvider( Returns Raises an exception if operation could not be acomplished, or returns the id of the template being created. """ - return self.__getApi().makeTemplate( + return self.__getApi().create_template( name, comments, machineId, clusterId, storageId, displayType ) @@ -381,7 +361,7 @@ class OVirtProvider( (don't know if ovirt returns something more right now, will test what happens when template can't be published) """ - return self.__getApi().getTemplateState(templateId) + return self.__getApi().get_template_state(templateId) def getMachineState(self, machineId: str) -> str: """ @@ -399,7 +379,7 @@ class OVirtProvider( suspended, image_illegal, image_locked or powering_down Also can return'unknown' if Machine is not known """ - return self.__getApi().getMachineState(machineId) + return self.__getApi().get_machine_state(machineId) def removeTemplate(self, templateId: str) -> None: """ @@ -407,7 +387,7 @@ class OVirtProvider( Returns nothing, and raises an Exception if it fails """ - return self.__getApi().removeTemplate(templateId) + return self.__getApi().remove_template(templateId) def deployFromTemplate( self, @@ -435,7 +415,7 @@ class OVirtProvider( Returns: Id of the machine being created form template """ - return self.__getApi().deployFromTemplate( + return self.__getApi().deploy_from_template( name, comments, templateId, @@ -457,7 +437,7 @@ class OVirtProvider( Returns: """ - self.__getApi().startMachine(machineId) + self.__getApi().start_machine(machineId) def stopMachine(self, machineId: str) -> None: """ @@ -468,7 +448,7 @@ class OVirtProvider( Returns: """ - self.__getApi().stopMachine(machineId) + self.__getApi().stop_machine(machineId) def suspendMachine(self, machineId: str) -> None: """ @@ -479,7 +459,7 @@ class OVirtProvider( Returns: """ - self.__getApi().suspendMachine(machineId) + self.__getApi().suspend_machine(machineId) def removeMachine(self, machineId: str) -> None: """ @@ -490,16 +470,16 @@ class OVirtProvider( Returns: """ - self.__getApi().removeMachine(machineId) + self.__getApi().remove_machine(machineId) def updateMachineMac(self, machineId: str, macAddres: str) -> None: """ Changes the mac address of first nic of the machine to the one specified """ - self.__getApi().updateMachineMac(machineId, macAddres) + self.__getApi().update_machine_mac(machineId, macAddres) def fixUsb(self, machineId: str) -> None: - self.__getApi().fixUsb(machineId) + self.__getApi().fix_usb(machineId) def getMacRange(self) -> str: return self.macsRange.value @@ -507,7 +487,7 @@ class OVirtProvider( def getConsoleConnection( self, machineId: str ) -> typing.Optional[collections.abc.MutableMapping[str, typing.Any]]: - return self.__getApi().getConsoleConnection(machineId) + return self.__getApi().get_console_connection(machineId) @cached('reachable', consts.cache.SHORT_CACHE_TIMEOUT) def is_available(self) -> bool: diff --git a/server/src/uds/services/OVirt/publication.py b/server/src/uds/services/OVirt/publication.py index ec5bc1163..22c23041b 100644 --- a/server/src/uds/services/OVirt/publication.py +++ b/server/src/uds/services/OVirt/publication.py @@ -32,7 +32,6 @@ Author: Adolfo Gómez, dkmaster at dkmon dot com """ import collections.abc import logging -from re import T import typing from datetime import datetime diff --git a/server/src/uds/services/Proxmox/client/__init__.py b/server/src/uds/services/Proxmox/client/__init__.py index ccaa1f4d2..071b9be2f 100644 --- a/server/src/uds/services/Proxmox/client/__init__.py +++ b/server/src/uds/services/Proxmox/client/__init__.py @@ -294,7 +294,9 @@ class ProxmoxClient: key_fnc=caching_key_helper, ) def list_node_gpu_devices(self, node: str, **kwargs) -> list[str]: - return [device['id'] for device in self._get(f'nodes/{node}/hardware/pci')['data'] if device.get('mdev')] + return [ + device['id'] for device in self._get(f'nodes/{node}/hardware/pci')['data'] if device.get('mdev') + ] @ensure_connected def list_node_vgpus(self, node: str, **kwargs) -> list[typing.Any]: @@ -387,9 +389,11 @@ class ProxmoxClient: # Check if mustHaveVGPUS is compatible with the node if must_have_vgpus is not None and must_have_vgpus != bool(self.list_node_gpu_devices(use_node)): raise ProxmoxNoGPUError(f'Node "{use_node}" does not have VGPUS and they are required') - + if self.node_has_vgpus_available(use_node, vmInfo.vgpu_type): - raise ProxmoxNoGPUError(f'Node "{use_node}" does not have free VGPUS of type {vmInfo.vgpu_type} (requred by VM {vmInfo.name})') + raise ProxmoxNoGPUError( + f'Node "{use_node}" does not have free VGPUS of type {vmInfo.vgpu_type} (requred by VM {vmInfo.name})' + ) # From normal vm, disable "linked cloning" if as_linked_clone and not vmInfo.template: @@ -424,7 +428,7 @@ class ProxmoxClient: @ensure_connected @cached('hagrps', CACHE_DURATION, key_fnc=caching_key_helper) - def list_ha_groups(self) -> list[str]: + def list_ha_groups(self, **kwargs) -> list[str]: return [g['group'] for g in self._get('cluster/ha/groups')['data']] @ensure_connected @@ -475,7 +479,9 @@ class ProxmoxClient: kwargs='node', key_fnc=caching_key_helper, ) - def list_machines(self, node: typing.Union[None, str, collections.abc.Iterable[str]] = None) -> list[types.VMInfo]: + def list_machines( + self, node: typing.Union[None, str, collections.abc.Iterable[str]] = None, **kwargs + ) -> list[types.VMInfo]: nodeList: collections.abc.Iterable[str] if node is None: nodeList = [n.name for n in self.get_cluster_info().nodes if n.online] @@ -672,8 +678,20 @@ class ProxmoxClient: @ensure_connected @cached('pools', CACHE_DURATION // 6, key_fnc=caching_key_helper) - def list_pools(self) -> list[types.PoolInfo]: - return [types.PoolInfo.from_dict(nodeStat) for nodeStat in self._get('pools')['data']] + def list_pools(self, **kwargs) -> list[types.PoolInfo]: + return [types.PoolInfo.from_dict(poolInfo) for poolInfo in self._get('pools')['data']] + + @ensure_connected + @cached('pool', CACHE_DURATION, args=[1, 2], kwargs=['pool_id', 'retrieve_vm_names'], key_fnc=caching_key_helper) + def get_pool_info(self, pool_id: str, retrieve_vm_names: bool = False, **kwargs) -> types.PoolInfo: + pool_info = types.PoolInfo.from_dict(self._get(f'pools/{pool_id}')['data']) + if retrieve_vm_names: + for i in range(len(pool_info.members)): + try: + pool_info.members[i] = pool_info.members[i]._replace(vmname=self.get_machine_info(pool_info.members[i].vmid).name or '') + except Exception: + pool_info.members[i] = pool_info.members[i]._replace(vmname=f'VM-{pool_info.members[i].vmid}') + return pool_info @ensure_connected def get_console_connection( diff --git a/server/src/uds/services/Proxmox/client/types.py b/server/src/uds/services/Proxmox/client/types.py index 55c51025d..031569348 100644 --- a/server/src/uds/services/Proxmox/client/types.py +++ b/server/src/uds/services/Proxmox/client/types.py @@ -1,14 +1,13 @@ import datetime import re import typing -import dataclasses import collections.abc NETWORK_RE: typing.Final[typing.Pattern] = re.compile(r'([a-zA-Z0-9]+)=([^,]+)') # May have vla id at end # Conversor from dictionary to NamedTuple CONVERSORS: typing.Final[collections.abc.MutableMapping[typing.Type, collections.abc.Callable]] = { - str: lambda x: str(x), + str: lambda x: str(x or ''), bool: lambda x: bool(x), int: lambda x: int(x or '0'), float: lambda x: float(x or '0'), @@ -17,7 +16,7 @@ CONVERSORS: typing.Final[collections.abc.MutableMapping[typing.Type, collections def _from_dict( - type: type[typing.Any], + type: type[typing.NamedTuple], dictionary: collections.abc.MutableMapping[str, typing.Any], extra: typing.Optional[collections.abc.Mapping[str, typing.Any]] = None, ) -> typing.Any: @@ -32,8 +31,8 @@ def _from_dict( ) -@dataclasses.dataclass(slots=True) -class Cluster: +# Need to be "NamedTuple"s because we use _fields attribute +class Cluster(typing.NamedTuple): name: str version: str id: str @@ -45,8 +44,7 @@ class Cluster: return _from_dict(Cluster, dictionary) -@dataclasses.dataclass(slots=True) -class Node: +class Node(typing.NamedTuple): name: str online: bool local: bool @@ -60,8 +58,7 @@ class Node: return _from_dict(Node, dictionary) -@dataclasses.dataclass(slots=True) -class NodeStats: +class NodeStats(typing.NamedTuple): name: str status: str uptime: int @@ -96,8 +93,7 @@ class NodeStats: ) -@dataclasses.dataclass(slots=True) -class ClusterStatus: +class ClusterStatus(typing.NamedTuple): cluster: typing.Optional[Cluster] nodes: list[Node] @@ -115,8 +111,7 @@ class ClusterStatus: return ClusterStatus(cluster=cluster, nodes=nodes) -@dataclasses.dataclass(slots=True) -class UPID: +class UPID(typing.NamedTuple): node: str pid: int pstart: int @@ -142,8 +137,7 @@ class UPID: ) -@dataclasses.dataclass(slots=True) -class TaskStatus: +class TaskStatus(typing.NamedTuple): node: str pid: int pstart: int @@ -172,8 +166,7 @@ class TaskStatus: return self.is_finished() and not self.is_completed() -@dataclasses.dataclass(slots=True) -class NetworkConfiguration: +class NetworkConfiguration(typing.NamedTuple): net: str type: str mac: str @@ -188,8 +181,7 @@ class NetworkConfiguration: return NetworkConfiguration(net=net, type=type, mac=mac) -@dataclasses.dataclass(slots=True) -class VMInfo: +class VMInfo(typing.NamedTuple): status: str vmid: int node: str @@ -231,8 +223,7 @@ class VMInfo: return data -@dataclasses.dataclass(slots=True) -class VMConfiguration: +class VMConfiguration(typing.NamedTuple): name: str vga: str sockets: int @@ -254,15 +245,13 @@ class VMConfiguration: return _from_dict(VMConfiguration, src) -@dataclasses.dataclass(slots=True) -class VmCreationResult: +class VmCreationResult(typing.NamedTuple): node: str vmid: int upid: UPID -@dataclasses.dataclass(slots=True) -class StorageInfo: +class StorageInfo(typing.NamedTuple): node: str storage: str content: tuple[str, ...] @@ -280,11 +269,32 @@ class StorageInfo: return _from_dict(StorageInfo, dictionary) -@dataclasses.dataclass(slots=True) -class PoolInfo: +class PoolMemberInfo(typing.NamedTuple): + id: str + node: str + storage: str + type: str + vmid: int + vmname: str + + @staticmethod + def from_dict(dictionary: collections.abc.MutableMapping[str, typing.Any]) -> 'PoolMemberInfo': + return _from_dict(PoolMemberInfo, dictionary) + + +class PoolInfo(typing.NamedTuple): poolid: str comments: str + members: list[PoolMemberInfo] @staticmethod def from_dict(dictionary: collections.abc.MutableMapping[str, typing.Any]) -> 'PoolInfo': - return _from_dict(PoolInfo, dictionary) + if 'members' in dictionary: + members: list[PoolMemberInfo] = [PoolMemberInfo.from_dict(i) for i in dictionary['members']] + else: + members = [] + + dictionary['comments'] = dictionary.get('comments', '') + + dictionary['members'] = members + return _from_dict(PoolInfo, dictionary=dictionary) diff --git a/server/src/uds/services/Proxmox/deployment_fixed.py b/server/src/uds/services/Proxmox/deployment_fixed.py new file mode 100644 index 000000000..e69de29bb diff --git a/server/src/uds/services/Proxmox/helpers.py b/server/src/uds/services/Proxmox/helpers.py index 9e87f0fb0..90192938b 100644 --- a/server/src/uds/services/Proxmox/helpers.py +++ b/server/src/uds/services/Proxmox/helpers.py @@ -27,17 +27,18 @@ """ @author: Adolfo Gómez, dkmaster at dkmon dot com """ -import logging -import typing import collections.abc -from uds.core import types - -from uds.core.environment import Environment +import logging +from multiprocessing import pool +import typing from django.utils.translation import gettext as _ +from uds.core import types +from uds.core.environment import Environment from uds.core.ui.user_interface import gui - +from uds import models +from uds.services.OpenNebula.on import vm logger = logging.getLogger(__name__) @@ -46,9 +47,9 @@ def get_storage(parameters: typing.Any) -> types.ui.CallbackResultType: from .provider import ProxmoxProvider # pylint: disable=import-outside-toplevel logger.debug('Parameters received by getResources Helper: %s', parameters) - env = Environment(parameters['ev']) - provider: ProxmoxProvider = ProxmoxProvider(env) - provider.deserialize(parameters['ov']) + provider = typing.cast( + ProxmoxProvider, models.Provider.objects.get(uuid=parameters['prov_uuid']).get_instance() + ) # Obtains datacenter from cluster try: @@ -58,26 +59,41 @@ def get_storage(parameters: typing.Any) -> types.ui.CallbackResultType: res = [] # Get storages for that datacenter - for storage in sorted( - provider.listStorages(vm_info.node), key=lambda x: int(not x.shared) - ): + for storage in sorted(provider.list_storages(vm_info.node), key=lambda x: int(not x.shared)): if storage.type in ('lvm', 'iscsi', 'iscsidirect'): continue space, free = ( storage.avail / 1024 / 1024 / 1024, (storage.avail - storage.used) / 1024 / 1024 / 1024, ) - extra = ( - _(' shared') if storage.shared else _(' (bound to {})').format(vm_info.node) - ) + extra = _(' shared') if storage.shared else _(' (bound to {})').format(vm_info.node) res.append( - gui.choice_item( - storage.storage, - f'{storage.storage} ({space:4.2f} GB/{free:4.2f} GB){extra}' - ) + gui.choice_item(storage.storage, f'{storage.storage} ({space:4.2f} GB/{free:4.2f} GB){extra}') ) data: types.ui.CallbackResultType = [{'name': 'datastore', 'choices': res}] logger.debug('return data: %s', data) return data + + +def get_machines(parameters: typing.Any) -> types.ui.CallbackResultType: + from .provider import ProxmoxProvider # pylint: disable=import-outside-toplevel + + logger.debug('Parameters received by getResources Helper: %s', parameters) + provider = typing.cast( + ProxmoxProvider, models.Provider.objects.get(uuid=parameters['prov_uuid']).get_instance() + ) + + # Obtains datacenter from cluster + try: + pool_info = provider.get_pool_info(parameters['pool'], retrieve_vm_names=True) + except Exception: + return [] + + return [ + { + 'name': 'machines', + 'choices': [gui.choice_item(member.vmid, member.vmname) for member in pool_info.members], + } + ] diff --git a/server/src/uds/services/Proxmox/provider.py b/server/src/uds/services/Proxmox/provider.py index ddcb757a1..806f3b203 100644 --- a/server/src/uds/services/Proxmox/provider.py +++ b/server/src/uds/services/Proxmox/provider.py @@ -42,6 +42,7 @@ from uds.core.util.unique_mac_generator import UniqueMacGenerator from . import client from .service import ProxmoxLinkedService +from .service_fixed import ProxmoxFixedService # Not imported at runtime, just for type checking if typing.TYPE_CHECKING: @@ -53,13 +54,14 @@ logger = logging.getLogger(__name__) MAX_VM_ID: typing.Final[int] = 999999999 -class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-public-methods - offers = [ProxmoxLinkedService] +class ProxmoxProvider(services.ServiceProvider): type_name = _('Proxmox Platform Provider') type_type = 'ProxmoxPlatform' type_description = _('Proxmox platform service provider') icon_file = 'provider.png' + offers = [ProxmoxLinkedService, ProxmoxFixedService] + host = gui.TextField( length=64, label=_('Host'), @@ -113,15 +115,15 @@ class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-pub macs_range = fields.macs_range_field(default='52:54:00:00:00:00-52:54:00:FF:FF:FF') # Own variables - _api: typing.Optional[client.ProxmoxClient] = None + _cached_api: typing.Optional[client.ProxmoxClient] = None _vmid_generator: UniqueIDGenerator - def _getApi(self) -> client.ProxmoxClient: + def _api(self) -> client.ProxmoxClient: """ Returns the connection API object """ - if self._api is None: - self._api = client.ProxmoxClient( + if self._cached_api is None: + self._cached_api = client.ProxmoxClient( self.host.value, self.port.as_int(), self.username.value, @@ -131,7 +133,7 @@ class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-pub self.cache, ) - return self._api + return self._cached_api # There is more fields type, but not here the best place to cover it def initialize(self, values: 'Module.ValuesType') -> None: @@ -140,7 +142,7 @@ class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-pub """ # Just reset _api connection variable - self._api = None + self._cached_api = None if values is not None: self.timeout.value = validators.validate_timeout(self.timeout.value) @@ -158,97 +160,100 @@ class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-pub True if all went fine, false if id didn't """ - return self._getApi().test() + return self._api().test() - def listMachines(self) -> list[client.types.VMInfo]: - return self._getApi().list_machines() + def list_machines(self) -> list[client.types.VMInfo]: + return self._api().list_machines() def get_machine_info(self, vmId: int, poolId: typing.Optional[str] = None) -> client.types.VMInfo: - return self._getApi().get_machines_pool_info(vmId, poolId, force=True) + return self._api().get_machines_pool_info(vmId, poolId, force=True) def get_machine_configuration(self, vmId: int) -> client.types.VMConfiguration: - return self._getApi().get_machine_configuration(vmId, force=True) + return self._api().get_machine_configuration(vmId, force=True) - def getStorageInfo(self, storageId: str, node: str) -> client.types.StorageInfo: - return self._getApi().get_storage(storageId, node) + def get_storage_info(self, storageId: str, node: str) -> client.types.StorageInfo: + return self._api().get_storage(storageId, node) - def listStorages(self, node: typing.Optional[str]) -> list[client.types.StorageInfo]: - return self._getApi().list_storages(node=node, content='images') + def list_storages(self, node: typing.Optional[str]) -> list[client.types.StorageInfo]: + return self._api().list_storages(node=node, content='images') - def listPools(self) -> list[client.types.PoolInfo]: - return self._getApi().list_pools() + def list_pools(self) -> list[client.types.PoolInfo]: + return self._api().list_pools() + + def get_pool_info(self, pool_id: str, retrieve_vm_names: bool = False) -> client.types.PoolInfo: + return self._api().get_pool_info(pool_id, retrieve_vm_names=retrieve_vm_names) - def make_template(self, vmId: int) -> None: - return self._getApi().convertToTemplate(vmId) + def create_template(self, vmId: int) -> None: + return self._api().convertToTemplate(vmId) - def cloneMachine( + def clone_machine( self, - vmId: int, + vmid: int, name: str, description: typing.Optional[str], - linkedClone: bool, - toNode: typing.Optional[str] = None, - toStorage: typing.Optional[str] = None, - toPool: typing.Optional[str] = None, - mustHaveVGPUS: typing.Optional[bool] = None, + as_linked_clone: bool, + target_node: typing.Optional[str] = None, + target_storage: typing.Optional[str] = None, + target_pool: typing.Optional[str] = None, + must_have_vgpus: typing.Optional[bool] = None, ) -> client.types.VmCreationResult: - return self._getApi().clone_machine( - vmId, + return self._api().clone_machine( + vmid, self.get_new_vmid(), name, description, - linkedClone, - toNode, - toStorage, - toPool, - mustHaveVGPUS, + as_linked_clone, + target_node, + target_storage, + target_pool, + must_have_vgpus, ) def start_machine(self, vmId: int) -> client.types.UPID: - return self._getApi().start_machine(vmId) + return self._api().start_machine(vmId) def stop_machine(self, vmid: int) -> client.types.UPID: - return self._getApi().stop_machine(vmid) + return self._api().stop_machine(vmid) def reset_machine(self, vmid: int) -> client.types.UPID: - return self._getApi().reset_machine(vmid) + return self._api().reset_machine(vmid) def suspend_machine(self, vmId: int) -> client.types.UPID: - return self._getApi().suspend_machine(vmId) + return self._api().suspend_machine(vmId) def shutdown_machine(self, vmId: int) -> client.types.UPID: - return self._getApi().shutdown_machine(vmId) + return self._api().shutdown_machine(vmId) def remove_machine(self, vmid: int) -> client.types.UPID: - return self._getApi().remove_machine(vmid) + return self._api().remove_machine(vmid) def get_task_info(self, node: str, upid: str) -> client.types.TaskStatus: - return self._getApi().get_task(node, upid) + return self._api().get_task(node, upid) def enable_ha(self, vmId: int, started: bool = False, group: typing.Optional[str] = None) -> None: - self._getApi().enable_machine_ha(vmId, started, group) + self._api().enable_machine_ha(vmId, started, group) def set_machine_mac(self, vmId: int, macAddress: str) -> None: - self._getApi().set_machine_ha(vmId, macAddress) + self._api().set_machine_ha(vmId, macAddress) def disable_ha(self, vmid: int) -> None: - self._getApi().disable_machine_ha(vmid) + self._api().disable_machine_ha(vmid) def set_protection(self, vmId: int, node: typing.Optional[str] = None, protection: bool = False) -> None: - self._getApi().set_protection(vmId, node, protection) + self._api().set_protection(vmId, node, protection) def list_ha_groups(self) -> list[str]: - return self._getApi().list_ha_groups() + return self._api().list_ha_groups() def get_console_connection( self, machineId: str ) -> typing.Optional[collections.abc.MutableMapping[str, typing.Any]]: - return self._getApi().get_console_connection(machineId) + return self._api().get_console_connection(machineId) def get_new_vmid(self) -> int: while True: # look for an unused VmId vmid = self._vmid_generator.get(self.start_vmid.as_int(), MAX_VM_ID) - if self._getApi().is_vmid_available(vmid): + if self._api().is_vmid_available(vmid): return vmid # All assigned VMId will be left as unusable on UDS until released by time (3 years) # This is not a problem at all, in the rare case that a machine id is released from uds db @@ -256,7 +261,7 @@ class ProxmoxProvider(services.ServiceProvider): # pylint: disable=too-many-pub @cached('reachable', consts.cache.SHORT_CACHE_TIMEOUT) def is_available(self) -> bool: - return self._getApi().test() + return self._api().test() def get_macs_range(self) -> str: return self.macs_range.value diff --git a/server/src/uds/services/Proxmox/service.py b/server/src/uds/services/Proxmox/service.py index 073e30b54..10633e2a3 100644 --- a/server/src/uds/services/Proxmox/service.py +++ b/server/src/uds/services/Proxmox/service.py @@ -36,7 +36,7 @@ import collections.abc from django.utils.translation import gettext_noop as _ from uds.core import services, types, consts from uds.core.ui import gui -from uds.core.util import validators, log +from uds.core.util import validators, log, fields from uds.core.util.cache import Cache from uds.core.util.decorators import cached @@ -66,7 +66,7 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public # : Type used internally to identify this provider type_type = 'ProxmoxLinkedService' # : Description shown at administration interface for this provider - type_description = _('Proxmox Services based on templates and COW (experimental)') + type_description = _('Proxmox Services based on templates and COW') # : Icon file used as icon for this provider. This string will be translated # : BEFORE sending it to administration interface, so don't forget to # : mark it as _ (using gettext_noop) @@ -105,8 +105,6 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public allowed_protocols = types.transports.Protocol.generic_vdi(types.transports.Protocol.SPICE) services_type_provided = types.services.ServiceType.VDI - - pool = gui.ChoiceField( label=_("Pool"), order=1, @@ -123,23 +121,16 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public readonly=True, ) - guestShutdown = gui.CheckBoxField( - label=_('Try SOFT Shutdown first'), - default=False, - order=103, - tooltip=_( - 'If active, UDS will try to shutdown (soft) the machine using VMWare Guest Tools. Will delay 30 seconds the power off of hanged machines.' - ), - old_field_name='guestShutdown', - ) - + + soft_shutdown_field = fields.soft_shutdown_field() + machine = gui.ChoiceField( label=_("Base Machine"), order=110, fills={ 'callback_name': 'pmFillResourcesFromMachine', 'function': helpers.get_storage, - 'parameters': ['machine', 'ov', 'ev'], + 'parameters': ['machine', 'prov_uuid'], }, tooltip=_('Service base machine'), tab=_('Machine'), @@ -168,37 +159,16 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public tab=_('Machine'), required=True, ) + + basename = fields.basename_field(order=115) + lenname = fields.lenname_field(order=116) - baseName = gui.TextField( - label=_('Machine Names'), - readonly=False, - order=115, - tooltip=_('Base name for clones from this machine'), - tab=_('Machine'), - required=True, - old_field_name='baseName', - ) - - lenName = gui.NumericField( - length=1, - label=_('Name Length'), - default=5, - order=116, - tooltip=_('Size of numeric part for the names of these machines'), - tab=_('Machine'), - required=True, - old_field_name='lenName', - ) - - ov = gui.HiddenField(value=None) - ev = gui.HiddenField( - value=None - ) # We need to keep the env so we can instantiate the Provider - + prov_uuid = gui.HiddenField(value=None) + def initialize(self, values: 'Module.ValuesType') -> None: if values: - self.baseName.value = validators.validate_basename( - self.baseName.value, length=self.lenName.as_int() + self.basename.value = validators.validate_basename( + self.basename.value, length=self.lenname.as_int() ) # if int(self.memory.value) < 128: # raise exceptions.ValidationException(_('The minimum allowed memory is 128 Mb')) @@ -207,23 +177,20 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public # Here we have to use "default values", cause values aren't used at form initialization # This is that value is always '', so if we want to change something, we have to do it # at defValue - self.ov.value = self.parent().serialize() - self.ev.value = self.parent().env.key + self.prov_uuid.value = self.parent().db_obj().uuid # This is not the same case, values is not the "value" of the field, but # the list of values shown because this is a "ChoiceField" self.machine.set_choices( [ - gui.choice_item( - str(m.vmid), f'{m.node}\\{m.name or m.vmid} ({m.vmid})' - ) - for m in self.parent().listMachines() + gui.choice_item(str(m.vmid), f'{m.node}\\{m.name or m.vmid} ({m.vmid})') + for m in self.parent().list_machines() if m.name and m.name[:3] != 'UDS' ] ) self.pool.set_choices( [gui.choice_item('', _('None'))] - + [gui.choice_item(p.poolid, p.poolid) for p in self.parent().listPools()] + + [gui.choice_item(p.poolid, p.poolid) for p in self.parent().list_pools()] ) self.ha.set_choices( [gui.choice_item('', _('Enabled')), gui.choice_item('__', _('Disabled'))] @@ -240,31 +207,29 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public return re.sub("[^a-zA-Z0-9_-]", "-", name) def make_template(self, vmId: int) -> None: - self.parent().make_template(vmId) + self.parent().create_template(vmId) - def clone_machine( - self, name: str, description: str, vmId: int = -1 - ) -> 'client.types.VmCreationResult': + def clone_machine(self, name: str, description: str, vmId: int = -1) -> 'client.types.VmCreationResult': name = self.sanitized_name(name) pool = self.pool.value or None if vmId == -1: # vmId == -1 if cloning for template - return self.parent().cloneMachine( + return self.parent().clone_machine( self.machine.value, name, description, - linkedClone=False, - toStorage=self.datastore.value, - toPool=pool, + as_linked_clone=False, + target_storage=self.datastore.value, + target_pool=pool, ) - return self.parent().cloneMachine( + return self.parent().clone_machine( vmId, name, description, - linkedClone=True, - toStorage=self.datastore.value, - toPool=pool, - mustHaveVGPUS={'1': True, '2': False}.get(self.gpu.value, None), + as_linked_clone=True, + target_storage=self.datastore.value, + target_pool=pool, + must_have_vgpus={'1': True, '2': False}.get(self.gpu.value, None), ) def get_machine_info(self, vmId: int) -> 'client.types.VMInfo': @@ -299,7 +264,7 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public except Exception as e: logger.warning('Exception disabling HA for vm %s: %s', vmId, e) self.do_log(level=log.LogLevel.WARNING, message=f'Exception disabling HA for vm {vmId}: {e}') - + # And remove it return self.parent().remove_machine(vmId) @@ -313,19 +278,17 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public return self.parent().disable_ha(vmId) - def set_protection( - self, vmId: int, node: typing.Optional[str] = None, protection: bool = False - ) -> None: + def set_protection(self, vmId: int, node: typing.Optional[str] = None, protection: bool = False) -> None: self.parent().set_protection(vmId, node, protection) def set_machine_mac(self, vmId: int, mac: str) -> None: self.parent().set_machine_mac(vmId, mac) def get_basename(self) -> str: - return self.baseName.value + return self.basename.value def get_lenname(self) -> int: - return int(self.lenName.value) + return int(self.lenname.value) def get_macs_range(self) -> str: """ @@ -337,7 +300,7 @@ class ProxmoxLinkedService(services.Service): # pylint: disable=too-many-public return self.ha.value != '__' def try_graceful_shutdown(self) -> bool: - return self.guestShutdown.as_bool() + return self.soft_shutdown_field.as_bool() def get_console_connection( self, machineId: str diff --git a/server/src/uds/services/Proxmox/service_fixed.py b/server/src/uds/services/Proxmox/service_fixed.py new file mode 100644 index 000000000..cc8e2d042 --- /dev/null +++ b/server/src/uds/services/Proxmox/service_fixed.py @@ -0,0 +1,292 @@ +# +# Copyright (c) 2012-2022 Virtual Cable S.L.U. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L.U. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +""" +Author: Adolfo Gómez, dkmaster at dkmon dot com +""" +import logging +import re +import typing +import collections.abc + +from django.utils.translation import gettext_noop as _, gettext +from uds.core import services, types, consts, exceptions +from uds.core.ui import gui +from uds.core.util import validators, log +from uds.core.util.cache import Cache +from uds.core.util.decorators import cached +from uds.core.workers import initialize + +from . import helpers +from .deployment import ProxmoxDeployment +from .publication import ProxmoxPublication + +# Not imported at runtime, just for type checking +if typing.TYPE_CHECKING: + from uds.core.module import Module + from uds import models + + from . import client + from .provider import ProxmoxProvider + +logger = logging.getLogger(__name__) + + +class ProxmoxFixedService(services.Service): # pylint: disable=too-many-public-methods + """ + Proxmox Linked clones service. This is based on creating a template from selected vm, and then use it to + """ + + # : Name to show the administrator. This string will be translated BEFORE + # : sending it to administration interface, so don't forget to + # : mark it as _ (using gettext_noop) + type_name = _('Proxmox Fixed Machines') + # : Type used internally to identify this provider + type_type = 'ProxmoxFixedService' + # : Description shown at administration interface for this provider + type_description = _('Proxmox Services based on fixed machines') + # : Icon file used as icon for this provider. This string will be translated + # : BEFORE sending it to administration interface, so don't forget to + # : mark it as _ (using gettext_noop) + icon_file = 'service.png' + + # Functional related data + + # : If we need to generate "cache" for this service, so users can access the + # : provided services faster. Is uses_cache is True, you will need also + # : set publication_type, do take care about that! + uses_cache = True + # : Tooltip shown to user when this item is pointed at admin interface, none + # : because we don't use it + cache_tooltip = _('Number of desired machines to keep running waiting for a user') + # : If we need to generate a "Level 2" cache for this service (i.e., L1 + # : could be running machines and L2 suspended machines) + uses_cache_l2 = True + # : Tooltip shown to user when this item is pointed at admin interface, None + # : also because we don't use it + cache_tooltip_l2 = _('Number of desired VMs to keep stopped waiting for use') + + # : If the service needs a s.o. manager (managers are related to agents + # : provided by services itselfs, i.e. virtual machines with actors) + needs_manager = True + # : If true, the system can't do an automatic assignation of a deployed user + # : service from this service + must_assign_manually = False + can_reset = True + + # : Types of publications (preparated data for deploys) + # : In our case, we do no need a publication, so this is None + publication_type = ProxmoxPublication + # : Types of deploys (services in cache and/or assigned to users) + user_service_type = ProxmoxDeployment + + allowed_protocols = types.transports.Protocol.generic_vdi(types.transports.Protocol.SPICE) + services_type_provided = types.services.ServiceType.VDI + + # Gui + token = gui.TextField( + order=1, + label=_('Service Token'), + length=16, + tooltip=_( + 'Service token that will be used by actors to communicate with service. Leave empty for persistent assignation.' + ), + default='', + required=False, + readonly=False, + ) + + pool = gui.ChoiceField( + label=_("Resource Pool"), + readonly=False, + order=20, + fills={ + 'callback_name': 'pmFillMachinesFromResource', + 'function': helpers.get_machines, + 'parameters': ['prov_uuid', 'pool'], + }, + tooltip=_('Resource Pool containing base machines'), + required=True, + tab=_('Machines'), + old_field_name='resourcePool', + ) + # Keep name as "machine" so we can use VCHelpers.getMachines + machines = gui.MultiChoiceField( + label=_("Machines"), + order=21, + tooltip=_('Machines for this service'), + required=True, + tab=_('Machines'), + rows=10, + ) + + use_snapshots = gui.CheckBoxField( + label=_('Use snapshots'), + default=False, + order=22, + tooltip=_('If active, UDS will try to create an snapshot on VM use and recover if on exit.'), + tab=_('Machines'), + old_field_name='useSnapshots', + ) + + prov_uuid = gui.HiddenField(value=None) + + def _get_assigned_machines(self) -> typing.Set[int]: + vals = self.storage.get_unpickle('vms') + logger.debug('Got storage VMS: %s', vals) + return vals or set() + + def _save_assigned_machines(self, vals: typing.Set[int]) -> None: + logger.debug('Saving storage VMS: %s', vals) + self.storage.put_pickle('vms', vals) + + def initialize(self, values: 'Module.ValuesType') -> None: + """ + Loads the assigned machines from storage + """ + if values: + if not self.machines.value: + raise exceptions.ui.ValidationError(gettext('We need at least a machine')) + + self.storage.put_pickle('maxDeployed', len(self.machines.as_list())) + + # Remove machines not in values from "assigned" set + self._save_assigned_machines(self._get_assigned_machines() & set(self.machines.as_list())) + self.token.value = self.token.value.strip() + self.userservices_limit = self.storage.get_unpickle('maxDeployed') + + def init_gui(self) -> None: + # Here we have to use "default values", cause values aren't used at form initialization + # This is that value is always '', so if we want to change something, we have to do it + # at defValue + self.prov_uuid.value = self.parent().get_uuid() + + self.pool.set_choices( + [gui.choice_item('', _('None'))] + + [gui.choice_item(p.poolid, p.poolid) for p in self.parent().list_pools()] + ) + + def parent(self) -> 'ProxmoxProvider': + return typing.cast('ProxmoxProvider', super().parent()) + + def sanitized_name(self, name: str) -> str: + """ + Proxmox only allows machine names with [a-zA-Z0-9_-] + """ + return re.sub("[^a-zA-Z0-9_-]", "-", name) + + def get_machine_info(self, vmId: int) -> 'client.types.VMInfo': + return self.parent().get_machine_info(vmId, self.pool.value.strip()) + + def get_nic_mac(self, vmid: int) -> str: + config = self.parent().get_machine_configuration(vmid) + return config.networks[0].mac.lower() + + def get_task_info(self, node: str, upid: str) -> 'client.types.TaskStatus': + return self.parent().get_task_info(node, upid) + + def start_machine(self, vmId: int) -> 'client.types.UPID': + return self.parent().start_machine(vmId) + + def stop_machine(self, vmId: int) -> 'client.types.UPID': + return self.parent().stop_machine(vmId) + + def reset_machine(self, vmId: int) -> 'client.types.UPID': + return self.parent().reset_machine(vmId) + + def suspend_machine(self, vmId: int) -> 'client.types.UPID': + return self.parent().suspend_machine(vmId) + + def shutdown_machine(self, vmId: int) -> 'client.types.UPID': + return self.parent().shutdown_machine(vmId) + + def get_machine_from_pool(self) -> int: + found_vmid: typing.Optional[int] = None + try: + assignedVmsSet = self._get_assigned_machines() + for k in self.machines.as_list(): + checking_vmid = int(k) + if found_vmid not in assignedVmsSet: # Not assigned + # Check that the machine exists... + try: + vm_info = self.parent().get_machine_info(checking_vmid, self.pool.value.strip()) + found_vmid = checking_vmid + break + except Exception: # Notifies on log, but skipt it + self.parent().do_log( + log.LogLevel.WARNING, 'Machine {} not accesible'.format(found_vmid) + ) + logger.warning( + 'The service has machines that cannot be checked on vmware (connection error or machine has been deleted): %s', + found_vmid, + ) + + if found_vmid: + assignedVmsSet.add(found_vmid) + self._save_assigned_machines(assignedVmsSet) + except Exception: # + raise Exception('No machine available') + + if not found_vmid: + raise Exception('All machines from list already assigned.') + + return found_vmid + + def release_machine_from_pool(self, vmid: int) -> None: + try: + self._save_assigned_machines(self._get_assigned_machines() - {vmid}) # Sets operation + except Exception as e: + logger.warn('Cound not save assigned machines on vmware fixed pool: %s', e) + + def enumerate_assignables(self) -> list[tuple[str, str]]: + # Obtain machines names and ids for asignables + vms: dict[int, str] = {} + + for member in self.parent().get_pool_info(self.pool.value.strip()).members: + vms[member.vmid] = member.vmname + + assignedVmsSet = self._get_assigned_machines() + k: str + return [ + (k, vms.get(int(k), 'Unknown!')) for k in self.machines.as_list() if int(k) not in assignedVmsSet + ] + + def assign_from_assignables( + self, assignable_id: str, user: 'models.User', user_deployment: 'services.UserService' + ) -> str: + userservice_instance: ProxmoxDeployment = typing.cast(ProxmoxDeployment, user_deployment) + assignedVmsSet = self._get_assigned_machines() + if assignable_id not in assignedVmsSet: + assignedVmsSet.add(int(assignable_id)) + self._save_assigned_machines(assignedVmsSet) + return userservice_instance.assign(assignable_id) + + return userservice_instance.error('VM not available!') + + @cached('reachable', consts.cache.SHORT_CACHE_TIMEOUT) + def is_avaliable(self) -> bool: + return self.parent().is_available() diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 73fbc07a0..d5e0294bb 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{550:(_p,oa,Dn)=>{"use strict";let ei=null,Is=1;function Gt(t){const r=ei;return ei=t,r}function eh(t){if((!jb(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==Is)){if(!t.producerMustRecompute(t)&&!oR(t))return t.dirty=!1,void(t.lastCleanEpoch=Is);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Is}}function oR(t){ih(t);for(let r=0;r0}function ih(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let W4=null;function Fn(t){return"function"==typeof t}function $b(t){const l=t(e=>{Error.call(e),e.stack=(new Error).stack});return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l}const RS=$b(t=>function(l){t(this),this.message=l?`${l.length} errors occurred during unsubscription:\n${l.map((e,s)=>`${s+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=l});function Yb(t,r){if(t){const l=t.indexOf(r);0<=l&&t.splice(l,1)}}class bt{constructor(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let r;if(!this.closed){this.closed=!0;const{_parentage:l}=this;if(l)if(this._parentage=null,Array.isArray(l))for(const u of l)u.remove(this);else l.remove(this);const{initialTeardown:e}=this;if(Fn(e))try{e()}catch(u){r=u instanceof RS?u.errors:[u]}const{_finalizers:s}=this;if(s){this._finalizers=null;for(const u of s)try{FS(u)}catch(m){r=r??[],m instanceof RS?r=[...r,...m.errors]:r.push(m)}}if(r)throw new RS(r)}}add(r){var l;if(r&&r!==this)if(this.closed)FS(r);else{if(r instanceof bt){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=null!==(l=this._finalizers)&&void 0!==l?l:[]).push(r)}}_hasParent(r){const{_parentage:l}=this;return l===r||Array.isArray(l)&&l.includes(r)}_addParent(r){const{_parentage:l}=this;this._parentage=Array.isArray(l)?(l.push(r),l):l?[l,r]:r}_removeParent(r){const{_parentage:l}=this;l===r?this._parentage=null:Array.isArray(l)&&Yb(l,r)}remove(r){const{_finalizers:l}=this;l&&Yb(l,r),r instanceof bt&&r._removeParent(this)}}bt.EMPTY=(()=>{const t=new bt;return t.closed=!0,t})();const OS=bt.EMPTY;function LS(t){return t instanceof bt||t&&"closed"in t&&Fn(t.remove)&&Fn(t.add)&&Fn(t.unsubscribe)}function FS(t){Fn(t)?t():t.unsubscribe()}const es={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rh={setTimeout(t,r,...l){const{delegate:e}=rh;return null!=e&&e.setTimeout?e.setTimeout(t,r,...l):setTimeout(t,r,...l)},clearTimeout(t){const{delegate:r}=rh;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function dR(t){rh.setTimeout(()=>{const{onUnhandledError:r}=es;if(!r)throw t;r(t)})}function qb(){}const NS=bp("C",void 0,void 0);function bp(t,r,l){return{kind:t,value:r,error:l}}let Tc=null;function Zb(t){if(es.useDeprecatedSynchronousErrorHandling){const r=!Tc;if(r&&(Tc={errorThrown:!1,error:null}),t(),r){const{errorThrown:l,error:e}=Tc;if(Tc=null,l)throw e}}else t()}class wp extends bt{constructor(r){super(),this.isStopped=!1,r?(this.destination=r,LS(r)&&r.add(this)):this.destination=BS}static create(r,l,e){return new _e(r,l,e)}next(r){this.isStopped?Ct(function uR(t){return bp("N",t,void 0)}(r),this):this._next(r)}error(r){this.isStopped?Ct(function Z4(t){return bp("E",void 0,t)}(r),this):(this.isStopped=!0,this._error(r))}complete(){this.isStopped?Ct(NS,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(r){this.destination.next(r)}_error(r){try{this.destination.error(r)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const nt=Function.prototype.bind;function mt(t,r){return nt.call(t,r)}class Xb{constructor(r){this.partialObserver=r}next(r){const{partialObserver:l}=this;if(l.next)try{l.next(r)}catch(e){Ze(e)}}error(r){const{partialObserver:l}=this;if(l.error)try{l.error(r)}catch(e){Ze(e)}else Ze(r)}complete(){const{partialObserver:r}=this;if(r.complete)try{r.complete()}catch(l){Ze(l)}}}class _e extends wp{constructor(r,l,e){let s;if(super(),Fn(r)||!r)s={next:r??void 0,error:l??void 0,complete:e??void 0};else{let u;this&&es.useDeprecatedNextContext?(u=Object.create(r),u.unsubscribe=()=>this.unsubscribe(),s={next:r.next&&mt(r.next,u),error:r.error&&mt(r.error,u),complete:r.complete&&mt(r.complete,u)}):s=r}this.destination=new Xb(s)}}function Ze(t){es.useDeprecatedSynchronousErrorHandling?function VS(t){es.useDeprecatedSynchronousErrorHandling&&Tc&&(Tc.errorThrown=!0,Tc.error=t)}(t):dR(t)}function Ct(t,r){const{onStoppedNotification:l}=es;l&&rh.setTimeout(()=>l(t,r))}const BS={closed:!0,next:qb,error:function X4(t){throw t},complete:qb},Di="function"==typeof Symbol&&Symbol.observable||"@@observable";function ki(t){return t}function Se(t){return 0===t.length?ki:1===t.length?t[0]:function(l){return t.reduce((e,s)=>s(e),l)}}let ln=(()=>{class t{constructor(l){l&&(this._subscribe=l)}lift(l){const e=new t;return e.source=this,e.operator=l,e}subscribe(l,e,s){const u=function Wt(t){return t&&t instanceof wp||function hR(t){return t&&Fn(t.next)&&Fn(t.error)&&Fn(t.complete)}(t)&&LS(t)}(l)?l:new _e(l,e,s);return Zb(()=>{const{operator:m,source:b}=this;u.add(m?m.call(u,b):b?this._subscribe(u):this._trySubscribe(u))}),u}_trySubscribe(l){try{return this._subscribe(l)}catch(e){l.error(e)}}forEach(l,e){return new(e=_n(e))((s,u)=>{const m=new _e({next:b=>{try{l(b)}catch(C){u(C),m.unsubscribe()}},error:u,complete:s});this.subscribe(m)})}_subscribe(l){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(l)}[Di](){return this}pipe(...l){return Se(l)(this)}toPromise(l){return new(l=_n(l))((e,s)=>{let u;this.subscribe(m=>u=m,m=>s(m),()=>e(u))})}}return t.create=r=>new t(r),t})();function _n(t){var r;return null!==(r=t??es.Promise)&&void 0!==r?r:Promise}const K4=$b(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let he=(()=>{class t extends ln{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(l){const e=new ct(this,this);return e.operator=l,e}_throwIfClosed(){if(this.closed)throw new K4}next(l){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const e of this.currentObservers)e.next(l)}})}error(l){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=l;const{observers:e}=this;for(;e.length;)e.shift().error(l)}})}complete(){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:l}=this;for(;l.length;)l.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var l;return(null===(l=this.observers)||void 0===l?void 0:l.length)>0}_trySubscribe(l){return this._throwIfClosed(),super._trySubscribe(l)}_subscribe(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)}_innerSubscribe(l){const{hasError:e,isStopped:s,observers:u}=this;return e||s?OS:(this.currentObservers=null,u.push(l),new bt(()=>{this.currentObservers=null,Yb(u,l)}))}_checkFinalizedStatuses(l){const{hasError:e,thrownError:s,isStopped:u}=this;e?l.error(s):u&&l.complete()}asObservable(){const l=new ln;return l.source=this,l}}return t.create=(r,l)=>new ct(r,l),t})();class ct extends he{constructor(r,l){super(),this.destination=r,this.source=l}next(r){var l,e;null===(e=null===(l=this.destination)||void 0===l?void 0:l.next)||void 0===e||e.call(l,r)}error(r){var l,e;null===(e=null===(l=this.destination)||void 0===l?void 0:l.error)||void 0===e||e.call(l,r)}complete(){var r,l;null===(l=null===(r=this.destination)||void 0===r?void 0:r.complete)||void 0===l||l.call(r)}_subscribe(r){var l,e;return null!==(e=null===(l=this.source)||void 0===l?void 0:l.subscribe(r))&&void 0!==e?e:OS}}class ye extends he{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const l=super._subscribe(r);return!l.closed&&r.next(this._value),l}getValue(){const{hasError:r,thrownError:l,_value:e}=this;if(r)throw l;return this._throwIfClosed(),e}next(r){super.next(this._value=r)}}function Xe(t){return Fn(null==t?void 0:t.lift)}function Ae(t){return r=>{if(Xe(r))return r.lift(function(l){try{return t(l,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bn(t,r,l,e,s){return new on(t,r,l,e,s)}class on extends wp{constructor(r,l,e,s,u,m){super(r),this.onFinalize=u,this.shouldUnsubscribe=m,this._next=l?function(b){try{l(b)}catch(C){r.error(C)}}:super._next,this._error=s?function(b){try{s(b)}catch(C){r.error(C)}finally{this.unsubscribe()}}:super._error,this._complete=e?function(){try{e()}catch(b){r.error(b)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:l}=this;super.unsubscribe(),!l&&(null===(r=this.onFinalize)||void 0===r||r.call(this))}}}function Ee(t,r){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>{e.next(t.call(r,u,s++))}))})}function zn(t){for(let r in t)if(t[r]===zn)return r;throw Error("Could not find renamed property on target object.")}function sa(t,r){for(const l in r)r.hasOwnProperty(l)&&!t.hasOwnProperty(l)&&(t[l]=r[l])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const r=t.toString();if(null==r)return""+r;const l=r.indexOf("\n");return-1===l?r:r.substring(0,l)}function ah(t,r){return null==t||""===t?null===r?"":r:null==r||""===r?t:t+" "+r}const fR=zn({__forward_ref__:zn});function Jt(t){return t.__forward_ref__=Jt,t.toString=function(){return Pi(this())},t}function it(t){return gt(t)?t():t}function gt(t){return"function"==typeof t&&t.hasOwnProperty(fR)&&t.__forward_ref__===Jt}function Ro(t){return t&&!!t.\u0275providers}const vv="https://g.co/ng/security#xss";class be extends Error{constructor(r,l){super(function la(t,r){return`NG0${Math.abs(t)}${r?": "+r:""}`}(r,l)),this.code=r}}const xp=zn({\u0275cmp:zn}),oh=zn({\u0275dir:zn}),Ad=zn({\u0275pipe:zn}),pR=zn({\u0275mod:zn}),Il=zn({\u0275fac:zn}),_v=zn({__NG_ELEMENT_ID__:zn}),HS=zn({__NG_ENV_ID__:zn});function Me(t){return"string"==typeof t?t:null==t?"":String(t)}function bv(t,r){throw new be(-201,!1)}function Oo(t,r){null==t&&function Vt(t,r,l,e){throw new Error(`ASSERTION ERROR: ${t}`+(null==e?"":` [Expected=> ${l} ${e} ${r} <=Actual]`))}(r,t,null,"!=")}function ke(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function GS(t){return iH(t,Lo)||iH(t,Jb)}function iH(t,r){return t.hasOwnProperty(r)?t[r]:null}function Or(t){return t&&(t.hasOwnProperty(Qb)||t.hasOwnProperty(e0))?t[Qb]:null}const Lo=zn({\u0275prov:zn}),Qb=zn({\u0275inj:zn}),Jb=zn({ngInjectableDef:zn}),e0=zn({ngInjectorDef:zn});var Yt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Yt||{});let lh;function mR(){return lh}function Ma(t){const r=lh;return lh=t,r}function gR(t,r,l){const e=GS(t);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:l&Yt.Optional?null:void 0!==r?r:void bv()}const vi=globalThis;class ve{constructor(r,l){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=ke({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const xv={},$S="__NG_DI_FLAG__",Za="ngTempTokenPath",YS=/\n/gm,qS="__source";let Pd;function Pl(t){const r=Pd;return Pd=t,r}function sH(t,r=Yt.Default){if(void 0===Pd)throw new be(-203,!1);return null===Pd?gR(t,void 0,r):Pd.get(t,r&Yt.Optional?null:void 0,r)}function fe(t,r=Yt.Default){return(mR()||sH)(it(t),r)}function De(t,r=Yt.Default){return fe(t,n0(r))}function n0(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function da(t){const r=[];for(let l=0;lr){m=u-1;break}}}for(;uu?"":s[F+1].toLowerCase();const q=8&e?H:null;if(q&&-1!==_R(q,M,0)||2&e&&M!==H){if(ar(e))return!1;m=!0}}}}else{if(!m&&!ar(e)&&!ar(C))return!1;if(m&&ar(C))continue;m=!1,e=C|1&e}}return ar(e)||m}function ar(t){return 0==(1&t)}function Rd(t,r,l,e){if(null===r)return-1;let s=0;if(e||!l){let u=!1;for(;s-1)for(l++;l0?'="'+b+'"':"")+"]"}else 8&e?s+="."+m:4&e&&(s+=" "+m);else""!==s&&!ar(m)&&(r+=Dv(u,s),s=""),e=m,u=u||!ar(e);l++}return""!==s&&(r+=Dv(u,s)),r}function xe(t){return Rl(()=>{const r=s0(t),l={...r,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Sp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Zi.Emulated,styles:t.styles||Tn,_:null,schemas:t.schemas||null,tView:null,id:""};JS(l);const e=t.dependencies;return l.directiveDefs=l0(e,!1),l.pipeDefs=l0(e,!0),l.id=function SR(t){let r=0;const l=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const s of l)r=Math.imul(31,r)+s.charCodeAt(0)<<0;return r+=2147483648,"c"+r}(l),l})}function fh(t){return hn(t)||Lr(t)}function Tv(t){return null!==t}function ot(t){return Rl(()=>({type:t.type,bootstrap:t.bootstrap||Tn,declarations:t.declarations||Tn,imports:t.imports||Tn,exports:t.exports||Tn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function xR(t,r){if(null==t)return Ol;const l={};for(const e in t)if(t.hasOwnProperty(e)){let s=t[e],u=s;Array.isArray(s)&&(u=s[1],s=s[0]),l[s]=e,r&&(r[s]=u)}return l}function ce(t){return Rl(()=>{const r=s0(t);return JS(r),r})}function ua(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function hn(t){return t[xp]||null}function Lr(t){return t[oh]||null}function ha(t){return t[Ad]||null}function Aa(t,r){const l=t[pR]||null;if(!l&&!0===r)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return l}function s0(t){const r={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputTransforms:null,inputConfig:t.inputs||Ol,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Tn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xR(t.inputs,r),outputs:xR(t.outputs),debugInfo:null}}function JS(t){var r;null==(r=t.features)||r.forEach(l=>l(t))}function l0(t,r){if(!t)return null;const l=r?ha:fh;return()=>("function"==typeof t?t():t).map(e=>l(e)).filter(Tv)}const Xi=0,He=1,vt=2,Ki=3,Rs=4,fa=5,Os=6,ph=7,oi=8,pa=9,Fl=10,Ht=11,ma=12,Mp=13,Ls=14,Ri=15,mh=16,gh=17,Nl=18,Mv=19,eD=20,Vl=21,vh=22,Od=23,Bt=25,Bl=1,Fs=7,Mc=9,Yn=10;var po=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(po||{});function or(t){return Array.isArray(t)&&"object"==typeof t[Bl]}function Ui(t){return Array.isArray(t)&&!0===t[Bl]}function c0(t){return 0!=(4&t.flags)}function Ti(t){return t.componentOffset>-1}function Ev(t){return 1==(1&t.flags)}function mo(t){return!!t.template}function d0(t){return 0!=(512&t[vt])}function Ac(t,r){return t.hasOwnProperty(Il)?t[Il]:null}class Nd{constructor(r,l,e){this.previousValue=r,this.currentValue=l,this.firstChange=e}isFirstChange(){return this.firstChange}}function nn(){return p0}function p0(t){return t.type.prototype.ngOnChanges&&(t.setInput=m0),AR}function AR(){const t=Ea(this),r=null==t?void 0:t.current;if(r){const l=t.previous;if(l===Ol)t.previous=r;else for(let e in r)l[e]=r[e];t.current=null,this.ngOnChanges(r)}}function m0(t,r,l,e){const s=this.declaredInputs[l],u=Ea(t)||function aD(t,r){return t[_h]=r}(t,{previous:Ol,current:null}),m=u.current||(u.current={}),b=u.previous,C=b[s];m[s]=new Nd(C&&C.currentValue,r,b===Ol),t[e]=r}nn.ngInherit=!0;const _h="__ngSimpleChanges__";function Ea(t){return t[_h]||null}const zl=function(t,r,l){},Ep="svg";let v0=!1;function qn(t){for(;Array.isArray(t);)t=t[Xi];return t}function Ec(t,r){return qn(r[t])}function Xa(t,r){return qn(r[t.index])}function Ic(t,r){return t.data[r]}function yh(t,r){return t[r]}function br(t,r){const l=r[t];return or(l)?l:l[Xi]}function Pv(t){return 128==(128&t[vt])}function Hl(t,r){return null==r?null:t[r]}function IR(t){t[gh]=0}function pH(t){1024&t[vt]||(t[vt]|=1024,Pv(t)&&Ip(t))}function PR(t){var r;return 9216&t[vt]||(null==(r=t[Od])?void 0:r.dirty)}function RR(t){var r;PR(t)?Ip(t):64&t[vt]&&(function fH(){return v0}()?(t[vt]|=1024,Ip(t)):null==(r=t[Fl].changeDetectionScheduler)||r.notify())}function Ip(t){var l;null==(l=t[Fl].changeDetectionScheduler)||l.notify();let r=Vd(t);for(;null!==r&&!(8192&r[vt])&&(r[vt]|=8192,Pv(r));)r=Vd(r)}function y0(t,r){if(256==(256&t[vt]))throw new be(911,!1);null===t[Vl]&&(t[Vl]=[]),t[Vl].push(r)}function Vd(t){const r=t[Ki];return Ui(r)?r[Ki]:r}const Rt={lFrame:zR(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function b0(){return Rt.bindingsEnabled}function go(){return null!==Rt.skipHydrationRootTNode}function Te(){return Rt.lFrame.lView}function fn(){return Rt.lFrame.tView}function oe(t){return Rt.lFrame.contextLView=t,t[oi]}function le(t){return Rt.lFrame.contextLView=null,t}function Hn(){let t=Ov();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ov(){return Rt.lFrame.currentTNode}function vo(t,r){const l=Rt.lFrame;l.currentTNode=t,l.isParent=r}function Lv(){return Rt.lFrame.isParent}function Fv(){Rt.lFrame.isParent=!1}function Nr(){const t=Rt.lFrame;let r=t.bindingRootIndex;return-1===r&&(r=t.bindingRootIndex=t.tView.bindingStartIndex),r}function is(){return Rt.lFrame.bindingIndex++}function _o(t){const r=Rt.lFrame,l=r.bindingIndex;return r.bindingIndex=r.bindingIndex+t,l}function bH(t,r){const l=Rt.lFrame;l.bindingIndex=l.bindingRootIndex=t,Vv(r)}function Vv(t){Rt.lFrame.currentDirectiveIndex=t}function x0(t){const r=Rt.lFrame.currentDirectiveIndex;return-1===r?null:t[r]}function uD(){return Rt.lFrame.currentQueryIndex}function Bv(t){Rt.lFrame.currentQueryIndex=t}function wH(t){const r=t[He];return 2===r.type?r.declTNode:1===r.type?t[fa]:null}function C0(t,r,l){if(l&Yt.SkipSelf){let s=r,u=t;for(;!(s=s.parent,null!==s||l&Yt.Host||(s=wH(u),null===s||(u=u[Ls],10&s.type))););if(null===s)return!1;r=s,t=u}const e=Rt.lFrame=fD();return e.currentTNode=r,e.lView=t,!0}function hD(t){const r=fD(),l=t[He];Rt.lFrame=r,r.currentTNode=l.firstChild,r.lView=t,r.tView=l,r.contextLView=t,r.bindingIndex=l.bindingStartIndex,r.inI18n=!1}function fD(){const t=Rt.lFrame,r=null===t?null:t.child;return null===r?zR(t):r}function zR(t){const r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=r),r}function rs(){const t=Rt.lFrame;return Rt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const S0=rs;function pD(){const t=rs();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vr(){return Rt.lFrame.selectedIndex}function Pc(t){Rt.lFrame.selectedIndex=t}function _i(){const t=Rt.lFrame;return Ic(t.tView,t.selectedIndex)}function Ia(){Rt.lFrame.currentNamespace=Ep}function Bd(){!function AX(){Rt.lFrame.currentNamespace=null}()}let D0=!0;function Pp(){return D0}function Ul(t){D0=t}function Hv(t,r){for(let l=r.directiveStart,e=r.directiveEnd;l=e)break}else r[C]<0&&(t[gh]+=65536),(b>14>16&&(3&t[vt])===r&&(t[vt]+=16384,T0(b,u)):T0(b,u)}const Rp=-1;class yo{constructor(r,l,e){this.factory=r,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=e}}function zd(t){return t!==Rp}function Hd(t){return 32767&t}function Ka(t,r){let l=function EX(t){return t>>16}(t),e=r;for(;l>0;)e=e[Ls],l--;return e}let Op=!0;function Lp(t){const r=Op;return Op=t,r}const WR=255,wh=5;let DH=0;const as={};function Fp(t,r){const l=$R(t,r);if(-1!==l)return l;const e=r[He];e.firstCreatePass&&(t.injectorIndex=r.length,vD(e.data,t),vD(r,null),vD(e.blueprint,null));const s=E0(t,r),u=t.injectorIndex;if(zd(s)){const m=Hd(s),b=Ka(s,r),C=b[He].data;for(let M=0;M<8;M++)r[u+M]=b[m+M]|C[m+M]}return r[u+8]=s,u}function vD(t,r){t.push(0,0,0,0,0,0,0,0,r)}function $R(t,r){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===r[t.injectorIndex+8]?-1:t.injectorIndex}function E0(t,r){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let l=0,e=null,s=r;for(;null!==s;){if(e=yn(s),null===e)return Rp;if(l++,s=s[Ls],-1!==e.injectorIndex)return e.injectorIndex|l<<16}return Rp}function _D(t,r,l){!function gD(t,r,l){let e;"string"==typeof l?e=l.charCodeAt(0)||0:l.hasOwnProperty(_v)&&(e=l[_v]),null==e&&(e=l[_v]=DH++);const s=e&WR;r.data[t+(s>>wh)]|=1<=0?r&WR:MH:r}(l);if("function"==typeof u){if(!C0(r,t,e))return e&Yt.Host?yD(s,0,e):bD(r,l,e,s);try{let m;if(m=u(e),null!=m||e&Yt.Optional)return m;bv()}finally{S0()}}else if("number"==typeof u){let m=null,b=$R(t,r),C=Rp,M=e&Yt.Host?r[Ri][fa]:null;for((-1===b||e&Yt.SkipSelf)&&(C=-1===b?E0(t,r):r[b+8],C!==Rp&&qR(e,!1)?(m=r[He],b=Hd(C),r=Ka(C,r)):b=-1);-1!==b;){const I=r[He];if(k0(u,b,I.data)){const F=xh(b,r,l,m,e,M);if(F!==as)return F}C=r[b+8],C!==Rp&&qR(e,r[He].data[b+8]===M)&&k0(u,b,r)?(m=I,b=Hd(C),r=Ka(C,r)):b=-1}}return s}function xh(t,r,l,e,s,u){const m=r[He],b=m.data[t+8],I=I0(b,m,l,null==e?Ti(b)&&Op:e!=m&&0!=(3&b.type),s&Yt.Host&&u===b);return null!==I?Ch(r,m,I,b):as}function I0(t,r,l,e,s){const u=t.providerIndexes,m=r.data,b=1048575&u,C=t.directiveStart,I=u>>20,H=s?b+I:t.directiveEnd;for(let q=e?b:b+I;q=C&&Q.type===l)return q}if(s){const q=m[C];if(q&&mo(q)&&q.type===l)return C}return null}function Ch(t,r,l,e){let s=t[l];const u=r.data;if(function HR(t){return t instanceof yo}(s)){const m=s;m.resolving&&function Ue(t,r){const l=r?`. Dependency path: ${r.join(" > ")} > ${t}`:"";throw new be(-200,`Circular dependency in DI detected for ${t}${l}`)}(function wn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Me(t)}(u[l]));const b=Lp(m.canSeeViewProviders);m.resolving=!0;const M=m.injectImpl?Ma(m.injectImpl):null;C0(t,e,Yt.Default);try{s=t[l]=m.factory(void 0,u,t,e),r.firstCreatePass&&l>=e.directiveStart&&function SH(t,r,l){const{ngOnChanges:e,ngOnInit:s,ngDoCheck:u}=r.type.prototype;if(e){const m=p0(r);(l.preOrderHooks??=[]).push(t,m),(l.preOrderCheckHooks??=[]).push(t,m)}s&&(l.preOrderHooks??=[]).push(0-t,s),u&&((l.preOrderHooks??=[]).push(t,u),(l.preOrderCheckHooks??=[]).push(t,u))}(l,u[l],r)}finally{null!==M&&Ma(M),Lp(b),m.resolving=!1,S0()}}return s}function k0(t,r,l){return!!(l[r+(t>>wh)]&1<{const r=t.prototype.constructor,l=r[Il]||P0(r),e=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==e;){const u=s[Il]||P0(s);if(u&&u!==l)return u;s=Object.getPrototypeOf(s)}return u=>new u})}function P0(t){return gt(t)?()=>{const r=P0(it(t));return r&&r()}:Ac(t)}function yn(t){const r=t[He],l=r.type;return 2===l?r.declTNode:1===l?t[fa]:null}function Ie(t){return function YR(t,r){if("class"===r)return t.classes;if("style"===r)return t.styles;const l=t.attrs;if(l){const e=l.length;let s=0;for(;s{const e=function Gv(t){return function(...l){if(t){const e=t(...l);for(const s in e)this[s]=e[s]}}}(r);function s(...u){if(this instanceof s)return e.apply(this,u),this;const m=new s(...u);return b.annotation=m,b;function b(C,M,I){const F=C.hasOwnProperty(Qr)?C[Qr]:Object.defineProperty(C,Qr,{value:[]})[Qr];for(;F.length<=I;)F.push(null);return(F[I]=F[I]||[]).push(m),C}}return l&&(s.prototype=Object.create(l.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function Dh(t,r){t.forEach(l=>Array.isArray(l)?Dh(l,r):r(l))}function CD(t,r,l){r>=t.length?t.push(l):t.splice(r,0,l)}function Wv(t,r){return r>=t.length-1?t.pop():t.splice(r,1)[0]}function Bo(t,r,l){let e=Hp(t,r);return e>=0?t[1|e]=l:(e=~e,function SD(t,r,l,e){let s=t.length;if(s==r)t.push(l,e);else if(1===s)t.push(e,t[0]),t[0]=l;else{for(s--,t.push(t[s-1],t[s]);s>r;)t[s]=t[s-2],s--;t[r]=l,t[r+1]=e}}(t,e,r,l)),e}function L0(t,r){const l=Hp(t,r);if(l>=0)return t[1|l]}function Hp(t,r){return function QR(t,r,l){let e=0,s=t.length>>l;for(;s!==e;){const u=e+(s-e>>1),m=t[u<r?s=u:e=u+1}return~(s<{l.push(m)};return Dh(r,m=>{const b=m;N0(b,u,[],e)&&(s||=[],s.push(b))}),void 0!==s&&s2(s,u),l}function s2(t,r){for(let l=0;l{r(u,e)})}}function N0(t,r,l,e){if(!(t=it(t)))return!1;let s=null,u=Or(t);const m=!u&&hn(t);if(u||m){if(m&&!m.standalone)return!1;s=t}else{const C=t.ngModule;if(u=Or(C),!u)return!1;s=C}const b=e.has(s);if(m){if(b)return!1;if(e.add(s),m.dependencies){const C="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const M of C)N0(M,r,l,e)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let M;e.add(s);try{Dh(u.imports,I=>{N0(I,r,l,e)&&(M||=[],M.push(I))})}finally{}void 0!==M&&s2(M,r)}if(!b){const M=Ac(s)||(()=>new s);r({provide:s,useFactory:M,deps:Tn},s),r({provide:AD,useValue:s,multi:!0},s),r({provide:Ud,useValue:()=>fe(s),multi:!0},s)}const C=u.providers;if(null!=C&&!b){const M=t;ID(C,I=>{r(I,M)})}}}return s!==t&&void 0!==t.providers}function ID(t,r){for(let l of t)Ro(l)&&(l=l.\u0275providers),Array.isArray(l)?ID(l,r):r(l)}const V0=zn({provide:String,useValue:zn});function Fc(t){return null!==t&&"object"==typeof t&&V0 in t}function Mh(t){return"function"==typeof t}const PD=new ve("Set Injector scope."),jp={},d2={};let Gp;function Wp(){return void 0===Gp&&(Gp=new F0),Gp}class bo{}class Ah extends bo{get destroyed(){return this._destroyed}constructor(r,l,e,s){super(),this.parent=l,this.source=e,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,OD(r,m=>this.processProvider(m)),this.records.set(Vs,Eh(void 0,this)),s.has("environment")&&this.records.set(bo,Eh(void 0,this));const u=this.records.get(PD);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(AD,Tn,Yt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of r)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(r){return this.assertNotDestroyed(),this._onDestroyHooks.push(r),()=>this.removeOnDestroy(r)}runInContext(r){this.assertNotDestroyed();const l=Pl(this),e=Ma(void 0);try{return r()}finally{Pl(l),Ma(e)}}get(r,l=xv,e=Yt.Default){if(this.assertNotDestroyed(),r.hasOwnProperty(HS))return r[HS](this);e=n0(e);const u=Pl(this),m=Ma(void 0);try{if(!(e&Yt.SkipSelf)){let C=this.records.get(r);if(void 0===C){const M=function RD(t){return"function"==typeof t||"object"==typeof t&&t instanceof ve}(r)&&GS(r);C=M&&this.injectableDefInScope(M)?Eh(B0(r),jp):null,this.records.set(r,C)}if(null!=C)return this.hydrate(r,C)}return(e&Yt.Self?Wp():this.parent).get(r,l=e&Yt.Optional&&l===xv?null:l)}catch(b){if("NullInjectorError"===b.name){if((b[Za]=b[Za]||[]).unshift(Pi(r)),u)throw b;return function lH(t,r,l,e){const s=t[Za];throw r[qS]&&s.unshift(r[qS]),t.message=function KS(t,r,l,e=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let s=Pi(r);if(Array.isArray(r))s=r.map(Pi).join(" -> ");else if("object"==typeof r){let u=[];for(let m in r)if(r.hasOwnProperty(m)){let b=r[m];u.push(m+":"+("string"==typeof b?JSON.stringify(b):Pi(b)))}s=`{${u.join(", ")}}`}return`${l}${e?"("+e+")":""}[${s}]: ${t.replace(YS,"\n ")}`}("\n"+t.message,s,l,e),t.ngTokenPath=s,t[Za]=null,t}(b,r,"R3InjectorError",this.source)}throw b}finally{Ma(m),Pl(u)}}resolveInjectorInitializers(){const r=Pl(this),l=Ma(void 0);try{const s=this.get(Ud,Tn,Yt.Self);for(const u of s)u()}finally{Pl(r),Ma(l)}}toString(){const r=[],l=this.records;for(const e of l.keys())r.push(Pi(e));return`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new be(205,!1)}processProvider(r){let l=Mh(r=it(r))?r:it(r&&r.provide);const e=function UH(t){return Fc(t)?Eh(void 0,t.useValue):Eh(u2(t),jp)}(r);if(!Mh(r)&&!0===r.multi){let s=this.records.get(l);s||(s=Eh(void 0,jp,!0),s.factory=()=>da(s.multi),this.records.set(l,s)),l=r,s.multi.push(r)}this.records.set(l,e)}hydrate(r,l){return l.value===jp&&(l.value=d2,l.value=l.factory()),"object"==typeof l.value&&l.value&&function GH(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(l.value)&&this._ngOnDestroyHooks.add(l.value),l.value}injectableDefInScope(r){if(!r.providedIn)return!1;const l=it(r.providedIn);return"string"==typeof l?"any"===l||this.scopes.has(l):this.injectorDefTypes.has(l)}removeOnDestroy(r){const l=this._onDestroyHooks.indexOf(r);-1!==l&&this._onDestroyHooks.splice(l,1)}}function B0(t){const r=GS(t),l=null!==r?r.factory:Ac(t);if(null!==l)return l;if(t instanceof ve)throw new be(204,!1);if(t instanceof Function)return function HH(t){if(t.length>0)throw new be(204,!1);const l=function Ed(t){return t&&(t[Lo]||t[Jb])||null}(t);return null!==l?()=>l.factory(t):()=>new t}(t);throw new be(204,!1)}function u2(t,r,l){let e;if(Mh(t)){const s=it(t);return Ac(s)||B0(s)}if(Fc(t))e=()=>it(t.useValue);else if(function c2(t){return!(!t||!t.useFactory)}(t))e=()=>t.useFactory(...da(t.deps||[]));else if(function l2(t){return!(!t||!t.useExisting)}(t))e=()=>fe(it(t.useExisting));else{const s=it(t&&(t.useClass||t.provide));if(!function jH(t){return!!t.deps}(t))return Ac(s)||B0(s);e=()=>new s(...da(t.deps))}return e}function Eh(t,r,l=!1){return{factory:t,value:r,multi:l?[]:void 0}}function OD(t,r){for(const l of t)Array.isArray(l)?OD(l,r):l&&Ro(l)?OD(l.\u0275providers,r):r(l)}function jd(t,r){t instanceof Ah&&t.assertNotDestroyed();const e=Pl(t),s=Ma(void 0);try{return r()}finally{Pl(e),Ma(s)}}function m2(t,r=null,l=null,e){const s=zo(t,r,l,e);return s.resolveInjectorInitializers(),s}function zo(t,r=null,l=null,e,s=new Set){const u=[l||Tn,zH(t)];return e=e||("object"==typeof t?void 0:Pi(t)),new Ah(u,r||Wp(),e||null,s)}let Yp,mn=(()=>{var t;class r{static create(e,s){if(Array.isArray(e))return m2({name:""},s,e,"");{const u=e.name??"";return m2({name:u},e.parent,e.providers,u)}}}return(t=r).THROW_IF_NOT_FOUND=xv,t.NULL=new F0,t.\u0275prov=ke({token:t,providedIn:"any",factory:()=>fe(Vs)}),t.__NG_ELEMENT_ID__=-1,r})();function Nc(){if(void 0!==Yp)return Yp;if(typeof document<"u")return document;throw new be(210,!1)}const qp=new ve("AppId",{providedIn:"root",factory:()=>$H}),$H="ng",v2=new ve("Platform Initializer"),Vc=new ve("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),si=new ve("AnimationModuleType"),Bc=new ve("CSP nonce",{providedIn:"root",factory:()=>{var t,r;return(null==(r=null==(t=Nc().body)?void 0:t.querySelector("[ngCspNonce]"))?void 0:r.getAttribute("ngCspNonce"))||null}});function ss(t){return t.ownerDocument.defaultView}function Bs(t){return t.ownerDocument}function Br(t){return t instanceof Function?t():t}function Z0(t){return 128==(128&t.flags)}var Zd=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Zd||{});const x2=/^>|^->||--!>|)/g,XH="\u200b$1\u200b";const UD=new Map;let S2=0;const X0="__ngContext__";function _t(t,r){or(r)?(t[X0]=r[Mv],function KH(t){UD.set(t[Mv],t)}(r)):t[X0]=r}let K0;function Q0(t,r){return K0(t,r)}function Lh(t,r,l,e,s){if(null!=e){let u,m=!1;Ui(e)?u=e:or(e)&&(m=!0,e=e[Xi]);const b=qn(e);0===t&&null!==l?null==s?i_(r,l,b):Gs(r,l,b,s||null,!0):1===t&&null!==l?Gs(r,l,b,s||null,!0):2===t?function JD(t,r,l){const e=r_(t,r);e&&function tm(t,r,l,e){t.removeChild(r,l,e)}(t,e,r,l)}(r,b,m):3===t&&r.destroyNode(b),null!=u&&function Nh(t,r,l,e,s){const u=l[Fs];u!==qn(l)&&Lh(r,t,e,u,s);for(let b=Yn;br.replace(e_,XH))}(r))}function st(t,r,l){return t.createElement(r,l)}function qD(t,r){var l;null==(l=r[Fl].changeDetectionScheduler)||l.notify(),rw(t,r,r[Ht],2,null,null)}function Qp(t,r){const l=t[Mc],e=l.indexOf(r);l.splice(e,1)}function Xd(t,r){if(t.length<=Yn)return;const l=Yn+r,e=t[l];if(e){const s=e[mh];null!==s&&s!==t&&Qp(s,e),r>0&&(t[l-1][Rs]=e[Rs]);const u=Wv(t,Yn+r);!function YD(t,r){qD(t,r),r[Xi]=null,r[fa]=null}(e[He],e);const m=u[Nl];null!==m&&m.detachView(u[He]),e[Ki]=null,e[Rs]=null,e[vt]&=-129}return e}function ea(t,r){if(!(256&r[vt])){const l=r[Ht];l.destroyNode&&rw(t,r,l,3,null,null),function L2(t){let r=t[ma];if(!r)return Fh(t[He],t);for(;r;){let l=null;if(or(r))l=r[ma];else{const e=r[Yn];e&&(l=e)}if(!l){for(;r&&!r[Rs]&&r!==t;)or(r)&&Fh(r[He],r),r=r[Ki];null===r&&(r=t),or(r)&&Fh(r[He],r),l=r&&r[Rs]}r=l}}(r)}}function Fh(t,r){if(!(256&r[vt])){r[vt]&=-129,r[vt]|=256,r[Od]&&function j4(t){if(ih(t),jb(t))for(let r=0;r=0?e[m]():e[-m].unsubscribe(),u+=2}else l[u].call(e[l[u+1]]);null!==e&&(r[ph]=null);const s=r[Vl];if(null!==s){r[Vl]=null;for(let u=0;u-1){const{encapsulation:u}=t.data[e.directiveStart+s];if(u===Zi.None||u===Zi.Emulated)return null}return Xa(e,l)}}(t,r.parent,l)}function Gs(t,r,l,e,s){t.insertBefore(r,l,e,s)}function i_(t,r,l){t.appendChild(r,l)}function em(t,r,l,e,s){null!==e?Gs(t,r,l,e,s):i_(t,r,l)}function r_(t,r){return t.parentNode(r)}function KD(t,r,l){return tw(t,r,l)}let nw,a_,rm,tw=function QD(t,r,l){return 40&t.type?Xa(t,l):null};function iw(t,r,l,e){const s=zc(t,e,r),u=r[Ht],b=KD(e.parent||r[fa],e,r);if(null!=s)if(Array.isArray(l))for(let C=0;Ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return a_}())?void 0:r.createHTML(t))||t}function nT(){if(void 0===rm&&(rm=null,vi.trustedTypes))try{rm=vi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return rm}function ow(t){var r;return(null==(r=nT())?void 0:r.createHTML(t))||t}function j2(t){var r;return(null==(r=nT())?void 0:r.createScriptURL(t))||t}class Bh{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vv})`}}class G2 extends Bh{getTypeName(){return"HTML"}}class r8 extends Bh{getTypeName(){return"Style"}}class Kd extends Bh{getTypeName(){return"Script"}}class a8 extends Bh{getTypeName(){return"URL"}}class Oi extends Bh{getTypeName(){return"ResourceURL"}}function eo(t){return t instanceof Bh?t.changingThisBreaksApplicationSecurity:t}function Ws(t,r){const l=function o8(t){return t instanceof Bh&&t.getTypeName()||null}(t);if(null!=l&&l!==r){if("ResourceURL"===l&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${l} (see ${vv})`)}return l===r}class W2{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const l=(new window.DOMParser).parseFromString(Vh(r),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(r):(l.removeChild(l.firstChild),l)}catch{return null}}}class c8{constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const l=this.inertDocument.createElement("template");return l.innerHTML=Vh(r),l}}const am=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function om(t){return(t=String(t)).match(am)?t:"unsafe:"+t}function zt(t){const r={};for(const l of t.split(","))r[l]=!0;return r}function Nn(...t){const r={};for(const l of t)for(const e in l)l.hasOwnProperty(e)&&(r[e]=!0);return r}const Hh=zt("area,br,col,hr,img,wbr"),Hc=zt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iT=zt("rp,rt"),sm=Nn(Hh,Nn(Hc,zt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Nn(iT,zt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Nn(iT,Hc)),cw=zt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sr=Nn(cw,zt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zn=zt("script,style,template");class dw{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let l=r.firstChild,e=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?e=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,e&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let s=this.checkClobberedElement(l,l.nextSibling);if(s){l=s;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(r){const l=r.nodeName.toLowerCase();if(!sm.hasOwnProperty(l))return this.sanitizedSomething=!0,!Zn.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const e=r.attributes;for(let s=0;s"),!0}endElement(r){const l=r.nodeName.toLowerCase();sm.hasOwnProperty(l)&&!Hh.hasOwnProperty(l)&&(this.buf.push(""))}chars(r){this.buf.push(rT(r))}checkClobberedElement(r,l){if(l&&(r.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return l}}const d8=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u8=/([^\#-~ |!])/g;function rT(t){return t.replace(/&/g,"&").replace(d8,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(u8,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let l_;function aT(t,r){let l=null;try{l_=l_||function sw(t){const r=new c8(t);return function $2(){try{return!!(new window.DOMParser).parseFromString(Vh(""),"text/html")}catch{return!1}}()?new W2(r):r}(t);let e=r?String(r):"";l=l_.getInertBodyElement(e);let s=5,u=e;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,e=u,u=l.innerHTML,l=l_.getInertBodyElement(e)}while(e!==u);return Vh((new dw).sanitizeChildren(uw(l)||l))}finally{if(l){const e=uw(l)||l;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function uw(t){return"content"in t&&function q2(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Qi||{});function zr(t){const r=c_();return r?ow(r.sanitize(Qi.HTML,t)||""):Ws(t,"HTML")?ow(eo(t)):aT(Nc(),Me(t))}function Ut(t){const r=c_();return r?r.sanitize(Qi.URL,t)||"":Ws(t,"URL")?eo(t):om(Me(t))}function hw(t){const r=c_();if(r)return j2(r.sanitize(Qi.RESOURCE_URL,t)||"");if(Ws(t,"ResourceURL"))return j2(eo(t));throw new be(904,!1)}function c_(){const t=Te();return t&&t[Fl].sanitizer}class Q2{}let pw=()=>null;function Co(t,r,l=!1){return pw(t,r,l)}class v8{}class gT{}class vw{resolveComponentFactory(r){throw function tO(t){const r=Error(`No component factory found for ${Pi(t)}.`);return r.ngComponent=t,r}(r)}}let ls=(()=>{class r{}return r.NULL=new vw,r})();function _w(){return Uc(Hn(),Te())}function Uc(t,r){return new je(Xa(t,r))}let je=(()=>{class r{constructor(e){this.nativeElement=e}}return r.__NG_ELEMENT_ID__=_w,r})();function _8(t){return t instanceof je?t.nativeElement:t}class yw{}let ec=(()=>{class r{constructor(){this.destroyNode=null}}return r.__NG_ELEMENT_ID__=()=>function nO(){const t=Te(),l=br(Hn().index,t);return(or(l)?l:t)[Ht]}(),r})(),iO=(()=>{var t;class r{}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>null}),r})();const bw={};function ww(t){const r=Gt(null);try{return t()}finally{Gt(r)}}function fm(t){return!!xw(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function xw(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class oO{constructor(){}supports(r){return fm(r)}create(r){return new Gh(r)}}const x8=(t,r)=>r;class Gh{constructor(r){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||x8}forEachItem(r){let l;for(l=this._itHead;null!==l;l=l._next)r(l)}forEachOperation(r){let l=this._itHead,e=this._removalsHead,s=0,u=null;for(;l||e;){const m=!e||l&&l.currentIndex{m=this._trackByFn(s,b),null!==l&&Object.is(l.trackById,m)?(e&&(l=this._verifyReinsertion(l,b,m,s)),Object.is(l.item,b)||this._addIdentityChange(l,b)):(l=this._mismatch(l,b,m,s),e=!0),l=l._next,s++}),this.length=s;return this._truncate(l),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,l,e,s){let u;return null===r?u=this._itTail:(u=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._reinsertAfter(r,u,s)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(e,s))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._moveAfter(r,u,s)):r=this._addAfter(new Cw(l,e),u,s),r}_verifyReinsertion(r,l,e,s){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null);return null!==u?r=this._reinsertAfter(u,r._prev,s):r.currentIndex!=s&&(r.currentIndex=s,this._addToMoves(r,s)),r}_truncate(r){for(;null!==r;){const l=r._next;this._addToRemovals(this._unlink(r)),r=l}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(r,l,e){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const s=r._prevRemoved,u=r._nextRemoved;return null===s?this._removalsHead=u:s._nextRemoved=u,null===u?this._removalsTail=s:u._prevRemoved=s,this._insertAfter(r,l,e),this._addToMoves(r,e),r}_moveAfter(r,l,e){return this._unlink(r),this._insertAfter(r,l,e),this._addToMoves(r,e),r}_addAfter(r,l,e){return this._insertAfter(r,l,e),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,l,e){const s=null===l?this._itHead:l._next;return r._next=s,r._prev=l,null===s?this._itTail=r:s._prev=r,null===l?this._itHead=r:l._next=r,null===this._linkedRecords&&(this._linkedRecords=new _T),this._linkedRecords.put(r),r.currentIndex=e,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const l=r._prev,e=r._next;return null===l?this._itHead=e:l._next=e,null===e?this._itTail=l:e._prev=l,r}_addToMoves(r,l){return r.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _T),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,l){return r.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class Cw{constructor(r,l){this.item=r,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sw{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,l){let e;for(e=this._head;null!==e;e=e._nextDup)if((null===l||l<=e.currentIndex)&&Object.is(e.trackById,r))return e;return null}remove(r){const l=r._prevDup,e=r._nextDup;return null===l?this._head=e:l._nextDup=e,null===e?this._tail=l:e._prevDup=l,null===this._head}}class _T{constructor(){this.map=new Map}put(r){const l=r.trackById;let e=this.map.get(l);e||(e=new Sw,this.map.set(l,e)),e.add(r)}get(r,l){const s=this.map.get(r);return s?s.get(r,l):null}remove(r){const l=r.trackById;return this.map.get(l).remove(r)&&this.map.delete(l),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eu(t,r,l){const e=t.previousIndex;if(null===e)return e;let s=0;return l&&e{if(l&&l.key===s)this._maybeAddToChanges(l,e),this._appendAfter=l,l=l._next;else{const u=this._getOrCreateRecordForKey(s,e);l=this._insertBeforeOrAppend(l,u)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let e=l;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,l){if(r){const e=r._prev;return l._next=r,l._prev=e,r._prev=l,e&&(e._next=l),r===this._mapHead&&(this._mapHead=l),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(r,l){if(this._records.has(r)){const s=this._records.get(r);this._maybeAddToChanges(s,l);const u=s._prev,m=s._next;return u&&(u._next=m),m&&(m._prev=u),s._next=null,s._prev=null,s}const e=new VX(r);return this._records.set(r,e),e.currentValue=l,this._addToAdditions(e),e}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,l){Object.is(l,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=l,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,l){r instanceof Map?r.forEach(l):Object.keys(r).forEach(e=>l(r[e],e))}}class VX{constructor(r){this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function C8(){return new tu([new oO])}let tu=(()=>{var t;class r{constructor(e){this.factories=e}static create(e,s){if(null!=s){const u=s.factories.slice();e=e.concat(u)}return new r(e)}static extend(e){return{provide:r,useFactory:s=>r.create(e,s||C8()),deps:[[r,new Wl,new Pa]]}}find(e){const s=this.factories.find(u=>u.supports(e));if(null!=s)return s;throw new be(901,!1)}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:C8}),r})();function g_(){return new Tw([new Dw])}let Tw=(()=>{var t;class r{constructor(e){this.factories=e}static create(e,s){if(s){const u=s.factories.slice();e=e.concat(u)}return new r(e)}static extend(e){return{provide:r,useFactory:s=>r.create(e,s||g_()),deps:[[r,new Wl,new Pa]]}}find(e){const s=this.factories.find(u=>u.supports(e));if(s)return s;throw new be(901,!1)}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:g_}),r})();function cs(t,r,l,e,s=!1){for(;null!==l;){const u=r[l.index];null!==u&&e.push(qn(u)),Ui(u)&&$h(u,e);const m=l.type;if(8&m)cs(t,r,l.child,e);else if(32&m){const b=Q0(l,r);let C;for(;C=b();)e.push(C)}else if(16&m){const b=Zl(r,l);if(Array.isArray(b))e.push(...b);else{const C=Vd(r[Ri]);cs(C[He],C,b,e,!0)}}l=s?l.projectionNext:l.next}return e}function $h(t,r){for(let l=Yn;l!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ip(t.lView)},consumerOnSignalRead(){this.lView[Od]=this}};function lO(t){return Uo(t[ma])}function bT(t){return Uo(t[Rs])}function Uo(t){for(;null!==t&&!Ui(t);)t=t[Rs];return t}function ds(t){return t.ngOriginalError}class Tr{constructor(){this._console=console}handleError(r){const l=this._findOriginalError(r);this._console.error("ERROR",r),l&&this._console.error("ORIGINAL ERROR",l)}_findOriginalError(r){let l=r&&ds(r);for(;l&&ds(l);)l=ds(l);return l||null}}const wT=new ve("",{providedIn:"root",factory:()=>De(Tr).handleError.bind(void 0)}),ta=new ve("",{providedIn:"root",factory:()=>!1}),Xt={};function N(t=1){Aw(fn(),Te(),Vr()+t,!1)}function Aw(t,r,l,e){if(!e)if(3==(3&r[vt])){const u=t.preOrderCheckHooks;null!==u&&Uv(r,u,l)}else{const u=t.preOrderHooks;null!==u&&jl(r,u,0,l)}Pc(l)}function V(t,r=Yt.Default){const l=Te();return null===l?fe(t,r):rt(Hn(),l,it(t),r)}function gm(){throw new Error("invalid")}function qh(t,r,l,e,s,u,m,b,C,M,I){const F=r.blueprint.slice();return F[Xi]=s,F[vt]=204|e,(null!==M||t&&2048&t[vt])&&(F[vt]|=2048),IR(F),F[Ki]=F[Ls]=t,F[oi]=l,F[Fl]=m||t&&t[Fl],F[Ht]=b||t&&t[Ht],F[pa]=C||t&&t[pa]||null,F[fa]=u,F[Mv]=function Jr(){return S2++}(),F[Os]=I,F[eD]=M,F[Ri]=2==r.type?t[Ri]:F,F}function tc(t,r,l,e,s){let u=t.data[r];if(null===u)u=function Ew(t,r,l,e,s){const u=Ov(),m=Lv(),C=t.data[r]=function O8(t,r,l,e,s,u){let m=r?r.injectorIndex:-1,b=0;return go()&&(b|=128),{type:l,index:e,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:s,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,m?u:u&&u.parent,l,r,e,s);return null===t.firstChild&&(t.firstChild=C),null!==u&&(m?null==u.child&&null!==C.parent&&(u.child=C):null===u.next&&(u.next=C,C.prev=u)),C}(t,r,l,e,s),function yH(){return Rt.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=l,u.value=e,u.attrs=s;const m=function kp(){const t=Rt.lFrame,r=t.currentTNode;return t.isParent?r:r.parent}();u.injectorIndex=null===m?-1:m.injectorIndex}return vo(u,!0),u}function vm(t,r,l,e){if(0===l)return-1;const s=r.length;for(let u=0;uBt&&Aw(t,r,Bt,!1),zl(m?2:0,s),l(e,s)}finally{Pc(u),zl(m?3:1,s)}}function CT(t,r,l){if(c0(r)){const e=Gt(null);try{const u=r.directiveEnd;for(let m=r.directiveStart;mnull;function DT(t,r,l,e){for(let s in t)if(t.hasOwnProperty(s)){l=null===l?{}:l;const u=t[s];null===e?Pw(l,r,s,u):e.hasOwnProperty(s)&&Pw(l,r,e[s],u)}return l}function Pw(t,r,l,e){t.hasOwnProperty(l)?t[l].push(r,e):t[l]=[r,e]}function Go(t,r,l,e,s,u,m,b){const C=Xa(r,l);let I,M=r.inputs;!b&&null!=M&&(I=M[e])?(RT(t,l,I,e,s),Ti(r)&&function F8(t,r){const l=br(r,t);16&l[vt]||(l[vt]|=64)}(l,r.index)):3&r.type&&(e=function _m(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(e),s=null!=m?m(s,r.value||"",e):s,u.setProperty(C,e,s))}function TT(t,r,l,e){if(b0()){const s=null===e?null:{"":-1},u=function La(t,r){var u;const l=t.directiveRegistry;let e=null,s=null;if(l)for(let m=0;m0;){const l=t[--r];if("number"==typeof l&&l<0)return l}return 0})(m)!=b&&m.push(b),m.push(l,e,u)}}(t,r,e,vm(t,l,s.hostVars,Xt),s)}function nc(t,r,l,e,s,u){const m=Xa(t,r);!function ET(t,r,l,e,s,u,m){if(null==u)t.removeAttribute(r,s,l);else{const b=null==m?Me(u):m(u,e||"",s);t.setAttribute(r,s,b,l)}}(r[Ht],m,u,t.value,l,e,s)}function z8(t,r,l,e,s,u){const m=u[r];if(null!==m)for(let b=0;bt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(b,m),function D8(t){t.lView[Od]!==t&&(t.lView=null,yT.push(t))}(b)),pD()}}function DO(t,r){for(let l=lO(t);null!==l;l=bT(l))for(let e=Yn;e-1&&(Xd(r,e),Wv(l,e))}this._attachedToViewContainer=!1}ea(this._lView[He],this._lView)}onDestroy(r){y0(this._lView,r)}markForCheck(){qs(this._cdRefInjectingView||this._lView)}detach(){this._lView[vt]&=-129}reattach(){RR(this._lView),this._lView[vt]|=128}detectChanges(){this._lView[vt]|=1024,function y_(t,r=!0){var u,m,b;const l=t[Fl],e=l.rendererFactory;null==(u=e.begin)||u.call(e);try{!function LT(t){Gc(t,0);let r=0;for(;PR(t);){if(100===r)throw new be(103,!1);r++,Gc(t,1)}}(t)}catch(C){throw r&&Lw(t,C),C}finally{null==(m=e.end)||m.call(e),null==(b=l.inlineEffectRunner)||b.flush()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new be(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,qD(this._lView[He],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new be(902,!1);this._appRef=r,RR(this._lView)}}let dn=(()=>{class r{}return r.__NG_ELEMENT_ID__=AO,r})();function AO(t){return function EO(t,r,l){if(Ti(t)&&!l){const e=br(t.index,r);return new ym(e,e)}return 47&t.type?new ym(r[Ri],r):null}(Hn(),Te(),16==(16&t))}let b_=(()=>{var t;class r{}return(t=r).__NG_ELEMENT_ID__=$8,t.__NG_ENV_ID__=l=>l,r})();class NT extends b_{constructor(r){super(),this._lView=r}onDestroy(r){return y0(this._lView,r),()=>function Rv(t,r){if(null===t[Vl])return;const l=t[Vl].indexOf(r);-1!==l&&t[Vl].splice(l,1)}(this._lView,r)}}function $8(){return new NT(Te())}const wm=new Set;function Xh(t){var r;wm.has(t)||(wm.add(t),null==(r=null==performance?void 0:performance.mark)||r.call(performance,"mark_feature_usage",{detail:{feature:t}}))}function zT(t){return r=>{setTimeout(t,void 0,r)}}const Ce=class PO extends he{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,l,e){var C,M,I;let s=r,u=l||(()=>null),m=e;if(r&&"object"==typeof r){const F=r;s=null==(C=F.next)?void 0:C.bind(F),u=null==(M=F.error)?void 0:M.bind(F),m=null==(I=F.complete)?void 0:I.bind(F)}this.__isAsync&&(u=zT(u),s&&(s=zT(s)),m&&(m=zT(m)));const b=super.subscribe({next:s,error:u,complete:m});return r instanceof bt&&r.add(b),b}};function RO(...t){}class Ye{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new be(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!e&&l,s.shouldCoalesceRunChangeDetection=e,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function HT(){const t="function"==typeof vi.requestAnimationFrame;let r=vi[t?"requestAnimationFrame":"setTimeout"],l=vi[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&r&&l){const e=r[Zone.__symbol__("OriginalDelegate")];e&&(r=e);const s=l[Zone.__symbol__("OriginalDelegate")];s&&(l=s)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function $X(t){const r=()=>{!function WX(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gn(t),t.isCheckStableRunning=!0,OO(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gn(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,e,s,u,m,b)=>{if(function FO(t){var r;return!(!Array.isArray(t)||1!==t.length)&&!0===(null==(r=t[0].data)?void 0:r.__ignore_ng_zone__)}(b))return l.invokeTask(s,u,m,b);try{return Wc(t),l.invokeTask(s,u,m,b)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||t.shouldCoalesceRunChangeDetection)&&r(),LO(t)}},onInvoke:(l,e,s,u,m,b,C)=>{try{return Wc(t),l.invoke(s,u,m,b,C)}finally{t.shouldCoalesceRunChangeDetection&&r(),LO(t)}},onHasTask:(l,e,s,u)=>{l.hasTask(s,u),e===s&&("microTask"==u.change?(t._hasPendingMicrotasks=u.microTask,gn(t),OO(t)):"macroTask"==u.change&&(t.hasPendingMacrotasks=u.macroTask))},onHandleError:(l,e,s,u)=>(l.handleError(s,u),t.runOutsideAngular(()=>t.onError.emit(u)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new be(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new be(909,!1)}run(r,l,e){return this._inner.run(r,l,e)}runTask(r,l,e,s){const u=this._inner,m=u.scheduleEventTask("NgZoneEvent: "+s,r,GX,RO,RO);try{return u.runTask(m,l,e)}finally{u.cancelTask(m)}}runGuarded(r,l,e){return this._inner.runGuarded(r,l,e)}runOutsideAngular(r){return this._outer.run(r)}}const GX={};function OO(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gn(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function LO(t){t._nesting--,OO(t)}class UT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(r,l,e){return r.apply(l,e)}runGuarded(r,l,e){return r.apply(l,e)}runOutsideAngular(r){return r()}runTask(r,l,e,s){return r.apply(l,e)}}var ru=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ru||{});const NO={destroy(){}};function BO(t,r){!r&&function LD(t){if(!mR()&&!function oH(){return Pd}())throw new be(-203,!1)}();const l=(null==r?void 0:r.injector)??De(mn);if(!function wo(t){return"browser"===(t??De(mn)).get(Vc)}(l))return NO;Xh("NgAfterNextRender");const e=l.get(w_),s=e.handler??=new HO,u=(null==r?void 0:r.phase)??ru.MixedReadWrite,m=()=>{s.unregister(C),b()},b=l.get(b_).onDestroy(m),C=new zO(l,u,()=>{m(),t()});return s.register(C),{destroy:m}}class zO{constructor(r,l,e){this.phase=l,this.callbackFn=e,this.zone=r.get(Ye),this.errorHandler=r.get(Tr,null,{optional:!0})}invoke(){var r;try{this.zone.runOutsideAngular(this.callbackFn)}catch(l){null==(r=this.errorHandler)||r.handleError(l)}}}class HO{constructor(){this.executingCallbacks=!1,this.buckets={[ru.EarlyRead]:new Set,[ru.Write]:new Set,[ru.MixedReadWrite]:new Set,[ru.Read]:new Set},this.deferredCallbacks=new Set}register(r){(this.executingCallbacks?this.deferredCallbacks:this.buckets[r.phase]).add(r)}unregister(r){this.buckets[r.phase].delete(r),this.deferredCallbacks.delete(r)}execute(){let r=!1;this.executingCallbacks=!0;for(const l of Object.values(this.buckets))for(const e of l)r=!0,e.invoke();this.executingCallbacks=!1;for(const l of this.deferredCallbacks)this.buckets[l.phase].add(l);return this.deferredCallbacks.clear(),r}destroy(){for(const r of Object.values(this.buckets))r.clear();this.deferredCallbacks.clear()}}let w_=(()=>{var t;class r{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var u;const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const m of e)m();return!!(null==(u=this.handler)?void 0:u.execute())||e.length>0}ngOnDestroy(){var e;null==(e=this.handler)||e.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>new t}),r})();function K8(t,r){const l=br(r,t),e=l[He];!function UO(t,r){for(let l=r.length;l0&&Xl(t,l,u.join(" "))}}(H,Sn,Q,e),void 0!==l&&function WO(t,r,l){const e=t.projection=[];for(let s=0;s=0;e--){const s=t[e];s.hostVars=r+=s.hostVars,s.hostAttrs=Dp(s.hostAttrs,l=Dp(l,s.hostAttrs))}}(e)}function Kh(t){return t===Ol?{}:t===Tn?[]:t}function YO(t,r){const l=t.viewQuery;t.viewQuery=l?(e,s)=>{r(e,s),l(e,s)}:r}function qO(t,r){const l=t.contentQueries;t.contentQueries=l?(e,s,u)=>{r(e,s,u),l(e,s,u)}:r}function ZO(t,r){const l=t.hostBindings;t.hostBindings=l?(e,s)=>{r(e,s),l(e,s)}:r}function na(t){const r=t.inputConfig,l={};for(const e in r)if(r.hasOwnProperty(e)){const s=r[e];Array.isArray(s)&&s[2]&&(l[e]=s[2])}t.inputTransforms=l}function fs(t,r,l){return t[r]=l}function Mr(t,r,l){return!Object.is(t[r],l)&&(t[r]=l,!0)}function au(t,r,l,e){const s=Mr(t,r,l);return Mr(t,r+1,e)||s}function $e(t,r,l,e){const s=Te();return Mr(s,is(),r)&&(fn(),nc(_i(),s,t,r,l,e)),$e}function Qh(t,r,l,e){return Mr(t,is(),l)?r+Me(l)+e:Xt}function Sm(t,r,l,e,s,u){const b=au(t,function kc(){return Rt.lFrame.bindingIndex}(),l,s);return _o(2),b?r+Me(l)+e+Me(s)+u:Xt}function Zc(t,r){return t<<17|r<<2}function Yo(t){return t>>17&32767}function XT(t){return 2|t}function su(t){return(131068&t)>>2}function D_(t,r){return-131069&t|r<<2}function Tm(t){return 1|t}function QT(t,r,l,e){const s=t[l+1],u=null===r;let m=e?Yo(s):su(s),b=!1;for(;0!==m&&(!1===b||u);){const M=t[m+1];lU(t[m],r)&&(b=!0,t[m+1]=e?Tm(M):XT(M)),m=e?Yo(M):su(M)}b&&(t[l+1]=e?XT(s):Tm(s))}function lU(t,r){return null===t||null==r||(Array.isArray(t)?t[1]:t)===r||!(!Array.isArray(t)||"string"!=typeof r)&&Hp(t,r)>=0}const Ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nL(t){return t.substring(Ur.key,Ur.keyEnd)}function JT(t,r){const l=Ur.textEnd;return l===r?-1:(r=Ur.keyEnd=function cU(t,r,l){for(;r32;)r++;return r}(t,Ur.key=r,l),lu(t,r,l))}function lu(t,r,l){for(;r=0;l=JT(r,l))Bo(t,nL(r),!0)}function to(t,r,l,e){const s=Te(),u=fn(),m=_o(2);u.firstUpdatePass&&cL(u,t,m,e),r!==Xt&&Mr(s,m,r)&&iM(u,u.data[Vr()],s,s[Ht],t,s[m+1]=function no(t,r){return null==t||""===t||("string"==typeof r?t+=r:"object"==typeof t&&(t=Pi(eo(t)))),t}(r,l),e,m)}function Ar(t,r,l,e){const s=fn(),u=_o(2);s.firstUpdatePass&&cL(s,null,u,e);const m=Te();if(l!==Xt&&Mr(m,u,l)){const b=s.data[Vr()];if(uL(b,e)&&!ms(s,u)){let C=e?b.classesWithoutHost:b.stylesWithoutHost;null!==C&&(l=ah(C,l||"")),T_(s,b,m,l,e)}else!function mU(t,r,l,e,s,u,m,b){s===Xt&&(s=Tn);let C=0,M=0,I=0=t.expandoStartIndex}function cL(t,r,l,e){const s=t.data;if(null===s[l+1]){const u=s[Vr()],m=ms(t,l);uL(u,e)&&null===r&&!m&&(r=!1),r=function Gw(t,r,l,e){const s=x0(t);let u=e?r.residualClasses:r.residualStyles;if(null===s)0===(e?r.classBindings:r.styleBindings)&&(l=jr(l=Ww(null,t,r,l,e),r.attrs,e),u=null);else{const m=r.directiveStylingLast;if(-1===m||t[m]!==s)if(l=Ww(s,t,r,l,e),null===u){let C=function uU(t,r,l){const e=l?r.classBindings:r.styleBindings;if(0!==su(e))return t[Yo(e)]}(t,r,e);void 0!==C&&Array.isArray(C)&&(C=Ww(null,t,r,C[1],e),C=jr(C,r.attrs,e),function hU(t,r,l,e){t[Yo(l?r.classBindings:r.styleBindings)]=e}(t,r,e,C))}else u=function fU(t,r,l){let e;const s=r.directiveEnd;for(let u=1+r.directiveStylingLast;u0)&&(M=!0)):I=l,s)if(0!==C){const H=Yo(t[b+1]);t[e+1]=Zc(H,b),0!==H&&(t[H+1]=D_(t[H+1],e)),t[b+1]=function eL(t,r){return 131071&t|r<<17}(t[b+1],e)}else t[e+1]=Zc(b,0),0!==b&&(t[b+1]=D_(t[b+1],e)),b=e;else t[e+1]=Zc(C,0),0===b?b=e:t[C+1]=D_(t[C+1],e),C=e;M&&(t[e+1]=XT(t[e+1])),QT(t,I,e,!0),QT(t,I,e,!1),function tL(t,r,l,e,s){const u=s?t.residualClasses:t.residualStyles;null!=u&&"string"==typeof r&&Hp(u,r)>=0&&(l[e+1]=Tm(l[e+1]))}(r,I,t,e,u),m=Zc(b,C),u?r.classBindings=m:r.styleBindings=m}(s,u,r,l,m,e)}}function Ww(t,r,l,e,s){let u=null;const m=l.directiveEnd;let b=l.directiveStylingLast;for(-1===b?b=l.directiveStart:b++;b0;){const C=t[s],M=Array.isArray(C),I=M?C[1]:C,F=null===I;let H=l[s+1];H===Xt&&(H=F?Tn:void 0);let q=F?L0(H,e):I===e?H:void 0;if(M&&!A_(q)&&(q=L0(C,e)),A_(q)&&(b=q,m))return b;const Q=t[s+1];s=m?Yo(Q):su(Q)}if(null!==r){let C=u?r.residualClasses:r.residualStyles;null!=C&&(b=L0(C,e))}return b}function A_(t){return void 0!==t}function uL(t,r){return 0!=(t.flags&(r?8:16))}let Pm=()=>null;function Ks(t,r){return Pm(t,r)}class L_{destroy(r){}updateValue(r,l){}swap(r,l){const e=Math.min(r,l),s=Math.max(r,l),u=this.detach(s);if(s-e>1){const m=this.detach(e);this.attach(e,u),this.attach(s,m)}else this.attach(e,u)}move(r,l){this.attach(l,this.detach(r))}}function Kw(t,r,l,e,s){return t===l&&Object.is(r,e)?1:Object.is(s(t,r),s(l,e))?-1:0}function cM(t,r,l,e){return!(void 0===r||!r.has(e)||(t.attach(l,r.get(e)),r.delete(e),0))}function nf(t,r,l,e,s){if(cM(t,r,e,l(e,s)))t.updateValue(e,s);else{const u=t.create(e,s);t.attach(e,u)}}function dM(t,r,l,e){const s=new Set;for(let u=r;u<=l;u++)s.add(e(u,t.at(u)));return s}class Kc{constructor(){this.kvMap=new Map,this._vMap=void 0}has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;const l=this.kvMap.get(r);return void 0!==this._vMap&&this._vMap.has(l)?(this.kvMap.set(r,this._vMap.get(l)),this._vMap.delete(l)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,l){if(this.kvMap.has(r)){let e=this.kvMap.get(r);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(e);)e=s.get(e);s.set(e,l)}else this.kvMap.set(r,l)}forEach(r){for(let[l,e]of this.kvMap)if(r(e,l),void 0!==this._vMap){const s=this._vMap;for(;s.has(e);)e=s.get(e),r(e,l)}}}function Rm(t,r,l,e){const s=r.tView,b=qh(t,s,l,4096&t[vt]?4096:16,null,r,null,null,null,(null==e?void 0:e.injector)??null,(null==e?void 0:e.dehydratedView)??null);b[mh]=t[r.index];const M=t[Nl];return null!==M&&(b[Nl]=M.createEmbeddedView(s)),jT(s,b,l),b}function wL(t,r){const l=Yn+r;if(l0&&(l[s-1][Rs]=r),e{class r{}return r.__NG_ELEMENT_ID__=MU,r})();function MU(){return uM(Hn(),Te())}const AU=fi,Rn=class extends AU{constructor(r,l,e){super(),this._lContainer=r,this._hostTNode=l,this._hostLView=e}get element(){return Uc(this._hostTNode,this._hostLView)}get injector(){return new wr(this._hostTNode,this._hostLView)}get parentInjector(){const r=E0(this._hostTNode,this._hostLView);if(zd(r)){const l=Ka(r,this._hostLView),e=Hd(r);return new wr(l[He].data[e+8],l)}return new wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const l=F_(this._lContainer);return null!==l&&l[r]||null}get length(){return this._lContainer.length-Yn}createEmbeddedView(r,l,e){let s,u;"number"==typeof e?s=e:null!=e&&(s=e.index,u=e.injector);const m=Ks(this._lContainer,r.ssrId),b=r.createEmbeddedViewImpl(l||{},u,m);return this.insertImpl(b,s,uu(this._hostTNode,m)),b}createComponent(r,l,e,s,u){const m=r&&!function Sh(t){return"function"==typeof t}(r);let b;if(m)b=l;else{const Q=l||{};b=Q.index,e=Q.injector,s=Q.projectableNodes,u=Q.environmentInjector||Q.ngModuleRef}const C=m?r:new xm(hn(r)),M=e||this.parentInjector;if(!u&&null==C.ngModule){const ne=(m?M:this.parentInjector).get(bo,null);ne&&(u=ne)}const I=hn(C.componentType??{}),F=Ks(this._lContainer,(null==I?void 0:I.id)??null),q=C.create(M,s,(null==F?void 0:F.firstChild)??null,u);return this.insertImpl(q.hostView,b,uu(this._hostTNode,F)),q}insert(r,l){return this.insertImpl(r,l,!0)}insertImpl(r,l,e){const s=r._lView;if(function MX(t){return Ui(t[Ki])}(s)){const b=this.indexOf(r);if(-1!==b)this.detach(b);else{const C=s[Ki],M=new Rn(C,C[fa],C[Ki]);M.detach(M.indexOf(r))}}const u=this._adjustIndex(l),m=this._lContainer;return Om(m,s,u,e),r.attachToViewContainerRef(),CD(Jw(m),u,r),r}move(r,l){return this.insert(r,l)}indexOf(r){const l=F_(this._lContainer);return null!==l?l.indexOf(r):-1}remove(r){const l=this._adjustIndex(r,-1),e=Xd(this._lContainer,l);e&&(Wv(Jw(this._lContainer),l),ea(e[He],e))}detach(r){const l=this._adjustIndex(r,-1),e=Xd(this._lContainer,l);return e&&null!=Wv(Jw(this._lContainer),l)?new ym(e):null}_adjustIndex(r,l=0){return r??this.length+l}};function F_(t){return t[8]}function Jw(t){return t[8]||(t[8]=[])}function uM(t,r){let l;const e=r[t.index];return Ui(e)?l=e:(l=xO(e,r,null,t),r[t.index]=l,nu(r,l)),rf(l,r,t,e),new Rn(l,t,r)}let rf=function fM(t,r,l,e){if(t[Fs])return;let s;s=8&l.type?qn(e):function ex(t,r){const l=t[Ht],e=l.createComment(""),s=Xa(r,t);return Gs(l,r_(l,s),e,function ew(t,r){return t.nextSibling(r)}(l,s),!1),e}(r,l),t[Fs]=s},af=()=>!1;function re(t,r,l,e,s,u,m,b){const C=Te(),M=fn(),I=t+Bt,F=M.firstCreatePass?function IU(t,r,l,e,s,u,m,b,C){const M=r.consts,I=tc(r,t,4,m||null,Hl(M,b));TT(r,l,I,Hl(M,C)),Hv(r,I);const F=I.tView=kw(2,I,e,s,u,r.directiveRegistry,r.pipeRegistry,null,r.schemas,M,null);return null!==r.queries&&(r.queries.template(r,I),F.queries=r.queries.embeddedTView(I)),I}(I,M,C,r,l,e,s,u,m):M.data[I];vo(F,!1);const H=SL(M,C,F,t);Pp()&&iw(M,C,H,F),_t(H,C);const q=xO(H,C,H,F);return C[I]=q,nu(C,q),function hM(t,r,l){return af(t,r,l)}(q,F,C),Ev(F)&&gO(M,C,F),null!=m&&Iw(C,F,b),re}let SL=function DL(t,r,l,e){return Ul(!0),r[Ht].createComment("")};function an(t,r,l){Xh("NgControlFlow");const e=Te(),s=is(),u=nx(e,Bt+t);if(Mr(e,s,r)){const b=Gt(null);try{if(Qw(u,0),-1!==r){const C=df(e[He],Bt+r),M=Ks(u,C.tView.ssrId);Om(u,Rm(e,C,l,{dehydratedView:M}),0,uu(C,M))}}finally{Gt(b)}}else{const b=wL(u,0);void 0!==b&&(b[oi]=l)}}class PU{constructor(r,l,e){this.lContainer=r,this.$implicit=l,this.$index=e}get $count(){return this.lContainer.length-Yn}}function sf(t,r){return r}class OU{constructor(r,l,e){this.hasEmptyBlock=r,this.trackByFn=l,this.liveCollection=e}}function lf(t,r,l,e,s,u,m,b,C,M,I){Xh("NgControlFlow");const F=void 0!==C,H=Te(),q=b?m.bind(H[Ri][oi]):m,Q=new OU(F,q);H[Bt+t]=Q,re(t+1,r,l,e,s,u),F&&re(t+2,C,M,I)}class LU extends L_{constructor(r,l,e){super(),this.lContainer=r,this.hostLView=l,this.templateTNode=e,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Yn}at(r){return this.getLView(r)[oi].$implicit}attach(r,l){const e=l[Os];this.needsIndexUpdate||=r!==this.length,Om(this.lContainer,l,r,uu(this.templateTNode,e))}detach(r){return this.needsIndexUpdate||=r!==this.length-1,function FU(t,r){return Xd(t,r)}(this.lContainer,r)}create(r,l){const e=Ks(this.lContainer,this.templateTNode.tView.ssrId);return Rm(this.hostLView,this.templateTNode,new PU(this.lContainer,l,r),{dehydratedView:e})}destroy(r){ea(r[He],r)}updateValue(r,l){this.getLView(r)[oi].$implicit=l}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r{t.destroy(b)})}(m,t,u.trackByFn),m.updateIndexes(),u.hasEmptyBlock){const b=is(),C=0===m.length;if(Mr(e,b,C)){const M=l+2,I=nx(e,M);if(C){const F=df(s,M),H=Ks(I,F.tView.ssrId);Om(I,Rm(e,F,void 0,{dehydratedView:H}),0,uu(F,H))}else Qw(I,0)}}}finally{Gt(r)}}function nx(t,r){return t[r]}function df(t,r){return Ic(t,r)}function P(t,r,l,e){const s=Te(),u=fn(),m=Bt+t,b=s[Ht],C=u.firstCreatePass?function WL(t,r,l,e,s,u){const m=r.consts,C=tc(r,t,2,e,Hl(m,s));return TT(r,l,C,Hl(m,u)),null!==C.attrs&&Fw(C,C.attrs,!1),null!==C.mergedAttrs&&Fw(C,C.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,C),C}(m,u,s,r,l,e):u.data[m],M=AM(u,s,C,b,r,t);s[m]=M;const I=Ev(C);return vo(C,!0),Kl(b,M,C),32!=(32&C.flags)&&Pp()&&iw(u,s,M,C),0===function OR(){return Rt.lFrame.elementDepthCount}()&&_t(M,s),function LR(){Rt.lFrame.elementDepthCount++}(),I&&(gO(u,s,C),CT(u,C,s)),null!==e&&Iw(s,C),P}function R(){let t=Hn();Lv()?Fv():(t=t.parent,vo(t,!1));const r=t;(function cD(t){return Rt.skipHydrationRootTNode===t})(r)&&function vH(){Rt.skipHydrationRootTNode=null}(),function mH(){Rt.lFrame.elementDepthCount--}();const l=fn();return l.firstCreatePass&&(Hv(l,t),c0(t)&&l.queries.elementEnd(t)),null!=r.classesWithoutHost&&function Vo(t){return 0!=(8&t.flags)}(r)&&T_(l,r,Te(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function jR(t){return 0!=(16&t.flags)}(r)&&T_(l,r,Te(),r.stylesWithoutHost,!1),R}function pe(t,r,l,e){return P(t,r,l,e),R(),pe}let AM=(t,r,l,e,s,u)=>(Ul(!0),st(e,s,function zv(){return Rt.lFrame.currentNamespace}()));function An(t,r,l){const e=Te(),s=fn(),u=t+Bt,m=s.firstCreatePass?function Js(t,r,l,e,s){const u=r.consts,m=Hl(u,e),b=tc(r,t,8,"ng-container",m);return null!==m&&Fw(b,m,!0),TT(r,l,b,Hl(u,s)),null!==r.queries&&r.queries.elementStart(r,b),b}(u,s,e,r,l):s.data[u];vo(m,!0);const b=$L(s,e,m,t);return e[u]=b,Pp()&&iw(s,e,b,m),_t(b,e),Ev(m)&&(gO(s,e,m),CT(s,m,e)),null!=l&&Iw(e,m),An}function On(){let t=Hn();const r=fn();return Lv()?Fv():(t=t.parent,vo(t,!1)),r.firstCreatePass&&(Hv(r,t),c0(t)&&r.queries.elementEnd(t)),On}function ao(t,r,l){return An(t,r,l),On(),ao}let $L=(t,r,l,e)=>(Ul(!0),Zt(r[Ht],""));function Oe(){return Te()}function Ba(t,r,l){const e=Te();return Mr(e,is(),r)&&Go(fn(),_i(),e,t,r,e[Ht],l,!0),Ba}function cx(t,r,l){const e=Te();if(Mr(e,is(),r)){const u=fn(),m=_i();Go(u,m,e,t,r,PT(x0(u.data),m,e),l,!0)}return cx}const Wr="en-US";let QL=Wr;function Ym(t){return!!t&&"function"==typeof t.then}function qM(t){return!!t&&"function"==typeof t.subscribe}function J(t,r,l,e){const s=Te(),u=fn(),m=Hn();return qm(u,s,s[Ht],m,t,r,e),J}function Z_(t,r){const l=Hn(),e=Te(),s=fn();return qm(s,e,PT(x0(s.data),l,e),l,t,r),Z_}function qm(t,r,l,e,s,u,m){const b=Ev(e),M=t.firstCreatePass&&kT(t),I=r[oi],F=CO(r);let H=!0;if(3&e.type||m){const ne=Xa(e,r),ae=m?m(ne):ne,ge=F.length,se=m?Fe=>m(qn(Fe[e.index])):e.index;let Be=null;if(!m&&b&&(Be=function mF(t,r,l,e){const s=t.cleanup;if(null!=s)for(let u=0;uC?b[C]:null}"string"==typeof m&&(u+=2)}return null}(t,r,s,e.index)),null!==Be)(Be.__ngLastListenerFn__||Be).__ngNextListenerFn__=u,Be.__ngLastListenerFn__=u,H=!1;else{u=gF(e,r,I,u,!1);const Fe=l.listen(ae,s,u);F.push(u,Fe),M&&M.push(s,se,ge,ge+1)}}else u=gF(e,r,I,u,!1);const q=e.outputs;let Q;if(H&&null!==q&&(Q=q[s])){const ne=Q.length;if(ne)for(let ae=0;ae-1?br(t.index,r):r);let C=Jc(r,l,e,m),M=u.__ngNextListenerFn__;for(;M;)C=Jc(r,l,M,m)&&C,M=M.__ngNextListenerFn__;return s&&!1===C&&m.preventDefault(),C}}function Z(t=1){return function xH(t){return(Rt.lFrame.contextLView=function kR(t,r){for(;t>0;)r=r[Ls],t--;return r}(t,Rt.lFrame.contextLView))[oi]}(t)}function vF(t,r){let l=null;const e=function dh(t){const r=t.attrs;if(null!=r){const l=r.indexOf(5);if(!(1&l))return r[l+1]}return null}(t);for(let s=0;s(Ul(!0),function t_(t,r){return t.createText(r)}(r[Ht],e));function En(t){return Re("",t,""),En}function Re(t,r,l){const e=Te(),s=Qh(e,t,r,l);return s!==Xt&&hs(e,Vr(),s),Re}function eg(t,r,l,e,s){const u=Te(),m=Sm(u,t,r,l,e,s);return m!==Xt&&hs(u,Vr(),m),eg}function ey(t,r,l,e,s){if(t=it(t),Array.isArray(t))for(let u=0;u>20;if(Mh(t)||!t.multi){const q=new yo(M,s,V),Q=cc(C,r,s?I:I+H,F);-1===Q?(_D(Fp(b,m),u,C),td(u,t,r.length),r.push(C),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),l.push(q),m.push(q)):(l[Q]=q,m[Q]=q)}else{const q=cc(C,r,I+H,F),Q=cc(C,r,I,I+H),ae=Q>=0&&l[Q];if(s&&!ae||!s&&!(q>=0&&l[q])){_D(Fp(b,m),u,C);const ge=function eA(t,r,l,e,s){const u=new yo(t,l,V);return u.multi=[],u.index=r,u.componentProviders=0,JM(u,s,e&&!l),u}(s?Cj:EF,l.length,s,e,M);!s&&ae&&(l[Q].providerFactory=ge),td(u,t,r.length,0),r.push(C),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),l.push(ge),m.push(ge)}else td(u,t,q>-1?q:Q,JM(l[s?Q:q],M,!s&&e));!s&&e&&ae&&l[Q].componentProviders++}}}function td(t,r,l,e){const s=Mh(r),u=function kD(t){return!!t.useClass}(r);if(s||u){const C=(u?it(r.useClass):r).prototype.ngOnDestroy;if(C){const M=t.destroyHooks||(t.destroyHooks=[]);if(!s&&r.multi){const I=M.indexOf(l);-1===I?M.push(l,[e,C]):M[I+1].push(e,C)}else M.push(l,C)}}}function JM(t,r,l){return l&&t.componentProviders++,t.multi.push(r)-1}function cc(t,r,l,e){for(let s=l;s{l.providersResolver=(e,s)=>function AF(t,r,l){const e=fn();if(e.firstCreatePass){const s=mo(t);ey(l,e.data,e.blueprint,s,!0),ey(r,e.data,e.blueprint,s,!1)}}(e,s?s(t):t,r)}}class nd{}class IF{}class Dx extends nd{constructor(r,l,e){super(),this._parent=l,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nw(this);const s=Aa(r);this._bootstrapComponents=Br(s.bootstrap),this._r3Injector=zo(r,l,[{provide:nd,useValue:this},{provide:ls,useValue:this.componentFactoryResolver},...e],Pi(r),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(r)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class Tx extends IF{constructor(r){super(),this.moduleType=r}create(r){return new Dx(this.moduleType,r,[])}}class tA extends nd{constructor(r){super(),this.componentFactoryResolver=new Nw(this),this.instance=null;const l=new Ah([...r.providers,{provide:nd,useValue:this},{provide:ls,useValue:this.componentFactoryResolver}],r.parent||Wp(),r.debugName,new Set(["environment"]));this.injector=l,r.runEnvironmentInitializers&&l.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function Mx(t,r,l=null){return new tA({providers:t,parent:r,debugName:l,runEnvironmentInitializers:!0}).injector}let PF=(()=>{var t;class r{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const s=ED(0,e.type),u=s.length>0?Mx([s],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,u)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return(t=r).\u0275prov=ke({token:t,providedIn:"environment",factory:()=>new t(fe(bo))}),r})();function wf(t){Xh("NgStandalone"),t.getStandaloneInjector=r=>r.get(PF).getOrCreateStandaloneInjector(t)}function Ex(t,r,l){const e=Nr()+t,s=Te();return s[e]===Xt?fs(s,e,l?r.call(l):r()):function S_(t,r){return t[r]}(s,e)}function dc(t,r,l,e){return Px(Te(),Nr(),t,r,l,e)}function Ix(t,r,l,e,s){return HF(Te(),Nr(),t,r,l,e,s)}function id(t,r){const l=t[r];return l===Xt?void 0:l}function Px(t,r,l,e,s,u){const m=r+l;return Mr(t,m,s)?fs(t,m+1,u?e.call(u,s):e(s)):id(t,m+1)}function HF(t,r,l,e,s,u,m){const b=r+l;return au(t,b,s,u)?fs(t,b+2,m?e.call(m,s,u):e(s,u)):id(t,b+2)}function nl(t,r){const l=fn();let e;const s=t+Bt;l.firstCreatePass?(e=function Lj(t,r){if(r)for(let l=r.length-1;l>=0;l--){const e=r[l];if(t===e.name)return e}}(r,l.pipeRegistry),l.data[s]=e,e.onDestroy&&(l.destroyHooks??=[]).push(s,e.onDestroy)):e=l.data[s];const u=e.factory||(e.factory=Ac(e.type)),b=Ma(V);try{const C=Lp(!1),M=u();return Lp(C),function Qm(t,r,l,e){l>=t.data.length&&(t.data[l]=null,t.blueprint[l]=null),r[l]=e}(l,Te(),s,M),M}finally{Ma(b)}}function ng(t,r,l){const e=t+Bt,s=Te(),u=yh(s,e);return ig(s,e)?Px(s,Nr(),r,u.transform,l,u):u.transform(l)}function lA(t,r,l,e){const s=t+Bt,u=Te(),m=yh(u,s);return ig(u,s)?HF(u,Nr(),r,m.transform,l,e,m):m.transform(l,e)}function ig(t,r){return t[He].data[r].pure}function Cf(){return this._results[Symbol.iterator]()}class yu{get changes(){return this._changes??=new Ce}constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const l=yu.prototype;l[Symbol.iterator]||(l[Symbol.iterator]=Cf)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,l){return this._results.reduce(r,l)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,l){this.dirty=!1;const e=function Qa(t){return t.flat(Number.POSITIVE_INFINITY)}(r);(this._changesDetected=!function KR(t,r,l){if(t.length!==r.length)return!1;for(let e=0;e{class r{}return r.__NG_ELEMENT_ID__=GF,r})();const jF=Kn,Bj=class extends jF{constructor(r,l,e){super(),this._declarationLView=r,this._declarationTContainer=l,this.elementRef=e}get ssrId(){var r;return(null==(r=this._declarationTContainer.tView)?void 0:r.ssrId)||null}createEmbeddedView(r,l){return this.createEmbeddedViewImpl(r,l)}createEmbeddedViewImpl(r,l,e){const s=Rm(this._declarationLView,this._declarationTContainer,r,{injector:l,dehydratedView:e});return new ym(s)}};function GF(){return ay(Hn(),Te())}function ay(t,r){return 4&t.type?new Bj(r,t,Uc(t,r)):null}class Ox{constructor(r){this.queryList=r,this.matches=null}clone(){return new Ox(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lx{constructor(r=[]){this.queries=r}createEmbeddedView(r){const l=r.queries;if(null!==l){const e=null!==r.contentQueries?r.contentQueries[0]:l.length,s=[];for(let u=0;u0)e.push(m[b/2]);else{const M=u[b+1],I=r[-C];for(let F=Yn;F{var t;class r{log(e){console.log(e)}warn(e){console.warn(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})();class eG{constructor(r,l){this.ngModuleFactory=r,this.componentFactories=l}}let uN=(()=>{var t;class r{compileModuleSync(e){return new Tx(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const s=this.compileModuleSync(e),m=Br(Aa(e).declarations).reduce((b,C)=>{const M=hn(C);return M&&b.push(new xm(M)),b},[]);return new eG(s,m)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),Df=(()=>{var t;class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ye(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const AA=new ve(""),py=new ve("");let Mf,my=(()=>{var t;class r{constructor(e,s,u){this._ngZone=e,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Mf||(function fG(t){Mf=t}(u),u.addToWindow(s)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(e)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,s,u){let m=-1;s&&s>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(b=>b.timeoutId!==m),e(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:e,timeoutId:m,updateCb:u})}whenStable(e,s,u){if(u&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,s,u),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,s,u){return[]}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye),fe(jx),fe(py))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),jx=(()=>{var t;class r{constructor(){this._applications=new Map}registerApplication(e,s){this._applications.set(e,s)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,s=!0){return(null==Mf?void 0:Mf.findTestabilityInTree(this,e,s))??null}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})();const Gx=new ve("Application Initializer");let Wx=(()=>{var t;class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,s)=>{this.resolve=e,this.reject=s}),this.appInits=De(Gx,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const u of this.appInits){const m=u();if(Ym(m))e.push(m);else if(qM(m)){const b=new Promise((C,M)=>{m.subscribe({complete:C,error:M})});e.push(b)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{s()}).catch(u=>{this.reject(u)}),0===e.length&&s(),this.initialized=!0}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const EA=new ve("appBootstrapListener");function bN(t,r){return Array.isArray(r)?r.reduce(bN,t):{...t,...r}}let ol=(()=>{var t;class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=De(wT),this.afterRenderEffectManager=De(w_),this.componentTypes=[],this.components=[],this.isStable=De(Df).hasPendingTasks.pipe(Ee(e=>!e)),this._injector=De(bo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,s){const u=e instanceof gT;if(!this._injector.get(Wx).done)throw!u&&function ts(t){const r=hn(t)||Lr(t)||ha(t);return null!==r&&r.standalone}(e),new be(405,!1);let b;b=u?e:this._injector.get(ls).resolveComponentFactory(e),this.componentTypes.push(b.componentType);const C=function mG(t){return t.isBoundToModule}(b)?void 0:this._injector.get(nd),I=b.create(mn.NULL,[],s||b.selector,C),F=I.location.nativeElement,H=I.injector.get(AA,null);return null==H||H.registerApplication(F),I.onDestroy(()=>{this.detachView(I.hostView),gy(this.components,I),null==H||H.unregisterApplication(F)}),this._loadComponent(I),I}tick(){if(this._runningTick)throw new be(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{try{this.afterRenderEffectManager.execute()}catch(e){this.internalErrorHandler(e)}this._runningTick=!1}}attachView(e){const s=e;this._views.push(s),s.attachToAppRef(this)}detachView(e){const s=e;gy(this._views,s),s.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const s=this._injector.get(EA,[]);[...this._bootstrapListeners,...s].forEach(u=>u(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>gy(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new be(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function gy(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}let Ef=(()=>{var t;class r{constructor(){this.zone=De(Ye),this.applicationRef=De(ol)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var e;null==(e=this._onMicrotaskEmptySubscription)||e.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function xN(){const t=De(Ye),r=De(Tr);return l=>t.runOutsideAngular(()=>r.handleError(l))}let RA=(()=>{var t;class r{constructor(){this.subscription=new bt,this.initialized=!1,this.zone=De(Ye),this.pendingTasks=De(Df)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const rd=new ve("LocaleId",{providedIn:"root",factory:()=>De(rd,Yt.Optional|Yt.SkipSelf)||function uK(){return typeof $localize<"u"&&$localize.locale||Wr}()}),OA=new ve("PlatformDestroyListeners");let $x=(()=>{var t;class r{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,s){const u=function Z8(t="zone.js",r){return"noop"===t?new UT:"zone.js"===t?new Ye(r):t}(null==s?void 0:s.ngZone,function vG(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(null==t?void 0:t.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(null==t?void 0:t.runCoalescing)??!1}}({eventCoalescing:null==s?void 0:s.ngZoneEventCoalescing,runCoalescing:null==s?void 0:s.ngZoneRunCoalescing}));return u.run(()=>{const m=function Sj(t,r,l){return new Dx(t,r,l)}(e.moduleType,this.injector,function PA(t){return[{provide:Ye,useFactory:t},{provide:Ud,multi:!0,useFactory:()=>{const r=De(Ef,{optional:!0});return()=>r.initialize()}},{provide:Ud,multi:!0,useFactory:()=>{const r=De(RA);return()=>{r.initialize()}}},{provide:wT,useFactory:xN}]}(()=>u)),b=m.injector.get(Tr,null);return u.runOutsideAngular(()=>{const C=u.onError.subscribe({next:M=>{b.handleError(M)}});m.onDestroy(()=>{gy(this._modules,m),C.unsubscribe()})}),function kA(t,r,l){try{const e=l();return Ym(e)?e.catch(s=>{throw r.runOutsideAngular(()=>t.handleError(s)),s}):e}catch(e){throw r.runOutsideAngular(()=>t.handleError(e)),e}}(b,u,()=>{const C=m.injector.get(Wx);return C.runInitializers(),C.donePromise.then(()=>(function JL(t){Oo(t,"Expected localeId to be defined"),"string"==typeof t&&(QL=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(rd,Wr)||Wr),this._moduleDoBootstrap(m),m))})})}bootstrapModule(e,s=[]){const u=bN({},s);return function pG(t,r,l){const e=new Tx(l);return Promise.resolve(e)}(0,0,e).then(m=>this.bootstrapModuleFactory(m,u))}_moduleDoBootstrap(e){const s=e.injector.get(ol);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(u=>s.bootstrap(u));else{if(!e.instance.ngDoBootstrap)throw new be(-403,!1);e.instance.ngDoBootstrap(s)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new be(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const e=this._injector.get(OA,null);e&&(e.forEach(s=>s()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(mn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})(),Yr=null;const SN=new ve("AllowMultipleToken");function sg(t,r,l=[]){const e=`Platform: ${r}`,s=new ve(e);return(u=[])=>{let m=_y();if(!m||m.injector.get(SN,!1)){const b=[...l,...u,{provide:s,useValue:!0}];t?t(b):function vy(t){if(Yr&&!Yr.get(SN,!1))throw new be(400,!1);(function IA(){!function $4(t){W4=t}(()=>{throw new be(600,!1)})})(),Yr=t;const r=t.get($x);(function DN(t){const r=t.get(v2,null);null==r||r.forEach(l=>l())})(t)}(function LA(t=[],r){return mn.create({name:r,providers:[{provide:PD,useValue:"platform"},{provide:OA,useValue:new Set([()=>Yr=null])},...t]})}(b,e))}return function Yx(t){const r=_y();if(!r)throw new be(401,!1);return r}()}}function _y(){return(null==Yr?void 0:Yr.get($x))??null}const BA=sg(null,"core",[]);let AN=(()=>{var t;class r{constructor(e){}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(ol))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function jt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,r=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?r:Number(t)}let ZA=null;function Su(){return ZA}class qG{}const yt=new ve("DocumentToken");let XA=(()=>{var t;class r{historyGo(e){throw new Error("Not implemented")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(XG),providedIn:"platform"}),r})();const ZG=new ve("Location Initialized");let XG=(()=>{var t;class r extends XA{constructor(){super(),this._doc=De(yt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Su().getBaseHref(this._doc)}onPopState(e){const s=Su().getGlobalEventTarget(this._doc,"window");return s.addEventListener("popstate",e,!1),()=>s.removeEventListener("popstate",e)}onHashChange(e){const s=Su().getGlobalEventTarget(this._doc,"window");return s.addEventListener("hashchange",e,!1),()=>s.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,s,u){this._history.pushState(e,s,u)}replaceState(e,s,u){this._history.replaceState(e,s,u)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>new t,providedIn:"platform"}),r})();function Iy(t,r){if(0==t.length)return r;if(0==r.length)return t;let l=0;return t.endsWith("/")&&l++,r.startsWith("/")&&l++,2==l?t+r.substring(1):1==l?t+r:t+"/"+r}function KG(t){const r=t.match(/#|\?|$/),l=r&&r.index||t.length;return t.slice(0,l-("/"===t[l-1]?1:0))+t.slice(l)}function hc(t){return t&&"?"!==t[0]?"?"+t:t}let Of=(()=>{var t;class r{historyGo(e){throw new Error("Not implemented")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(ZN),providedIn:"root"}),r})();const aC=new ve("appBaseHref");let ZN=(()=>{var t;class r extends Of{constructor(e,s){var u;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=s??this._platformLocation.getBaseHrefFromDOM()??(null==(u=De(yt).location)?void 0:u.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Iy(this._baseHref,e)}path(e=!1){const s=this._platformLocation.pathname+hc(this._platformLocation.search),u=this._platformLocation.hash;return u&&e?`${s}${u}`:s}pushState(e,s,u,m){const b=this.prepareExternalUrl(u+hc(m));this._platformLocation.pushState(e,s,b)}replaceState(e,s,u,m){const b=this.prepareExternalUrl(u+hc(m));this._platformLocation.replaceState(e,s,b)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var s,u;null==(u=(s=this._platformLocation).historyGo)||u.call(s,e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(XA),fe(aC,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),QG=(()=>{var t;class r extends Of{constructor(e,s){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=s&&(this._baseHref=s)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let s=this._platformLocation.hash;return null==s&&(s="#"),s.length>0?s.substring(1):s}prepareExternalUrl(e){const s=Iy(this._baseHref,e);return s.length>0?"#"+s:s}pushState(e,s,u,m){let b=this.prepareExternalUrl(u+hc(m));0==b.length&&(b=this._platformLocation.pathname),this._platformLocation.pushState(e,s,b)}replaceState(e,s,u,m){let b=this.prepareExternalUrl(u+hc(m));0==b.length&&(b=this._platformLocation.pathname),this._platformLocation.replaceState(e,s,b)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var s,u;null==(u=(s=this._platformLocation).historyGo)||u.call(s,e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(XA),fe(aC,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Du=(()=>{var t;class r{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const s=this._locationStrategy.getBaseHref();this._basePath=function e6(t){if(new RegExp("^(https?:)?//").test(t)){const[,l]=t.split(/\/\/[^\/]+/);return l}return t}(KG(KA(s))),this._locationStrategy.onPopState(u=>{this._subject.emit({url:this.path(!0),pop:!0,state:u.state,type:u.type})})}ngOnDestroy(){var e;null==(e=this._urlChangeSubscription)||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,s=""){return this.path()==this.normalize(e+hc(s))}normalize(e){return r.stripTrailingSlash(function pg(t,r){if(!t||!r.startsWith(t))return r;const l=r.substring(t.length);return""===l||["/",";","?","#"].includes(l[0])?l:r}(this._basePath,KA(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,s="",u=null){this._locationStrategy.pushState(u,"",e,s),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hc(s)),u)}replaceState(e,s="",u=null){this._locationStrategy.replaceState(u,"",e,s),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hc(s)),u)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var s,u;null==(u=(s=this._locationStrategy).historyGo)||u.call(s,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(s=>{this._notifyUrlChangeListeners(s.url,s.state)})),()=>{var u;const s=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(s,1),0===this._urlChangeListeners.length&&(null==(u=this._urlChangeSubscription)||u.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",s){this._urlChangeListeners.forEach(u=>u(e,s))}subscribe(e,s,u){return this._subject.subscribe({next:e,error:s,complete:u})}}return(t=r).normalizeQueryParams=hc,t.joinWithSlash=Iy,t.stripTrailingSlash=KG,t.\u0275fac=function(e){return new(e||t)(fe(Of))},t.\u0275prov=ke({token:t,factory:()=>function JG(){return new Du(fe(Of))}(),providedIn:"root"}),r})();function KA(t){return t.replace(/\/index.html$/,"")}function cE(t,r){r=encodeURIComponent(r);for(const l of t.split(";")){const e=l.indexOf("="),[s,u]=-1==e?[l,""]:[l.slice(0,e),l.slice(e+1)];if(s.trim()===r)return decodeURIComponent(u)}return null}const gg=/\s+/,vg=[];let To=(()=>{var t;class r{constructor(e,s){this._ngEl=e,this._renderer=s,this.initialClasses=vg,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(gg):vg}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(gg):e}ngDoCheck(){for(const s of this.initialClasses)this._updateState(s,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const s of e)this._updateState(s,!0);else if(null!=e)for(const s of Object.keys(e))this._updateState(s,!!e[s]);this._applyStateDiff()}_updateState(e,s){const u=this.stateMap.get(e);void 0!==u?(u.enabled!==s&&(u.changed=!0,u.enabled=s),u.touched=!0):this.stateMap.set(e,{enabled:s,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const s=e[0],u=e[1];u.changed?(this._toggleClass(s,u.enabled),u.changed=!1):u.touched||(u.enabled&&this._toggleClass(s,!1),this.stateMap.delete(s)),u.touched=!1}}_toggleClass(e,s){(e=e.trim()).length>0&&e.split(gg).forEach(u=>{s?this._renderer.addClass(this._ngEl.nativeElement,u):this._renderer.removeClass(this._ngEl.nativeElement,u)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(ec))},t.\u0275dir=ce({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),r})();class hC{constructor(r,l,e,s){this.$implicit=r,this.ngForOf=l,this.index=e,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mi=(()=>{var t;class r{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,s,u){this._viewContainer=e,this._template=s,this._differs=u,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const s=this._viewContainer;e.forEachOperation((u,m,b)=>{if(null==u.previousIndex)s.createEmbeddedView(this._template,new hC(u.item,this._ngForOf,-1,-1),null===b?void 0:b);else if(null==b)s.remove(null===m?void 0:m);else if(null!==m){const C=s.get(m);s.move(C,b),fC(C,u)}});for(let u=0,m=s.length;u{fC(s.get(u.currentIndex),u)})}static ngTemplateContextGuard(e,s){return!0}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(tu))},t.\u0275dir=ce({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),r})();function fC(t,r){t.context.$implicit=r.item}let xn=(()=>{var t;class r{constructor(e,s){this._viewContainer=e,this._context=new pC,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=s}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){hE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){hE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,s){return!0}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),r})();class pC{constructor(){this.$implicit=null,this.ngIf=null}}function hE(t,r){if(r&&!r.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(r)}'.`)}class mC{constructor(r,l){this._viewContainerRef=r,this._templateRef=l,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}}let _g=(()=>{var t;class r{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const s=e===this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||s,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),s}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const s of this._defaultViews)s.enforceState(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),r})(),gC=(()=>{var t;class r{constructor(e,s,u){this.ngSwitch=u,u._addCase(),this._view=new mC(e,s)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(_g,9))},t.\u0275dir=ce({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),r})(),Zo=(()=>{var t;class r{constructor(e,s,u){u._addDefault(new mC(e,s))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(_g,9))},t.\u0275dir=ce({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),r})(),fE=(()=>{var t;class r{constructor(e,s,u){this._ngEl=e,this._differs=s,this._renderer=u,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,s){const[u,m]=e.split("."),b=-1===u.indexOf("-")?void 0:Zd.DashCase;null!=s?this._renderer.setStyle(this._ngEl.nativeElement,u,m?`${s}${m}`:s,b):this._renderer.removeStyle(this._ngEl.nativeElement,u,b)}_applyChanges(e){e.forEachRemovedItem(s=>this._setStyle(s.key,null)),e.forEachAddedItem(s=>this._setStyle(s.key,s.currentValue)),e.forEachChangedItem(s=>this._setStyle(s.key,s.currentValue))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Tw),V(ec))},t.\u0275dir=ce({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),r})(),pE=(()=>{var t;class r{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const s=this._viewContainerRef;if(this._viewRef&&s.remove(s.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const u=this._createContextForwardProxy();this._viewRef=s.createEmbeddedView(this.ngTemplateOutlet,u,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,s,u)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,s,u),get:(e,s,u)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,s,u)}})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi))},t.\u0275dir=ce({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[nn]}),r})();class I6{createSubscription(r,l){return ww(()=>r.subscribe({next:l,error:e=>{throw e}}))}dispose(r){ww(()=>r.unsubscribe())}}class mE{createSubscription(r,l){return r.then(l,e=>{throw e})}dispose(r){}}const k6=new mE,pV=new I6;let gE=(()=>{var t;class r{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,s=>this._updateLatestValue(e,s))}_selectStrategy(e){if(Ym(e))return k6;if(qM(e))return pV;throw function Mo(t,r){return new be(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,s){e===this._obj&&(this._latestValue=s,this._ref.markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn,16))},t.\u0275pipe=ua({name:"async",type:t,pure:!1,standalone:!0}),r})(),vV=(()=>{var t;class r{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=_V}transform(e,s=_V){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const u=this.differ.diff(e),m=s!==this.compareFn;return u&&(this.keyValues=[],u.forEachItem(b=>{this.keyValues.push(function V6(t,r){return{key:t,value:r}}(b.key,b.currentValue))})),(u||m)&&(this.keyValues.sort(s),this.compareFn=s),this.keyValues}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Tw,16))},t.\u0275pipe=ua({name:"keyvalue",type:t,pure:!1,standalone:!0}),r})();function _V(t,r){const l=t.key,e=r.key;if(l===e)return 0;if(void 0===l)return 1;if(void 0===e)return-1;if(null===l)return 1;if(null===e)return-1;if("string"==typeof l&&"string"==typeof e)return l{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const _C="browser";function bE(t){return t===_C}function Fy(t){return"server"===t}let yV=(()=>{var t;class r{}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>bE(De(Vc))?new bV(De(yt),window):new xV}),r})();class bV{constructor(r,l){this.document=r,this.window=l,this.offset=()=>[0,0]}setOffset(r){this.offset=Array.isArray(r)?()=>r:r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){const l=function wV(t,r){const l=t.getElementById(r)||t.getElementsByName(r)[0];if(l)return l;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const e=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=e.currentNode;for(;s;){const u=s.shadowRoot;if(u){const m=u.getElementById(r)||u.querySelector(`[name="${r}"]`);if(m)return m}s=e.nextNode()}}return null}(this.document,r);l&&(this.scrollToElement(l),l.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){const l=r.getBoundingClientRect(),e=l.left+this.window.pageXOffset,s=l.top+this.window.pageYOffset,u=this.offset();this.window.scrollTo(e-u[0],s-u[1])}}class xV{setOffset(r){}getScrollPosition(){return[0,0]}scrollToPosition(r){}scrollToAnchor(r){}setHistoryScrollRestoration(r){}}class wE{}class b7 extends qG{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ME extends b7{static makeCurrent(){!function YG(t){ZA||(ZA=t)}(new ME)}onAndCancel(r,l,e){return r.addEventListener(l,e),()=>{r.removeEventListener(l,e)}}dispatchEvent(r,l){r.dispatchEvent(l)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,l){return(l=l||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,l){return"window"===l?window:"document"===l?r:"body"===l?r.body:null}getBaseHref(r){const l=function w7(){return ld=ld||document.querySelector("base"),ld?ld.getAttribute("href"):null}();return null==l?null:function x7(t){return new URL(t,document.baseURI).pathname}(l)}resetBaseElement(){ld=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return cE(document.cookie,r)}}let ld=null,S7=(()=>{var t;class r{build(){return new XMLHttpRequest}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const AE=new ve("EventManagerPlugins");let EE=(()=>{var t;class r{constructor(e,s){this._zone=s,this._eventNameToPlugin=new Map,e.forEach(u=>{u.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,s,u){return this._findPluginFor(s).addEventListener(e,s,u)}getZone(){return this._zone}_findPluginFor(e){let s=this._eventNameToPlugin.get(e);if(s)return s;if(s=this._plugins.find(m=>m.supports(e)),!s)throw new be(5101,!1);return this._eventNameToPlugin.set(e,s),s}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(AE),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();class OV{constructor(r){this._doc=r}}const SC="ng-app-id";let LV=(()=>{var t;class r{constructor(e,s,u,m={}){this.doc=e,this.appId=s,this.nonce=u,this.platformId=m,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Fy(m),this.resetHostNodes()}addStyles(e){for(const s of e)1===this.changeUsageCount(s,1)&&this.onStyleAdded(s)}removeStyles(e){for(const s of e)this.changeUsageCount(s,-1)<=0&&this.onStyleRemoved(s)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(s=>s.remove()),e.clear());for(const s of this.getAllStyles())this.onStyleRemoved(s);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const s of this.getAllStyles())this.addStyleToHost(e,s)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const s of this.hostNodes)this.addStyleToHost(s,e)}onStyleRemoved(e){var u,m;const s=this.styleRef;null==(m=null==(u=s.get(e))?void 0:u.elements)||m.forEach(b=>b.remove()),s.delete(e)}collectServerRenderedStyles(){var s;const e=null==(s=this.doc.head)?void 0:s.querySelectorAll(`style[${SC}="${this.appId}"]`);if(null!=e&&e.length){const u=new Map;return e.forEach(m=>{null!=m.textContent&&u.set(m.textContent,m)}),u}return null}changeUsageCount(e,s){const u=this.styleRef;if(u.has(e)){const m=u.get(e);return m.usage+=s,m.usage}return u.set(e,{usage:s,elements:[]}),s}getStyleElement(e,s){const u=this.styleNodesInDOM,m=null==u?void 0:u.get(s);if((null==m?void 0:m.parentNode)===e)return u.delete(s),m.removeAttribute(SC),m;{const b=this.doc.createElement("style");return this.nonce&&b.setAttribute("nonce",this.nonce),b.textContent=s,this.platformIsServer&&b.setAttribute(SC,this.appId),e.appendChild(b),b}}addStyleToHost(e,s){var C;const u=this.getStyleElement(e,s),m=this.styleRef,b=null==(C=m.get(s))?void 0:C.elements;b?b.push(u):m.set(s,{elements:[u],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(qp),fe(Bc,8),fe(Vc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const DC={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},IE=/%COMP%/g,T7=new ve("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function VV(t,r){return r.map(l=>l.replace(IE,t))}let PE=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I=null){this.eventManager=e,this.sharedStylesHost=s,this.appId=u,this.removeStylesOnCompDestroy=m,this.doc=b,this.platformId=C,this.ngZone=M,this.nonce=I,this.rendererByCompId=new Map,this.platformIsServer=Fy(C),this.defaultRenderer=new RE(e,b,M,this.platformIsServer)}createRenderer(e,s){if(!e||!s)return this.defaultRenderer;this.platformIsServer&&s.encapsulation===Zi.ShadowDom&&(s={...s,encapsulation:Zi.Emulated});const u=this.getOrCreateRenderer(e,s);return u instanceof zV?u.applyToHost(e):u instanceof TC&&u.applyStyles(),u}getOrCreateRenderer(e,s){const u=this.rendererByCompId;let m=u.get(s.id);if(!m){const b=this.doc,C=this.ngZone,M=this.eventManager,I=this.sharedStylesHost,F=this.removeStylesOnCompDestroy,H=this.platformIsServer;switch(s.encapsulation){case Zi.Emulated:m=new zV(M,I,s,this.appId,F,b,C,H);break;case Zi.ShadowDom:return new BV(M,I,e,s,b,C,this.nonce,H);default:m=new TC(M,I,s,F,b,C,H)}u.set(s.id,m)}return m}ngOnDestroy(){this.rendererByCompId.clear()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(EE),fe(LV),fe(qp),fe(T7),fe(yt),fe(Vc),fe(Ye),fe(Bc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();class RE{constructor(r,l,e,s){this.eventManager=r,this.doc=l,this.ngZone=e,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,l){return l?this.doc.createElementNS(DC[l]||l,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,l){(LE(r)?r.content:r).appendChild(l)}insertBefore(r,l,e){r&&(LE(r)?r.content:r).insertBefore(l,e)}removeChild(r,l){r&&r.removeChild(l)}selectRootElement(r,l){let e="string"==typeof r?this.doc.querySelector(r):r;if(!e)throw new be(-5104,!1);return l||(e.textContent=""),e}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,l,e,s){if(s){l=s+":"+l;const u=DC[s];u?r.setAttributeNS(u,l,e):r.setAttribute(l,e)}else r.setAttribute(l,e)}removeAttribute(r,l,e){if(e){const s=DC[e];s?r.removeAttributeNS(s,l):r.removeAttribute(`${e}:${l}`)}else r.removeAttribute(l)}addClass(r,l){r.classList.add(l)}removeClass(r,l){r.classList.remove(l)}setStyle(r,l,e,s){s&(Zd.DashCase|Zd.Important)?r.style.setProperty(l,e,s&Zd.Important?"important":""):r.style[l]=e}removeStyle(r,l,e){e&Zd.DashCase?r.style.removeProperty(l):r.style[l]=""}setProperty(r,l,e){null!=r&&(r[l]=e)}setValue(r,l){r.nodeValue=l}listen(r,l,e){if("string"==typeof r&&!(r=Su().getGlobalEventTarget(this.doc,r)))throw new Error(`Unsupported event target ${r} for event ${l}`);return this.eventManager.addEventListener(r,l,this.decoratePreventDefault(e))}decoratePreventDefault(r){return l=>{if("__ngUnwrap__"===l)return r;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>r(l)):r(l))&&l.preventDefault()}}}function LE(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class BV extends RE{constructor(r,l,e,s,u,m,b,C){super(r,u,m,C),this.sharedStylesHost=l,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const M=VV(s.id,s.styles);for(const I of M){const F=document.createElement("style");b&&F.setAttribute("nonce",b),F.textContent=I,this.shadowRoot.appendChild(F)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,l){return super.appendChild(this.nodeOrShadowRoot(r),l)}insertBefore(r,l,e){return super.insertBefore(this.nodeOrShadowRoot(r),l,e)}removeChild(r,l){return super.removeChild(this.nodeOrShadowRoot(r),l)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class TC extends RE{constructor(r,l,e,s,u,m,b,C){super(r,u,m,b),this.sharedStylesHost=l,this.removeStylesOnCompDestroy=s,this.styles=C?VV(C,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class zV extends TC{constructor(r,l,e,s,u,m,b,C){const M=s+"-"+e.id;super(r,l,e,u,m,b,C,M),this.contentAttr=function M7(t){return"_ngcontent-%COMP%".replace(IE,t)}(M),this.hostAttr=function A7(t){return"_nghost-%COMP%".replace(IE,t)}(M)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,l){const e=super.createElement(r,l);return super.setAttribute(e,this.contentAttr,""),e}}let I7=(()=>{var t;class r extends OV{constructor(e){super(e)}supports(e){return!0}addEventListener(e,s,u){return e.addEventListener(s,u,!1),()=>this.removeEventListener(e,s,u)}removeEventListener(e,s,u){return e.removeEventListener(s,u)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const HV=["alt","control","meta","shift"],Bf={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},UV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let MC=(()=>{var t;class r extends OV{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,s,u){const m=r.parseEventName(s),b=r.eventCallback(m.fullKey,u,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Su().onAndCancel(e,m.domEventName,b))}static parseEventName(e){const s=e.toLowerCase().split("."),u=s.shift();if(0===s.length||"keydown"!==u&&"keyup"!==u)return null;const m=r._normalizeKey(s.pop());let b="",C=s.indexOf("code");if(C>-1&&(s.splice(C,1),b="code."),HV.forEach(I=>{const F=s.indexOf(I);F>-1&&(s.splice(F,1),b+=I+".")}),b+=m,0!=s.length||0===m.length)return null;const M={};return M.domEventName=u,M.fullKey=b,M}static matchEventFullKeyCode(e,s){let u=Bf[e.key]||e.key,m="";return s.indexOf("code.")>-1&&(u=e.code,m="code."),!(null==u||!u)&&(u=u.toLowerCase()," "===u?u="space":"."===u&&(u="dot"),HV.forEach(b=>{b!==u&&(0,UV[b])(e)&&(m+=b+".")}),m+=u,m===s)}static eventCallback(e,s,u){return m=>{r.matchEventFullKeyCode(m,e)&&u.runGuarded(()=>s(m))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const FE=sg(BA,"browser",[{provide:Vc,useValue:_C},{provide:v2,useValue:function k7(){ME.makeCurrent()},multi:!0},{provide:yt,useFactory:function P7(){return function g2(t){Yp=t}(document),document},deps:[]}]),R7=new ve(""),GV=[{provide:py,useClass:class C7{addToWindow(r){vi.getAngularTestability=(e,s=!0)=>{const u=r.findTestabilityInTree(e,s);if(null==u)throw new be(5103,!1);return u},vi.getAllAngularTestabilities=()=>r.getAllTestabilities(),vi.getAllAngularRootElements=()=>r.getAllRootElements(),vi.frameworkStabilizers||(vi.frameworkStabilizers=[]),vi.frameworkStabilizers.push(e=>{const s=vi.getAllAngularTestabilities();let u=s.length,m=!1;const b=function(C){m=m||C,u--,0==u&&e(m)};s.forEach(C=>{C.whenStable(b)})})}findTestabilityInTree(r,l,e){return null==l?null:r.getTestability(l)??(e?Su().isShadowRoot(l)?this.findTestabilityInTree(r,l.host,!0):this.findTestabilityInTree(r,l.parentElement,!0):null)}},deps:[]},{provide:AA,useClass:my,deps:[Ye,jx,py]},{provide:my,useClass:my,deps:[Ye,jx,py]}],EC=[{provide:PD,useValue:"root"},{provide:Tr,useFactory:function Vy(){return new Tr},deps:[]},{provide:AE,useClass:I7,multi:!0,deps:[yt,Ye,Vc]},{provide:AE,useClass:MC,multi:!0,deps:[yt]},PE,LV,EE,{provide:yw,useExisting:PE},{provide:wE,useClass:S7,deps:[]},[]];let zy=(()=>{var t;class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:qp,useValue:e.appId}]}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(R7,12))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[...EC,...GV],imports:[Er,AN]}),r})(),kC=(()=>{var t;class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new e:function zf(){return new kC(fe(yt))}(),s},providedIn:"root"}),r})();typeof window<"u"&&window;let dd=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new(e||t):fe(NE),s},providedIn:"root"}),r})(),NE=(()=>{var t;class r extends dd{constructor(e){super(),this._doc=e}sanitize(e,s){if(null==s)return null;switch(e){case Qi.NONE:return s;case Qi.HTML:return Ws(s,"HTML")?eo(s):aT(this._doc,String(s)).toString();case Qi.STYLE:return Ws(s,"Style")?eo(s):s;case Qi.SCRIPT:if(Ws(s,"Script"))return eo(s);throw new be(5200,!1);case Qi.URL:return Ws(s,"URL")?eo(s):om(String(s));case Qi.RESOURCE_URL:if(Ws(s,"ResourceURL"))return eo(s);throw new be(5201,!1);default:throw new be(5202,!1)}}bypassSecurityTrustHtml(e){return function ga(t){return new G2(t)}(e)}bypassSecurityTrustStyle(e){return function zh(t){return new r8(t)}(e)}bypassSecurityTrustScript(e){return function s_(t){return new Kd(t)}(e)}bypassSecurityTrustUrl(e){return function s8(t){return new a8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function l8(t){return new Oi(t)}(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new e:function OC(t){return new NE(t.get(yt))}(fe(mn)),s},providedIn:"root"}),r})();function qV(t,r,l,e,s,u,m){try{var b=t[u](m),C=b.value}catch(M){return void l(M)}b.done?r(C):Promise.resolve(C).then(e,s)}function Ge(t){return function(){var r=this,l=arguments;return new Promise(function(e,s){var u=t.apply(r,l);function m(C){qV(u,e,s,m,b,"next",C)}function b(C){qV(u,e,s,m,b,"throw",C)}m(void 0)})}}function ZV(t){return t&&Fn(t.schedule)}function VE(t){return t[t.length-1]}function BE(t){return Fn(VE(t))?t.pop():void 0}function Uy(t){return ZV(VE(t))?t.pop():void 0}function Eu(t){return this instanceof Eu?(this.v=t,this):new Eu(t)}function qE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function WE(t){var r="function"==typeof Symbol&&Symbol.iterator,l=r&&t[r],e=0;if(l)return l.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),l={},e("next"),e("throw"),e("return"),l[Symbol.asyncIterator]=function(){return this},l);function e(u){l[u]=t[u]&&function(m){return new Promise(function(b,C){!function s(u,m,b,C){Promise.resolve(C).then(function(M){u({value:M,done:b})},m)}(b,C,(m=t[u](m)).done,m.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Wy=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function KE(t){return Fn(null==t?void 0:t.then)}function eW(t){return Fn(t[Di])}function VC(t){return Symbol.asyncIterator&&Fn(null==t?void 0:t[Symbol.asyncIterator])}function t3(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const BC=function tW(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function QE(t){return Fn(null==t?void 0:t[BC])}function JE(t){return function bg(t,r,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,e=l.apply(t,r||[]),u=[];return s={},m("next"),m("throw"),m("return"),s[Symbol.asyncIterator]=function(){return this},s;function m(H){e[H]&&(s[H]=function(q){return new Promise(function(Q,ne){u.push([H,q,Q,ne])>1||b(H,q)})})}function b(H,q){try{!function C(H){H.value instanceof Eu?Promise.resolve(H.value.v).then(M,I):F(u[0][2],H)}(e[H](q))}catch(Q){F(u[0][3],Q)}}function M(H){b("next",H)}function I(H){b("throw",H)}function F(H,q){H(q),u.shift(),u.length&&b(u[0][0],u[0][1])}}(this,arguments,function*(){const l=t.getReader();try{for(;;){const{value:e,done:s}=yield Eu(l.read());if(s)return yield Eu(void 0);yield yield Eu(e)}}finally{l.releaseLock()}})}function eI(t){return Fn(null==t?void 0:t.getReader)}function ra(t){if(t instanceof ln)return t;if(null!=t){if(eW(t))return function tI(t){return new ln(r=>{const l=t[Di]();if(Fn(l.subscribe))return l.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Wy(t))return function nW(t){return new ln(r=>{for(let l=0;l{t.then(l=>{r.closed||(r.next(l),r.complete())},l=>r.error(l)).then(null,dR)})}(t);if(VC(t))return n3(t);if(QE(t))return function iW(t){return new ln(r=>{for(const l of t)if(r.next(l),r.closed)return;r.complete()})}(t);if(eI(t))return function r3(t){return n3(JE(t))}(t)}throw t3(t)}function n3(t){return new ln(r=>{(function a3(t,r){var l,e,s,u;return function UE(t,r,l,e){return new(l||(l=Promise))(function(u,m){function b(I){try{M(e.next(I))}catch(F){m(F)}}function C(I){try{M(e.throw(I))}catch(F){m(F)}}function M(I){I.done?u(I.value):function s(u){return u instanceof l?u:new l(function(m){m(u)})}(I.value).then(b,C)}M((e=e.apply(t,r||[])).next())})}(this,void 0,void 0,function*(){try{for(l=qE(t);!(e=yield l.next()).done;)if(r.next(e.value),r.closed)return}catch(m){s={error:m}}finally{try{e&&!e.done&&(u=l.return)&&(yield u.call(l))}finally{if(s)throw s.error}}r.complete()})})(t,r).catch(l=>r.error(l))})}function Ss(t,r,l,e=0,s=!1){const u=r.schedule(function(){l(),s?t.add(this.schedule(null,e)):this.unsubscribe()},e);if(t.add(u),!s)return u}function zC(t,r=0){return Ae((l,e)=>{l.subscribe(Bn(e,s=>Ss(e,t,()=>e.next(s),r),()=>Ss(e,t,()=>e.complete(),r),s=>Ss(e,t,()=>e.error(s),r)))})}function HC(t,r=0){return Ae((l,e)=>{e.add(t.schedule(()=>l.subscribe(e),r))})}function oI(t,r){if(!t)throw new Error("Iterable cannot be null");return new ln(l=>{Ss(l,r,()=>{const e=t[Symbol.asyncIterator]();Ss(l,r,()=>{e.next().then(s=>{s.done?l.complete():l.next(s.value)})},0,!0)})})}function nr(t,r){return r?function sI(t,r){if(null!=t){if(eW(t))return function iI(t,r){return ra(t).pipe(HC(r),zC(r))}(t,r);if(Wy(t))return function xg(t,r){return new ln(l=>{let e=0;return r.schedule(function(){e===t.length?l.complete():(l.next(t[e++]),l.closed||this.schedule())})})}(t,r);if(KE(t))return function rI(t,r){return ra(t).pipe(HC(r),zC(r))}(t,r);if(VC(t))return oI(t,r);if(QE(t))return function aI(t,r){return new ln(l=>{let e;return Ss(l,r,()=>{e=t[BC](),Ss(l,r,()=>{let s,u;try{({value:s,done:u}=e.next())}catch(m){return void l.error(m)}u?l.complete():l.next(s)},0,!0)}),()=>Fn(null==e?void 0:e.return)&&e.return()})}(t,r);if(eI(t))return function o3(t,r){return oI(JE(t),r)}(t,r)}throw t3(t)}(t,r):ra(t)}function tt(...t){return nr(t,Uy(t))}function Gi(t,r,l=1/0){return Fn(r)?Gi((e,s)=>Ee((u,m)=>r(e,u,s,m))(ra(t(e,s))),l):("number"==typeof r&&(l=r),Ae((e,s)=>function rW(t,r,l,e,s,u,m,b){const C=[];let M=0,I=0,F=!1;const H=()=>{F&&!C.length&&!M&&r.complete()},q=ne=>M{u&&r.next(ne),M++;let ae=!1;ra(l(ne,I++)).subscribe(Bn(r,ge=>{null==s||s(ge),u?q(ge):r.next(ge)},()=>{ae=!0},void 0,()=>{if(ae)try{for(M--;C.length&&MQ(ge)):Q(ge)}H()}catch(ge){r.error(ge)}}))};return t.subscribe(Bn(r,q,()=>{F=!0,H()})),()=>{null==b||b()}}(e,s,t,l)))}function Cg(t,r){return Fn(r)?Gi(t,r,1):Gi(t,1)}function bn(t,r){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>t.call(r,u,s++)&&e.next(u)))})}function Hf(t){return Ae((r,l)=>{try{r.subscribe(l)}finally{l.add(t)}})}function Li(t,r){return Ae((l,e)=>{let s=null,u=0,m=!1;const b=()=>m&&!s&&e.complete();l.subscribe(Bn(e,C=>{null==s||s.unsubscribe();let M=0;const I=u++;ra(t(C,I)).subscribe(s=Bn(e,F=>e.next(r?r(C,F,I,M++):F),()=>{s=null,b()}))},()=>{m=!0,b()}))})}class UC{}class $y{}class Xo{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?"string"==typeof r?this.lazyInit=()=>{this.headers=new Map,r.split("\n").forEach(l=>{const e=l.indexOf(":");if(e>0){const s=l.slice(0,e),u=s.toLowerCase(),m=l.slice(e+1).trim();this.maybeSetNormalizedName(s,u),this.headers.has(u)?this.headers.get(u).push(m):this.headers.set(u,[m])}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((l,e)=>{this.setHeaderEntries(e,l)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([l,e])=>{this.setHeaderEntries(l,e)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();const l=this.headers.get(r.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,l){return this.clone({name:r,value:l,op:"a"})}set(r,l){return this.clone({name:r,value:l,op:"s"})}delete(r,l){return this.clone({name:r,value:l,op:"d"})}maybeSetNormalizedName(r,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,r)}init(){this.lazyInit&&(this.lazyInit instanceof Xo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(l=>{this.headers.set(l,r.headers.get(l)),this.normalizedNames.set(l,r.normalizedNames.get(l))})}clone(r){const l=new Xo;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof Xo?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([r]),l}applyUpdate(r){const l=r.name.toLowerCase();switch(r.op){case"a":case"s":let e=r.value;if("string"==typeof e&&(e=[e]),0===e.length)return;this.maybeSetNormalizedName(r.name,l);const s=("a"===r.op?this.headers.get(l):void 0)||[];s.push(...e),this.headers.set(l,s);break;case"d":const u=r.value;if(u){let m=this.headers.get(l);if(!m)return;m=m.filter(b=>-1===u.indexOf(b)),0===m.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,m)}else this.headers.delete(l),this.normalizedNames.delete(l)}}setHeaderEntries(r,l){const e=(Array.isArray(l)?l:[l]).map(u=>u.toString()),s=r.toLowerCase();this.headers.set(s,e),this.maybeSetNormalizedName(r,s)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>r(this.normalizedNames.get(l),this.headers.get(l)))}}class aW{encodeKey(r){return s3(r)}encodeValue(r){return s3(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const sW=/%(\d[a-f0-9])/gi,lW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s3(t){return encodeURIComponent(t).replace(sW,(r,l)=>lW[l]??r)}function jC(t){return`${t}`}class cl{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new aW,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oW(t,r){const l=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const u=s.indexOf("="),[m,b]=-1==u?[r.decodeKey(s),""]:[r.decodeKey(s.slice(0,u)),r.decodeValue(s.slice(u+1))],C=l.get(m)||[];C.push(b),l.set(m,C)}),l}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(l=>{const e=r.fromObject[l],s=Array.isArray(e)?e.map(jC):[jC(e)];this.map.set(l,s)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();const l=this.map.get(r);return l?l[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,l){return this.clone({param:r,value:l,op:"a"})}appendAll(r){const l=[];return Object.keys(r).forEach(e=>{const s=r[e];Array.isArray(s)?s.forEach(u=>{l.push({param:e,value:u,op:"a"})}):l.push({param:e,value:s,op:"a"})}),this.clone(l)}set(r,l){return this.clone({param:r,value:l,op:"s"})}delete(r,l){return this.clone({param:r,value:l,op:"d"})}toString(){return this.init(),this.keys().map(r=>{const l=this.encoder.encodeKey(r);return this.map.get(r).map(e=>l+"="+this.encoder.encodeValue(e)).join("&")}).filter(r=>""!==r).join("&")}clone(r){const l=new cl({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(r),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":const l=("a"===r.op?this.map.get(r.param):void 0)||[];l.push(jC(r.value)),this.map.set(r.param,l);break;case"d":if(void 0===r.value){this.map.delete(r.param);break}{let e=this.map.get(r.param)||[];const s=e.indexOf(jC(r.value));-1!==s&&e.splice(s,1),e.length>0?this.map.set(r.param,e):this.map.delete(r.param)}}}),this.cloneFrom=this.updates=null)}}class cW{constructor(){this.map=new Map}set(r,l){return this.map.set(r,l),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}}function l3(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c3(t){return typeof Blob<"u"&&t instanceof Blob}function d3(t){return typeof FormData<"u"&&t instanceof FormData}class Yy{constructor(r,l,e,s){let u;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function dW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==e?e:null,u=s):u=e,u&&(this.reportProgress=!!u.reportProgress,this.withCredentials=!!u.withCredentials,u.responseType&&(this.responseType=u.responseType),u.headers&&(this.headers=u.headers),u.context&&(this.context=u.context),u.params&&(this.params=u.params),this.transferCache=u.transferCache),this.headers||(this.headers=new Xo),this.context||(this.context=new cW),this.params){const m=this.params.toString();if(0===m.length)this.urlWithParams=l;else{const b=l.indexOf("?");this.urlWithParams=l+(-1===b?"?":bF.set(H,r.setHeaders[H]),C)),r.setParams&&(M=Object.keys(r.setParams).reduce((F,H)=>F.set(H,r.setParams[H]),M)),new Yy(l,e,u,{params:M,headers:C,context:I,reportProgress:b,responseType:s,withCredentials:m})}}var Iu=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Iu||{});class lI{constructor(r,l=200,e="OK"){this.headers=r.headers||new Xo,this.status=void 0!==r.status?r.status:l,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}}class GC extends lI{constructor(r={}){super(r),this.type=Iu.ResponseHeader}clone(r={}){return new GC({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class Uf extends lI{constructor(r={}){super(r),this.type=Iu.Response,this.body=void 0!==r.body?r.body:null}clone(r={}){return new Uf({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class Sg extends lI{constructor(r){super(r,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${r.url||"(unknown url)"}`:`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}}function cI(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let WC=(()=>{var t;class r{constructor(e){this.handler=e}request(e,s,u={}){let m;if(e instanceof Yy)m=e;else{let M,I;M=u.headers instanceof Xo?u.headers:new Xo(u.headers),u.params&&(I=u.params instanceof cl?u.params:new cl({fromObject:u.params})),m=new Yy(e,s,void 0!==u.body?u.body:null,{headers:M,context:u.context,params:I,reportProgress:u.reportProgress,responseType:u.responseType||"json",withCredentials:u.withCredentials,transferCache:u.transferCache})}const b=tt(m).pipe(Cg(M=>this.handler.handle(M)));if(e instanceof Yy||"events"===u.observe)return b;const C=b.pipe(bn(M=>M instanceof Uf));switch(u.observe||"body"){case"body":switch(m.responseType){case"arraybuffer":return C.pipe(Ee(M=>{if(null!==M.body&&!(M.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return M.body}));case"blob":return C.pipe(Ee(M=>{if(null!==M.body&&!(M.body instanceof Blob))throw new Error("Response is not a Blob.");return M.body}));case"text":return C.pipe(Ee(M=>{if(null!==M.body&&"string"!=typeof M.body)throw new Error("Response is not a string.");return M.body}));default:return C.pipe(Ee(M=>M.body))}case"response":return C;default:throw new Error(`Unreachable: unhandled observe type ${u.observe}}`)}}delete(e,s={}){return this.request("DELETE",e,s)}get(e,s={}){return this.request("GET",e,s)}head(e,s={}){return this.request("HEAD",e,s)}jsonp(e,s){return this.request("JSONP",e,{params:(new cl).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,s={}){return this.request("OPTIONS",e,s)}patch(e,s,u={}){return this.request("PATCH",e,cI(u,s))}post(e,s,u={}){return this.request("POST",e,cI(u,s))}put(e,s,u={}){return this.request("PUT",e,cI(u,s))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(UC))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function YC(t,r){return r(t)}function pW(t,r){return(l,e)=>r.intercept(l,{handle:s=>t(s,e)})}const gW=new ve(""),qy=new ve(""),p3=new ve(""),m3=new ve("");function vW(){let t=null;return(r,l)=>{null===t&&(t=(De(gW,{optional:!0})??[]).reduceRight(pW,YC));const e=De(Df),s=e.add();return t(r,l).pipe(Hf(()=>e.remove(s)))}}let g3=(()=>{var t;class r extends UC{constructor(e,s){super(),this.backend=e,this.injector=s,this.chain=null,this.pendingTasks=De(Df);const u=De(m3,{optional:!0});this.backend=u??e}handle(e){if(null===this.chain){const u=Array.from(new Set([...this.injector.get(qy),...this.injector.get(p3,[])]));this.chain=u.reduceRight((m,b)=>function mW(t,r,l){return(e,s)=>jd(l,()=>r(e,u=>t(u,s)))}(m,b,this.injector),YC)}const s=this.pendingTasks.add();return this.chain(e,u=>this.backend.handle(u)).pipe(Hf(()=>this.pendingTasks.remove(s)))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe($y),fe(bo))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const jf=/^\)\]\}',?\n/;let Gf=(()=>{var t;class r{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new be(-2800,!1);const s=this.xhrFactory;return(s.\u0275loadImpl?nr(s.\u0275loadImpl()):tt(null)).pipe(Li(()=>new ln(m=>{const b=s.build();if(b.open(e.method,e.urlWithParams),e.withCredentials&&(b.withCredentials=!0),e.headers.forEach((ae,ge)=>b.setRequestHeader(ae,ge.join(","))),e.headers.has("Accept")||b.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const ae=e.detectContentTypeHeader();null!==ae&&b.setRequestHeader("Content-Type",ae)}if(e.responseType){const ae=e.responseType.toLowerCase();b.responseType="json"!==ae?ae:"text"}const C=e.serializeBody();let M=null;const I=()=>{if(null!==M)return M;const ae=b.statusText||"OK",ge=new Xo(b.getAllResponseHeaders()),se=function uI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(b)||e.url;return M=new GC({headers:ge,status:b.status,statusText:ae,url:se}),M},F=()=>{let{headers:ae,status:ge,statusText:se,url:Be}=I(),Fe=null;204!==ge&&(Fe=typeof b.response>"u"?b.responseText:b.response),0===ge&&(ge=Fe?200:0);let Ft=ge>=200&&ge<300;if("json"===e.responseType&&"string"==typeof Fe){const Sn=Fe;Fe=Fe.replace(jf,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(ai){Fe=Sn,Ft&&(Ft=!1,Fe={error:ai,text:Fe})}}Ft?(m.next(new Uf({body:Fe,headers:ae,status:ge,statusText:se,url:Be||void 0})),m.complete()):m.error(new Sg({error:Fe,headers:ae,status:ge,statusText:se,url:Be||void 0}))},H=ae=>{const{url:ge}=I(),se=new Sg({error:ae,status:b.status||0,statusText:b.statusText||"Unknown Error",url:ge||void 0});m.error(se)};let q=!1;const Q=ae=>{q||(m.next(I()),q=!0);let ge={type:Iu.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(ge.total=ae.total),"text"===e.responseType&&b.responseText&&(ge.partialText=b.responseText),m.next(ge)},ne=ae=>{let ge={type:Iu.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(ge.total=ae.total),m.next(ge)};return b.addEventListener("load",F),b.addEventListener("error",H),b.addEventListener("timeout",H),b.addEventListener("abort",H),e.reportProgress&&(b.addEventListener("progress",Q),null!==C&&b.upload&&b.upload.addEventListener("progress",ne)),b.send(C),m.next({type:Iu.Sent}),()=>{b.removeEventListener("error",H),b.removeEventListener("abort",H),b.removeEventListener("load",F),b.removeEventListener("timeout",H),e.reportProgress&&(b.removeEventListener("progress",Q),null!==C&&b.upload&&b.upload.removeEventListener("progress",ne)),b.readyState!==b.DONE&&b.abort()}})))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(wE))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const Zy=new ve("XSRF_ENABLED"),hI=new ve("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),w3=new ve("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class fI{}let xW=(()=>{var t;class r{constructor(e,s,u){this.doc=e,this.platform=s,this.cookieName=u,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=cE(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Vc),fe(hI))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function CW(t,r){const l=t.url.toLowerCase();if(!De(Zy)||"GET"===t.method||"HEAD"===t.method||l.startsWith("http://")||l.startsWith("https://"))return r(t);const e=De(fI).getToken(),s=De(w3);return null!=e&&!t.headers.has(s)&&(t=t.clone({headers:t.headers.set(s,e)})),r(t)}var ku=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ku||{});function Wf(t,r){return{\u0275kind:t,\u0275providers:r}}function SW(...t){const r=[WC,Gf,g3,{provide:UC,useExisting:g3},{provide:$y,useExisting:Gf},{provide:qy,useValue:CW,multi:!0},{provide:Zy,useValue:!0},{provide:fI,useClass:xW}];for(const l of t)r.push(...l.\u0275providers);return function Up(t){return{\u0275providers:t}}(r)}const x3=new ve("LEGACY_INTERCEPTOR_FN");let AW=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[SW(Wf(ku.LegacyInterceptors,[{provide:x3,useFactory:vW},{provide:qy,useExisting:x3,multi:!0}]))]}),r})();function _I(t){return!!t&&(t instanceof ln||Fn(t.lift)&&Fn(t.subscribe))}const{isArray:yI}=Array,{getPrototypeOf:$f,prototype:EW,keys:R3}=Object;function bI(t){if(1===t.length){const r=t[0];if(yI(r))return{args:r,keys:null};if(function O3(t){return t&&"object"==typeof t&&$f(t)===EW}(r)){const l=R3(r);return{args:l.map(e=>r[e]),keys:l}}}return{args:t,keys:null}}const{isArray:wI}=Array;function Ky(t){return Ee(r=>function ud(t,r){return wI(r)?t(...r):t(r)}(t,r))}function xI(t,r){return t.reduce((l,e,s)=>(l[e]=r[s],l),{})}function Pu(...t){const r=Uy(t),l=BE(t),{args:e,keys:s}=bI(t);if(0===e.length)return nr([],r);const u=new ln(function CI(t,r,l=ki){return e=>{L3(r,()=>{const{length:s}=t,u=new Array(s);let m=s,b=s;for(let C=0;C{const M=nr(t[C],r);let I=!1;M.subscribe(Bn(e,F=>{u[C]=F,I||(I=!0,b--),b||e.next(l(u.slice()))},()=>{--m||e.complete()}))},e)},e)}}(e,r,s?m=>xI(s,m):ki));return l?u.pipe(Ky(l)):u}function L3(t,r,l){t?Ss(l,t,r):r()}const Tg=$b(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Mg(t=1/0){return Gi(ki,t)}function Yf(...t){return function F3(){return Mg(1)}()(nr(t,Uy(t)))}function Ag(t){return new ln(r=>{ra(t()).subscribe(r)})}function Eg(t,r){const l=Fn(t)?t:()=>t,e=s=>s.error(l());return new ln(r?s=>r.schedule(e,0,s):e)}const Ao=new ln(t=>t.complete());function XC(){return Ae((t,r)=>{let l=null;t._refCount++;const e=Bn(r,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(l=null);const s=t._connection,u=l;l=null,s&&(!u||s===u)&&s.unsubscribe(),r.unsubscribe()});t.subscribe(e),e.closed||(l=t.connect())})}class SI extends ln{constructor(r,l){super(),this.source=r,this.subjectFactory=l,this._subject=null,this._refCount=0,this._connection=null,Xe(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,null==r||r.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new bt;const l=this.getSubject();r.add(this.source.subscribe(Bn(l,void 0,()=>{this._teardown(),l.complete()},e=>{this._teardown(),l.error(e)},()=>this._teardown()))),r.closed&&(this._connection=null,r=bt.EMPTY)}return r}refCount(){return XC()(this)}}function In(t){return t<=0?()=>Ao:Ae((r,l)=>{let e=0;r.subscribe(Bn(l,s=>{++e<=t&&(l.next(s),t<=e&&l.complete())}))})}function pr(...t){const r=Uy(t);return Ae((l,e)=>{(r?Yf(t,l,r):Yf(t,l)).subscribe(e)})}function qf(t){return Ae((r,l)=>{let e=!1;r.subscribe(Bn(l,s=>{e=!0,l.next(s)},()=>{e||l.next(t),l.complete()}))})}function DI(t=TI){return Ae((r,l)=>{let e=!1;r.subscribe(Bn(l,s=>{e=!0,l.next(s)},()=>e?l.complete():l.error(t())))})}function TI(){return new Tg}function Ru(t,r){const l=arguments.length>=2;return e=>e.pipe(t?bn((s,u)=>t(s,u,e)):ki,In(1),l?qf(r):DI(()=>new Tg))}function Fi(t,r,l){const e=Fn(t)||r||l?{next:t,error:r,complete:l}:t;return e?Ae((s,u)=>{var m;null===(m=e.subscribe)||void 0===m||m.call(e);let b=!0;s.subscribe(Bn(u,C=>{var M;null===(M=e.next)||void 0===M||M.call(e,C),u.next(C)},()=>{var C;b=!1,null===(C=e.complete)||void 0===C||C.call(e),u.complete()},C=>{var M;b=!1,null===(M=e.error)||void 0===M||M.call(e,C),u.error(C)},()=>{var C,M;b&&(null===(C=e.unsubscribe)||void 0===C||C.call(e)),null===(M=e.finalize)||void 0===M||M.call(e)}))}):ki}function Eo(t){return Ae((r,l)=>{let u,e=null,s=!1;e=r.subscribe(Bn(l,void 0,void 0,m=>{u=ra(t(m,Eo(t)(r))),e?(e.unsubscribe(),e=null,u.subscribe(l)):s=!0})),s&&(e.unsubscribe(),e=null,u.subscribe(l))})}function AI(t){return t<=0?()=>Ao:Ae((r,l)=>{let e=[];r.subscribe(Bn(l,s=>{e.push(s),t{for(const s of e)l.next(s);l.complete()},void 0,()=>{e=null}))})}function B3(t){return Ee(()=>t)}function Dt(t){return Ae((r,l)=>{ra(t).subscribe(Bn(l,()=>l.complete(),qb)),!l.closed&&r.subscribe(l)})}const sn="primary",Qy=Symbol("RouteTitle");class PW{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const l=this.params[r];return Array.isArray(l)?l[0]:l}return null}getAll(r){if(this.has(r)){const l=this.params[r];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Ig(t){return new PW(t)}function z3(t,r,l){const e=l.path.split("/");if(e.length>t.length||"full"===l.pathMatch&&(r.hasChildren()||e.lengthe[u]===s)}return t===r}function hd(t){return _I(t)?t:Ym(t)?nr(Promise.resolve(t)):tt(t)}const OW={exact:function G3(t,r,l){if(!Xf(t.segments,r.segments)||!KC(t.segments,r.segments,l)||t.numberOfChildren!==r.numberOfChildren)return!1;for(const e in r.children)if(!t.children[e]||!G3(t.children[e],r.children[e],l))return!1;return!0},subset:W3},U3={exact:function LW(t,r){return pc(t,r)},subset:function FW(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(l=>H3(t[l],r[l]))},ignored:()=>!0};function j3(t,r,l){return OW[l.paths](t.root,r.root,l.matrixParams)&&U3[l.queryParams](t.queryParams,r.queryParams)&&!("exact"===l.fragment&&t.fragment!==r.fragment)}function W3(t,r,l){return $3(t,r,r.segments,l)}function $3(t,r,l,e){if(t.segments.length>l.length){const s=t.segments.slice(0,l.length);return!(!Xf(s,l)||r.hasChildren()||!KC(s,l,e))}if(t.segments.length===l.length){if(!Xf(t.segments,l)||!KC(t.segments,l,e))return!1;for(const s in r.children)if(!t.children[s]||!W3(t.children[s],r.children[s],e))return!1;return!0}{const s=l.slice(0,t.segments.length),u=l.slice(t.segments.length);return!!(Xf(t.segments,s)&&KC(t.segments,s,e)&&t.children[sn])&&$3(t.children[sn],r,u,e)}}function KC(t,r,l){return r.every((e,s)=>U3[l](t[s].parameters,e.parameters))}class Zf{constructor(r=new ci([],{}),l={},e=null){this.root=r,this.queryParams=l,this.fragment=e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ig(this.queryParams)),this._queryParamMap}toString(){return BW.serialize(this)}}class ci{constructor(r,l){this.segments=r,this.children=l,this.parent=null,Object.values(l).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return QC(this)}}class Jy{constructor(r,l){this.path=r,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Ig(this.parameters)),this._parameterMap}toString(){return Z3(this)}}function Xf(t,r){return t.length===r.length&&t.every((l,e)=>l.path===r[e].path)}let kg=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>new eb,providedIn:"root"}),r})();class eb{parse(r){const l=new $W(r);return new Zf(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(r){const l=`/${tb(r.root,!0)}`,e=function HW(t){const r=Object.entries(t).map(([l,e])=>Array.isArray(e)?e.map(s=>`${JC(l)}=${JC(s)}`).join("&"):`${JC(l)}=${JC(e)}`).filter(l=>l);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${l}${e}${"string"==typeof r.fragment?`#${function Ou(t){return encodeURI(t)}(r.fragment)}`:""}`}}const BW=new eb;function QC(t){return t.segments.map(r=>Z3(r)).join("/")}function tb(t,r){if(!t.hasChildren())return QC(t);if(r){const l=t.children[sn]?tb(t.children[sn],!1):"",e=[];return Object.entries(t.children).forEach(([s,u])=>{s!==sn&&e.push(`${s}:${tb(u,!1)}`)}),e.length>0?`${l}(${e.join("//")})`:l}{const l=function VW(t,r){let l=[];return Object.entries(t.children).forEach(([e,s])=>{e===sn&&(l=l.concat(r(s,e)))}),Object.entries(t.children).forEach(([e,s])=>{e!==sn&&(l=l.concat(r(s,e)))}),l}(t,(e,s)=>s===sn?[tb(t.children[sn],!1)]:[`${s}:${tb(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[sn]?`${QC(t)}/${l[0]}`:`${QC(t)}/(${l.join("//")})`}}function Y3(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function JC(t){return Y3(t).replace(/%3B/gi,";")}function Pg(t){return Y3(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dl(t){return decodeURIComponent(t)}function q3(t){return dl(t.replace(/\+/g,"%20"))}function Z3(t){return`${Pg(t.path)}${function zW(t){return Object.entries(t).map(([r,l])=>`;${Pg(r)}=${Pg(l)}`).join("")}(t.parameters)}`}const X3=/^[^\/()?;#]+/;function e1(t){const r=t.match(X3);return r?r[0]:""}const UW=/^[^\/()?;=#]+/,GW=/^[^=?&#]+/,K3=/^[^&#]+/;class $W{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ci([],{}):new ci([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(r.length>0||Object.keys(l).length>0)&&(e[sn]=new ci(r,l)),e}parseSegment(){const r=e1(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new be(4009,!1);return this.capture(r),new Jy(dl(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const l=function jW(t){const r=t.match(UW);return r?r[0]:""}(this.remaining);if(!l)return;this.capture(l);let e="";if(this.consumeOptional("=")){const s=e1(this.remaining);s&&(e=s,this.capture(e))}r[dl(l)]=dl(e)}parseQueryParam(r){const l=function WW(t){const r=t.match(GW);return r?r[0]:""}(this.remaining);if(!l)return;this.capture(l);let e="";if(this.consumeOptional("=")){const m=function Q3(t){const r=t.match(K3);return r?r[0]:""}(this.remaining);m&&(e=m,this.capture(e))}const s=q3(l),u=q3(e);if(r.hasOwnProperty(s)){let m=r[s];Array.isArray(m)||(m=[m],r[s]=m),m.push(u)}else r[s]=u}parseParens(r){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const e=e1(this.remaining),s=this.remaining[e.length];if("/"!==s&&")"!==s&&";"!==s)throw new be(4010,!1);let u;e.indexOf(":")>-1?(u=e.slice(0,e.indexOf(":")),this.capture(u),this.capture(":")):r&&(u=sn);const m=this.parseChildren();l[u]=1===Object.keys(m).length?m[sn]:new ci([],m),this.consumeOptional("//")}return l}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new be(4011,!1)}}function J3(t){return t.segments.length>0?new ci([],{[sn]:t}):t}function Rg(t){const r={};for(const[e,s]of Object.entries(t.children)){const u=Rg(s);if(e===sn&&0===u.segments.length&&u.hasChildren())for(const[m,b]of Object.entries(u.children))r[m]=b;else(u.segments.length>0||u.hasChildren())&&(r[e]=u)}return function YW(t){if(1===t.numberOfChildren&&t.children[sn]){const r=t.children[sn];return new ci(t.segments.concat(r.segments),r.children)}return t}(new ci(t.segments,r))}function Kf(t){return t instanceof Zf}function eB(t){let r;const s=J3(function l(u){const m={};for(const C of u.children){const M=l(C);m[C.outlet]=M}const b=new ci(u.url,m);return u===t&&(r=b),b}(t.root));return r??s}function tB(t,r,l,e){let s=t;for(;s.parent;)s=s.parent;if(0===r.length)return II(s,s,s,l,e);const u=function ZW(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iB(!0,0,t);let r=0,l=!1;const e=t.reduce((s,u,m)=>{if("object"==typeof u&&null!=u){if(u.outlets){const b={};return Object.entries(u.outlets).forEach(([C,M])=>{b[C]="string"==typeof M?M.split("/"):M}),[...s,{outlets:b}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===m?(u.split("/").forEach((b,C)=>{0==C&&"."===b||(0==C&&""===b?l=!0:".."===b?r++:""!=b&&s.push(b))}),s):[...s,u]},[]);return new iB(l,r,e)}(r);if(u.toRoot())return II(s,s,new ci([],{}),l,e);const m=function rB(t,r,l){if(t.isAbsolute)return new Og(r,!0,0);if(!l)return new Og(r,!1,NaN);if(null===l.parent)return new Og(l,!0,0);const e=t1(t.commands[0])?0:1;return function kI(t,r,l){let e=t,s=r,u=l;for(;u>s;){if(u-=s,e=e.parent,!e)throw new be(4005,!1);s=e.segments.length}return new Og(e,!1,s-u)}(l,l.segments.length-1+e,t.numberOfDoubleDots)}(u,s,t),b=m.processChildren?Qf(m.segmentGroup,m.index,u.commands):aB(m.segmentGroup,m.index,u.commands);return II(s,m.segmentGroup,b,l,e)}function t1(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nb(t){return"object"==typeof t&&null!=t&&t.outlets}function II(t,r,l,e,s){let m,u={};e&&Object.entries(e).forEach(([C,M])=>{u[C]=Array.isArray(M)?M.map(I=>`${I}`):`${M}`}),m=t===r?l:nB(t,r,l);const b=J3(Rg(m));return new Zf(b,u,s)}function nB(t,r,l){const e={};return Object.entries(t.children).forEach(([s,u])=>{e[s]=u===r?l:nB(u,r,l)}),new ci(t.segments,e)}class iB{constructor(r,l,e){if(this.isAbsolute=r,this.numberOfDoubleDots=l,this.commands=e,r&&e.length>0&&t1(e[0]))throw new be(4003,!1);const s=e.find(nb);if(s&&s!==e.at(-1))throw new be(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Og{constructor(r,l,e){this.segmentGroup=r,this.processChildren=l,this.index=e}}function aB(t,r,l){if(t||(t=new ci([],{})),0===t.segments.length&&t.hasChildren())return Qf(t,r,l);const e=function oB(t,r,l){let e=0,s=r;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=l.length)return u;const m=t.segments[s],b=l[e];if(nb(b))break;const C=`${b}`,M=e0&&void 0===C)break;if(C&&M&&"object"==typeof M&&void 0===M.outlets){if(!sB(C,M,m))return u;e+=2}else{if(!sB(C,{},m))return u;e++}s++}return{match:!0,pathIndex:s,commandIndex:e}}(t,r,l),s=l.slice(e.commandIndex);if(e.match&&e.pathIndexu!==sn)&&t.children[sn]&&1===t.numberOfChildren&&0===t.children[sn].segments.length){const u=Qf(t.children[sn],r,l);return new ci(t.segments,u.children)}return Object.entries(e).forEach(([u,m])=>{"string"==typeof m&&(m=[m]),null!==m&&(s[u]=aB(t.children[u],r,m))}),Object.entries(t.children).forEach(([u,m])=>{void 0===e[u]&&(s[u]=m)}),new ci(t.segments,s)}}function ib(t,r,l){const e=t.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[l]=ib(new ci([],{}),0,e))}),r}function PI(t){const r={};return Object.entries(t).forEach(([l,e])=>r[l]=`${e}`),r}function sB(t,r,l){return t==l.path&&pc(r,l.parameters)}const rb="imperative";class mc{constructor(r,l){this.id=r,this.url=l}}class n1 extends mc{constructor(r,l,e="imperative",s=null){super(r,l),this.type=0,this.navigationTrigger=e,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fd extends mc{constructor(r,l,e){super(r,l),this.urlAfterRedirects=e,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lg extends mc{constructor(r,l,e,s){super(r,l),this.reason=e,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fg extends mc{constructor(r,l,e,s){super(r,l),this.reason=e,this.code=s,this.type=16}}class r1 extends mc{constructor(r,l,e,s){super(r,l),this.error=e,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lB extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QW extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cB extends mc{constructor(r,l,e,s,u){super(r,l),this.urlAfterRedirects=e,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JW extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class e9 extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class t9{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class dB{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class n9{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class i9{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class r9{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a9{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uB{constructor(r,l,e){this.routerEvent=r,this.position=l,this.anchor=e,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class RI{}class OI{constructor(r){this.url=r}}class hB{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ab,this.attachRef=null}}let ab=(()=>{var t;class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,s){const u=this.getOrCreateContext(e);u.outlet=s,this.contexts.set(e,u)}onChildOutletDestroyed(e){const s=this.getContext(e);s&&(s.outlet=null,s.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let s=this.getContext(e);return s||(s=new hB,this.contexts.set(e,s)),s}getContext(e){return this.contexts.get(e)||null}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class LI{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const l=this.pathFromRoot(r);return l.length>1?l[l.length-2]:null}children(r){const l=FI(r,this._root);return l?l.children.map(e=>e.value):[]}firstChild(r){const l=FI(r,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(r){const l=NI(r,this._root);return l.length<2?[]:l[l.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return NI(r,this._root).map(l=>l.value)}}function FI(t,r){if(t===r.value)return r;for(const l of r.children){const e=FI(t,l);if(e)return e}return null}function NI(t,r){if(t===r.value)return[r];for(const l of r.children){const e=NI(t,l);if(e.length)return e.unshift(r),e}return[]}class ul{constructor(r,l){this.value=r,this.children=l}toString(){return`TreeNode(${this.value})`}}function Ng(t){const r={};return t&&t.children.forEach(l=>r[l.value.outlet]=l),r}class fB extends LI{constructor(r,l){super(r),this.snapshot=l,zI(this,r)}toString(){return this.snapshot.toString()}}function pB(t){const r=function o9(t){const u=new BI([],{},{},"",{},sn,t,null,{});return new mB("",new ul(u,[]))}(t),l=new ye([new Jy("",{})]),e=new ye({}),s=new ye({}),u=new ye({}),m=new ye(""),b=new Wn(l,e,u,m,s,sn,t,r.root);return b.snapshot=r.root,new fB(new ul(b,[]),r)}class Wn{constructor(r,l,e,s,u,m,b,C){var M;this.urlSubject=r,this.paramsSubject=l,this.queryParamsSubject=e,this.fragmentSubject=s,this.dataSubject=u,this.outlet=m,this.component=b,this._futureSnapshot=C,this.title=(null==(M=this.dataSubject)?void 0:M.pipe(Ee(I=>I[Qy])))??tt(void 0),this.url=r,this.params=l,this.queryParams=e,this.fragment=s,this.data=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ee(r=>Ig(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ee(r=>Ig(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function VI(t,r,l="emptyOnly"){var u;let e;const{routeConfig:s}=t;return e=null===r||"always"!==l&&""!==(null==s?void 0:s.path)&&(r.component||null!=(u=r.routeConfig)&&u.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...r.params,...t.params},data:{...r.data,...t.data},resolve:{...t.data,...r.data,...null==s?void 0:s.data,...t._resolvedData}},s&&ob(s)&&(e.resolve[Qy]=s.title),e}class BI{get title(){var r;return null==(r=this.data)?void 0:r[Qy]}constructor(r,l,e,s,u,m,b,C,M){this.url=r,this.params=l,this.queryParams=e,this.fragment=s,this.data=u,this.outlet=m,this.component=b,this.routeConfig=C,this._resolve=M}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ig(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ig(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mB extends LI{constructor(r,l){super(l),this.url=r,zI(this,l)}toString(){return HI(this._root)}}function zI(t,r){r.value._routerState=t,r.children.forEach(l=>zI(t,l))}function HI(t){const r=t.children.length>0?` { ${t.children.map(HI).join(", ")} } `:"";return`${t.value}${r}`}function UI(t){if(t.snapshot){const r=t.snapshot,l=t._futureSnapshot;t.snapshot=l,pc(r.queryParams,l.queryParams)||t.queryParamsSubject.next(l.queryParams),r.fragment!==l.fragment&&t.fragmentSubject.next(l.fragment),pc(r.params,l.params)||t.paramsSubject.next(l.params),function RW(t,r){if(t.length!==r.length)return!1;for(let l=0;lpc(l.parameters,r[e].parameters))}(t.url,r.url);return l&&!(!t.parent!=!r.parent)&&(!t.parent||jI(t.parent,r.parent))}function ob(t){return"string"==typeof t.title||null===t.title}let GI=(()=>{var t;class r{constructor(){this.activated=null,this._activatedRoute=null,this.name=sn,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=De(ab),this.location=De(fi),this.changeDetector=De(dn),this.environmentInjector=De(bo),this.inputBinder=De(a1,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:s,previousValue:u}=e.name;if(s)return;this.isTrackedInParentContexts(u)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(u)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null==(e=this.inputBinder)||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var s;return(null==(s=this.parentContexts.getContext(e))?void 0:s.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);null!=e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new be(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new be(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new be(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,s){var u;this.activated=e,this._activatedRoute=s,this.location.insert(e.hostView),null==(u=this.inputBinder)||u.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,s){var I;if(this.isActivated)throw new be(4013,!1);this._activatedRoute=e;const u=this.location,b=e.snapshot.component,C=this.parentContexts.getOrCreateContext(this.name).children,M=new s9(e,C,u.injector);this.activated=u.createComponent(b,{index:u.length,injector:M,environmentInjector:s??this.environmentInjector}),this.changeDetector.markForCheck(),null==(I=this.inputBinder)||I.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nn]}),r})();class s9{constructor(r,l,e){this.route=r,this.childContexts=l,this.parent=e}get(r,l){return r===Wn?this.route:r===ab?this.childContexts:this.parent.get(r,l)}}const a1=new ve("");let gB=(()=>{var t;class r{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var s;null==(s=this.outletDataSubscriptions.get(e))||s.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:s}=e,u=Pu([s.queryParams,s.params,s.data]).pipe(Li(([m,b,C],M)=>(C={...m,...b,...C},0===M?tt(C):Promise.resolve(C)))).subscribe(m=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==s||null===s.component)return void this.unsubscribeFromRouteData(e);const b=function WG(t){const r=hn(t);if(!r)return null;const l=new xm(r);return{get selector(){return l.selector},get type(){return l.componentType},get inputs(){return l.inputs},get outputs(){return l.outputs},get ngContentSelectors(){return l.ngContentSelectors},get isStandalone(){return r.standalone},get isSignal(){return r.signals}}}(s.component);if(b)for(const{templateName:C}of b.inputs)e.activatedComponentRef.setInput(C,m[C]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,u)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function sb(t,r,l){if(l&&t.shouldReuseRoute(r.value,l.value.snapshot)){const e=l.value;e._futureSnapshot=r.value;const s=function c9(t,r,l){return r.children.map(e=>{for(const s of l.children)if(t.shouldReuseRoute(e.value,s.value.snapshot))return sb(t,e,s);return sb(t,e)})}(t,r,l);return new ul(e,s)}{if(t.shouldAttach(r.value)){const u=t.retrieve(r.value);if(null!==u){const m=u.route;return m.value._futureSnapshot=r.value,m.children=r.children.map(b=>sb(t,b)),m}}const e=function d9(t){return new Wn(new ye(t.url),new ye(t.params),new ye(t.queryParams),new ye(t.fragment),new ye(t.data),t.outlet,t.component,t)}(r.value),s=r.children.map(u=>sb(t,u));return new ul(e,s)}}const o1="ngNavigationCancelingError";function vB(t,r){const{redirectTo:l,navigationBehaviorOptions:e}=Kf(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,s=_B(!1,0,r);return s.url=l,s.navigationBehaviorOptions=e,s}function _B(t,r,l){const e=new Error("NavigationCancelingError: "+(t||""));return e[o1]=!0,e.cancellationCode=r,l&&(e.url=l),e}function yB(t){return t&&t[o1]}let bB=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["ng-component"]],standalone:!0,features:[wf],decls:1,vars:0,template:function(e,s){1&e&&pe(0,"router-outlet")},dependencies:[GI],encapsulation:2}),r})();function WI(t){const r=t.children&&t.children.map(WI),l=r?{...t,children:r}:{...t};return!l.component&&!l.loadComponent&&(r||l.loadChildren)&&l.outlet&&l.outlet!==sn&&(l.component=bB),l}function hl(t){return t.outlet||sn}function Vg(t){var r;if(!t)return null;if(null!=(r=t.routeConfig)&&r._injector)return t.routeConfig._injector;for(let l=t.parent;l;l=l.parent){const e=l.routeConfig;if(null!=e&&e._loadedInjector)return e._loadedInjector;if(null!=e&&e._injector)return e._injector}return null}class DB{constructor(r,l,e,s,u){this.routeReuseStrategy=r,this.futureState=l,this.currState=e,this.forwardEvent=s,this.inputBindingEnabled=u}activate(r){const l=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,e,r),UI(this.futureState.root),this.activateChildRoutes(l,e,r)}deactivateChildRoutes(r,l,e){const s=Ng(l);r.children.forEach(u=>{const m=u.value.outlet;this.deactivateRoutes(u,s[m],e),delete s[m]}),Object.values(s).forEach(u=>{this.deactivateRouteAndItsChildren(u,e)})}deactivateRoutes(r,l,e){const s=r.value,u=l?l.value:null;if(s===u)if(s.component){const m=e.getContext(s.outlet);m&&this.deactivateChildRoutes(r,l,m.children)}else this.deactivateChildRoutes(r,l,e);else u&&this.deactivateRouteAndItsChildren(l,e)}deactivateRouteAndItsChildren(r,l){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,l):this.deactivateRouteAndOutlet(r,l)}detachAndStoreRouteSubtree(r,l){const e=l.getContext(r.value.outlet),s=e&&r.value.component?e.children:l,u=Ng(r);for(const m of Object.values(u))this.deactivateRouteAndItsChildren(m,s);if(e&&e.outlet){const m=e.outlet.detach(),b=e.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:m,route:r,contexts:b})}}deactivateRouteAndOutlet(r,l){const e=l.getContext(r.value.outlet),s=e&&r.value.component?e.children:l,u=Ng(r);for(const m of Object.values(u))this.deactivateRouteAndItsChildren(m,s);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(r,l,e){const s=Ng(l);r.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],e),this.forwardEvent(new a9(u.value.snapshot))}),r.children.length&&this.forwardEvent(new i9(r.value.snapshot))}activateRoutes(r,l,e){const s=r.value,u=l?l.value:null;if(UI(s),s===u)if(s.component){const m=e.getOrCreateContext(s.outlet);this.activateChildRoutes(r,l,m.children)}else this.activateChildRoutes(r,l,e);else if(s.component){const m=e.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const b=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),m.children.onOutletReAttached(b.contexts),m.attachRef=b.componentRef,m.route=b.route.value,m.outlet&&m.outlet.attach(b.componentRef,b.route.value),UI(b.route.value),this.activateChildRoutes(r,null,m.children)}else{const b=Vg(s.snapshot);m.attachRef=null,m.route=s,m.injector=b,m.outlet&&m.outlet.activateWith(s,m.injector),this.activateChildRoutes(r,null,m.children)}}else this.activateChildRoutes(r,null,e)}}class TB{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class s1{constructor(r,l){this.component=r,this.route=l}}function MB(t,r,l){const e=t._root;return Bg(e,r?r._root:null,l,[e.value])}function Jf(t,r){const l=Symbol(),e=r.get(t,l);return e===l?"function"!=typeof t||function gX(t){return null!==GS(t)}(t)?r.get(t):t:e}function Bg(t,r,l,e,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=Ng(r);return t.children.forEach(m=>{(function $I(t,r,l,e,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=t.value,m=r?r.value:null,b=l?l.getContext(t.value.outlet):null;if(m&&u.routeConfig===m.routeConfig){const C=function zg(t,r,l){if("function"==typeof l)return l(t,r);switch(l){case"pathParamsChange":return!Xf(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Xf(t.url,r.url)||!pc(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jI(t,r)||!pc(t.queryParams,r.queryParams);default:return!jI(t,r)}}(m,u,u.routeConfig.runGuardsAndResolvers);C?s.canActivateChecks.push(new TB(e)):(u.data=m.data,u._resolvedData=m._resolvedData),Bg(t,r,u.component?b?b.children:null:l,e,s),C&&b&&b.outlet&&b.outlet.isActivated&&s.canDeactivateChecks.push(new s1(b.outlet.component,m))}else m&&Hg(r,b,s),s.canActivateChecks.push(new TB(e)),Bg(t,null,u.component?b?b.children:null:l,e,s)})(m,u[m.value.outlet],l,e.concat([m.value]),s),delete u[m.value.outlet]}),Object.entries(u).forEach(([m,b])=>Hg(b,l.getContext(m),s)),s}function Hg(t,r,l){const e=Ng(t),s=t.value;Object.entries(e).forEach(([u,m])=>{Hg(m,s.component?r?r.children.getContext(u):null:r,l)}),l.canDeactivateChecks.push(new s1(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}function Ug(t){return"function"==typeof t}function AB(t){return t instanceof Tg||"EmptyError"===(null==t?void 0:t.name)}const l1=Symbol("INITIAL_VALUE");function jg(){return Li(t=>Pu(t.map(r=>r.pipe(In(1),pr(l1)))).pipe(Ee(r=>{for(const l of r)if(!0!==l){if(l===l1)return l1;if(!1===l||l instanceof Zf)return l}return!0}),bn(r=>r!==l1),In(1)))}function PB(t){return function G(...t){return Se(t)}(Fi(r=>{if(Kf(r))throw vB(0,r)}),Ee(r=>!0===r))}class ZI{constructor(r){this.segmentGroup=r||null}}class XI extends Error{constructor(r){super(),this.urlTree=r}}function Gg(t){return Eg(new ZI(t))}class O9{constructor(r,l){this.urlSerializer=r,this.urlTree=l}lineralizeSegments(r,l){let e=[],s=l.root;for(;;){if(e=e.concat(s.segments),0===s.numberOfChildren)return tt(e);if(s.numberOfChildren>1||!s.children[sn])return Eg(new be(4e3,!1));s=s.children[sn]}}applyRedirectCommands(r,l,e){const s=this.applyRedirectCreateUrlTree(l,this.urlSerializer.parse(l),r,e);if(l.startsWith("/"))throw new XI(s);return s}applyRedirectCreateUrlTree(r,l,e,s){const u=this.createSegmentGroup(r,l.root,e,s);return new Zf(u,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(r,l){const e={};return Object.entries(r).forEach(([s,u])=>{if("string"==typeof u&&u.startsWith(":")){const b=u.substring(1);e[s]=l[b]}else e[s]=u}),e}createSegmentGroup(r,l,e,s){const u=this.createSegments(r,l.segments,e,s);let m={};return Object.entries(l.children).forEach(([b,C])=>{m[b]=this.createSegmentGroup(r,C,e,s)}),new ci(u,m)}createSegments(r,l,e,s){return l.map(u=>u.path.startsWith(":")?this.findPosParam(r,u,s):this.findOrReturn(u,e))}findPosParam(r,l,e){const s=e[l.path.substring(1)];if(!s)throw new be(4001,!1);return s}findOrReturn(r,l){let e=0;for(const s of l){if(s.path===r.path)return l.splice(e),s;e++}return r}}const c1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function L9(t,r,l,e,s){const u=KI(t,r,l);return u.matched?(e=function h9(t,r){return t.providers&&!t._injector&&(t._injector=Mx(t.providers,r,`Route: ${t.path}`)),t._injector??r}(r,e),function k9(t,r,l,e){const s=r.canMatch;return s&&0!==s.length?tt(s.map(m=>{const b=Jf(m,t);return hd(function D9(t){return t&&Ug(t.canMatch)}(b)?b.canMatch(r,l):jd(t,()=>b(r,l)))})).pipe(jg(),PB()):tt(!0)}(e,r,l).pipe(Ee(m=>!0===m?u:{...c1}))):tt(u)}function KI(t,r,l){if("**"===r.path)return function F9(t){var r;return{matched:!0,parameters:(null==(r=t.at(-1))?void 0:r.parameters)??{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(l);if(""===r.path)return"full"===r.pathMatch&&(t.hasChildren()||l.length>0)?{...c1}:{matched:!0,consumedSegments:[],remainingSegments:l,parameters:{},positionalParamSegments:{}};const s=(r.matcher||z3)(l,t,r);if(!s)return{...c1};const u={};Object.entries(s.posParams??{}).forEach(([b,C])=>{u[b]=C.path});const m=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:l.slice(s.consumed.length),parameters:m,positionalParamSegments:s.posParams??{}}}function QI(t,r,l,e){return l.length>0&&function V9(t,r,l){return l.some(e=>d1(t,r,e)&&hl(e)!==sn)}(t,l,e)?{segmentGroup:new ci(r,pd(e,new ci(l,t.children))),slicedSegments:[]}:0===l.length&&function B9(t,r,l){return l.some(e=>d1(t,r,e))}(t,l,e)?{segmentGroup:new ci(t.segments,N9(t,l,e,t.children)),slicedSegments:l}:{segmentGroup:new ci(t.segments,t.children),slicedSegments:l}}function N9(t,r,l,e){const s={};for(const u of l)if(d1(t,r,u)&&!e[hl(u)]){const m=new ci([],{});s[hl(u)]=m}return{...e,...s}}function pd(t,r){const l={};l[sn]=r;for(const e of t)if(""===e.path&&hl(e)!==sn){const s=new ci([],{});l[hl(e)]=s}return l}function d1(t,r,l){return(!(t.hasChildren()||r.length>0)||"full"!==l.pathMatch)&&""===l.path}class U9{}class W9{constructor(r,l,e,s,u,m,b){this.injector=r,this.configLoader=l,this.rootComponentType=e,this.config=s,this.urlTree=u,this.paramsInheritanceStrategy=m,this.urlSerializer=b,this.applyRedirects=new O9(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new be(4002,`'${r.segmentGroup}'`)}recognize(){const r=QI(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(Ee(l=>{const e=new BI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},sn,this.rootComponentType,null,{}),s=new ul(e,l),u=new mB("",s),m=function qW(t,r,l=null,e=null){return tB(eB(t),r,l,e)}(e,[],this.urlTree.queryParams,this.urlTree.fragment);return m.queryParams=this.urlTree.queryParams,u.url=this.urlSerializer.serialize(m),this.inheritParamsAndData(u._root,null),{state:u,tree:m}}))}match(r){return this.processSegmentGroup(this.injector,this.config,r,sn).pipe(Eo(e=>{if(e instanceof XI)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof ZI?this.noMatchError(e):e}))}inheritParamsAndData(r,l){const e=r.value,s=VI(e,l,this.paramsInheritanceStrategy);e.params=Object.freeze(s.params),e.data=Object.freeze(s.data),r.children.forEach(u=>this.inheritParamsAndData(u,e))}processSegmentGroup(r,l,e,s){return 0===e.segments.length&&e.hasChildren()?this.processChildren(r,l,e):this.processSegment(r,l,e,e.segments,s,!0).pipe(Ee(u=>u instanceof ul?[u]:[]))}processChildren(r,l,e){const s=[];for(const u of Object.keys(e.children))"primary"===u?s.unshift(u):s.push(u);return nr(s).pipe(Cg(u=>{const m=e.children[u],b=function CB(t,r){const l=t.filter(e=>hl(e)===r);return l.push(...t.filter(e=>hl(e)!==r)),l}(l,u);return this.processSegmentGroup(r,b,m,u)}),function IW(t,r){return Ae(function MI(t,r,l,e,s){return(u,m)=>{let b=l,C=r,M=0;u.subscribe(Bn(m,I=>{const F=M++;C=b?t(C,I,F):(b=!0,I),e&&m.next(C)},s&&(()=>{b&&m.next(C),m.complete()})))}}(t,r,arguments.length>=2,!0))}((u,m)=>(u.push(...m),u)),qf(null),function kW(t,r){const l=arguments.length>=2;return e=>e.pipe(t?bn((s,u)=>t(s,u,e)):ki,AI(1),l?qf(r):DI(()=>new Tg))}(),Gi(u=>{if(null===u)return Gg(e);const m=q9(u);return function $9(t){t.sort((r,l)=>r.value.outlet===sn?-1:l.value.outlet===sn?1:r.value.outlet.localeCompare(l.value.outlet))}(m),tt(m)}))}processSegment(r,l,e,s,u,m){return nr(l).pipe(Cg(b=>this.processSegmentAgainstRoute(b._injector??r,l,b,e,s,u,m).pipe(Eo(C=>{if(C instanceof ZI)return tt(null);throw C}))),Ru(b=>!!b),Eo(b=>{if(AB(b))return function H9(t,r,l){return 0===r.length&&!t.children[l]}(e,s,u)?tt(new U9):Gg(e);throw b}))}processSegmentAgainstRoute(r,l,e,s,u,m,b){return function z9(t,r,l,e){return!!(hl(t)===e||e!==sn&&d1(r,l,t))&&KI(r,t,l).matched}(e,s,u,m)?void 0===e.redirectTo?this.matchSegmentAgainstRoute(r,s,e,u,m):this.allowRedirects&&b?this.expandSegmentAgainstRouteUsingRedirect(r,s,l,e,u,m):Gg(s):Gg(s)}expandSegmentAgainstRouteUsingRedirect(r,l,e,s,u,m){const{matched:b,consumedSegments:C,positionalParamSegments:M,remainingSegments:I}=KI(l,s,u);if(!b)return Gg(l);s.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const F=this.applyRedirects.applyRedirectCommands(C,s.redirectTo,M);return this.applyRedirects.lineralizeSegments(s,F).pipe(Gi(H=>this.processSegment(r,e,l,H.concat(I),m,!1)))}matchSegmentAgainstRoute(r,l,e,s,u){const m=L9(l,e,s,r);return"**"===e.path&&(l.children={}),m.pipe(Li(b=>b.matched?this.getChildConfig(r=e._injector??r,e,s).pipe(Li(({routes:C})=>{const M=e._loadedInjector??r,{consumedSegments:I,remainingSegments:F,parameters:H}=b,q=new BI(I,H,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function OB(t){return t.data||{}}(e),hl(e),e.component??e._loadedComponent??null,e,function LB(t){return t.resolve||{}}(e)),{segmentGroup:Q,slicedSegments:ne}=QI(l,I,F,C);if(0===ne.length&&Q.hasChildren())return this.processChildren(M,C,Q).pipe(Ee(ge=>null===ge?null:new ul(q,ge)));if(0===C.length&&0===ne.length)return tt(new ul(q,[]));const ae=hl(e)===u;return this.processSegment(M,C,Q,ne,ae?sn:u,!0).pipe(Ee(ge=>new ul(q,ge instanceof ul?[ge]:[])))})):Gg(l)))}getChildConfig(r,l,e){return l.children?tt({routes:l.children,injector:r}):l.loadChildren?void 0!==l._loadedRoutes?tt({routes:l._loadedRoutes,injector:l._loadedInjector}):function kB(t,r,l,e){const s=r.canLoad;return void 0===s||0===s.length?tt(!0):tt(s.map(m=>{const b=Jf(m,t);return hd(function w9(t){return t&&Ug(t.canLoad)}(b)?b.canLoad(r,l):jd(t,()=>b(r,l)))})).pipe(jg(),PB())}(r,l,e).pipe(Gi(s=>s?this.configLoader.loadChildren(r,l).pipe(Fi(u=>{l._loadedRoutes=u.routes,l._loadedInjector=u.injector})):function RB(t){return Eg(_B(!1,3))}())):tt({routes:[],injector:r})}}function Y9(t){const r=t.value.routeConfig;return r&&""===r.path}function q9(t){const r=[],l=new Set;for(const e of t){if(!Y9(e)){r.push(e);continue}const s=r.find(u=>e.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...e.children),l.add(s)):r.push(e)}for(const e of l){const s=q9(e.children);r.push(new ul(e.value,s))}return r.filter(e=>!l.has(e))}function X9(t){const r=t.children.map(l=>X9(l)).flat();return[t,...r]}function zB(t){return Li(r=>{const l=t(r);return l?nr(l).pipe(Ee(()=>r)):tt(r)})}let lb=(()=>{var t;class r{buildTitle(e){let s,u=e.root;for(;void 0!==u;)s=this.getResolvedTitleForRoute(u)??s,u=u.children.find(m=>m.outlet===sn);return s}getResolvedTitleForRoute(e){return e.data[Qy]}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(Wg),providedIn:"root"}),r})(),Wg=(()=>{var t;class r extends lb{constructor(e){super(),this.title=e}updateTitle(e){const s=this.buildTitle(e);void 0!==s&&this.title.setTitle(s)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(kC))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const Lu=new ve("",{providedIn:"root",factory:()=>({})}),md=new ve("ROUTES");let u1=(()=>{var t;class r{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=De(uN)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const s=hd(e.loadComponent()).pipe(Ee(HB),Fi(m=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=m}),Hf(()=>{this.componentLoaders.delete(e)})),u=new SI(s,()=>new he).pipe(XC());return this.componentLoaders.set(e,u),u}loadChildren(e,s){if(this.childrenLoaders.get(s))return this.childrenLoaders.get(s);if(s._loadedRoutes)return tt({routes:s._loadedRoutes,injector:s._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(s);const m=function h1(t,r,l,e){return hd(t.loadChildren()).pipe(Ee(HB),Gi(s=>s instanceof IF||Array.isArray(s)?tt(s):nr(r.compileModuleAsync(s))),Ee(s=>{e&&e(t);let u,m,b=!1;return Array.isArray(s)?(m=s,!0):(u=s.create(l).injector,m=u.get(md,[],{optional:!0,self:!0}).flat()),{routes:m.map(WI),injector:u}}))}(s,this.compiler,e,this.onLoadEndListener).pipe(Hf(()=>{this.childrenLoaders.delete(s)})),b=new SI(m,()=>new he).pipe(XC());return this.childrenLoaders.set(s,b),b}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function HB(t){return function ep(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let JI=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(K9),providedIn:"root"}),r})(),K9=(()=>{var t;class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,s){return e}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const fl=new ve(""),UB=new ve("");function HQ(t,r,l){const e=t.get(UB),s=t.get(yt);return t.get(Ye).runOutsideAngular(()=>{if(!s.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let u;const m=new Promise(M=>{u=M}),b=s.startViewTransition(()=>(u(),function Q9(t){return new Promise(r=>{BO(r,{injector:t})})}(t))),{onViewTransitionCreated:C}=e;return C&&jd(t,()=>C({transition:b,from:r,to:l})),m})}let cb=(()=>{var t;class r{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=De(u1),this.environmentInjector=De(bo),this.urlSerializer=De(kg),this.rootContexts=De(ab),this.location=De(Du),this.inputBindingEnabled=null!==De(a1,{optional:!0}),this.titleStrategy=De(lb),this.options=De(Lu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=De(JI),this.createViewTransition=De(fl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=u=>this.events.next(new dB(u)),this.configLoader.onLoadStartListener=u=>this.events.next(new t9(u))}complete(){var e;null==(e=this.transitions)||e.complete()}handleNavigationRequest(e){var u;const s=++this.navigationId;null==(u=this.transitions)||u.next({...this.transitions.value,...e,id:s})}setupNavigations(e,s,u){return this.transitions=new ye({id:0,currentUrlTree:s,currentRawUrl:s,extractedUrl:this.urlHandlingStrategy.extract(s),urlAfterRedirects:this.urlHandlingStrategy.extract(s),rawUrl:s,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:rb,restoredState:null,currentSnapshot:u.snapshot,targetSnapshot:null,currentRouterState:u,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(bn(m=>0!==m.id),Ee(m=>({...m,extractedUrl:this.urlHandlingStrategy.extract(m.rawUrl)})),Li(m=>{this.currentTransition=m;let b=!1,C=!1;return tt(m).pipe(Fi(M=>{this.currentNavigation={id:M.id,initialUrl:M.rawUrl,extractedUrl:M.extractedUrl,trigger:M.source,extras:M.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Li(M=>{const I=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!I&&"reload"!==(M.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const H="";return this.events.next(new Fg(M.id,this.urlSerializer.serialize(M.rawUrl),H,0)),M.resolve(null),Ao}if(this.urlHandlingStrategy.shouldProcessUrl(M.rawUrl))return tt(M).pipe(Li(H=>{var Q,ne;const q=null==(Q=this.transitions)?void 0:Q.getValue();return this.events.next(new n1(H.id,this.urlSerializer.serialize(H.extractedUrl),H.source,H.restoredState)),q!==(null==(ne=this.transitions)?void 0:ne.getValue())?Ao:Promise.resolve(H)}),function FB(t,r,l,e,s,u){return Gi(m=>function j9(t,r,l,e,s,u,m="emptyOnly"){return new W9(t,r,l,e,s,m,u).recognize()}(t,r,l,e,m.extractedUrl,s,u).pipe(Ee(({state:b,tree:C})=>({...m,targetSnapshot:b,urlAfterRedirects:C}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Fi(H=>{m.targetSnapshot=H.targetSnapshot,m.urlAfterRedirects=H.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:H.urlAfterRedirects};const q=new lB(H.id,this.urlSerializer.serialize(H.extractedUrl),this.urlSerializer.serialize(H.urlAfterRedirects),H.targetSnapshot);this.events.next(q)}));if(I&&this.urlHandlingStrategy.shouldProcessUrl(M.currentRawUrl)){const{id:H,extractedUrl:q,source:Q,restoredState:ne,extras:ae}=M,ge=new n1(H,this.urlSerializer.serialize(q),Q,ne);this.events.next(ge);const se=pB(this.rootComponentType).snapshot;return this.currentTransition=m={...M,targetSnapshot:se,urlAfterRedirects:q,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=q,tt(m)}{const H="";return this.events.next(new Fg(M.id,this.urlSerializer.serialize(M.extractedUrl),H,1)),M.resolve(null),Ao}}),Fi(M=>{const I=new QW(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects),M.targetSnapshot);this.events.next(I)}),Ee(M=>(this.currentTransition=m={...M,guards:MB(M.targetSnapshot,M.currentSnapshot,this.rootContexts)},m)),function EB(t,r){return Gi(l=>{const{targetSnapshot:e,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:m}}=l;return 0===m.length&&0===u.length?tt({...l,guardsResult:!0}):function T9(t,r,l,e){return nr(t).pipe(Gi(s=>function qI(t,r,l,e,s){const u=r&&r.routeConfig?r.routeConfig.canDeactivate:null;return u&&0!==u.length?tt(u.map(b=>{const C=Vg(r)??s,M=Jf(b,C);return hd(function S9(t){return t&&Ug(t.canDeactivate)}(M)?M.canDeactivate(t,r,l,e):jd(C,()=>M(t,r,l,e))).pipe(Ru())})).pipe(jg()):tt(!0)}(s.component,s.route,l,r,e)),Ru(s=>!0!==s,!0))}(m,e,s,t).pipe(Gi(b=>b&&function b9(t){return"boolean"==typeof t}(b)?function M9(t,r,l,e){return nr(r).pipe(Cg(s=>Yf(function E9(t,r){return null!==t&&r&&r(new n9(t)),tt(!0)}(s.route.parent,e),function A9(t,r){return null!==t&&r&&r(new r9(t)),tt(!0)}(s.route,e),function IB(t,r,l){const e=r[r.length-1],u=r.slice(0,r.length-1).reverse().map(m=>function y9(t){const r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(m)).filter(m=>null!==m).map(m=>Ag(()=>tt(m.guards.map(C=>{const M=Vg(m.node)??l,I=Jf(C,M);return hd(function C9(t){return t&&Ug(t.canActivateChild)}(I)?I.canActivateChild(e,t):jd(M,()=>I(e,t))).pipe(Ru())})).pipe(jg())));return tt(u).pipe(jg())}(t,s.path,l),function I9(t,r,l){const e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return tt(!0);const s=e.map(u=>Ag(()=>{const m=Vg(r)??l,b=Jf(u,m);return hd(function x9(t){return t&&Ug(t.canActivate)}(b)?b.canActivate(r,t):jd(m,()=>b(r,t))).pipe(Ru())}));return tt(s).pipe(jg())}(t,s.route,l))),Ru(s=>!0!==s,!0))}(e,u,t,r):tt(b)),Ee(b=>({...l,guardsResult:b})))})}(this.environmentInjector,M=>this.events.next(M)),Fi(M=>{if(m.guardsResult=M.guardsResult,Kf(M.guardsResult))throw vB(0,M.guardsResult);const I=new cB(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects),M.targetSnapshot,!!M.guardsResult);this.events.next(I)}),bn(M=>!!M.guardsResult||(this.cancelNavigationTransition(M,"",3),!1)),zB(M=>{if(M.guards.canActivateChecks.length)return tt(M).pipe(Fi(I=>{const F=new JW(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(F)}),Li(I=>{let F=!1;return tt(I).pipe(function NB(t,r){return Gi(l=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=l;if(!s.length)return tt(l);const u=new Set(s.map(C=>C.route)),m=new Set;for(const C of u)if(!m.has(C))for(const M of X9(C))m.add(M);let b=0;return nr(m).pipe(Cg(C=>u.has(C)?function VB(t,r,l,e){const s=t.routeConfig,u=t._resolve;return void 0!==(null==s?void 0:s.title)&&!ob(s)&&(u[Qy]=s.title),function BB(t,r,l,e){const s=EI(t);if(0===s.length)return tt({});const u={};return nr(s).pipe(Gi(m=>function zQ(t,r,l,e){const s=Vg(r)??e,u=Jf(t,s);return hd(u.resolve?u.resolve(r,l):jd(s,()=>u(r,l)))}(t[m],r,l,e).pipe(Ru(),Fi(b=>{u[m]=b}))),AI(1),B3(u),Eo(m=>AB(m)?Ao:Eg(m)))}(u,t,r,e).pipe(Ee(m=>(t._resolvedData=m,t.data=VI(t,t.parent,l).resolve,null)))}(C,e,t,r):(C.data=VI(C,C.parent,t).resolve,tt(void 0))),Fi(()=>b++),AI(1),Gi(C=>b===m.size?tt(l):Ao))})}(this.paramsInheritanceStrategy,this.environmentInjector),Fi({next:()=>F=!0,complete:()=>{F||this.cancelNavigationTransition(I,"",2)}}))}),Fi(I=>{const F=new e9(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(F)}))}),zB(M=>{const I=F=>{var q;const H=[];null!=(q=F.routeConfig)&&q.loadComponent&&!F.routeConfig._loadedComponent&&H.push(this.configLoader.loadComponent(F.routeConfig).pipe(Fi(Q=>{F.component=Q}),Ee(()=>{})));for(const Q of F.children)H.push(...I(Q));return H};return Pu(I(M.targetSnapshot.root)).pipe(qf(null),In(1))}),zB(()=>this.afterPreactivation()),Li(()=>{var H;const{currentSnapshot:M,targetSnapshot:I}=m,F=null==(H=this.createViewTransition)?void 0:H.call(this,this.environmentInjector,M.root,I.root);return F?nr(F).pipe(Ee(()=>m)):tt(m)}),Ee(M=>{const I=function l9(t,r,l){const e=sb(t,r._root,l?l._root:void 0);return new fB(e,r)}(e.routeReuseStrategy,M.targetSnapshot,M.currentRouterState);return this.currentTransition=m={...M,targetRouterState:I},this.currentNavigation.targetRouterState=I,m}),Fi(()=>{this.events.next(new RI)}),((t,r,l,e)=>Ee(s=>(new DB(r,s.targetRouterState,s.currentRouterState,l,e).activate(t),s)))(this.rootContexts,e.routeReuseStrategy,M=>this.events.next(M),this.inputBindingEnabled),In(1),Fi({next:M=>{var I;b=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new fd(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects))),null==(I=this.titleStrategy)||I.updateTitle(M.targetRouterState.snapshot),M.resolve(!0)},complete:()=>{b=!0}}),Dt(this.transitionAbortSubject.pipe(Fi(M=>{throw M}))),Hf(()=>{var M;b||C||this.cancelNavigationTransition(m,"",1),(null==(M=this.currentNavigation)?void 0:M.id)===m.id&&(this.currentNavigation=null)}),Eo(M=>{if(C=!0,yB(M))this.events.next(new Lg(m.id,this.urlSerializer.serialize(m.extractedUrl),M.message,M.cancellationCode)),function u9(t){return yB(t)&&Kf(t.url)}(M)?this.events.next(new OI(M.url)):m.resolve(!1);else{this.events.next(new r1(m.id,this.urlSerializer.serialize(m.extractedUrl),M,m.targetSnapshot??void 0));try{m.resolve(e.errorHandler(M))}catch(I){m.reject(I)}}return Ao}))}))}cancelNavigationTransition(e,s,u){const m=new Lg(e.id,this.urlSerializer.serialize(e.extractedUrl),s,u);this.events.next(m),e.resolve(!1)}isUpdatingInternalState(){var e,s;return(null==(e=this.currentTransition)?void 0:e.extractedUrl.toString())!==(null==(s=this.currentTransition)?void 0:s.currentUrlTree.toString())}isUpdatedBrowserUrl(){var s,u;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null==(s=this.currentTransition)?void 0:s.extractedUrl.toString())&&!(null!=(u=this.currentTransition)&&u.extras.skipLocationChange)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function jB(t){return t!==rb}let J9=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(t$),providedIn:"root"}),r})();class e${shouldDetach(r){return!1}store(r,l){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,l){return r.routeConfig===l.routeConfig}}let t$=(()=>{var t;class r extends e${}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),GB=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(UQ),providedIn:"root"}),r})(),UQ=(()=>{var t;class r extends GB{constructor(){super(...arguments),this.location=De(Du),this.urlSerializer=De(kg),this.options=De(Lu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=De(JI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zf,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pB(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var e;return"computed"!==this.canceledNavigationResolution?this.currentPageId:(null==(e=this.restoredState())?void 0:e.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(s=>{"popstate"===s.type&&e(s.url,s.state)})}handleRouterEvent(e,s){if(e instanceof n1)this.stateMemento=this.createStateMemento();else if(e instanceof Fg)this.rawUrlTree=s.initialUrl;else if(e instanceof lB){if("eager"===this.urlUpdateStrategy&&!s.extras.skipLocationChange){const u=this.urlHandlingStrategy.merge(s.finalUrl,s.initialUrl);this.setBrowserUrl(u,s)}}else e instanceof RI?(this.currentUrlTree=s.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(s.finalUrl,s.initialUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s))):e instanceof Lg&&(3===e.code||2===e.code)?this.restoreHistory(s):e instanceof r1?this.restoreHistory(s,!0):e instanceof fd&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,s){const u=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(u)||s.extras.replaceUrl){const b={...s.extras.state,...this.generateNgRouterState(s.id,this.browserPageId)};this.location.replaceState(u,"",b)}else{const m={...s.extras.state,...this.generateNgRouterState(s.id,this.browserPageId+1)};this.location.go(u,"",m)}}restoreHistory(e,s=!1){if("computed"===this.canceledNavigationResolution){const m=this.currentPageId-this.browserPageId;0!==m?this.location.historyGo(m):this.currentUrlTree===e.finalUrl&&0===m&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(s&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,s){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:s}:{navigationId:e}}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();var $g=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}($g||{});function WB(t,r){t.events.pipe(bn(l=>l instanceof fd||l instanceof Lg||l instanceof r1||l instanceof Fg),Ee(l=>l instanceof fd||l instanceof Fg?$g.COMPLETE:l instanceof Lg&&(0===l.code||1===l.code)?$g.REDIRECTING:$g.FAILED),bn(l=>l!==$g.REDIRECTING),In(1)).subscribe(()=>{r()})}function $B(t){throw t}const f1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xr=(()=>{var t;class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var e;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=De(dN),this.stateManager=De(GB),this.options=De(Lu,{optional:!0})||{},this.pendingTasks=De(Df),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=De(cb),this.urlSerializer=De(kg),this.location=De(Du),this.urlHandlingStrategy=De(JI),this._events=new he,this.errorHandler=this.options.errorHandler||$B,this.navigated=!1,this.routeReuseStrategy=De(J9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(null==(e=De(md,{optional:!0}))?void 0:e.flat())??[],this.componentInputBindingEnabled=!!De(a1,{optional:!0}),this.eventsSubscription=new bt,this.isNgZoneEnabled=De(Ye)instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:s=>{this.console.warn(s)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(s=>{try{const u=this.navigationTransitions.currentTransition,m=this.navigationTransitions.currentNavigation;if(null!==u&&null!==m)if(this.stateManager.handleRouterEvent(s,m),s instanceof Lg&&0!==s.code&&1!==s.code)this.navigated=!0;else if(s instanceof fd)this.navigated=!0;else if(s instanceof OI){const b=this.urlHandlingStrategy.merge(s.url,u.currentRawUrl),C={skipLocationChange:u.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jB(u.source)};this.scheduleNavigation(b,rb,null,C,{resolve:u.resolve,reject:u.reject,promise:u.promise})}(function tk(t){return!(t instanceof RI||t instanceof OI)})(s)&&this._events.next(s)}catch(u){this.navigationTransitions.transitionAbortSubject.next(u)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),rb,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,s)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",s)},0)}))}navigateToSyncWithBrowser(e,s,u){const m={replaceUrl:!0},b=null!=u&&u.navigationId?u:null;if(u){const M={...u};delete M.navigationId,delete M.\u0275routerPageId,0!==Object.keys(M).length&&(m.state=M)}const C=this.parseUrl(e);this.scheduleNavigation(C,s,b,m)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(WI),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,s={}){const{relativeTo:u,queryParams:m,fragment:b,queryParamsHandling:C,preserveFragment:M}=s,I=M?this.currentUrlTree.fragment:b;let H,F=null;switch(C){case"merge":F={...this.currentUrlTree.queryParams,...m};break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=m||null}null!==F&&(F=this.removeEmptyProps(F));try{H=eB(u?u.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),H=this.currentUrlTree.root}return tB(H,e,F,I??null)}navigateByUrl(e,s={skipLocationChange:!1}){const u=Kf(e)?e:this.parseUrl(e),m=this.urlHandlingStrategy.merge(u,this.rawUrlTree);return this.scheduleNavigation(m,rb,null,s)}navigate(e,s={skipLocationChange:!1}){return function ek(t){for(let r=0;r(null!=m&&(s[u]=m),s),{})}scheduleNavigation(e,s,u,m,b){if(this.disposed)return Promise.resolve(!1);let C,M,I;b?(C=b.resolve,M=b.reject,I=b.promise):I=new Promise((H,q)=>{C=H,M=q});const F=this.pendingTasks.add();return WB(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(F))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:u,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:m,resolve:C,reject:M,promise:I,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I.catch(H=>Promise.reject(H))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mr=(()=>{var t;class r{constructor(e,s,u,m,b,C){var I;this.router=e,this.route=s,this.tabIndexAttribute=u,this.renderer=m,this.el=b,this.locationStrategy=C,this.href=null,this.commands=null,this.onChanges=new he,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const M=null==(I=b.nativeElement.tagName)?void 0:I.toLowerCase();this.isAnchorElement="a"===M||"area"===M,this.isAnchorElement?this.subscription=e.events.subscribe(F=>{F instanceof fd&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,s,u,m,b){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||s||u||m||b||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){var e;null==(e=this.subscription)||e.unsubscribe()}updateHref(){var s;this.href=null!==this.urlTree&&this.locationStrategy?null==(s=this.locationStrategy)?void 0:s.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function K2(t,r,l){return function X2(t,r){return"src"===r&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===r&&("base"===t||"link"===t)?hw:Ut}(r,l)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,s){const u=this.renderer,m=this.el.nativeElement;null!==s?u.setAttribute(m,e,s):u.removeAttribute(m,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xr),V(Wn),Ie("tabindex"),V(ec),V(je),V(Of))},t.\u0275dir=ce({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,s){1&e&&J("click",function(m){return s.onClick(m.button,m.ctrlKey,m.shiftKey,m.altKey,m.metaKey)}),2&e&&$e("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",jt],skipLocationChange:["skipLocationChange","skipLocationChange",jt],replaceUrl:["replaceUrl","replaceUrl",jt],routerLink:"routerLink"},standalone:!0,features:[na,nn]}),r})();class YB{}let n$=(()=>{var t;class r{constructor(e,s,u,m,b){this.router=e,this.injector=u,this.preloadingStrategy=m,this.loader=b}setUpPreloading(){this.subscription=this.router.events.pipe(bn(e=>e instanceof fd),Cg(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,s){const u=[];for(const m of s){m.providers&&!m._injector&&(m._injector=Mx(m.providers,e,`Route: ${m.path}`));const b=m._injector??e,C=m._loadedInjector??b;(m.loadChildren&&!m._loadedRoutes&&void 0===m.canLoad||m.loadComponent&&!m._loadedComponent)&&u.push(this.preloadConfig(b,m)),(m.children||m._loadedRoutes)&&u.push(this.processRoutes(C,m.children??m._loadedRoutes))}return nr(u).pipe(Mg())}preloadConfig(e,s){return this.preloadingStrategy.preload(s,()=>{let u;u=s.loadChildren&&void 0===s.canLoad?this.loader.loadChildren(e,s):tt(null);const m=u.pipe(Gi(b=>null===b?tt(void 0):(s._loadedRoutes=b.routes,s._loadedInjector=b.injector,this.processRoutes(b.injector??e,b.routes))));return s.loadComponent&&!s._loadedComponent?nr([m,this.loader.loadComponent(s)]).pipe(Mg()):m})}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Xr),fe(uN),fe(bo),fe(YB),fe(u1))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const db=new ve("");let p1=(()=>{var t;class r{constructor(e,s,u,m,b={}){this.urlSerializer=e,this.transitions=s,this.viewportScroller=u,this.zone=m,this.options=b,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},b.scrollPositionRestoration=b.scrollPositionRestoration||"disabled",b.anchorScrolling=b.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof n1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fd?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Fg&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof uB&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,s){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new uB(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,s))})},0)})}ngOnDestroy(){var e,s;null==(e=this.routerEventsSubscription)||e.unsubscribe(),null==(s=this.scrollEventsSubscription)||s.unsubscribe()}}return(t=r).\u0275fac=function(e){gm()},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function gc(t,r){return{\u0275kind:t,\u0275providers:r}}function XB(){const t=De(mn);return r=>{var u,m;const l=t.get(ol);if(r!==l.components[0])return;const e=t.get(Xr),s=t.get(ak);1===t.get(ok)&&e.initialNavigation(),null==(u=t.get(KB,null,Yt.Optional))||u.setUpPreloading(),null==(m=t.get(db,null,Yt.Optional))||m.init(),e.resetRootComponentType(l.componentTypes[0]),s.closed||(s.next(),s.complete(),s.unsubscribe())}}const ak=new ve("",{factory:()=>new he}),ok=new ve("",{providedIn:"root",factory:()=>1}),KB=new ve("");function a$(t){return gc(0,[{provide:KB,useExisting:n$},{provide:YB,useExisting:t}])}function l$(t){return gc(9,[{provide:fl,useValue:HQ},{provide:UB,useValue:{skipNextTransition:!(null==t||!t.skipInitialTransition),...t}}])}const dk=new ve("ROUTER_FORROOT_GUARD"),JB=[Du,{provide:kg,useClass:eb},Xr,ab,{provide:Wn,useFactory:function qB(t){return t.routerState.root},deps:[Xr]},u1,[]];let e5=(()=>{var t;class r{constructor(e){}static forRoot(e,s){return{ngModule:r,providers:[JB,[],{provide:md,multi:!0,useValue:e},{provide:dk,useFactory:tp,deps:[[Xr,new Pa,new Wl]]},{provide:Lu,useValue:s||{}},null!=s&&s.useHash?{provide:Of,useClass:QG}:{provide:Of,useClass:ZN},{provide:db,useFactory:()=>{const t=De(yV),r=De(Ye),l=De(Lu),e=De(cb),s=De(kg);return l.scrollOffset&&t.setOffset(l.scrollOffset),new p1(s,e,t,r,l)}},null!=s&&s.preloadingStrategy?a$(s.preloadingStrategy).\u0275providers:[],null!=s&&s.initialNavigation?n5(s):[],null!=s&&s.bindToComponentInputs?gc(8,[gB,{provide:a1,useExisting:gB}]).\u0275providers:[],null!=s&&s.enableViewTransitions?l$().\u0275providers:[],[{provide:m1,useFactory:XB},{provide:EA,multi:!0,useExisting:m1}]]}}static forChild(e){return{ngModule:r,providers:[{provide:md,multi:!0,useValue:e}]}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(dk,8))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function tp(t){return"guarded"}function n5(t){return["disabled"===t.initialNavigation?gc(3,[{provide:Gx,multi:!0,useFactory:()=>{const r=De(Xr);return()=>{r.setUpLocationChangeListener()}}},{provide:ok,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?gc(2,[{provide:ok,useValue:0},{provide:Gx,multi:!0,deps:[mn],useFactory:r=>{const l=r.get(ZG,Promise.resolve());return()=>l.then(()=>new Promise(e=>{const s=r.get(Xr),u=r.get(ak);WB(s,()=>{e(!0)}),r.get(cb).afterPreactivation=()=>(e(!0),u.closed?tt(void 0):u),s.initialNavigation()}))}}]).\u0275providers:[]]}const m1=new ve("");class uk{constructor(r){this.user=r.user,this.role=r.role,this.admin=r.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}}function Ot(t){return null!=t&&"false"!=`${t}`}function xa(t,r=0){return hk(t)?Number(t):r}function hk(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Yg(t){return Array.isArray(t)?t:[t]}function gr(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ml(t){return t instanceof je?t.nativeElement:t}function fk(t,r=/\s+/){const l=[];if(null!=t){const e=Array.isArray(t)?t:`${t}`.split(r);for(const s of e){const u=`${s}`.trim();u&&l.push(u)}}return l}const o5=["addListener","removeListener"],g$=["addEventListener","removeEventListener"],s5=["on","off"];function vd(t,r,l,e){if(Fn(l)&&(e=l,l=void 0),e)return vd(t,r,l).pipe(Ky(e));const[s,u]=function y$(t){return Fn(t.addEventListener)&&Fn(t.removeEventListener)}(t)?g$.map(m=>b=>t[m](r,b,l)):function v$(t){return Fn(t.addListener)&&Fn(t.removeListener)}(t)?o5.map(pk(t,r)):function _$(t){return Fn(t.on)&&Fn(t.off)}(t)?s5.map(pk(t,r)):[];if(!s&&Wy(t))return Gi(m=>vd(m,r,l))(ra(t));if(!s)throw new TypeError("Invalid event target");return new ln(m=>{const b=(...C)=>m.next(1u(b)})}function pk(t,r){return l=>e=>t[l](r,e)}class _d extends bt{constructor(r,l){super()}schedule(r,l=0){return this}}const g1={setInterval(t,r,...l){const{delegate:e}=g1;return null!=e&&e.setInterval?e.setInterval(t,r,...l):setInterval(t,r,...l)},clearInterval(t){const{delegate:r}=g1;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0};class v1 extends _d{constructor(r,l){super(r,l),this.scheduler=r,this.work=l,this.pending=!1}schedule(r,l=0){var e;if(this.closed)return this;this.state=r;const s=this.id,u=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(u,s,l)),this.pending=!0,this.delay=l,this.id=null!==(e=this.id)&&void 0!==e?e:this.requestAsyncId(u,this.id,l),this}requestAsyncId(r,l,e=0){return g1.setInterval(r.flush.bind(r,this),e)}recycleAsyncId(r,l,e=0){if(null!=e&&this.delay===e&&!1===this.pending)return l;null!=l&&g1.clearInterval(l)}execute(r,l){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(r,l);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,l){let s,e=!1;try{this.work(r)}catch(u){e=!0,s=u||new Error("Scheduled action threw falsy error")}if(e)return this.unsubscribe(),s}unsubscribe(){if(!this.closed){const{id:r,scheduler:l}=this,{actions:e}=l;this.work=this.state=this.scheduler=null,this.pending=!1,Yb(e,this),null!=r&&(this.id=this.recycleAsyncId(l,r,null)),this.delay=null,super.unsubscribe()}}}const ub={schedule(t){let r=requestAnimationFrame,l=cancelAnimationFrame;const{delegate:e}=ub;e&&(r=e.requestAnimationFrame,l=e.cancelAnimationFrame);const s=r(u=>{l=void 0,t(u)});return new bt(()=>null==l?void 0:l(s))},requestAnimationFrame(...t){const{delegate:r}=ub;return((null==r?void 0:r.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:r}=ub;return((null==r?void 0:r.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},mk={now:()=>(mk.delegate||Date).now(),delegate:void 0};class qg{constructor(r,l=qg.now){this.schedulerActionCtor=r,this.now=l}schedule(r,l=0,e){return new this.schedulerActionCtor(this,r).schedule(e,l)}}qg.now=mk.now;class gk extends qg{constructor(r,l=qg.now){super(r,l),this.actions=[],this._active=!1}flush(r){const{actions:l}=this;if(this._active)return void l.push(r);let e;this._active=!0;do{if(e=r.execute(r.state,r.delay))break}while(r=l.shift());if(this._active=!1,e){for(;r=l.shift();)r.unsubscribe();throw e}}}new class vk extends gk{flush(r){this._active=!0;const l=this._scheduled;this._scheduled=void 0;const{actions:e}=this;let s;r=r||e.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=e[0])&&r.id===l&&e.shift());if(this._active=!1,s){for(;(r=e[0])&&r.id===l&&e.shift();)r.unsubscribe();throw s}}}(class b$ extends v1{constructor(r,l){super(r,l),this.scheduler=r,this.work=l}requestAsyncId(r,l,e=0){return null!==e&&e>0?super.requestAsyncId(r,l,e):(r.actions.push(this),r._scheduled||(r._scheduled=ub.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,l,e=0){var s;if(null!=e?e>0:this.delay>0)return super.recycleAsyncId(r,l,e);const{actions:u}=r;null!=l&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==l&&(ub.cancelAnimationFrame(l),r._scheduled=void 0)}});let _1,l5=1;const y1={};function _k(t){return t in y1&&(delete y1[t],!0)}const x$={setImmediate(t){const r=l5++;return y1[r]=!0,_1||(_1=Promise.resolve()),_1.then(()=>_k(r)&&t()),r},clearImmediate(t){_k(t)}},{setImmediate:C$,clearImmediate:S$}=x$,b1={setImmediate(...t){const{delegate:r}=b1;return((null==r?void 0:r.setImmediate)||C$)(...t)},clearImmediate(t){const{delegate:r}=b1;return((null==r?void 0:r.clearImmediate)||S$)(t)},delegate:void 0},w1=new class T$ extends gk{flush(r){this._active=!0;const l=this._scheduled;this._scheduled=void 0;const{actions:e}=this;let s;r=r||e.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=e[0])&&r.id===l&&e.shift());if(this._active=!1,s){for(;(r=e[0])&&r.id===l&&e.shift();)r.unsubscribe();throw s}}}(class D$ extends v1{constructor(r,l){super(r,l),this.scheduler=r,this.work=l}requestAsyncId(r,l,e=0){return null!==e&&e>0?super.requestAsyncId(r,l,e):(r.actions.push(this),r._scheduled||(r._scheduled=b1.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,l,e=0){var s;if(null!=e?e>0:this.delay>0)return super.recycleAsyncId(r,l,e);const{actions:u}=r;null!=l&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==l&&(b1.clearImmediate(l),r._scheduled===l&&(r._scheduled=void 0))}}),Ds=new gk(v1),M$=Ds;function c5(t){return t instanceof Date&&!isNaN(t)}function hb(t=0,r,l=M$){let e=-1;return null!=r&&(ZV(r)?l=r:e=r),new ln(s=>{let u=c5(t)?+t-l.now():t;u<0&&(u=0);let m=0;return l.schedule(function(){s.closed||(s.next(m++),0<=e?this.schedule(void 0,e):s.complete())},u)})}function d5(t,r=Ds){return function A$(t){return Ae((r,l)=>{let e=!1,s=null,u=null,m=!1;const b=()=>{if(null==u||u.unsubscribe(),u=null,e){e=!1;const M=s;s=null,l.next(M)}m&&l.complete()},C=()=>{u=null,m&&l.complete()};r.subscribe(Bn(l,M=>{e=!0,s=M,u||ra(t(M)).subscribe(u=Bn(l,b,C))},()=>{m=!0,(!e||!u||u.closed)&&l.complete()}))})}(()=>hb(t,r))}let bk;try{bk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bk=!1}let Zg,Jn=(()=>{var t;class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?bE(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!bk)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Vc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const h5=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function x1(){if(Zg)return Zg;if("object"!=typeof document||!document)return Zg=new Set(h5),Zg;let t=document.createElement("input");return Zg=new Set(h5.filter(r=>(t.setAttribute("type",r),t.type===r))),Zg}let fb,Fu,wk;function Ko(t){return function E$(){if(null==fb&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fb=!0}))}finally{fb=fb||!1}return fb}()?t:!!t.capture}function I$(){if(null==Fu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fu=!1,Fu;if("scrollBehavior"in document.documentElement.style)Fu=!0;else{const t=Element.prototype.scrollTo;Fu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Fu}function pb(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function vc(t){return t.composedPath?t.composedPath()[0]:t.target}function xk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const O$=new ve("cdk-dir-doc",{providedIn:"root",factory:function L$(){return De(yt)}}),S1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ir=(()=>{var t;class r{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function D1(t){const r=(null==t?void 0:t.toLowerCase())||"";return"auto"===r&&typeof navigator<"u"&&null!=navigator&&navigator.language?S1.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(O$,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mb=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Ck=(()=>{var t;class r{constructor(e,s,u){this._ngZone=e,this._platform=s,this._scrolled=new he,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=u}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const s=this.scrollContainers.get(e);s&&(s.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ln(s=>{this._globalSubscription||this._addGlobalListener();const u=e>0?this._scrolled.pipe(d5(e)).subscribe(s):this._scrolled.subscribe(s);return this._scrolledCount++,()=>{u.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):tt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,s)=>this.deregister(s)),this._scrolled.complete()}ancestorScrolled(e,s){const u=this.getAncestorScrollContainers(e);return this.scrolled(s).pipe(bn(m=>!m||u.indexOf(m)>-1))}getAncestorScrollContainers(e){const s=[];return this.scrollContainers.forEach((u,m)=>{this._scrollableContainsElement(m,e)&&s.push(m)}),s}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,s){let u=ml(s),m=e.getElementRef().nativeElement;do{if(u==m)return!0}while(u=u.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vd(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye),fe(Jn),fe(yt,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),Nu=(()=>{var t;class r{constructor(e,s,u){this._platform=e,this._change=new he,this._changeListener=m=>{this._change.next(m)},this._document=u,s.runOutsideAngular(()=>{if(e.isBrowser){const m=this._getWindow();m.addEventListener("resize",this._changeListener),m.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:s,height:u}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+u,right:e.left+s,height:u,width:s}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,s=this._getWindow(),u=e.documentElement,m=u.getBoundingClientRect();return{top:-m.top||e.body.scrollTop||s.scrollY||u.scrollTop||0,left:-m.left||e.body.scrollLeft||s.scrollX||u.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(d5(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye),fe(yt,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),np=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Sk=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[mb,np,mb,np]}),r})();class Dk{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Vu extends Dk{constructor(r,l,e,s,u){super(),this.component=r,this.viewContainerRef=l,this.injector=e,this.componentFactoryResolver=s,this.projectableNodes=u}}class yd extends Dk{constructor(r,l,e,s){super(),this.templateRef=r,this.viewContainerRef=l,this.context=e,this.injector=s}get origin(){return this.templateRef.elementRef}attach(r,l=this.context){return this.context=l,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class H$ extends Dk{constructor(r){super(),this.element=r instanceof je?r.nativeElement:r}}class gb{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Vu?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof yd?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof H$?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class g5 extends gb{constructor(r,l,e,s,u){super(),this.outletElement=r,this._componentFactoryResolver=l,this._appRef=e,this._defaultInjector=s,this.attachDomPortal=m=>{const b=m.element,C=this._document.createComment("dom-portal");b.parentNode.insertBefore(C,b),this.outletElement.appendChild(b),this._attachedPortal=m,super.setDisposeFn(()=>{C.parentNode&&C.parentNode.replaceChild(b,C)})},this._document=u}attachComponentPortal(r){const e=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(e,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector,r.projectableNodes||void 0),this.setDisposeFn(()=>s.destroy())):(s=e.create(r.injector||this._defaultInjector||mn.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let l=r.viewContainerRef,e=l.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return e.rootNodes.forEach(s=>this.outletElement.appendChild(s)),e.detectChanges(),this.setDisposeFn(()=>{let s=l.indexOf(e);-1!==s&&l.remove(s)}),this._attachedPortal=r,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let T1=(()=>{var t;class r extends yd{constructor(e,s){super(e,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(fi))},t.\u0275dir=ce({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ze]}),r})(),_c=(()=>{var t;class r extends gb{constructor(e,s,u){super(),this._componentFactoryResolver=e,this._viewContainerRef=s,this._isInitialized=!1,this.attached=new Ce,this.attachDomPortal=m=>{const b=m.element,C=this._document.createComment("dom-portal");m.setAttachedHost(this),b.parentNode.insertBefore(C,b),this._getRootNode().appendChild(b),this._attachedPortal=m,super.setDisposeFn(()=>{C.parentNode&&C.parentNode.replaceChild(b,C)})},this._document=u}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const s=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,m=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),b=s.createComponent(m,s.length,e.injector||s.injector,e.projectableNodes||void 0);return s!==this._viewContainerRef&&this._getRootNode().appendChild(b.hostView.rootNodes[0]),super.setDisposeFn(()=>b.destroy()),this._attachedPortal=e,this._attachedRef=b,this.attached.emit(b),b}attachTemplatePortal(e){e.setAttachedHost(this);const s=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ls),V(fi),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ze]}),r})(),gl=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function xi(...t){const r=Uy(t),l=function U7(t,r){return"number"==typeof VE(t)?t.pop():r}(t,1/0),e=t;return e.length?1===e.length?ra(e[0]):Mg(l)(nr(e,r)):Ao}function vr(t,...r){return r.length?r.some(l=>t[l]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const P5=I$();class hY{constructor(r,l){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=l}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=gr(-this._previousScrollPosition.left),r.style.top=gr(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,e=r.style,s=this._document.body.style,u=e.scrollBehavior||"",m=s.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),P5&&(e.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),P5&&(e.scrollBehavior=u,s.scrollBehavior=m)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const l=this._document.body,e=this._viewportRuler.getViewportSize();return l.scrollHeight>e.height||l.scrollWidth>e.width}}class fY{constructor(r,l,e,s){this._scrollDispatcher=r,this._ngZone=l,this._viewportRuler=e,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0).pipe(bn(l=>!l||!this._overlayRef.overlayElement.contains(l.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const l=this._viewportRuler.getViewportScrollPosition().top;Math.abs(l-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class R5{enable(){}disable(){}attach(){}}function E1(t,r){return r.some(l=>t.bottoml.bottom||t.rightl.right)}function Rk(t,r){return r.some(l=>t.topl.bottom||t.leftl.right)}class O5{constructor(r,l,e,s){this._scrollDispatcher=r,this._viewportRuler=l,this._ngZone=e,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const l=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:s}=this._viewportRuler.getViewportSize();E1(l,[{width:e,height:s,bottom:s,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let pY=(()=>{var t;class r{constructor(e,s,u,m){this._scrollDispatcher=e,this._viewportRuler=s,this._ngZone=u,this.noop=()=>new R5,this.close=b=>new fY(this._scrollDispatcher,this._ngZone,this._viewportRuler,b),this.block=()=>new hY(this._viewportRuler,this._document),this.reposition=b=>new O5(this._scrollDispatcher,this._viewportRuler,this._ngZone,b),this._document=m}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ck),fe(Nu),fe(Ye),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class zu{constructor(r){if(this.scrollStrategy=new R5,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const l=Object.keys(r);for(const e of l)void 0!==r[e]&&(this[e]=r[e])}}}class Ok{constructor(r,l){this.connectionPair=r,this.scrollableViewProperties=l}}let L5=(()=>{var t;class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const s=this._attachedOverlays.indexOf(e);s>-1&&this._attachedOverlays.splice(s,1),0===this._attachedOverlays.length&&this.detach()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mY=(()=>{var t;class r extends L5{constructor(e,s){super(e),this._ngZone=s,this._keydownListener=u=>{const m=this._attachedOverlays;for(let b=m.length-1;b>-1;b--)if(m[b]._keydownEvents.observers.length>0){const C=m[b]._keydownEvents;this._ngZone?this._ngZone.run(()=>C.next(u)):C.next(u);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Ye,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),F5=(()=>{var t;class r extends L5{constructor(e,s,u){super(e),this._platform=s,this._ngZone=u,this._cursorStyleIsSet=!1,this._pointerDownListener=m=>{this._pointerDownEventTarget=vc(m)},this._clickListener=m=>{const b=vc(m),C="click"===m.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:b;this._pointerDownEventTarget=null;const M=this._attachedOverlays.slice();for(let I=M.length-1;I>-1;I--){const F=M[I];if(F._outsidePointerEvents.observers.length<1||!F.hasAttached())continue;if(F.overlayElement.contains(b)||F.overlayElement.contains(C))break;const H=F._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>H.next(m)):H.next(m)}}}add(e){if(super.add(e),!this._isAttached){const s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(s)):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Jn),fe(Ye,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),I1=(()=>{var t;class r{constructor(e,s){this._platform=s,this._document=e}ngOnDestroy(){var e;null==(e=this._containerElement)||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||xk()){const u=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let m=0;mthis._backdropClick.next(F),this._backdropTransitionendHandler=F=>{this._disposeBackdrop(F.target)},this._keydownEvents=new he,this._outsidePointerEvents=new he,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const l=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(In(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==l?void 0:l.onDestroy)&&l.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),l}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var l;const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null==(l=this._host)||l.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=gr(this._config.width),r.height=gr(this._config.height),r.minWidth=gr(this._config.minWidth),r.minHeight=gr(this._config.minHeight),r.maxWidth=gr(this._config.maxWidth),r.maxHeight=gr(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,l,e){const s=Yg(l||[]).filter(u=>!!u);s.length&&(e?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(Dt(xi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Lk="cdk-overlay-connected-position-bounding-box",gY=/([A-Za-z%]+)$/;class N5{get positions(){return this._preferredPositions}constructor(r,l,e,s,u){this._viewportRuler=l,this._document=e,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new he,this._resizeSubscription=bt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}attach(r){this._validatePositions(),r.hostElement.classList.add(Lk),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,l=this._overlayRect,e=this._viewportRect,s=this._containerRect,u=[];let m;for(let b of this._preferredPositions){let C=this._getOriginPoint(r,s,b),M=this._getOverlayPoint(C,l,b),I=this._getOverlayFit(M,l,e,b);if(I.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(b,C);this._canFitWithFlexibleDimensions(I,M,e)?u.push({position:b,origin:C,overlayRect:l,boundingBoxRect:this._calculateBoundingBoxRect(C,b)}):(!m||m.overlayFit.visibleAreaC&&(C=I,b=M)}return this._isPushed=!1,void this._applyPosition(b.position,b.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(m.position,m.originPoint);this._applyPosition(m.position,m.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&op(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Lk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const l=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,l)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,l,e){let s,u;if("center"==e.originX)s=r.left+r.width/2;else{const m=this._isRtl()?r.right:r.left,b=this._isRtl()?r.left:r.right;s="start"==e.originX?m:b}return l.left<0&&(s-=l.left),u="center"==e.originY?r.top+r.height/2:"top"==e.originY?r.top:r.bottom,l.top<0&&(u-=l.top),{x:s,y:u}}_getOverlayPoint(r,l,e){let s,u;return s="center"==e.overlayX?-l.width/2:"start"===e.overlayX?this._isRtl()?-l.width:0:this._isRtl()?0:-l.width,u="center"==e.overlayY?-l.height/2:"top"==e.overlayY?0:-l.height,{x:r.x+s,y:r.y+u}}_getOverlayFit(r,l,e,s){const u=Fk(l);let{x:m,y:b}=r,C=this._getOffset(s,"x"),M=this._getOffset(s,"y");C&&(m+=C),M&&(b+=M);let H=0-b,q=b+u.height-e.height,Q=this._subtractOverflows(u.width,0-m,m+u.width-e.width),ne=this._subtractOverflows(u.height,H,q),ae=Q*ne;return{visibleArea:ae,isCompletelyWithinViewport:u.width*u.height===ae,fitsInViewportVertically:ne===u.height,fitsInViewportHorizontally:Q==u.width}}_canFitWithFlexibleDimensions(r,l,e){if(this._hasFlexibleDimensions){const s=e.bottom-l.y,u=e.right-l.x,m=bd(this._overlayRef.getConfig().minHeight),b=bd(this._overlayRef.getConfig().minWidth);return(r.fitsInViewportVertically||null!=m&&m<=s)&&(r.fitsInViewportHorizontally||null!=b&&b<=u)}return!1}_pushOverlayOnScreen(r,l,e){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=Fk(l),u=this._viewportRect,m=Math.max(r.x+s.width-u.width,0),b=Math.max(r.y+s.height-u.height,0),C=Math.max(u.top-e.top-r.y,0),M=Math.max(u.left-e.left-r.x,0);let I=0,F=0;return I=s.width<=u.width?M||-m:r.xQ&&!this._isInitialRender&&!this._growAfterOpen&&(m=r.y-Q/2)}if("end"===l.overlayX&&!s||"start"===l.overlayX&&s)H=e.width-r.x+this._viewportMargin,I=r.x-this._viewportMargin;else if("start"===l.overlayX&&!s||"end"===l.overlayX&&s)F=r.x,I=e.right-r.x;else{const q=Math.min(e.right-r.x+e.left,r.x),Q=this._lastBoundingBoxSize.width;I=2*q,F=r.x-q,I>Q&&!this._isInitialRender&&!this._growAfterOpen&&(F=r.x-Q/2)}return{top:m,left:F,bottom:b,right:H,width:I,height:u}}_setBoundingBoxStyles(r,l){const e=this._calculateBoundingBoxRect(r,l);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,m=this._overlayRef.getConfig().maxWidth;s.height=gr(e.height),s.top=gr(e.top),s.bottom=gr(e.bottom),s.width=gr(e.width),s.left=gr(e.left),s.right=gr(e.right),s.alignItems="center"===l.overlayX?"center":"end"===l.overlayX?"flex-end":"flex-start",s.justifyContent="center"===l.overlayY?"center":"bottom"===l.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=gr(u)),m&&(s.maxWidth=gr(m))}this._lastBoundingBoxSize=e,op(this._boundingBox.style,s)}_resetBoundingBoxStyles(){op(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){op(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,l){const e={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,m=this._overlayRef.getConfig();if(s){const I=this._viewportRuler.getViewportScrollPosition();op(e,this._getExactOverlayY(l,r,I)),op(e,this._getExactOverlayX(l,r,I))}else e.position="static";let b="",C=this._getOffset(l,"x"),M=this._getOffset(l,"y");C&&(b+=`translateX(${C}px) `),M&&(b+=`translateY(${M}px)`),e.transform=b.trim(),m.maxHeight&&(s?e.maxHeight=gr(m.maxHeight):u&&(e.maxHeight="")),m.maxWidth&&(s?e.maxWidth=gr(m.maxWidth):u&&(e.maxWidth="")),op(this._pane.style,e)}_getExactOverlayY(r,l,e){let s={top:"",bottom:""},u=this._getOverlayPoint(l,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,e)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=gr(u.y),s}_getExactOverlayX(r,l,e){let m,s={left:"",right:""},u=this._getOverlayPoint(l,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,e)),m=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===m?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=gr(u.x),s}_getScrollVisibility(){const r=this._getOriginRect(),l=this._pane.getBoundingClientRect(),e=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rk(r,e),isOriginOutsideView:E1(r,e),isOverlayClipped:Rk(l,e),isOverlayOutsideView:E1(l,e)}}_subtractOverflows(r,...l){return l.reduce((e,s)=>e-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,l=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+r-this._viewportMargin,bottom:e.top+l-this._viewportMargin,width:r-2*this._viewportMargin,height:l-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,l){return"x"===l?null==r.offsetX?this._offsetX:r.offsetX:null==r.offsetY?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Yg(r).forEach(l=>{""!==l&&-1===this._appliedPanelClasses.indexOf(l)&&(this._appliedPanelClasses.push(l),this._pane.classList.add(l))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof je)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const l=r.width||0,e=r.height||0;return{top:r.y,bottom:r.y+e,left:r.x,right:r.x+l,height:e,width:l}}}function op(t,r){for(let l in r)r.hasOwnProperty(l)&&(t[l]=r[l]);return t}function bd(t){if("number"!=typeof t&&null!=t){const[r,l]=t.split(gY);return l&&"px"!==l?null:parseFloat(r)}return t||null}function Fk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const V5="cdk-global-overlay-wrapper";class _Y{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const l=r.getConfig();this._overlayRef=r,this._width&&!l.width&&r.updateSize({width:this._width}),this._height&&!l.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(V5),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:m,maxHeight:b}=e,C=!("100%"!==s&&"100vw"!==s||m&&"100%"!==m&&"100vw"!==m),M=!("100%"!==u&&"100vh"!==u||b&&"100%"!==b&&"100vh"!==b),I=this._xPosition,F=this._xOffset,H="rtl"===this._overlayRef.getConfig().direction;let q="",Q="",ne="";C?ne="flex-start":"center"===I?(ne="center",H?Q=F:q=F):H?"left"===I||"end"===I?(ne="flex-end",q=F):("right"===I||"start"===I)&&(ne="flex-start",Q=F):"left"===I||"start"===I?(ne="flex-start",q=F):("right"===I||"end"===I)&&(ne="flex-end",Q=F),r.position=this._cssPosition,r.marginLeft=C?"0":q,r.marginTop=M?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=C?"0":Q,l.justifyContent=ne,l.alignItems=M?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement,e=l.style;l.classList.remove(V5),e.justifyContent=e.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let wb=(()=>{var t;class r{constructor(e,s,u,m){this._viewportRuler=e,this._document=s,this._platform=u,this._overlayContainer=m}global(){return new _Y}flexibleConnectedTo(e){return new N5(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Nu),fe(yt),fe(Jn),fe(I1))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),B5=0,Mi=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this.scrollStrategies=e,this._overlayContainer=s,this._componentFactoryResolver=u,this._positionBuilder=m,this._keyboardDispatcher=b,this._injector=C,this._ngZone=M,this._document=I,this._directionality=F,this._location=H,this._outsideClickDispatcher=q,this._animationsModuleType=Q}create(e){const s=this._createHostElement(),u=this._createPaneElement(s),m=this._createPortalOutlet(u),b=new zu(e);return b.direction=b.direction||this._directionality.value,new k1(m,s,u,b,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const s=this._document.createElement("div");return s.id="cdk-overlay-"+B5++,s.classList.add("cdk-overlay-pane"),e.appendChild(s),s}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ol)),new g5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pY),fe(I1),fe(ls),fe(wb),fe(mY),fe(mn),fe(Ye),fe(yt),fe(Ir),fe(Du),fe(F5),fe(si,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const yY=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z5=new ve("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}});let P1=(()=>{var t;class r{constructor(e){this.elementRef=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),r})(),H5=(()=>{var t;class r{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,s,u,m,b){this._overlay=e,this._dir=b,this._backdropSubscription=bt.EMPTY,this._attachSubscription=bt.EMPTY,this._detachSubscription=bt.EMPTY,this._positionSubscription=bt.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new yd(s,u),this._scrollStrategyFactory=m,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=yY);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(s=>{this.overlayKeydown.next(s),27===s.keyCode&&!this.disableClose&&!vr(s)&&(s.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(s=>{this.overlayOutsideClick.next(s)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),s=new zu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(s.width=this.width),(this.height||0===this.height)&&(s.height=this.height),(this.minWidth||0===this.minWidth)&&(s.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(s.minHeight=this.minHeight),this.backdropClass&&(s.backdropClass=this.backdropClass),this.panelClass&&(s.panelClass=this.panelClass),s}_updatePositionStrategy(e){const s=this.positions.map(u=>({originX:u.originX,originY:u.originY,overlayX:u.overlayX,overlayY:u.overlayY,offsetX:u.offsetX||this.offsetX,offsetY:u.offsetY||this.offsetY,panelClass:u.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(s).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof P1?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function p5(t,r=!1){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>{const m=t(u,s++);(m||r)&&e.next(u),!m&&e.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(Kn),V(fi),V(z5),V(Ir,8))},t.\u0275dir=ce({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop",jt],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition",jt],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",jt],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen",jt],push:["cdkConnectedOverlayPush","push",jt],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",jt]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[na,nn]}),r})();const wY={provide:z5,deps:[Mi],useFactory:function bY(t){return()=>t.scrollStrategies.reposition()}};let Hu=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Mi,wY],imports:[mb,gl,Sk,Sk]}),r})();function Nk(t,r=Ds){return Ae((l,e)=>{let s=null,u=null,m=null;const b=()=>{if(s){s.unsubscribe(),s=null;const M=u;u=null,e.next(M)}};function C(){const M=m+t,I=r.now();if(I{u=M,m=r.now(),s||(s=r.schedule(C,t),e.add(s))},()=>{b(),e.complete()},void 0,()=>{u=s=null}))})}function R1(t){return bn((r,l)=>t<=l)}function O1(t,r=ki){return t=t??Vk,Ae((l,e)=>{let s,u=!0;l.subscribe(Bn(e,m=>{const b=r(m);(u||!t(s,b))&&(u=!1,s=b,e.next(m))}))})}function Vk(t,r){return t===r}let Bk=(()=>{var t;class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),xY=(()=>{var t;class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,s)=>this._cleanupObserver(s))}observe(e){const s=ml(e);return new ln(u=>{const b=this._observeElement(s).subscribe(u);return()=>{b.unsubscribe(),this._unobserveElement(s)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const s=new he,u=this._mutationObserverFactory.create(m=>s.next(m));u&&u.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:u,stream:s,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:s,stream:u}=this._observedElements.get(e);s&&s.disconnect(),u.complete(),this._observedElements.delete(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Bk))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),CY=(()=>{var t;class r{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xa(e),this._subscribe()}constructor(e,s,u){this._contentObserver=e,this._elementRef=s,this._ngZone=u,this.event=new Ce,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Nk(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null==(e=this._currentSubscription)||e.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(xY),V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",jt],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[na]}),r})(),zk=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Bk]}),r})();const Hk=new Set;let yl,wee=(()=>{var t;class r{constructor(e,s){this._platform=e,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Uk}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function U5(t,r){if(!Hk.has(t))try{yl||(yl=document.createElement("style"),r&&(yl.nonce=r),yl.setAttribute("type","text/css"),document.head.appendChild(yl)),yl.sheet&&(yl.sheet.insertRule(`@media ${t} {body{ }}`,0),Hk.add(t))}catch(l){console.error(l)}}(e,this._nonce),this._matchMedia(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Bc,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function Uk(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let L1=(()=>{var t;class r{constructor(e,s){this._mediaMatcher=e,this._zone=s,this._queries=new Map,this._destroySubject=new he}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return jk(Yg(e)).some(u=>this._registerQuery(u).mql.matches)}observe(e){let m=Pu(jk(Yg(e)).map(b=>this._registerQuery(b).observable));return m=Yf(m.pipe(In(1)),m.pipe(R1(1),Nk(0))),m.pipe(Ee(b=>{const C={matches:!1,breakpoints:{}};return b.forEach(({matches:M,query:I})=>{C.matches=C.matches||M,C.breakpoints[I]=M}),C}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const s=this._mediaMatcher.matchMedia(e),m={observable:new ln(b=>{const C=M=>this._zone.run(()=>b.next(M));return s.addListener(C),()=>{s.removeListener(C)}}).pipe(pr(s),Ee(({matches:b})=>({query:e,matches:b})),Dt(this._destroySubject)),mql:s};return this._queries.set(e,m),m}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(wee),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function jk(t){return t.map(r=>r.split(",")).reduce((r,l)=>r.concat(l)).map(r=>r.trim())}function F1(t,r,l){const e=N1(t,r);l=l.trim(),!e.some(s=>s.trim()===l)&&(e.push(l),t.setAttribute(r,e.join(" ")))}function sp(t,r,l){const e=N1(t,r);l=l.trim();const s=e.filter(u=>u!==l);s.length?t.setAttribute(r,s.join(" ")):t.removeAttribute(r)}function N1(t,r){const l=t.getAttribute(r);return(null==l?void 0:l.match(/\S+/g))??[]}const Gk="cdk-describedby-message",V1="cdk-describedby-host";let Wk=0,G5=(()=>{var t;class r{constructor(e,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wk++,this._document=e,this._id=De(qp)+"-"+Wk++}describe(e,s,u){if(!this._canBeDescribed(e,s))return;const m=$k(s,u);"string"!=typeof s?(Yk(s,this._id),this._messageRegistry.set(m,{messageElement:s,referenceCount:0})):this._messageRegistry.has(m)||this._createMessageElement(s,u),this._isElementDescribedByMessage(e,m)||this._addMessageReference(e,m)}removeDescription(e,s,u){var b;if(!s||!this._isElementNode(e))return;const m=$k(s,u);if(this._isElementDescribedByMessage(e,m)&&this._removeMessageReference(e,m),"string"==typeof s){const C=this._messageRegistry.get(m);C&&0===C.referenceCount&&this._deleteMessageElement(m)}0===(null==(b=this._messagesContainer)?void 0:b.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var s;const e=this._document.querySelectorAll(`[${V1}="${this._id}"]`);for(let u=0;u0!=u.indexOf(Gk));e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){const u=this._messageRegistry.get(s);F1(e,"aria-describedby",u.messageElement.id),e.setAttribute(V1,this._id),u.referenceCount++}_removeMessageReference(e,s){const u=this._messageRegistry.get(s);u.referenceCount--,sp(e,"aria-describedby",u.messageElement.id),e.removeAttribute(V1)}_isElementDescribedByMessage(e,s){const u=N1(e,"aria-describedby"),m=this._messageRegistry.get(s),b=m&&m.messageElement.id;return!!b&&-1!=u.indexOf(b)}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&"object"==typeof s)return!0;const u=null==s?"":`${s}`.trim(),m=e.getAttribute("aria-label");return!(!u||m&&m.trim()===u)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Jn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function $k(t,r){return"string"==typeof t?`${r||""}/${t}`:t}function Yk(t,r){t.id||(t.id=`${Gk}-${r}-${Wk++}`)}class W5{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new he,this._typeaheadSubscription=bt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=l=>l.disabled,this._pressedLetters=[],this.tabOut=new he,this.change=new he,r instanceof yu&&(this._itemChangesSubscription=r.changes.subscribe(l=>{if(this._activeItem){const s=l.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Fi(l=>this._pressedLetters.push(l)),Nk(r),bn(()=>this._pressedLetters.length>0),Ee(()=>this._pressedLetters.join(""))).subscribe(l=>{const e=this._getItemsArray();for(let s=1;s!r[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&s){const u=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(u>0?u:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&s){const u=this._activeItemIndex+this._pageUpAndDown.delta,m=this._getItemsArray().length;this._setActiveItemByIndex(u=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],r.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(r){const l=this._getItemsArray(),e="number"==typeof r?r:l.indexOf(r);this._activeItem=l[e]??null,this._activeItemIndex=e}destroy(){var r;this._typeaheadSubscription.unsubscribe(),null==(r=this._itemChangesSubscription)||r.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const l=this._getItemsArray();for(let e=1;e<=l.length;e++){const s=(this._activeItemIndex+r*e+l.length)%l.length;if(!this._skipPredicateFn(l[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,l){const e=this._getItemsArray();if(e[r]){for(;this._skipPredicateFn(e[r]);)if(!e[r+=l])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof yu?this._items.toArray():this._items}}class $5 extends W5{setActiveItem(r){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(r),this.activeItem&&this.activeItem.setActiveStyles()}}class qk extends W5{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Zk=(()=>{var t;class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function MY(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const s=function TY(t){try{return t.frameElement}catch{return null}}(function Xk(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(s&&(-1===X5(s)||!this.isVisible(s)))return!1;let u=e.nodeName.toLowerCase(),m=X5(e);return e.hasAttribute("contenteditable")?-1!==m:!("iframe"===u||"object"===u||this._platform.WEBKIT&&this._platform.IOS&&!function kY(t){let r=t.nodeName.toLowerCase(),l="input"===r&&t.type;return"text"===l||"password"===l||"select"===r||"textarea"===r}(e))&&("audio"===u?!!e.hasAttribute("controls")&&-1!==m:"video"===u?-1!==m&&(null!==m||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,s){return function PY(t){return!function EY(t){return function q5(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function AY(t){let r=t.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(t)||function Y5(t){return function IY(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Z5(t))}(e)&&!this.isDisabled(e)&&((null==s?void 0:s.ignoreVisibility)||this.isVisible(e))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function Z5(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let r=t.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function X5(t){if(!Z5(t))return null;const r=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class K5{get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}constructor(r,l,e,s,u=!1){this._element=r,this._checker=l,this._ngZone=e,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}destroy(){const r=this._startAnchor,l=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),l&&(l.removeEventListener("focus",this.endAnchorListener),l.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const l=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?l.length?l[0]:this._getFirstTabbableElement(this._element):l.length?l[l.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const l=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(l){if(!this._checker.isFocusable(l)){const e=this._getFirstTabbableElement(l);return null==e||e.focus(r),!!e}return l.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const l=this._getRegionBoundary("start");return l&&l.focus(r),!!l}focusLastTabbableElement(r){const l=this._getRegionBoundary("end");return l&&l.focus(r),!!l}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const l=r.children;for(let e=0;e=0;e--){const s=l[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(l[e]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,l){r?l.setAttribute("tabindex","0"):l.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(In(1)).subscribe(r)}}let Kk=(()=>{var t;class r{constructor(e,s,u){this._checker=e,this._ngZone=s,this._document=u}create(e,s=!1){return new K5(e,this._checker,this._ngZone,this._document,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Zk),fe(Ye),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),RY=(()=>{var t;class r{get enabled(){var e;return(null==(e=this.focusTrap)?void 0:e.enabled)||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,s,u){this._elementRef=e,this._focusTrapFactory=s,this._previouslyFocusedElement=null,De(Jn).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){var e;null==(e=this.focusTrap)||e.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){var e;null==(e=this.focusTrap)||e.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){var u;const s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&null!=(u=this.focusTrap)&&u.hasAttached()&&this._captureFocus()}_captureFocus(){var e;this._previouslyFocusedElement=pb(),null==(e=this.focusTrap)||e.focusInitialElementWhenReady()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",jt],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",jt]},exportAs:["cdkTrapFocus"],features:[na,nn]}),r})();function Qk(t){return 0===t.buttons||0===t.detail}function Jk(t){const r=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const FY=new ve("cdk-input-modality-detector-options"),Q5={ignoreKeys:[18,17,224,91,16]},Xg=Ko({passive:!0,capture:!0});let eP=(()=>{var t;class r{get mostRecentModality(){return this._modality.value}constructor(e,s,u,m){this._platform=e,this._mostRecentTarget=null,this._modality=new ye(null),this._lastTouchMs=0,this._onKeydown=b=>{var C,M;null!=(M=null==(C=this._options)?void 0:C.ignoreKeys)&&M.some(I=>I===b.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vc(b))},this._onMousedown=b=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qk(b)?"keyboard":"mouse"),this._mostRecentTarget=vc(b))},this._onTouchstart=b=>{Jk(b)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vc(b))},this._options={...Q5,...m},this.modalityDetected=this._modality.pipe(R1(1)),this.modalityChanged=this.modalityDetected.pipe(O1()),e.isBrowser&&s.runOutsideAngular(()=>{u.addEventListener("keydown",this._onKeydown,Xg),u.addEventListener("mousedown",this._onMousedown,Xg),u.addEventListener("touchstart",this._onTouchstart,Xg)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Xg),document.removeEventListener("mousedown",this._onMousedown,Xg),document.removeEventListener("touchstart",this._onTouchstart,Xg))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye),fe(yt),fe(FY,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const B1=new ve("liveAnnouncerElement",{providedIn:"root",factory:function z1(){return null}}),J5=new ve("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ju=0,ez=(()=>{var t;class r{constructor(e,s,u,m){this._ngZone=s,this._defaultOptions=m,this._document=u,this._liveElement=e||this._createLiveElement()}announce(e,...s){const u=this._defaultOptions;let m,b;return 1===s.length&&"number"==typeof s[0]?b=s[0]:[m,b]=s,this.clear(),clearTimeout(this._previousTimeout),m||(m=u&&u.politeness?u.politeness:"polite"),null==b&&u&&(b=u.duration),this._liveElement.setAttribute("aria-live",m),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(C=>this._currentResolve=C)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof b&&(this._previousTimeout=setTimeout(()=>this.clear(),b)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,s;clearTimeout(this._previousTimeout),null==(e=this._liveElement)||e.remove(),this._liveElement=null,null==(s=this._currentResolve)||s.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),u=this._document.createElement("div");for(let m=0;m .cdk-overlay-container [aria-modal="true"]');for(let u=0;u{var t;class r{constructor(e,s,u,m,b){this._ngZone=e,this._platform=s,this._inputModalityDetector=u,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new he,this._rootNodeFocusAndBlurListener=C=>{for(let I=vc(C);I;I=I.parentElement)"focus"===C.type?this._onFocus(C,I):this._onBlur(C,I)},this._document=m,this._detectionMode=(null==b?void 0:b.detectionMode)||0}monitor(e,s=!1){const u=ml(e);if(!this._platform.isBrowser||1!==u.nodeType)return tt();const m=function R$(t){if(function P$(){if(null==wk){const t=typeof document<"u"?document.head:null;wk=!(!t||!t.createShadowRoot&&!t.attachShadow)}return wk}()){const r=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}(u)||this._getDocument(),b=this._elementInfo.get(u);if(b)return s&&(b.checkChildren=!0),b.subject;const C={checkChildren:s,subject:new he,rootNode:m};return this._elementInfo.set(u,C),this._registerGlobalListeners(C),C.subject}stopMonitoring(e){const s=ml(e),u=this._elementInfo.get(s);u&&(u.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(u))}focusVia(e,s,u){const m=ml(e);m===this._getDocument().activeElement?this._getClosestElementsInfo(m).forEach(([C,M])=>this._originChanged(C,s,M)):(this._setOrigin(s),"function"==typeof m.focus&&m.focus(u))}ngOnDestroy(){this._elementInfo.forEach((e,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,s){e.classList.toggle("cdk-focused",!!s),e.classList.toggle("cdk-touch-focused","touch"===s),e.classList.toggle("cdk-keyboard-focused","keyboard"===s),e.classList.toggle("cdk-mouse-focused","mouse"===s),e.classList.toggle("cdk-program-focused","program"===s)}_setOrigin(e,s=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&s,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,s){const u=this._elementInfo.get(s),m=vc(e);!u||!u.checkChildren&&s!==m||this._originChanged(s,this._getFocusOrigin(m),u)}_onBlur(e,s){const u=this._elementInfo.get(s);!u||u.checkChildren&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||(this._setClasses(s),this._emitOrigin(u,null))}_emitOrigin(e,s){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(s))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const s=e.rootNode,u=this._rootNodeFocusListenerCount.get(s)||0;u||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,H1),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,H1)}),this._rootNodeFocusListenerCount.set(s,u+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Dt(this._stopInputModalityDetector)).subscribe(m=>{this._setOrigin(m,!0)}))}_removeGlobalListeners(e){const s=e.rootNode;if(this._rootNodeFocusListenerCount.has(s)){const u=this._rootNodeFocusListenerCount.get(s);u>1?this._rootNodeFocusListenerCount.set(s,u-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,H1),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,H1),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,s,u){this._setClasses(e,s),this._emitOrigin(u,s),this._lastFocusOrigin=s}_getClosestElementsInfo(e){const s=[];return this._elementInfo.forEach((u,m)=>{(m===e||u.checkChildren&&m.contains(e))&&s.push([m,u])}),s}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:s,mostRecentModality:u}=this._inputModalityDetector;if("mouse"!==u||!s||s===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const m=e.labels;if(m)for(let b=0;b{var t;class r{constructor(e,s){this._elementRef=e,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(uo))},t.\u0275dir=ce({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),r})();const Kg="cdk-high-contrast-black-on-white",nP="cdk-high-contrast-white-on-black",iP="cdk-high-contrast-active";let Qg=(()=>{var t;class r{constructor(e,s){this._platform=e,this._document=s,this._breakpointSubscription=De(L1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const s=this._document.defaultView||window,u=s&&s.getComputedStyle?s.getComputedStyle(e):null,m=(u&&u.backgroundColor||"").replace(/ /g,"");switch(e.remove(),m){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(iP,Kg,nP),this._hasCheckedHighContrastMode=!0;const s=this.getHighContrastMode();1===s?e.add(iP,Kg):2===s&&e.add(iP,nP)}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),j1=(()=>{var t;class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Qg))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[zk]}),r})();function tz(t,r){}class Jg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let rP=(()=>{var t;class r extends gb{constructor(e,s,u,m,b,C,M,I){super(),this._elementRef=e,this._focusTrapFactory=s,this._config=m,this._interactivityChecker=b,this._ngZone=C,this._overlayRef=M,this._focusMonitor=I,this._platform=De(Jn),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=F=>{this._portalOutlet.hasAttached();const H=this._portalOutlet.attachDomPortal(F);return this._contentAttached(),H},this._document=u,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const s=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),s}attachTemplatePortal(e){this._portalOutlet.hasAttached();const s=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),s}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,s){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const u=()=>{e.removeEventListener("blur",u),e.removeEventListener("mousedown",u),e.removeAttribute("tabindex")};e.addEventListener("blur",u),e.addEventListener("mousedown",u)})),e.focus(s)}_focusByCssSelector(e,s){let u=this._elementRef.nativeElement.querySelector(e);u&&this._forceFocus(u,s)}_trapFocus(){var s;const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":null==(s=this._focusTrap)||s.focusInitialElementWhenReady().then(u=>{u||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let s=null;if("string"==typeof e?s=this._document.querySelector(e):"boolean"==typeof e?s=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(s=e),this._config.restoreFocus&&s&&"function"==typeof s.focus){const u=pb(),m=this._elementRef.nativeElement;(!u||u===this._document.body||u===m||m.contains(u))&&(this._focusMonitor?(this._focusMonitor.focusVia(s,this._closeInteractionType),this._closeInteractionType=null):s.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,s=pb();return e===s||e.contains(s)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pb()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt,8),V(Jg),V(Zk),V(Ye),V(k1),V(uo))},t.\u0275cmp=xe({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,s){if(1&e&&ft(_c,7),2&e){let u;Ne(u=Ve())&&(s._portalOutlet=u.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,s){2&e&&$e("id",s._config.id||null)("role",s._config.role)("aria-modal",s._config.ariaModal)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null)},standalone:!0,features:[ze,wf],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,s){1&e&&re(0,tz,0,0,"ng-template",0)},dependencies:[gl,_c],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class xb{constructor(r,l){this.overlayRef=r,this.config=l,this.closed=new he,this.disableClose=l.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=l.id,this.keydownEvents.subscribe(e=>{27===e.keyCode&&!this.disableClose&&!vr(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=r.detachments().subscribe(()=>{!1!==l.closeOnOverlayDetachments&&this.close()})}close(r,l){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=(null==l?void 0:l.focusOrigin)||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(r),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",l=""){return this.overlayRef.updateSize({width:r,height:l}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const aP=new ve("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.block()}}),NY=new ve("DialogData"),VY=new ve("DefaultDialogConfig");let zY=0,iz=(()=>{var t;class r{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,s,u,m,b,C){this._overlay=e,this._injector=s,this._defaultOptions=u,this._parentDialog=m,this._overlayContainer=b,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this._ariaHiddenElements=new Map,this.afterAllClosed=Ag(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pr(void 0))),this._scrollStrategy=C}open(e,s){(s={...this._defaultOptions||new Jg,...s}).id=s.id||"cdk-dialog-"+zY++,s.id&&this.getDialogById(s.id);const m=this._getOverlayConfig(s),b=this._overlay.create(m),C=new xb(b,s),M=this._attachContainer(b,C,s);return C.containerInstance=M,this._attachDialogContent(e,C,M,s),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.closed.subscribe(()=>this._removeOpenDialog(C,!0)),this.afterOpened.next(C),C}closeAll(){ev(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(s=>s.id===e)}ngOnDestroy(){ev(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),ev(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const s=new zu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(s.backdropClass=e.backdropClass),s}_attachContainer(e,s,u){var F;const m=u.injector||(null==(F=u.viewContainerRef)?void 0:F.injector),b=[{provide:Jg,useValue:u},{provide:xb,useValue:s},{provide:k1,useValue:e}];let C;u.container?"function"==typeof u.container?C=u.container:(C=u.container.type,b.push(...u.container.providers(u))):C=rP;const M=new Vu(C,u.viewContainerRef,mn.create({parent:m||this._injector,providers:b}),u.componentFactoryResolver);return e.attach(M).instance}_attachDialogContent(e,s,u,m){if(e instanceof Kn){const b=this._createInjector(m,s,u,void 0);let C={$implicit:m.data,dialogRef:s};m.templateContext&&(C={...C,..."function"==typeof m.templateContext?m.templateContext():m.templateContext}),u.attachTemplatePortal(new yd(e,null,C,b))}else{const b=this._createInjector(m,s,u,this._injector),C=u.attachComponentPortal(new Vu(e,m.viewContainerRef,b,m.componentFactoryResolver));s.componentRef=C,s.componentInstance=C.instance}}_createInjector(e,s,u,m){var M;const b=e.injector||(null==(M=e.viewContainerRef)?void 0:M.injector),C=[{provide:NY,useValue:e.data},{provide:xb,useValue:s}];return e.providers&&("function"==typeof e.providers?C.push(...e.providers(s,e,u)):C.push(...e.providers)),e.direction&&(!b||!b.get(Ir,null,{optional:!0}))&&C.push({provide:Ir,useValue:{value:e.direction,change:tt()}}),mn.create({parent:b||m,providers:C})}_removeOpenDialog(e,s){const u=this.openDialogs.indexOf(e);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((m,b)=>{m?b.setAttribute("aria-hidden",m):b.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),s&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const s=e.parentElement.children;for(let u=s.length-1;u>-1;u--){const m=s[u];m!==e&&"SCRIPT"!==m.nodeName&&"STYLE"!==m.nodeName&&!m.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(mn),fe(VY,8),fe(t,12),fe(I1),fe(aP))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function ev(t,r){let l=t.length;for(;l--;)r(t[l])}let HY=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[iz],imports:[Hu,gl,j1,rP,gl]}),r})();const UY=["text"];function jY(t,r){if(1&t&&pe(0,"mat-pseudo-checkbox",6),2&t){const l=Z();z("disabled",l.disabled)("state",l.selected?"checked":"unchecked")}}function GY(t,r){1&t&&pe(0,"mat-pseudo-checkbox",7),2&t&&z("disabled",Z().disabled)}function WY(t,r){if(1&t&&(P(0,"span",8),Y(1),R()),2&t){const l=Z();N(),Re("(",l.group.label,")")}}const $Y=[[["mat-icon"]],"*"],YY=["mat-icon","*"];let qY=(()=>{var t;class r{}return(t=r).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",r})(),G1=(()=>{var t;class r{}return(t=r).COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",r})();const ZY=new ve("mat-sanity-checks",{providedIn:"root",factory:function az(){return!0}});let $t=(()=>{var t;class r{constructor(e,s,u){this._sanityChecks=s,this._document=u,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!xk()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Qg),fe(ZY,8),fe(yt))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[mb,mb]}),r})();function lp(t){return class extends t{get disabled(){return this._disabled}set disabled(r){this._disabled=Ot(r)}constructor(...r){super(...r),this._disabled=!1}}}function tv(t,r){return class extends t{get color(){return this._color}set color(l){const e=l||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}constructor(...l){super(...l),this.defaultColor=r,this.color=r}}}function sP(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=Ot(r)}constructor(...r){super(...r),this._disableRipple=!1}}}function W1(t,r=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(l){this._tabIndex=null!=l?xa(l):this.defaultTabIndex}constructor(...l){super(...l),this._tabIndex=r,this.defaultTabIndex=r}}}function Db(t){return class extends t{updateErrorState(){const r=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==r&&(this.errorState=u,this.stateChanges.next())}constructor(...r){super(...r),this.errorState=!1}}}function cp(t){return class extends t{constructor(...r){super(...r),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ln(l=>{this._isInitialized?this._notifySubscriber(l):this._pendingSubscribers.push(l)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(r){r.next(),r.complete()}}}const Tb=new ve("MAT_DATE_LOCALE",{providedIn:"root",factory:function $1(){return De(rd)}});class aa{constructor(){this._localeChanges=new he,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,l){return this.getYear(r)-this.getYear(l)||this.getMonth(r)-this.getMonth(l)||this.getDate(r)-this.getDate(l)}sameDate(r,l){if(r&&l){let e=this.isValid(r),s=this.isValid(l);return e&&s?!this.compareDate(r,l):e==s}return r==l}clampDate(r,l,e){return l&&this.compareDate(r,l)<0?l:e&&this.compareDate(r,e)>0?e:r}}const dp=new ve("mat-date-formats"),KY=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Y1(t,r){const l=Array(t);for(let e=0;e{var t;class r extends aa{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=De(Tb,{optional:!0}),void 0!==e&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const s=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Y1(12,u=>this._format(s,new Date(2017,u,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Y1(31,s=>this._format(e,new Date(2017,0,s+1)))}getDayOfWeekNames(e){const s=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Y1(7,u=>this._format(s,new Date(2017,0,u+1)))}getYearName(e){const s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,s,u){let m=this._createDateWithOverflow(e,s,u);return m.getMonth(),m}today(){return new Date}parse(e,s){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,s){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const u=new Intl.DateTimeFormat(this.locale,{...s,timeZone:"utc"});return this._format(u,e)}addCalendarYears(e,s){return this.addCalendarMonths(e,12*s)}addCalendarMonths(e,s){let u=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+s,this.getDate(e));return this.getMonth(u)!=((this.getMonth(e)+s)%12+12)%12&&(u=this._createDateWithOverflow(this.getYear(u),this.getMonth(u),0)),u}addCalendarDays(e,s){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+s)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(KY.test(e)){let s=new Date(e);if(this.isValid(s))return s}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,s,u){const m=new Date;return m.setFullYear(e,s,u),m.setHours(0,0,0,0),m}_2digit(e){return("00"+e).slice(-2)}_format(e,s){const u=new Date;return u.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),u.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),e.format(u)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Tb,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const lP={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let cP=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:aa,useClass:oz}]}),r})(),sz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:dp,useValue:lP}],imports:[cP]}),r})(),Gu=(()=>{var t;class r{isErrorState(e,s){return!!(e&&e.invalid&&(e.touched||s&&s.submitted))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class eq{constructor(r,l,e,s=!1){this._renderer=r,this.element=l,this.config=e,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dP=Ko({passive:!0,capture:!0});class uP{constructor(){this._events=new Map,this._delegateEventHandler=r=>{var e;const l=vc(r);l&&(null==(e=this._events.get(r.type))||e.forEach((s,u)=>{(u===l||u.contains(l))&&s.forEach(m=>m.handleEvent(r))}))}}addHandler(r,l,e,s){const u=this._events.get(l);if(u){const m=u.get(e);m?m.add(s):u.set(e,new Set([s]))}else this._events.set(l,new Map([[e,new Set([s])]])),r.runOutsideAngular(()=>{document.addEventListener(l,this._delegateEventHandler,dP)})}removeHandler(r,l,e){const s=this._events.get(r);if(!s)return;const u=s.get(l);u&&(u.delete(e),0===u.size&&s.delete(l),0===s.size&&(this._events.delete(r),document.removeEventListener(r,this._delegateEventHandler,dP)))}}const q1={enterDuration:225,exitDuration:150},lz=Ko({passive:!0,capture:!0}),cz=["mousedown","touchstart"],dz=["mouseup","mouseleave","touchend","touchcancel"];class Ab{constructor(r,l,e,s){this._target=r,this._ngZone=l,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ml(e))}fadeInRipple(r,l,e={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...q1,...e.animation};e.centered&&(r=s.left+s.width/2,l=s.top+s.height/2);const m=e.radius||function nq(t,r,l){const e=Math.max(Math.abs(t-l.left),Math.abs(t-l.right)),s=Math.max(Math.abs(r-l.top),Math.abs(r-l.bottom));return Math.sqrt(e*e+s*s)}(r,l,s),b=r-s.left,C=l-s.top,M=u.enterDuration,I=document.createElement("div");I.classList.add("mat-ripple-element"),I.style.left=b-m+"px",I.style.top=C-m+"px",I.style.height=2*m+"px",I.style.width=2*m+"px",null!=e.color&&(I.style.backgroundColor=e.color),I.style.transitionDuration=`${M}ms`,this._containerElement.appendChild(I);const F=window.getComputedStyle(I),q=F.transitionDuration,Q="none"===F.transitionProperty||"0s"===q||"0s, 0s"===q||0===s.width&&0===s.height,ne=new eq(this,I,e,Q);I.style.transform="scale3d(1, 1, 1)",ne.state=0,e.persistent||(this._mostRecentTransientRipple=ne);let ae=null;return!Q&&(M||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ge=()=>this._finishRippleTransition(ne),se=()=>this._destroyRipple(ne);I.addEventListener("transitionend",ge),I.addEventListener("transitioncancel",se),ae={onTransitionEnd:ge,onTransitionCancel:se}}),this._activeRipples.set(ne,ae),(Q||!M)&&this._finishRippleTransition(ne),ne}fadeOutRipple(r){if(2===r.state||3===r.state)return;const l=r.element,e={...q1,...r.config.animation};l.style.transitionDuration=`${e.exitDuration}ms`,l.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const l=ml(r);!this._platform.isBrowser||!l||l===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=l,cz.forEach(e=>{Ab._eventManager.addHandler(this._ngZone,e,l,this)}))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{dz.forEach(l=>{this._triggerElement.addEventListener(l,this,lz)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const l=r===this._mostRecentTransientRipple,{persistent:e}=r.config;r.state=1,!e&&(!l||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const l=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==l&&(r.element.removeEventListener("transitionend",l.onTransitionEnd),r.element.removeEventListener("transitioncancel",l.onTransitionCancel)),r.element.remove()}_onMousedown(r){const l=Qk(r),e=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const r=this._triggerElement;r&&(cz.forEach(l=>Ab._eventManager.removeHandler(l,r,this)),this._pointerUpEventsRegistered&&dz.forEach(l=>r.removeEventListener(l,this,lz)))}}Ab._eventManager=new uP;const Z1=new ve("mat-ripple-global-options");let bl=(()=>{var t;class r{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,s,u,m,b){this._elementRef=e,this._animationMode=b,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=m||{},this._rippleRenderer=new Ab(this,s,e,u)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,s=0,u){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,s,{...this.rippleConfig,...u}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye),V(Jn),V(Z1,8),V(si,8))},t.\u0275dir=ce({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,s){2&e&&et("mat-ripple-unbounded",s.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),Wu=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})(),iq=(()=>{var t;class r{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,s){2&e&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===s.state)("mat-pseudo-checkbox-checked","checked"===s.state)("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal","minimal"===s.appearance)("mat-pseudo-checkbox-full","full"===s.appearance)("_mat-animation-noopable","NoopAnimations"===s._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),r})(),uz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t]}),r})();const hP=new ve("MAT_OPTION_PARENT_COMPONENT"),fP=new ve("MatOptgroup");let rq=0;class hz{constructor(r,l=!1){this.source=r,this.isUserInput=l}}let Ni=(()=>{var t;class r{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,s,u,m){this._element=e,this._changeDetectorRef=s,this._parent=u,this.group=m,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rq++,this.onSelectionChange=new Ce,this._stateChanges=new he}get active(){return this._active}get viewValue(){var e;return((null==(e=this._text)?void 0:e.nativeElement.textContent)||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,s){const u=this._getHostElement();"function"==typeof u.focus&&u.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!vr(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new hz(this,e))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(hP,8),V(fP,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-option"]],viewQuery:function(e,s){if(1&e&&ft(UY,7),2&e){let u;Ne(u=Ve())&&(s._text=u.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,s){1&e&&J("click",function(){return s._selectViaInteraction()})("keydown",function(m){return s._handleKeydown(m)}),2&e&&(Ba("id",s.id),$e("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),et("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",jt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[na],ngContentSelectors:YY,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,s){1&e&&(jn($Y),re(0,jY,1,2,"mat-pseudo-checkbox",0),dt(1),P(2,"span",1,2),dt(4,1),R(),re(5,GY,1,1,"mat-pseudo-checkbox",3)(6,WY,2,1,"span",4),pe(7,"div",5)),2&e&&(an(0,s.multiple?0:-1),N(5),an(5,s.multiple||!s.selected||s.hideSingleSelectionIndicator?-1:5),N(),an(6,s.group&&s.group._inert?6:-1),N(),z("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[bl,iq],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})();function pP(t,r,l){if(l.length){let e=r.toArray(),s=l.toArray(),u=0;for(let m=0;ml+e?Math.max(0,t-e+r):l}let K1=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Wu,$t,uz]}),r})();const mP={capture:!0},fz=["focus","click","mouseenter","touchstart"],gP="mat-ripple-loader-uninitialized",up="mat-ripple-loader-class-name",vP="mat-ripple-loader-centered",Q1="mat-ripple-loader-disabled";let J1=(()=>{var t;class r{constructor(){this._document=De(yt,{optional:!0}),this._animationMode=De(si,{optional:!0}),this._globalRippleOptions=De(Z1,{optional:!0}),this._platform=De(Jn),this._ngZone=De(Ye),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const u=e.target.closest(`[${gP}]`);u&&this._createRipple(u)},this._ngZone.runOutsideAngular(()=>{var e;for(const s of fz)null==(e=this._document)||e.addEventListener(s,this._onInteraction,mP)})}ngOnDestroy(){var s;const e=this._hosts.keys();for(const u of e)this.destroyRipple(u);for(const u of fz)null==(s=this._document)||s.removeEventListener(u,this._onInteraction,mP)}configureRipple(e,s){e.setAttribute(gP,""),(s.className||!e.hasAttribute(up))&&e.setAttribute(up,s.className||""),s.centered&&e.setAttribute(vP,""),s.disabled&&e.setAttribute(Q1,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,s){const u=this._hosts.get(e);u?u.disabled=s:s?e.setAttribute(Q1,""):e.removeAttribute(Q1)}_createRipple(e){var b;if(!this._document)return;const s=this._hosts.get(e);if(s)return s;null==(b=e.querySelector(".mat-ripple"))||b.remove();const u=this._document.createElement("span");u.classList.add("mat-ripple",e.getAttribute(up)),e.append(u);const m=new bl(new je(u),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return m._isInitialized=!0,m.trigger=e,m.centered=e.hasAttribute(vP),m.disabled=e.hasAttribute(Q1),this.attachRipple(e,m),m}attachRipple(e,s){e.removeAttribute(gP),this._hosts.set(e,s)}destroyRipple(e){const s=this._hosts.get(e);s&&(s.ngOnDestroy(),this._hosts.delete(e))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const wd="*";function Vi(t,r){return{type:7,name:t,definitions:r,options:{}}}function kn(t,r=null){return{type:4,styles:r,timings:t}}function _P(t,r=null){return{type:3,steps:t,options:r}}function lt(t){return{type:6,styles:t,offset:null}}function Vn(t,r,l){return{type:0,name:t,styles:r,options:l}}function nv(t){return{type:5,steps:t}}function Cn(t,r,l=null){return{type:1,expr:t,animation:r,options:l}}function Eb(t=null){return{type:9,options:t}}function eS(t,r,l=null){return{type:11,selector:t,animation:r,options:l}}class $u{constructor(r=0,l=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+l}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const l="start"==r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}class yP{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let l=0,e=0,s=0;const u=this.players.length;0==u?queueMicrotask(()=>this._onFinish()):this.players.forEach(m=>{m.onDone(()=>{++l==u&&this._onFinish()}),m.onDestroy(()=>{++e==u&&this._onDestroy()}),m.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((m,b)=>Math.max(m,b.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const l=r*this.totalTime;this.players.forEach(e=>{const s=e.totalTime?Math.min(1,l/e.totalTime):1;e.setPosition(s)})}getPosition(){const r=this.players.reduce((l,e)=>null===l||e.totalTime>l.totalTime?e:l,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const l="start"==r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}function mz(t,r){}class wP{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const xP="mdc-dialog--open",CP="mdc-dialog--opening",SP="mdc-dialog--closing";let Ts=(()=>{var t;class r extends rP{constructor(e,s,u,m,b,C,M,I,F){super(e,s,u,m,b,C,M,F),this._animationMode=I,this._animationStateChanged=new Ce,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?DP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(vz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CP,xP)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(xP),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(xP),this._animationsEnabled?(this._hostElement.style.setProperty(vz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(SP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(CP,SP)}_waitForAnimationToComplete(e,s){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(s,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(e){const s=super.attachComponentPortal(e);return s.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt,8),V(wP),V(Zk),V(Ye),V(k1),V(si,8),V(uo))},t.\u0275cmp=xe({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,s){2&e&&(Ba("id",s._config.id),$e("aria-modal",s._config.ariaModal)("role",s._config.role)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null),et("_mat-animation-noopable",!s._animationsEnabled))},standalone:!0,features:[ze,wf],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,mz,0,0,"ng-template",2),R()())},dependencies:[gl,_c],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),r})();const vz="--mat-dialog-transition-duration";function DP(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?xa(t.substring(0,t.length-2)):t.endsWith("s")?1e3*xa(t.substring(0,t.length-1)):"0"===t?0:null}class di{constructor(r,l,e){this._ref=r,this._containerInstance=e,this._afterOpened=new he,this._beforeClosed=new he,this._state=0,this.disableClose=l.disableClose,this.id=r.id,e._animationStateChanged.pipe(bn(s=>"opened"===s.state),In(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(bn(s=>"closed"===s.state),In(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),xi(this.backdropClick(),this.keydownEvents().pipe(bn(s=>27===s.keyCode&&!this.disableClose&&!vr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),_z(this,"keydown"===s.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe(bn(l=>"closing"===l.state),In(1)).subscribe(l=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let l=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?l.left(r.left):l.right(r.right):l.centerHorizontally(),r&&(r.top||r.bottom)?r.top?l.top(r.top):l.bottom(r.bottom):l.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",l=""){return this._ref.updateSize(r,l),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function _z(t,r,l){return t._closeInteractionType=r,t.close(l)}const Bi=new ve("MatMdcDialogData"),dq=new ve("mat-mdc-dialog-default-options"),TP=new ve("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.block()}});let yz=0,nS=(()=>{var t;class r{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,s,u,m,b,C,M,I){this._overlay=e,this._defaultOptions=m,this._scrollStrategy=b,this._parentDialog=C,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this.dialogConfigClass=wP,this.afterAllClosed=Ag(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pr(void 0))),this._dialog=s.get(iz),this._dialogRefConstructor=di,this._dialogContainerType=Ts,this._dialogDataToken=Bi}open(e,s){let u;(s={...this._defaultOptions||new wP,...s}).id=s.id||"mat-mdc-dialog-"+yz++,s.scrollStrategy=s.scrollStrategy||this._scrollStrategy();const m=this._dialog.open(e,{...s,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:s},{provide:Jg,useValue:s}]},templateContext:()=>({dialogRef:u}),providers:(b,C,M)=>(u=new this._dialogRefConstructor(b,s,M),u.updatePosition(null==s?void 0:s.position),[{provide:this._dialogContainerType,useValue:M},{provide:this._dialogDataToken,useValue:C.data},{provide:this._dialogRefConstructor,useValue:u}])});return u.componentRef=m.componentRef,u.componentInstance=m.componentInstance,this.openDialogs.push(u),this.afterOpened.next(u),u.afterClosed().subscribe(()=>{const b=this.openDialogs.indexOf(u);b>-1&&(this.openDialogs.splice(b,1),this.openDialogs.length||this._getAfterAllClosed().next())}),u}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(s=>s.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let s=e.length;for(;s--;)e[s].close()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(mn),fe(Du,8),fe(dq,8),fe(TP),fe(t,12),fe(I1),fe(si,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),fq=0,Io=(()=>{var t;class r{constructor(e,s,u){this.dialogRef=e,this._elementRef=s,this._dialog=u,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=bz(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const s=e._matDialogClose||e._matDialogCloseResult;s&&(this.dialogResult=s.currentValue)}_onButtonClick(e){_z(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di,8),V(je),V(nS))},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,s){1&e&&J("click",function(m){return s._onButtonClick(m)}),2&e&&$e("aria-label",s.ariaLabel||null)("type",s.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[nn]}),r})(),zi=(()=>{var t;class r{constructor(e,s,u){this._dialogRef=e,this._elementRef=s,this._dialog=u,this.id="mat-mdc-dialog-title-"+fq++}ngOnInit(){this._dialogRef||(this._dialogRef=bz(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{var e,s;null==(s=null==(e=this._dialogRef._containerInstance)?void 0:e._ariaLabelledByQueue)||s.push(this.id)})}ngOnDestroy(){var s,u;const e=null==(u=null==(s=this._dialogRef)?void 0:s._containerInstance)?void 0:u._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const m=e.indexOf(this.id);m>-1&&e.splice(m,1)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di,8),V(je),V(nS))},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,s){2&e&&Ba("id",s.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0}),r})(),Hi=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0}),r})(),Ai=(()=>{var t;class r{constructor(){this.align="start"}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-mdc-dialog-actions-align-center","center"===s.align)("mat-mdc-dialog-actions-align-end","end"===s.align)},inputs:{align:"align"},standalone:!0}),r})();function bz(t,r){let l=t.nativeElement.parentElement;for(;l&&!l.classList.contains("mat-mdc-dialog-container");)l=l.parentElement;return l?r.find(e=>e.id===l.id):null}let wz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[nS],imports:[HY,Hu,gl,$t,Ts,$t]}),r})();const gq=$b(t=>function(l=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=l});function vq(t){throw new gq(t)}function Cz(t,r){const l="object"==typeof r;return new Promise((e,s)=>{const u=new _e({next:m=>{e(m),u.unsubscribe()},error:s,complete:()=>{l?e(r.defaultValue):s(new Tg)}});t.subscribe(u)})}var Sz;const AP=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Dz=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],Tz=t=>{const r=[];return t.forEach(l=>{r.push(l.substring(0,3))}),r},iv=(t,r,l)=>(typeof r>"u"&&(r=new Date),xd(t,r,l)),xd=(t,r,l,e)=>{e=e||{},r=r||new Date;const s=l||Cq;s.formats=s.formats||{};const u=r.getTime();return(e.utc||"number"==typeof e.timezone)&&(r=bq(r)),"number"==typeof e.timezone&&(r=new Date(r.getTime()+6e4*e.timezone)),t.replace(/%([-_0]?.)/g,(m,b)=>{let C,M,I,F,H,q,Q,ne;if(I=null,H=null,2===b.length){if(I=b[0],"-"===I)H="";else if("_"===I)H=" ";else{if("0"!==I)return m;H="0"}b=b[1]}switch(b){case"A":return s.days[r.getDay()];case"a":return s.shortDays[r.getDay()];case"B":return s.months[r.getMonth()];case"b":case"h":return s.shortMonths[r.getMonth()];case"C":return ho(Math.floor(r.getFullYear()/100),H);case"D":return xd(s.formats.D||"%m/%d/%y",r,s);case"d":return ho(r.getDate(),H);case"e":return r.getDate();case"F":return xd(s.formats.F||"%Y-%m-%d",r,s);case"H":return ho(r.getHours(),H);case"I":return ho(Mz(r),H);case"j":return Q=new Date(r.getFullYear(),0,1),C=Math.ceil((r.getTime()-Q.getTime())/864e5),ho(C,3);case"k":return ho(r.getHours(),void 0===H?" ":H);case"L":return ho(Math.floor(u%1e3),3);case"l":return ho(Mz(r),void 0===H?" ":H);case"M":return ho(r.getMinutes(),H);case"m":return ho(r.getMonth()+1,H);case"n":return"\n";case"o":return String(r.getDate())+wq(r.getDate());case"P":case"p":return"";case"R":return xd(s.formats.R||"%H:%M",r,s);case"r":return xd(s.formats.r||"%I:%M:%S %p",r,s);case"S":return ho(r.getSeconds(),H);case"s":return Math.floor(u/1e3);case"T":return xd(s.formats.T||"%H:%M:%S",r,s);case"t":return"\t";case"U":return ho(iS(r,"sunday"),H);case"u":return M=r.getDay(),0===M?7:M;case"v":return xd(s.formats.v||"%e-%b-%Y",r,s);case"W":return ho(iS(r,"monday"),H);case"w":return r.getDay();case"Y":return r.getFullYear();case"y":return ne=String(r.getFullYear()),ne.slice(ne.length-2);case"Z":return e.utc?"GMT":(q=r.toString().match(/\((\w+)\)/),q&&q[1]||"");case"z":return e.utc?"+0000":(F="number"==typeof e.timezone?e.timezone:-r.getTimezoneOffset(),(F<0?"-":"+")+ho(Math.abs(F/60))+ho(F%60));default:return b}})},bq=t=>{const r=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+r)},ho=(t,r,l)=>{"number"==typeof r&&(l=r,r="0"),r=r??"0",l=l??2;let e=String(t);if(r)for(;e.length{let r;return r=t.getHours(),0===r?r=12:r>12&&(r-=12),r},wq=t=>{const r=t%10,l=t%100;if(l>=11&&l<=13||0===r||r>=4)return"th";switch(r){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},iS=(t,r)=>{r=r||"sunday";let l=t.getDay();"monday"===r&&(0===l?l=6:l--);const e=new Date(t.getFullYear(),0,1),s=Math.floor((t.getTime()-e.getTime())/864e5);return Math.floor((s+7-l)/7)},EP=t=>t.replace(/./g,r=>{switch(r){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+r;case"c":return"%FT%TZ";case"D":return"%a";case"e":case"O":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":case"L":case"S":case"t":case"U":return"";case"j":return"%d";case"l":return"%A";case"M":case"N":return"%b";case"n":return"%m";case"o":return"%W";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"T":return"%Z";case"u":return"0";case"z":return"%j";case"Z":return"z";default:return r}}),Ms=(t,r,l=null)=>{let e;if("None"===r||null==r)r=7226578800,e=django.gettext("Never");else{let s=django.get_format(t);l&&(s+=l),e=iv(EP(s),new Date(1e3*r))}return e},IP=t=>"yes"===t||!0===t||"true"===t||1===t,Cq={days:AP,shortDays:Tz(AP),months:Dz,shortMonths:Tz(Dz),AM:"AM",PM:"PM",am:"am",pm:"pm"},Yu=(t,r)=>{let l;if(t instanceof Promise)l=t;else if(t instanceof wl)l=t;else{if(r)return Cz(t.pipe(function xz(t,r){const{first:l,each:e,with:s=vq,scheduler:u=r??Ds,meta:m=null}=c5(t)?{first:t}:"number"==typeof t?{each:t}:t;if(null==l&&null==e)throw new TypeError("No timeout provided.");return Ae((b,C)=>{let M,I,F=null,H=0;const q=Q=>{I=Ss(C,u,()=>{try{M.unsubscribe(),ra(s({meta:m,lastValue:F,seen:H})).subscribe(C)}catch(ne){C.error(ne)}},Q)};M=b.subscribe(Bn(C,Q=>{null==I||I.unsubscribe(),H++,C.next(F=Q),e>0&&q(e)},void 0,void 0,()=>{null!=I&&I.closed||null==I||I.unsubscribe(),F=null})),!H&&q(null!=l?"number"==typeof l?l:+l-u.now():e)})}(r)));l=Cz(t)}return l};class wl{constructor(){this[Sz]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((r,l)=>{this.resolve=r,this.reject=l})}then(r,l){return this.promise.then(r,l)}catch(r){return this.promise.catch(r)}finally(r){return this.promise.finally(r)}}Sz=Symbol.toStringTag;const Ez=["mat-button",""],kP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],PP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],RP=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",rS=["mat-icon-button",""],Dq=["*"],Mq=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let aS=(()=>{var t;class r{get ripple(){var e;return null==(e=this._rippleLoader)?void 0:e.getRipple(this._elementRef.nativeElement)}set ripple(e){var s;null==(s=this._rippleLoader)||s.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,s,u,m){var M;this._elementRef=e,this._platform=s,this._ngZone=u,this._animationMode=m,this._focusMonitor=De(uo),this._rippleLoader=De(J1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,null==(M=this._rippleLoader)||M.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const b=this._elementRef.nativeElement,C=b.classList;for(const{attribute:I,mdcClasses:F}of Mq)b.hasAttribute(I)&&C.add(...F)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){var e;this._focusMonitor.stopMonitoring(this._elementRef),null==(e=this._rippleLoader)||e.destroyRipple(this._elementRef.nativeElement)}focus(e="program",s){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,s):this._elementRef.nativeElement.focus(s)}_updateRippleDisabled(){var e;null==(e=this._rippleLoader)||e.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275dir=ce({type:t,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",jt],disabled:["disabled","disabled",jt]},features:[na]}),r})(),Pz=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m),this._haltDisabledEvents=b=>{this.disabled&&(b.preventDefault(),b.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275dir=ce({type:t,inputs:{tabIndex:["tabIndex","tabIndex",l=>null==l?void 0:qA(l)]},features:[na,ze]}),r})(),Pn=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[ze],attrs:Ez,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),oS=(()=>{var t;class r extends Pz{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:11,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null)("tabindex",s.disabled?-1:s.tabIndex)("aria-disabled",s.disabled.toString()),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[ze],attrs:Ez,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',RP],encapsulation:2,changeDetection:0}),r})(),wc=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[ze],attrs:rS,ngContentSelectors:Dq,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(),pe(0,"span",0),dt(1),pe(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',RP],encapsulation:2,changeDetection:0}),r})(),Rz=(()=>{var t;class r extends Pz{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["a","mat-icon-button",""]],hostVars:11,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null)("tabindex",s.disabled?-1:s.tabIndex)("aria-disabled",s.disabled.toString()),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[ze],attrs:rS,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',RP],encapsulation:2,changeDetection:0}),r})(),hp=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,$t]}),r})(),vn=(()=>{var t;class r{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["uds-translate"]]}),r})(),Oz=(()=>{var t;class r{constructor(e){this.sanitizer=e}transform(e,s){return e=(e=(e=e.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dd,16))},t.\u0275pipe=ua({name:"safeHtml",type:t,pure:!0}),r})();function Eq(t,r){if(1&t){const l=Oe();P(0,"button",4),J("click",function(){return oe(l),le(Z().resolveAndClose(!1))}),P(1,"uds-translate"),Y(2,"Close"),R(),Y(3),R()}if(2&t){const l=Z();N(3),En(l.extra)}}function lS(t,r){if(1&t){const l=Oe();P(0,"button",5),J("click",function(){return oe(l),le(Z().resolveAndClose(!0))}),P(1,"uds-translate"),Y(2,"Yes"),R()()}2&t&&z("color",Z().yesColor)}function Qee(t,r){if(1&t){const l=Oe();P(0,"button",5),J("click",function(){return oe(l),le(Z().resolveAndClose(!1))}),P(1,"uds-translate"),Y(2,"No"),R()()}2&t&&z("color",Z().noColor)}var Pb=function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t}(Pb||{});let Rb=(()=>{var t;class r{constructor(e,s){this.dialogRef=e,this.data=s,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new wl}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){var e=this;return Ge(function*(){const s=e.data.autoclose||0;s>0&&(e.dialogRef.afterClosed().subscribe(u=>{e.closed()}),e.setExtra(s),e.subscription=function mq(t=0,r=Ds){return t<0&&(t=0),hb(t,t,r)}(1e3).subscribe(u=>{const m=s-1e3*(u+1);e.setExtra(m),m<=0&&e.close()}))})()}ngOnInit(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Pb.alert&&this.initAlert()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(e,s){1&e&&(pe(0,"h4",0),nl(1,"safeHtml"),pe(2,"mat-dialog-content",1),nl(3,"safeHtml"),P(4,"mat-dialog-actions"),re(5,Eq,4,1,"button",2)(6,lS,3,1,"button",3)(7,Qee,3,1,"button",3),R()),2&e&&(z("innerHtml",ng(1,5,s.data.title),zr),N(2),z("innerHTML",ng(3,7,s.data.body),zr),N(3),z("ngIf",0===s.data.type),N(),z("ngIf",1===s.data.type),N(),z("ngIf",1===s.data.type))},dependencies:[xn,Pn,Io,zi,Ai,Hi,vn,Oz],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();var Ca=function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t}(Ca||{});class OP{static locateChoice(r,l){const e=l.gui.choices;if(void 0===e)return{id:"",img:"",text:""};let s=e.find(u=>u.id===r);if(void 0===s)try{s=e[0]}catch{s={id:"",img:"",text:""}}return s}}function LP(...t){const r=BE(t),{args:l,keys:e}=bI(t),s=new ln(u=>{const{length:m}=l;if(!m)return void u.complete();const b=new Array(m);let C=m,M=m;for(let I=0;I{F||(F=!0,M--),b[I]=H},()=>C--,void 0,()=>{(!C||!F)&&(M||u.next(e?xI(e,b):b),u.complete())}))}});return r?s.pipe(Ky(r)):s}let cS=(()=>{var t;class r{constructor(e,s){this._renderer=e,this._elementRef=s,this.onChange=u=>{},this.onTouched=()=>{}}setProperty(e,s){this._renderer.setProperty(this._elementRef.nativeElement,e,s)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ec),V(je))},t.\u0275dir=ce({type:t}),r})(),fp=(()=>{var t;class r extends cS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,features:[ze]}),r})();const Pr=new ve("NgValueAccessor"),Iq={provide:Pr,useExisting:Jt(()=>$i),multi:!0},Fz=new ve("CompositionEventMode");let $i=(()=>{var t;class r extends cS{constructor(e,s,u){super(e,s),this._compositionMode=u,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function kq(){const t=Su()?Su().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ec),V(je),V(Fz,8))},t.\u0275dir=ce({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,s){1&e&&J("input",function(m){return s._handleInput(m.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(m){return s._compositionEnd(m.target.value)})},features:[Je([Iq]),ze]}),r})();function qu(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function uS(t){return null!=t&&"number"==typeof t.length}const Ei=new ve("NgValidators"),Sd=new ve("NgAsyncValidators"),Pq=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class hS{static min(r){return function FP(t){return r=>{if(qu(r.value)||qu(t))return null;const l=parseFloat(r.value);return!isNaN(l)&&l{if(qu(r.value)||qu(t))return null;const l=parseFloat(r.value);return!isNaN(l)&&l>t?{max:{max:t,actual:r.value}}:null}}(r)}static required(r){return pS(r)}static requiredTrue(r){return pp(r)}static email(r){return function Nz(t){return qu(t.value)||Pq.test(t.value)?null:{email:!0}}(r)}static minLength(r){return function Vz(t){return r=>qu(r.value)||!uS(r.value)?null:r.value.length{if(qu(e.value))return null;const s=e.value;return r.test(s)?null:{pattern:{requiredPattern:l,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return i(r)}static composeAsync(r){return o(r)}}function pS(t){return qu(t.value)?{required:!0}:null}function pp(t){return!0===t.value?null:{required:!0}}function NP(t){return r=>uS(r.value)&&r.value.length>t?{maxlength:{requiredLength:t,actualLength:r.value.length}}:null}function Ob(t){return null}function Dd(t){return null!=t}function Bz(t){return Ym(t)?nr(t):t}function BP(t){let r={};return t.forEach(l=>{r=null!=l?{...r,...l}:r}),0===Object.keys(r).length?null:r}function zz(t,r){return r.map(l=>l(t))}function a(t){return t.map(r=>function Rq(t){return!t.validate}(r)?r:l=>r.validate(l))}function i(t){if(!t)return null;const r=t.filter(Dd);return 0==r.length?null:function(l){return BP(zz(l,r))}}function n(t){return null!=t?i(a(t)):null}function o(t){if(!t)return null;const r=t.filter(Dd);return 0==r.length?null:function(l){return LP(zz(l,r).map(Bz)).pipe(Ee(BP))}}function c(t){return null!=t?o(a(t)):null}function d(t,r){return null===t?[r]:Array.isArray(t)?[...t,r]:[t,r]}function h(t){return t._rawValidators}function f(t){return t._rawAsyncValidators}function p(t){return t?Array.isArray(t)?t:[t]:[]}function g(t,r){return Array.isArray(t)?t.includes(r):t===r}function v(t,r){const l=p(r);return p(t).forEach(s=>{g(l,s)||l.push(s)}),l}function _(t,r){return p(r).filter(l=>!g(t,l))}class y{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=n(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=c(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,l){return!!this.control&&this.control.hasError(r,l)}getError(r,l){return this.control?this.control.getError(r,l):null}}class w extends y{get formDirective(){return null}get path(){return null}}class x extends y{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class S{constructor(r){this._cd=r}get isTouched(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.touched)}get isUntouched(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.untouched)}get isPristine(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.pristine)}get isDirty(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.dirty)}get isValid(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.valid)}get isInvalid(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.invalid)}get isPending(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.pending)}get isSubmitted(){var r;return!(null==(r=this._cd)||!r.submitted)}}let A=(()=>{var t;class r extends S{constructor(e){super(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(x,2))},t.\u0275dir=ce({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,s){2&e&&et("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[ze]}),r})(),E=(()=>{var t;class r extends S{constructor(e){super(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(w,10))},t.\u0275dir=ce({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,s){2&e&&et("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[ze]}),r})();const Le="VALID",We="INVALID",Ke="PENDING",Qe="DISABLED";function At(t){return(Et(t)?t.validators:t)||null}function Pt(t,r){return(Et(r)?r.asyncValidators:t)||null}function Et(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class xt{constructor(r,l){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(r),this._assignAsyncValidators(l)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Le}get invalid(){return this.status===We}get pending(){return this.status==Ke}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(v(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(v(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(_(r,this._rawAsyncValidators))}hasValidator(r){return g(this._rawValidators,r)}hasAsyncValidator(r){return g(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(l=>{l.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(l=>{l.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ke,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const l=this._parentMarkedDirty(r.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(e=>{e.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:l}),this._onDisabledChange.forEach(e=>e(!0))}enable(r={}){const l=this._parentMarkedDirty(r.onlySelf);this.status=Le,this._forEachChild(e=>{e.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:l}),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Le||this.status===Ke)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(l=>l._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:Le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ke,this._hasOwnPendingAsyncValidator=!0;const l=Bz(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,l={}){this.errors=r,this._updateControlsErrors(!1!==l.emitEvent)}get(r){let l=r;return null==l||(Array.isArray(l)||(l=l.split(".")),0===l.length)?null:l.reduce((e,s)=>e&&e._find(s),this)}getError(r,l){const e=l?this.get(l):this;return e&&e.errors?e.errors[r]:null}hasError(r,l){return!!this.getError(r,l)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ke)?Ke:this._anyControlsHaveStatus(We)?We:Le}_anyControlsHaveStatus(r){return this._anyControls(l=>l.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Et(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=function Qt(t){return Array.isArray(t)?n(t):t||null}(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=function at(t){return Array.isArray(t)?c(t):t||null}(this._rawAsyncValidators)}}class ui extends xt{constructor(r,l,e){super(At(l),Pt(e,l)),this.controls=r,this._initObservables(),this._setUpdateStrategy(l),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,l){return this.controls[r]?this.controls[r]:(this.controls[r]=l,l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange),l)}addControl(r,l,e={}){this.registerControl(r,l),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(r,l={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}setControl(r,l,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],l&&this.registerControl(r,l),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,l={}){(function qe(t,r,l){t._forEachChild((e,s)=>{if(void 0===l[s])throw new be(1002,"")})})(this,0,r),Object.keys(r).forEach(e=>{(function wt(t,r,l){const e=t.controls;if(!(r?Object.keys(e):e).length)throw new be(1e3,"");if(!e[l])throw new be(1001,"")})(this,!0,e),this.controls[e].setValue(r[e],{onlySelf:!0,emitEvent:l.emitEvent})}),this.updateValueAndValidity(l)}patchValue(r,l={}){null!=r&&(Object.keys(r).forEach(e=>{const s=this.controls[e];s&&s.patchValue(r[e],{onlySelf:!0,emitEvent:l.emitEvent})}),this.updateValueAndValidity(l))}reset(r={},l={}){this._forEachChild((e,s)=>{e.reset(r?r[s]:null,{onlySelf:!0,emitEvent:l.emitEvent})}),this._updatePristine(l),this._updateTouched(l),this.updateValueAndValidity(l)}getRawValue(){return this._reduceChildren({},(r,l,e)=>(r[e]=l.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(l,e)=>!!e._syncPendingControls()||l);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(l=>{const e=this.controls[l];e&&r(e,l)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[l,e]of Object.entries(this.controls))if(this.contains(l)&&r(e))return!0;return!1}_reduceValue(){return this._reduceChildren({},(l,e,s)=>((e.enabled||this.disabled)&&(l[s]=e.value),l))}_reduceChildren(r,l){let e=r;return this._forEachChild((s,u)=>{e=l(e,s,u)}),e}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}const Rr=new ve("CallSetDisabledState",{providedIn:"root",factory:()=>Xu}),Xu="always";function rv(t,r,l=Xu){var e,s;Oq(t,r),r.valueAccessor.writeValue(t.value),(t.disabled||"always"===l)&&(null==(s=(e=r.valueAccessor).setDisabledState)||s.call(e,t.disabled)),function pae(t,r){r.valueAccessor.registerOnChange(l=>{t._pendingValue=l,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Jee(t,r)})}(t,r),function gae(t,r){const l=(e,s)=>{r.valueAccessor.writeValue(e),s&&r.viewToModelUpdate(e)};t.registerOnChange(l),r._registerOnDestroy(()=>{t._unregisterOnChange(l)})}(t,r),function mae(t,r){r.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Jee(t,r),"submit"!==t.updateOn&&t.markAsTouched()})}(t,r),function fae(t,r){if(r.valueAccessor.setDisabledState){const l=e=>{r.valueAccessor.setDisabledState(e)};t.registerOnDisabledChange(l),r._registerOnDestroy(()=>{t._unregisterOnDisabledChange(l)})}}(t,r)}function av(t,r,l=!0){const e=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),Uz(t,r),t&&(r._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Hz(t,r){t.forEach(l=>{l.registerOnValidatorChange&&l.registerOnValidatorChange(r)})}function Oq(t,r){const l=h(t);null!==r.validator?t.setValidators(d(l,r.validator)):"function"==typeof l&&t.setValidators([l]);const e=f(t);null!==r.asyncValidator?t.setAsyncValidators(d(e,r.asyncValidator)):"function"==typeof e&&t.setAsyncValidators([e]);const s=()=>t.updateValueAndValidity();Hz(r._rawValidators,s),Hz(r._rawAsyncValidators,s)}function Uz(t,r){let l=!1;if(null!==t){if(null!==r.validator){const s=h(t);if(Array.isArray(s)&&s.length>0){const u=s.filter(m=>m!==r.validator);u.length!==s.length&&(l=!0,t.setValidators(u))}}if(null!==r.asyncValidator){const s=f(t);if(Array.isArray(s)&&s.length>0){const u=s.filter(m=>m!==r.asyncValidator);u.length!==s.length&&(l=!0,t.setAsyncValidators(u))}}}const e=()=>{};return Hz(r._rawValidators,e),Hz(r._rawAsyncValidators,e),l}function Jee(t,r){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ete(t,r){Oq(t,r)}function Fq(t,r){if(!t.hasOwnProperty("model"))return!1;const l=t.model;return!!l.isFirstChange()||!Object.is(r,l.currentValue)}function tte(t,r){t._syncPendingControls(),r.forEach(l=>{const e=l.control;"submit"===e.updateOn&&e._pendingChange&&(l.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Nq(t,r){if(!r)return null;let l,e,s;return Array.isArray(r),r.forEach(u=>{u.constructor===$i?l=u:function yae(t){return Object.getPrototypeOf(t.constructor)===fp}(u)?e=u:s=u}),s||e||l||null}const wae={provide:w,useExisting:Jt(()=>ov)},zP=(()=>Promise.resolve())();let ov=(()=>{var t;class r extends w{constructor(e,s,u){super(),this.callSetDisabledState=u,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new ui({},n(e),c(s))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){zP.then(()=>{const s=this._findContainer(e.path);e.control=s.registerControl(e.name,e.control),rv(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){zP.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){zP.then(()=>{const s=this._findContainer(e.path),u=new ui({});ete(u,e),s.registerControl(e.name,u),u.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){zP.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,s){zP.then(()=>{this.form.get(e.path).setValue(s)})}setValue(e){this.control.setValue(e)}onSubmit(e){var s;return this.submitted=!0,tte(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null==(s=null==e?void 0:e.target)?void 0:s.method)}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,s){1&e&&J("submit",function(m){return s.onSubmit(m)})("reset",function(){return s.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([wae]),ze]}),r})();function nte(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}function ite(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vq=class extends xt{constructor(r=null,l,e){super(At(l),Pt(e,l)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(l),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Et(l)&&(l.nonNullable||l.initialValueIsDefault)&&(this.defaultValue=ite(r)?r.value:r)}setValue(r,l={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==l.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==l.emitViewToModelChange)),this.updateValueAndValidity(l)}patchValue(r,l={}){this.setValue(r,l)}reset(r=this.defaultValue,l={}){this._applyFormState(r),this.markAsPristine(l),this.markAsUntouched(l),this.setValue(this.value,l),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){nte(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){nte(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){ite(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},Sae={provide:x,useExisting:Jt(()=>ii)},ote=(()=>Promise.resolve())();let ii=(()=>{var t;class r extends x{constructor(e,s,u,m,b,C){super(),this._changeDetectorRef=b,this.callSetDisabledState=C,this.control=new Vq,this._registered=!1,this.name="",this.update=new Ce,this._parent=e,this._setValidators(s),this._setAsyncValidators(u),this.valueAccessor=Nq(0,m)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const s=e.name.previousValue;this.formDirective.removeControl({name:s,path:this._getPath(s)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Fq(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){rv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ote.then(()=>{var s;this.control.setValue(e,{emitViewToModelChange:!1}),null==(s=this._changeDetectorRef)||s.markForCheck()})}_updateDisabled(e){const s=e.isDisabled.currentValue,u=0!==s&&jt(s);ote.then(()=>{var m;u&&!this.control.disabled?this.control.disable():!u&&this.control.disabled&&this.control.enable(),null==(m=this._changeDetectorRef)||m.markForCheck()})}_getPath(e){return this._parent?function xl(t,r){return[...r.path,t]}(e,this._parent):[e]}}return(t=r).\u0275fac=function(e){return new(e||t)(V(w,9),V(Ei,10),V(Sd,10),V(Pr,10),V(dn,8),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Je([Sae]),ze,nn]}),r})(),Bq=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),r})();const Dae={provide:Pr,useExisting:Jt(()=>sv),multi:!0};let sv=(()=>{var t;class r extends fp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=s=>{e(""==s?null:parseFloat(s))}}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,s){1&e&&J("input",function(m){return s.onChange(m.target.value)})("blur",function(){return s.onTouched()})},features:[Je([Dae]),ze]}),r})(),ste=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const zq=new ve("NgModelWithFormControlWarning"),Eae={provide:x,useExisting:Jt(()=>Hq)};let Hq=(()=>{var t;class r extends x{set isDisabled(e){}constructor(e,s,u,m,b){super(),this._ngModelWarningConfig=m,this.callSetDisabledState=b,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(s),this.valueAccessor=Nq(0,u)}ngOnChanges(e){if(this._isControlChanged(e)){const s=e.form.previousValue;s&&av(s,this,!1),rv(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Fq(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&av(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return(t=r)._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Pr,10),V(zq,8),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Je([Eae]),ze,nn]}),r})();const Iae={provide:w,useExisting:Jt(()=>mS)};let mS=(()=>{var t;class r extends w{constructor(e,s,u){super(),this.callSetDisabledState=u,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(s)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Uz(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const s=this.form.get(e.path);return rv(s,e,this.callSetDisabledState),s.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),s}getControl(e){return this.form.get(e.path)}removeControl(e){av(e.control||null,e,!1),function bae(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,s){this.form.get(e.path).setValue(s)}onSubmit(e){var s;return this.submitted=!0,tte(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null==(s=null==e?void 0:e.target)?void 0:s.method)}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const s=e.control,u=this.form.get(e.path);s!==u&&(av(s||null,e),(t=>t instanceof Vq)(u)&&(rv(u,e,this.callSetDisabledState),e.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const s=this.form.get(e.path);ete(s,e),s.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const s=this.form.get(e.path);s&&function vae(t,r){return Uz(t,r)}(s,e)&&s.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oq(this.form,this),this._oldForm&&Uz(this._oldForm,this)}_checkFormPresent(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,s){1&e&&J("submit",function(m){return s.onSubmit(m)})("reset",function(){return s.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([Iae]),ze,nn]}),r})();let Lb=(()=>{var t;class r{constructor(){this._validator=Ob}ngOnChanges(e){if(this.inputName in e){const s=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(s),this._validator=this._enabled?this.createValidator(s):Ob,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,features:[nn]}),r})();const Uae={provide:Ei,useExisting:Jt(()=>xc),multi:!0},jae={provide:Ei,useExisting:Jt(()=>jz),multi:!0};let xc=(()=>{var t;class r extends Lb{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=jt,this.createValidator=e=>pS}enabled(e){return e}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,s){2&e&&$e("required",s._enabled?"":null)},inputs:{required:"required"},features:[Je([Uae]),ze]}),r})(),jz=(()=>{var t;class r extends xc{constructor(){super(...arguments),this.createValidator=e=>pp}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,s){2&e&&$e("required",s._enabled?"":null)},features:[Je([jae]),ze]}),r})();const $ae={provide:Ei,useExisting:Jt(()=>HP),multi:!0};let HP=(()=>{var t;class r extends Lb{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function pte(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>NP(e)}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,s){2&e&&$e("maxlength",s._enabled?s.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Je([$ae]),ze]}),r})(),wte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[ste]}),r})(),Zae=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:[{provide:Rr,useValue:e.callSetDisabledState??Xu}]}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[wte]}),r})(),xte=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:[{provide:zq,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Rr,useValue:e.callSetDisabledState??Xu}]}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[wte]}),r})();function Xae(t,r){}const Kae=t=>({animationDuration:t}),Qae=(t,r)=>({value:t,params:r});function Jae(t,r){1&t&&dt(0)}const Cte=["*"],eoe=["tabListContainer"],toe=["tabList"],noe=["tabListInner"],ioe=["nextPaginator"],roe=["previousPaginator"],aoe=["tabBodyWrapper"],ooe=["tabHeader"];function soe(t,r){}function loe(t,r){1&t&&re(0,soe,0,0,"ng-template",10),2&t&&z("cdkPortalOutlet",Z().$implicit.templateLabel)}function coe(t,r){1&t&&Y(0),2&t&&En(Z().$implicit.textLabel)}function doe(t,r){if(1&t){const l=Oe();P(0,"div",4,5),J("click",function(){const s=oe(l),u=s.$implicit,m=s.$index,b=Z(),C=pn(1);return le(b._handleClick(u,C,m))})("cdkFocusChange",function(s){const m=oe(l).$index;return le(Z()._tabFocusChanged(s,m))}),pe(2,"span",6)(3,"div",7),P(4,"span",8)(5,"span",9),re(6,loe,1,1,null,10)(7,coe,1,1),R()()()}if(2&t){const l=r.$implicit,e=r.$index,s=pn(1),u=Z();et("mdc-tab--active",u.selectedIndex===e),z("id",u._getTabLabelId(e))("ngClass",l.labelClass)("disabled",l.disabled)("fitInkBarToContent",u.fitInkBarToContent),$e("tabIndex",u._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",u._tabs.length)("aria-controls",u._getTabContentId(e))("aria-selected",u.selectedIndex===e)("aria-label",l.ariaLabel||null)("aria-labelledby",!l.ariaLabel&&l.ariaLabelledby?l.ariaLabelledby:null),N(3),z("matRippleTrigger",s)("matRippleDisabled",l.disabled||u.disableRipple),N(3),an(6,l.templateLabel?6:7)}}function uoe(t,r){if(1&t){const l=Oe();P(0,"mat-tab-body",11),J("_onCentered",function(){return oe(l),le(Z()._removeTabBodyWrapperHeight())})("_onCentering",function(s){return oe(l),le(Z()._setTabBodyWrapperHeight(s))}),R()}if(2&t){const l=r.$implicit,e=r.$index,s=Z();et("mat-mdc-tab-body-active",s.selectedIndex===e),z("id",s._getTabContentId(e))("ngClass",l.bodyClass)("content",l.content)("position",l.position)("origin",l.origin)("animationDuration",s.animationDuration)("preserveContent",s.preserveContent),$e("tabindex",null!=s.contentTabIndex&&s.selectedIndex===e?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(e))("aria-hidden",s.selectedIndex!==e)}}const hoe={translateTab:Vi("translateTab",[Vn("center, void, left-origin-center, right-origin-center",lt({transform:"none"})),Vn("left",lt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Vn("right",lt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Cn("* => left, * => right, left => center, right => center",kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Cn("void => left-origin-center",[lt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Cn("void => right-origin-center",[lt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let foe=(()=>{var t;class r extends _c{constructor(e,s,u,m){super(e,s,m),this._host=u,this._centeringSub=bt.EMPTY,this._leavingSub=bt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(pr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ls),V(fi),V(Jt(()=>Ste)),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","matTabBodyHost",""]],features:[ze]}),r})(),Ste=(()=>{var t;class r{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,s,u){this._elementRef=e,this._dir=s,this._dirChangeSubscription=bt.EMPTY,this._translateTabComplete=new he,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,s&&(this._dirChangeSubscription=s.change.subscribe(m=>{this._computePositionAnimationState(m),u.markForCheck()})),this._translateTabComplete.pipe(O1((m,b)=>m.fromState===b.fromState&&m.toState===b.toState)).subscribe(m=>{this._isCenterPosition(m.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(m.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const s=this._isCenterPosition(e.toState);this._beforeCentering.emit(s),s&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const s=this._getLayoutDirection();return"ltr"==s&&e<=0||"rtl"==s&&e>0?"left-origin-center":"right-origin-center"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ir,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,s){if(1&e&&ft(_c,5),2&e){let u;Ne(u=Ve())&&(s._portalHost=u.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,s){1&e&&(P(0,"div",0,1),J("@translateTab.start",function(m){return s._onTranslateTabStarted(m)})("@translateTab.done",function(m){return s._translateTabComplete.next(m)}),re(2,Xae,0,0,"ng-template",2),R()),2&e&&z("@translateTab",Ix(3,Qae,s._position,dc(1,Kae,s.animationDuration)))},dependencies:[foe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[hoe.translateTab]}}),r})();const poe=new ve("MatTabContent");let moe=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","matTabContent",""]],features:[Je([{provide:poe,useExisting:t}])]}),r})();const goe=new ve("MatTabLabel"),Dte=new ve("MAT_TAB");let As=(()=>{var t;class r extends T1{constructor(e,s,u){super(e,s),this._closestTab=u}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(fi),V(Dte,8))},t.\u0275dir=ce({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Je([{provide:goe,useExisting:t}]),ze]}),r})();const $q="mdc-tab-indicator--active",Tte="mdc-tab-indicator--no-transition";class voe{constructor(r){this._items=r}hide(){this._items.forEach(r=>r.deactivateInkBar())}alignToElement(r){var s,u;const l=this._items.find(m=>m.elementRef.nativeElement===r),e=this._currentItem;if(l!==e&&(null==e||e.deactivateInkBar(),l)){const m=null==(u=null==e?void 0:(s=e.elementRef.nativeElement).getBoundingClientRect)?void 0:u.call(s);l.activateInkBar(m),this._currentItem=l}}}function _oe(t){return class extends t{constructor(...r){super(...r),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(r){const l=Ot(r);this._fitToContent!==l&&(this._fitToContent=l,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(r){const l=this.elementRef.nativeElement;if(!r||!l.getBoundingClientRect||!this._inkBarContentElement)return void l.classList.add($q);const e=l.getBoundingClientRect(),s=r.width/e.width,u=r.left-e.left;l.classList.add(Tte),this._inkBarContentElement.style.setProperty("transform",`translateX(${u}px) scaleX(${s})`),l.getBoundingClientRect(),l.classList.remove(Tte),l.classList.add($q),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove($q)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){var r;null==(r=this._inkBarElement)||r.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const r=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=r.createElement("span"),this._inkBarContentElement=r.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const boe=_oe(lp(class{}));let Mte=(()=>{var t;class r extends boe{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,s){2&e&&($e("aria-disabled",!!s.disabled),et("mat-mdc-tab-disabled",s.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ze]}),r})();const woe=lp(class{}),Ate=new ve("MAT_TAB_GROUP");let Es=(()=>{var t;class r extends woe{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,s){super(),this._viewContainerRef=e,this._closestTabGroup=s,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new he,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new yd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Ate,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,As,5),Kt(u,moe,7,Kn)),2&e){let m;Ne(m=Ve())&&(s.templateLabel=m.first),Ne(m=Ve())&&(s._explicitContent=m.first)}},viewQuery:function(e,s){if(1&e&&ft(Kn,7),2&e){let u;Ne(u=Ve())&&(s._implicitContent=u.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[Je([{provide:Dte,useExisting:t}]),ze,nn],ngContentSelectors:Cte,decls:1,vars:0,template:function(e,s){1&e&&(jn(),re(0,Jae,1,0,"ng-template"))},encapsulation:2}),r})();const Ete=Ko({passive:!0});let Soe=(()=>{var t;class r{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ot(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=xa(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,s,u,m,b,C,M){this._elementRef=e,this._changeDetectorRef=s,this._viewportRuler=u,this._dir=m,this._ngZone=b,this._platform=C,this._animationMode=M,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new he,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new he,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,b.runOutsideAngular(()=>{vd(e.nativeElement,"mouseleave").pipe(Dt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){vd(this._previousPaginator.nativeElement,"touchstart",Ete).pipe(Dt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),vd(this._nextPaginator.nativeElement,"touchstart",Ete).pipe(Dt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:tt("ltr"),s=this._viewportRuler.change(150),u=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qk(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(In(1)).subscribe(u),xi(e,s,this._items.changes,this._itemsResized()).pipe(Dt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),u()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(m=>{this.indexFocused.emit(m),this._setTabFocus(m)})}_itemsResized(){return"function"!=typeof ResizeObserver?Ao:this._items.changes.pipe(pr(this._items),Li(e=>new ln(s=>this._ngZone.runOutsideAngular(()=>{const u=new ResizeObserver(m=>s.next(m));return e.forEach(m=>u.observe(m.elementRef.nativeElement)),()=>{u.disconnect()}}))),R1(1),bn(e=>e.some(s=>s.contentRect.width>0&&s.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!vr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const s=this._items.get(this.focusIndex);s&&!s.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const s=this._tabListContainer.nativeElement;s.scrollLeft="ltr"==this._getLayoutDirection()?0:s.scrollWidth-s.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,s="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(s)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const s=this._items?this._items.toArray()[e]:null;if(!s)return;const u=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:m,offsetWidth:b}=s.elementRef.nativeElement;let C,M;"ltr"==this._getLayoutDirection()?(C=m,M=C+b):(M=this._tabListInner.nativeElement.offsetWidth-m,C=M-b);const I=this.scrollDistance,F=this.scrollDistance+u;CF&&(this.scrollDistance+=Math.min(M-F,C-I))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,s=e?e.elementRef.nativeElement:null;s?this._inkBar.alignToElement(s):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,s){s&&null!=s.button&&0!==s.button||(this._stopInterval(),hb(650,100).pipe(Dt(xi(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:u,distance:m}=this._scrollHeader(e);(0===m||m>=u)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const s=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(s,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:s,distance:this._scrollDistance}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Nu),V(Ir,8),V(Ye),V(Jn),V(si,8))},t.\u0275dir=ce({type:t,inputs:{disablePagination:"disablePagination"}}),r})(),Doe=(()=>{var t;class r extends Soe{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}constructor(e,s,u,m,b,C,M){super(e,s,u,m,b,C,M),this._disableRipple=!1}ngAfterContentInit(){this._inkBar=new voe(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Nu),V(Ir,8),V(Ye),V(Jn),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Mte,4),2&e){let m;Ne(m=Ve())&&(s._items=m)}},viewQuery:function(e,s){if(1&e&&(ft(eoe,7),ft(toe,7),ft(noe,7),ft(ioe,5),ft(roe,5)),2&e){let u;Ne(u=Ve())&&(s._tabListContainer=u.first),Ne(u=Ve())&&(s._tabList=u.first),Ne(u=Ve())&&(s._tabListInner=u.first),Ne(u=Ve())&&(s._nextPaginator=u.first),Ne(u=Ve())&&(s._previousPaginator=u.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-mdc-tab-header-pagination-controls-enabled",s._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==s._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ze],ngContentSelectors:Cte,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,s){1&e&&(jn(),P(0,"button",0,1),J("click",function(){return s._handlePaginatorClick("before")})("mousedown",function(m){return s._handlePaginatorPress("before",m)})("touchend",function(){return s._stopInterval()}),pe(2,"div",2),R(),P(3,"div",3,4),J("keydown",function(m){return s._handleKeydown(m)}),P(5,"div",5,6),J("cdkObserveContent",function(){return s._onContentChanges()}),P(7,"div",7,8),dt(9),R()()(),P(10,"button",9,10),J("mousedown",function(m){return s._handlePaginatorPress("after",m)})("click",function(){return s._handlePaginatorClick("after")})("touchend",function(){return s._stopInterval()}),pe(12,"div",2),R()),2&e&&(et("mat-mdc-tab-header-pagination-disabled",s._disableScrollBefore),z("matRippleDisabled",s._disableScrollBefore||s.disableRipple)("disabled",s._disableScrollBefore||null),N(3),et("_mat-animation-noopable","NoopAnimations"===s._animationMode),N(7),et("mat-mdc-tab-header-pagination-disabled",s._disableScrollAfter),z("matRippleDisabled",s._disableScrollAfter||s.disableRipple)("disabled",s._disableScrollAfter||null))},dependencies:[bl,CY],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),r})();const Toe=new ve("MAT_TABS_CONFIG");let Moe=0;const Aoe=tv(sP(class{constructor(t){this._elementRef=t}}),"primary");let Cl=(()=>{var t;class r extends Aoe{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ot(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ot(e)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ot(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=xa(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=xa(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ot(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ot(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const s=this._elementRef.nativeElement.classList;s.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&s.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,s,u,m){super(e),this._changeDetectorRef=s,this._animationMode=m,this._tabs=new yu,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=bt.EMPTY,this._tabLabelSubscription=bt.EMPTY,this._fitInkBarToContent=!1,this._stretchTabs=!0,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._groupId=Moe++,this.animationDuration=u&&u.animationDuration?u.animationDuration:"500ms",this.disablePagination=!(!u||null==u.disablePagination)&&u.disablePagination,this.dynamicHeight=!(!u||null==u.dynamicHeight)&&u.dynamicHeight,this.contentTabIndex=(null==u?void 0:u.contentTabIndex)??null,this.preserveContent=!(null==u||!u.preserveContent),this.fitInkBarToContent=!(!u||null==u.fitInkBarToContent)&&u.fitInkBarToContent,this.stretchTabs=!u||null==u.stretchTabs||u.stretchTabs}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const s=null==this._selectedIndex;if(!s){this.selectedTabChange.emit(this._createChangeEvent(e));const u=this._tabBodyWrapper.nativeElement;u.style.minHeight=u.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((u,m)=>u.isActive=m===e),s||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((s,u)=>{s.position=u-e,null!=this._selectedIndex&&0==s.position&&!s.origin&&(s.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const s=this._tabs.toArray();let u;for(let m=0;m{s[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(pr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(s=>s._closestTabGroup===this||!s._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const s=this._tabHeader;s&&(s.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const s=new Ioe;return s.index=e,this._tabs&&this._tabs.length&&(s.tab=this._tabs.toArray()[e]),s}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=xi(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const s=this._tabBodyWrapper.nativeElement;s.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(s.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,s,u){s.focusIndex=u,e.disabled||(this.selectedIndex=u)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,s){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Toe,8),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Es,5),2&e){let m;Ne(m=Ve())&&(s._allTabs=m)}},viewQuery:function(e,s){if(1&e&&(ft(aoe,5),ft(ooe,5)),2&e){let u;Ne(u=Ve())&&(s._tabBodyWrapper=u.first),Ne(u=Ve())&&(s._tabHeader=u.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(e,s){2&e&&(cr("--mat-tab-animation-duration",s.animationDuration),et("mat-mdc-tab-group-dynamic-height",s.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===s.headerPosition)("mat-mdc-tab-group-stretch-tabs",s.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"],dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Je([{provide:Ate,useExisting:t}]),ze],decls:8,vars:5,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(e,s){1&e&&(P(0,"mat-tab-header",0,1),J("indexFocused",function(m){return s._focusChanged(m)})("selectFocusedIndex",function(m){return s.selectedIndex=m}),lf(2,doe,8,16,"div",12,sf),R(),P(4,"div",2,3),lf(6,uoe,1,12,"mat-tab-body",13,sf),R()),2&e&&(z("selectedIndex",s.selectedIndex||0)("disableRipple",s.disableRipple)("disablePagination",s.disablePagination),N(2),cf(s._tabs),N(2),et("_mat-animation-noopable","NoopAnimations"===s._animationMode),N(2),cf(s._tabs))},dependencies:[To,_c,bl,U1,Ste,Mte,Doe],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),r})();class Ioe{}let koe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,$t,gl,Wu,zk,j1,$t]}),r})();function Poe(t,r){if(1&t){const l=Oe();P(0,"uds-field-text",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Roe(t,r){if(1&t){const l=Oe();P(0,"uds-field-autocomplete",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Ooe(t,r){if(1&t){const l=Oe();P(0,"uds-field-textbox",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Loe(t,r){if(1&t){const l=Oe();P(0,"uds-field-numeric",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Foe(t,r){if(1&t){const l=Oe();P(0,"uds-field-password",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Noe(t,r){if(1&t){const l=Oe();P(0,"uds-field-hidden",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Voe(t,r){if(1&t){const l=Oe();P(0,"uds-field-choice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Boe(t,r){if(1&t){const l=Oe();P(0,"uds-field-multichoice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function zoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-editlist",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Hoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-checkbox",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Uoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-imgchoice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function joe(t,r){if(1&t){const l=Oe();P(0,"uds-field-date",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Goe(t,r){if(1&t){const l=Oe();P(0,"uds-field-tags",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}let Ite=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.udsGuiFieldType=Ca}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(e,s){1&e&&(P(0,"div",0),re(1,Poe,1,1,"uds-field-text",1)(2,Roe,1,1,"uds-field-autocomplete",1)(3,Ooe,1,1,"uds-field-textbox",1)(4,Loe,1,1,"uds-field-numeric",1)(5,Foe,1,1,"uds-field-password",1)(6,Noe,1,1,"uds-field-hidden",1)(7,Voe,1,1,"uds-field-choice",1)(8,Boe,1,1,"uds-field-multichoice",1)(9,zoe,1,1,"uds-field-editlist",1)(10,Hoe,1,1,"uds-field-checkbox",1)(11,Uoe,1,1,"uds-field-imgchoice",1)(12,joe,1,1,"uds-field-date",1)(13,Goe,1,1,"uds-field-tags",1),R()),2&e&&(z("ngSwitch",s.field.gui.type)("matTooltip",s.field.gui.tooltip),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXT),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXT_AUTOCOMPLETE),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXTBOX),N(),z("ngSwitchCase",s.udsGuiFieldType.NUMERIC),N(),z("ngSwitchCase",s.udsGuiFieldType.PASSWORD),N(),z("ngSwitchCase",s.udsGuiFieldType.HIDDEN),N(),z("ngSwitchCase",s.udsGuiFieldType.CHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.MULTI_CHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.EDITLIST),N(),z("ngSwitchCase",s.udsGuiFieldType.CHECKBOX),N(),z("ngSwitchCase",s.udsGuiFieldType.IMAGECHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.DATE),N(),z("ngSwitchCase",s.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),r})();function Woe(t,r){1&t&&Y(0),2&t&&Re(" ",Z().$implicit," ")}function $oe(t,r){if(1&t){const l=Oe();P(0,"uds-field",9),J("changed",function(s){return oe(l),le(Z(3).changed.emit(s))}),R()}2&t&&z("field",r.$implicit)}function Yoe(t,r){if(1&t&&(P(0,"mat-tab",4),re(1,Woe,1,1,"ng-template",5),P(2,"div",6)(3,"div",7),re(4,$oe,1,1,"uds-field",8),R()()()),2&t){const l=r.$implicit,e=Z(2);N(4),z("ngForOf",e.fieldsByTab[l])}}function qoe(t,r){if(1&t&&(P(0,"mat-tab-group",2),re(1,Yoe,5,1,"mat-tab",3),R()),2&t){const l=Z();z("disableRipple",!1)("@.disabled",!0),N(),z("ngForOf",l.tabs)}}function Zoe(t,r){if(1&t){const l=Oe();P(0,"div")(1,"uds-field",9),J("changed",function(s){return oe(l),le(Z(2).changed.emit(s))}),R()()}if(2&t){const l=r.$implicit;N(),z("field",l)}}function Xoe(t,r){if(1&t&&(P(0,"div",6),re(1,Zoe,2,1,"div",10),R()),2&t){const l=Z();N(),z("ngForOf",l.fields)}}const Koe=django.gettext("Main");let Qoe=(()=>{var t;class r{constructor(){this.fields=[],this.changed=new Ce,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(const e of this.fields){const s=void 0===e.gui.tab?Koe:e.gui.tab;this.tabs.includes(s)||(this.tabs.push(s),this.fieldsByTab[s]=new Array),this.fieldsByTab[s].push(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[4,"ngFor","ngForOf"]],template:function(e,s){if(1&e&&re(0,qoe,2,3,"mat-tab-group",0)(1,Xoe,2,1,"ng-template",null,1,so),2&e){const u=pn(2);z("ngIf",s.tabs.length>1)("ngIfElse",u)}},dependencies:[mi,xn,As,Es,Cl,Ite],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem}"]}),r})();function Joe(t,r){if(1&t){const l=Oe();P(0,"button",10),J("click",function(){return oe(l),le(Z().customButtonClicked())}),Y(1),R()}if(2&t){const l=Z();N(),En(l.data.customButton)}}let ese=(()=>{var t;class r{constructor(e,s){this.dialogRef=e,this.data=s,this.onEvent=new Ce(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){const e={},s=[];return this.data.guiFields.forEach(u=>{let m=u.value;if(u.gui.required&&0!==m&&!1!==m&&(!m||m instanceof Array&&0===m.length)&&s.push(u.gui.label),"number"==typeof m){const b=parseInt((u.gui.minValue||987654321).toString(),10),C=parseInt((u.gui.maxValue||987654321).toString(),10);987654321!==b&&m= "+u.gui.minValue),987654321!==C&&m>C&&s.push(u.gui.label+" <= "+u.gui.maxValue),m=m.toString()}e[u.name]=m}),{data:e,errors:s}}save(){const e=this.getFields();e.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", ")):this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){const e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(e,s){1&e&&(pe(0,"h4",0),nl(1,"safeHtml"),P(2,"mat-dialog-content",null,1)(4,"form",2)(5,"uds-form",3),J("changed",function(m){return s.changed(m)}),R()()(),P(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),re(9,Joe,2,1,"button",6),R(),P(10,"div",7)(11,"button",8),J("click",function(){return s.dialogRef.close()})("click",function(){return s.cancel()}),P(12,"uds-translate"),Y(13,"Discard & close"),R()(),P(14,"button",9),J("click",function(){return s.save()}),P(15,"uds-translate"),Y(16,"Save"),R()()()()()),2&e&&(z("innerHtml",ng(1,5,s.data.title),zr),N(5),z("fields",s.data.guiFields),N(4),z("ngIf",void 0!==s.data.customButton),N(2),z("disabled",s.saving),N(3),z("disabled",s.saving))},dependencies:[To,xn,Bq,E,ov,Pn,zi,Ai,Hi,vn,Qoe,Oz],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]}),r})();class tse{constructor(r){this.gui=r}modalForm(r,l,e=null,s){l.sort((C,M)=>C.gui.order>M.gui.order?1:-1);const u=null!=e;e=u?e:{},l.forEach(C=>{(!1===u||void 0===C.gui.readonly)&&(C.gui.readonly=!1),C.gui.type===Ca.TEXT&&C.gui.lines&&(C.gui.type=Ca.TEXTBOX);const M=e[C.name];if(void 0!==M)if(M instanceof Array){const I=new Array;M.forEach(F=>I.push(F)),C.value=I}else C.value=M});const m=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(ese,{position:{top:"64px"},width:m,data:{title:r,guiFields:l,customButton:s,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(r,l,e,s,u,m,b){var C=this;return Ge(function*(){const M=b||{},I=M.callback||(()=>{}),F=s||[],H=e?django.gettext("Test"):void 0,q={},Q={},ne=se=>{Q.hasOwnProperty(se.name)&&""!==se.value&&void 0!==se.value&&C.executeCallback(r,se,q)},ae=M.snack||C.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),ge=yield r.table.rest.gui(m);if(ae.dismiss(),void 0!==F)for(const se of F)ge.push(se);for(const se of ge)se.gui.type!==Ca.INFO?(q[se.name]=se,void 0!==se.gui.fills&&(Q[se.name]=se.gui.fills)):"title"===se.name&&(l+=" "+(se.value||se.gui.default||""));C.modalForm(l,ge,u,H).subscribe(function(){var se=Ge(function*(Be){switch(Be.data&&(Be.data.data_type=m),Be.type){case H:if(Be.errors&&Be.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Be.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),r.table.rest.test(m,Be.data).then(Fe=>{"ok"!==Fe?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Fe,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Be.data)for(const Fe of ge)ne(Fe);else ne(Be.data.field);I({on:Be.data,all:q});break;case"save":if(void 0===M.save){Be.dialog.componentInstance.saving=!0;try{u?yield r.table.rest.save(Be.data,u.id):yield r.table.rest.create(Be.data),C.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),Be.dialog.close(),r.table.overview()}finally{Be.dialog.componentInstance.saving=!1}}else Be.dialog.close(),M.save.resolve(Be.data);break;case"cancel":Be.dialog.close()}});return function(Be){return se.apply(this,arguments)}}())})()}typedEditForm(r,l,e=!1,s,u=(()=>{})){var m=this;return Ge(function*(){const b=r.table.selection.selected[0],C=b.type,I=(new Ce,m.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),F=yield r.table.rest.get(b.id);return m.typedForm(r,l,e,s,F,C,{snack:I,callback:u})})()}typedNewForm(r,l,e=!1,s,u=(()=>{})){var m=this;return Ge(function*(){return m.typedForm(r,l,e,s,null,r.param?r.param.type:void 0,{callback:u})})()}deleteForm(r,l){var e=this;return Ge(function*(){const s=new Array,u=new Array;for(const C of r.table.selection.selected){let M=C.name||C.friendly_name;M&&M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),s.push(M),u.push(C.id)}const m=django.gettext("Are you sure do you want to delete the following items?")+"
"+s.join(", ")+"";if(yield e.gui.questionDialog(l,m,!0)){for(const M of u)try{yield r.table.rest.delete(M)}catch(I){console.warn("Error deleting item",M,I)}e.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()}})()}executeCallback(r,l,e,s={}){var u=this;return Ge(function*(){const m=new Array;if(!l.gui.fills)return;for(const M of l.gui.fills.parameters)m.push(M+"="+encodeURIComponent(e[M].value));const b=yield r.table.rest.callback(l.gui.fills.callback_name,m.join("&")),C=new Array;for(const M of b){const I=e[M.name];if(void 0!==I){void 0!==I.gui.fills&&C.push(I);const F=new Array;for(const H of M.choices)F.push({id:H.id,text:H.text,img:H.img});I.gui.choices=F,I.value||(I.value=M.choices.length>0?M.choices[0].id:"")}}for(const M of C)void 0===s[M.name]&&(s[M.name]=!0,u.executeCallback(r,M,e,s))})()}}class ise{constructor(r,l){this.dialog=r,this.snackbar=l,this.forms=new tse(this)}alert(r,l,e=0,s){var u=this;return Ge(function*(){const m=s||(window.innerWidth<800?"80%":"40%");return u.dialog.open(Rb,{width:m,data:{title:r,body:l,autoclose:e,type:Pb.alert},disableClose:!0}).componentInstance.acceptance})()}questionDialog(r,l,e=!1){var s=this;return Ge(function*(){const u=window.innerWidth<800?"80%":"40%",m=s.dialog.open(Rb,{width:u,data:{title:r,body:l,type:Pb.question,warnOnYes:e},disableClose:!0});return Yu(m.componentInstance.acceptance)})()}icon(r,l="24px"){return''}}var $a=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}($a||{}),gi=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}(gi||{});const Yq="pool",qq="user",Zq="calendar",ase={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")};class Sl{constructor(r){this.router=r}static getGotoButton(r,l,e){return{id:r,html:'link'+django.gettext("Go to")+" "+ase[r]+"",type:gi.ACCELERATOR,acceleratorProperties:[l,e||""]}}gotoProvider(r){this.router.navigate(void 0!==r?["services","providers",r]:["services","providers"])}gotoService(r,l){this.router.navigate(void 0!==l?["services","providers",r,"detail",l]:["services","providers",r,"detail"])}gotoServer(r){this.router.navigate(["services","servers",r])}gotoServerDetail(r){this.router.navigate(["services","servers",r,"detail"])}gotoServicePool(r){this.router.navigate(["pools","service-pools",r])}gotoServicePoolDetail(r){this.router.navigate(["pools","service-pools",r,"detail"])}gotoMetapool(r){this.router.navigate(["pools","meta-pools",r])}gotoMetapoolDetail(r){this.router.navigate(["pools","meta-pools",r,"detail"])}gotoCalendar(r){this.router.navigate(["pools","calendars",r])}gotoCalendarDetail(r){this.router.navigate(["pools","calendars",r,"detail"])}gotoAccount(r){this.router.navigate(["pools","accounts",r])}gotoAccountDetail(r){this.router.navigate(["pools","accounts",r,"detail"])}gotoPoolGroup(r){this.router.navigate(["pools","pool-groups",r=r||""])}gotoAuthenticator(r){this.router.navigate(["authenticators",r])}gotoAuthenticatorDetail(r){this.router.navigate(["authenticators",r,"detail"])}gotoMFA(r){this.router.navigate(["mfas",r])}gotoUser(r,l){this.router.navigate(["authenticators",r,"detail","users",l])}gotoGroup(r,l){this.router.navigate(["authenticators",r,"detail","groups",l])}gotoTransport(r){this.router.navigate(["connectivity/transports",r])}gotoTunnel(r){this.router.navigate(["connectivity/tunnels",r])}gotoTunnelDetail(r){this.router.navigate(["connectivity/tunnels",r,"detail"])}gotoOSManager(r){this.router.navigate(["osmanagers",r])}goto(r,l,e){const s=u=>{let m=l;if(e[u].split(".").forEach(b=>m=m[b]),!m)throw new Error("not going :)");return m};try{switch(r){case"provider":this.gotoProvider(s(0));break;case"service":this.gotoService(s(0),s(1));break;case Yq:this.gotoServicePool(s(0));break;case"authenticator":this.gotoAuthenticator(s(0));break;case qq:this.gotoUser(s(0),s(1));break;case"group":this.gotoGroup(s(0),s(1));break;case"transport":this.gotoTransport(s(0));break;case"osmanager":this.gotoOSManager(s(0));break;case Zq:this.gotoCalendar(s(0));break;case"poolgroup":this.gotoPoolGroup(s(0))}}catch{}}}function ose(t,r){if(1&t){const l=Oe();P(0,"div",1)(1,"button",2),J("click",function(){return oe(l),le(Z().action())}),Y(2),R()()}if(2&t){const l=Z();N(2),Re(" ",l.data.action," ")}}const sse=["label"];function lse(t,r){}const cse=Math.pow(2,31)-1;class Xq{constructor(r,l){this._overlayRef=l,this._afterDismissed=new he,this._afterOpened=new he,this._onAction=new he,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,cse))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Vte=new ve("MatSnackBarData");class Gz{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Bte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0}),r})(),zte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0}),r})(),Hte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0}),r})(),Ute=(()=>{var t;class r{constructor(e,s){this.snackBarRef=e,this.data=s}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xq),V(Vte))},t.\u0275cmp=xe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[wf],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,s){1&e&&(P(0,"div",0),Y(1),R(),re(2,ose,3,1,"div",1)),2&e&&(N(),Re(" ",s.data.message,"\n"),N(),an(2,s.hasAction?2:-1))},dependencies:[hp,Pn,Bte,zte,Hte,Er],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),r})();const dse={snackBarState:Vi("state",[Vn("void, hidden",lt({transform:"scale(0.8)",opacity:0})),Vn("visible",lt({transform:"scale(1)",opacity:1})),Cn("* => visible",kn("150ms cubic-bezier(0, 0, 0.2, 1)")),Cn("* => void, * => hidden",kn("75ms cubic-bezier(0.4, 0.0, 1, 1)",lt({opacity:0})))])};let use=0,Kq=(()=>{var t;class r extends gb{constructor(e,s,u,m,b){super(),this._ngZone=e,this._elementRef=s,this._changeDetectorRef=u,this._platform=m,this.snackBarConfig=b,this._document=De(yt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new he,this._onExit=new he,this._onEnter=new he,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+use++,this.attachDomPortal=C=>{this._assertNotAttached();const M=this._portalOutlet.attachDomPortal(C);return this._afterPortalAttached(),M},this._live="assertive"!==b.politeness||b.announcementMessage?"off"===b.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const s=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),s}attachTemplatePortal(e){this._assertNotAttached();const s=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),s}onAnimationEnd(e){const{fromState:s,toState:u}=e;if(("void"===u&&"void"!==s||"hidden"===u)&&this._completeExit(),"visible"===u){const m=this._onEnter;this._ngZone.run(()=>{m.next(),m.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const e=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(b=>e.classList.add(b)):e.classList.add(s)),this._exposeToModals();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}_exposeToModals(){const e=this._liveElementId,s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let u=0;u{const s=e.getAttribute("aria-owns");if(s){const u=s.replace(this._liveElementId,"").trim();u.length>0?e.setAttribute("aria-owns",u):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),s=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&s){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(u=document.activeElement),e.removeAttribute("aria-hidden"),s.appendChild(e),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ye),V(je),V(dn),V(Jn),V(Gz))},t.\u0275cmp=xe({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,s){if(1&e&&(ft(_c,7),ft(sse,7)),2&e){let u;Ne(u=Ve())&&(s._portalOutlet=u.first),Ne(u=Ve())&&(s._label=u.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,s){1&e&&Z_("@state.done",function(m){return s.onAnimationEnd(m)}),2&e&&cx("@state",s._animationState)},standalone:!0,features:[ze,wf],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1,2)(3,"div",3),re(4,lse,0,0,"ng-template",4),R(),pe(5,"div"),R()()),2&e&&(N(5),$e("aria-live",s._live)("role",s._role)("id",s._liveElementId))},dependencies:[gl,_c],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[dse.snackBarState]}}),r})();const fse=new ve("mat-snack-bar-default-options",{providedIn:"root",factory:function hse(){return new Gz}});let jte=(()=>{var t;class r{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,s,u,m,b,C){this._overlay=e,this._live=s,this._injector=u,this._breakpointObserver=m,this._parentSnackBar=b,this._defaultConfig=C,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Ute,this.snackBarContainerComponent=Kq,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,s){return this._attach(e,s)}openFromTemplate(e,s){return this._attach(e,s)}open(e,s="",u){const m={...this._defaultConfig,...u};return m.data={message:e,action:s},m.announcementMessage===e&&(m.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,m)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,s){const m=mn.create({parent:s&&s.viewContainerRef&&s.viewContainerRef.injector||this._injector,providers:[{provide:Gz,useValue:s}]}),b=new Vu(this.snackBarContainerComponent,s.viewContainerRef,m),C=e.attach(b);return C.instance.snackBarConfig=s,C.instance}_attach(e,s){const u={...new Gz,...this._defaultConfig,...s},m=this._createOverlay(u),b=this._attachSnackBarContainer(m,u),C=new Xq(b,m);if(e instanceof Kn){const M=new yd(e,null,{$implicit:u.data,snackBarRef:C});C.instance=b.attachTemplatePortal(M)}else{const M=this._createInjector(u,C),I=new Vu(e,void 0,M),F=b.attachComponentPortal(I);C.instance=F.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Dt(m.detachments())).subscribe(M=>{m.overlayElement.classList.toggle(this.handsetCssClass,M.matches)}),u.announcementMessage&&b._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(C,u),this._openedSnackBarRef=C,this._openedSnackBarRef}_animateSnackBar(e,s){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),s.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),s.duration&&s.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(s.duration))}_createOverlay(e){const s=new zu;s.direction=e.direction;let u=this._overlay.position().global();const m="rtl"===e.direction,b="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!m||"end"===e.horizontalPosition&&m,C=!b&&"center"!==e.horizontalPosition;return b?u.left("0"):C?u.right("0"):u.centerHorizontally(),"top"===e.verticalPosition?u.top("0"):u.bottom("0"),s.positionStrategy=u,this._overlay.create(s)}_createInjector(e,s){return mn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Xq,useValue:s},{provide:Vte,useValue:e.data}]})}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(ez),fe(mn),fe(L1),fe(t,12),fe(fse))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),pse=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[jte],imports:[Hu,gl,hp,$t,Ute,Kq,$t]}),r})();const Gte="dark-theme",Wte="light-theme";let pt=(()=>{var t;class r{constructor(e,s,u,m,b,C){this.http=e,this.router=s,this.dialog=u,this.snackbar=m,this.sanitizer=b,this.dateAdapter=C,this.user=new uk(udsData.profile),this.navigation=new Sl(this.router),this.gui=new ise(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return this.config.urls.static+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,s){void 0!==typeof Storage&&sessionStorage.setItem(e,s)}getFromStorage(e){return void 0!==typeof Storage?sessionStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}switchTheme(e){const s=document.getElementsByTagName("html")[0];[Gte,Wte].forEach(u=>{s.classList.contains(u)&&s.classList.remove(u)}),s.classList.add(e?Gte:Wte)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(WC),fe(Xr),fe(nS),fe(jte),fe(dd),fe(aa))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mse=(()=>{var t;class r{constructor(e){this.api=e}canActivate(e,s){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const gS=3e4;var Fb=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}(Fb||{});class Kr{constructor(r,l,e){this.api=r,void 0===e&&(e={}),void 0===e.base&&(e.base=l);const s=(u,m)=>void 0===u?m:u;this.id=l,this.paths={base:e.base,get:s(e.get,e.base),log:s(e.log,e.base),put:s(e.put,e.base),test:s(e.test,e.base+"/test"),delete:s(e.delete,e.base),types:s(e.types,e.base+"/types"),gui:s(e.gui,e.base+"/gui"),tableInfo:s(e.tableInfo,e.base+"/tableinfo")},this.headers=(new Xo).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(r){return this.typedGet(r)}getLogs(r){return this.doGet(this.getPath(this.paths.log,r)+"/log")}overview(r){return this.typedGet("overview"+(void 0!==r?"?filter="+r:""))}summary(r){return this.typedGet("overview?summarize"+(void 0!==r?"&filter="+r:""))}put(r,l){return this.typedPut(r,l)}create(r){return this.typedPut(r)}save(r,l){return this.typedPut(r,l=void 0!==l?l:r.id)}test(r,l){return Yu(this.api.http.post(this.getPath(this.paths.test,r),l,{headers:this.headers}).pipe(Eo(e=>this.handleError(e))),gS)}delete(r){return Yu(this.api.http.delete(this.getPath(this.paths.delete,r),{headers:this.headers}).pipe(Eo(l=>this.handleError(l))),gS)}permision(){return this.api.user.isAdmin?Fb.ALL:Fb.NONE}getPermissions(r){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+r))}addPermission(r,l,e,s){const u=this.getPath("permissions/"+this.paths.base+"/"+r+"/"+l+"/add/"+e);return Yu(this.api.http.put(u,{perm:s},{headers:this.headers}).pipe(Eo(b=>this.handleError(b))),gS)}revokePermission(r){const l=this.getPath("permissions/revoke");return Yu(this.api.http.put(l,{items:r},{headers:this.headers}).pipe(Eo(s=>this.handleError(s))),gS)}types(){return this.doGet(this.getPath(this.paths.types))}gui(r){const l=this.getPath(this.paths.gui+(void 0!==r?"/"+r:""));return this.doGet(l)}callback(r,l){const e=this.getPath("gui/callback/"+r+"?"+l);return this.doGet(e)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(r,l){return new gse(this,r,l)}invoke(r,l){return this.typedGet(r+(l?"?"+l:""))}getPath(r,l){if(void 0===r)throw new Error("Path is undefined");return this.api.restPath(r+(void 0!==l?"/"+l:""))}doGet(r){return Yu(this.api.http.get(r,{headers:this.headers}).pipe(Eo(l=>this.handleError(l))),gS)}typedGet(r){return this.doGet(this.getPath(this.paths.get,r))}typedPut(r,l){return Yu(this.api.http.put(this.getPath(this.paths.put,l),r,{headers:this.headers}).pipe(Eo(e=>this.handleError(e,!0))),gS)}handleError(r,l=!1){let e="";return e=r.error instanceof ErrorEvent?r.error.message:l?django.gettext("Error saving: ")+r.error:`Error ${r.status}: ${r.error}`,this.api.gui.alert(l?django.gettext("Error saving element"):django.gettext("Error handling your request"),e),Eg(()=>new Error(e))}}class gse extends Kr{constructor(r,l,e,s){super(r.api,[r.paths.base,l,e].join("/")),this.parentModel=r,this.parentId=l,this.model=e,this.perm=s}permision(){return this.perm||Fb.ALL}}class vse extends Kr{constructor(r){super(r,"providers"),this.api=r}allServices(){return this.get("allservices")}service(r){return this.get("service/"+r)}maintenance(r){return this.get(r+"/maintenance")}}class _se extends Kr{constructor(r){super(r,"authenticators"),this.api=r}search(r,l,e,s=12){return this.get(r+"/search?type="+encodeURIComponent(l)+"&term="+encodeURIComponent(e)+"&limit="+s)}}class yse extends Kr{constructor(r){super(r,"osmanagers"),this.api=r}}class bse extends Kr{constructor(r){super(r,"transports"),this.api=r}}class wse extends Kr{constructor(r){super(r,"networks"),this.api=r}}class xse extends Kr{constructor(r){super(r,"tunnels/tunnels"),this.api=r}maintenance(r){return this.get(r+"/maintenance")}tunnels(r){return this.get(r+"/tunnels")}assign(r,l){return this.get(r+"/assign/"+l)}}class Cse extends Kr{constructor(r){super(r,"servers/groups"),this.api=r}maintenance(r){return this.get(r+"/maintenance")}}class Sse extends Kr{constructor(r){super(r,"servicespools"),this.api=r}setFallbackAccess(r,l){return this.get(r+"/setFallbackAccess?fallbackAccess="+l)}getFallbackAccess(r){return this.get(r+"/getFallbackAccess")}actionsList(r){return this.get(r+"/actionsList")}listAssignables(r){return this.get(r+"/listAssignables")}createFromAssignable(r,l,e){return this.get(r+"/createFromAssignable?user_id="+encodeURIComponent(l)+"&assignable_id="+encodeURIComponent(e))}}class Dse extends Kr{constructor(r){super(r,"metapools"),this.api=r}setFallbackAccess(r,l){return this.get(r+"/setFallbackAccess?fallbackAccess="+l)}getFallbackAccess(r){return this.get(r+"/getFallbackAccess")}}class Tse extends Kr{constructor(r){super(r,"config"),this.api=r}}class Mse extends Kr{constructor(r){super(r,"gallery/images"),this.api=r}}class Ase extends Kr{constructor(r){super(r,"gallery/servicespoolgroups"),this.api=r}}class Ese extends Kr{constructor(r){super(r,"system"),this.api=r}information(){return this.get("overview")}stats(r,l){let e="stats/"+r;return l&&(e+="/"+l),this.get(e)}flushCache(){return this.doGet(this.getPath("cache","flush"))}}class Ise extends Kr{constructor(r){super(r,"reports"),this.api=r}types(){return Yu(tt([]))}}class kse extends Kr{constructor(r){super(r,"calendars"),this.api=r}}class Pse extends Kr{constructor(r){super(r,"accounts"),this.api=r}timemark(r){return this.get(r+"/timemark")}}class Rse extends Kr{constructor(r){super(r,"actortokens"),this.api=r}}class Ose extends Kr{constructor(r){super(r,"servers/tokens"),this.api=r}}class Lse extends Kr{constructor(r){super(r,"mfa"),this.api=r}}class Fse extends Kr{constructor(r){super(r,"messaging/notifiers"),this.api=r}}let Lt=(()=>{var t;class r{constructor(e){this.api=e,this.providers=new vse(e),this.serverGroups=new Cse(e),this.authenticators=new _se(e),this.mfas=new Lse(e),this.osManagers=new yse(e),this.transports=new bse(e),this.networks=new wse(e),this.tunnels=new xse(e),this.servicesPools=new Sse(e),this.metaPools=new Dse(e),this.gallery=new Mse(e),this.servicesPoolGroups=new Ase(e),this.calendars=new kse(e),this.accounts=new Pse(e),this.system=new Ese(e),this.configuration=new Tse(e),this.actorToken=new Rse(e),this.serversTokens=new Ose(e),this.reports=new Ise(e),this.notifiers=new Fse(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class Qq extends he{constructor(r=1/0,l=1/0,e=mk){super(),this._bufferSize=r,this._windowTime=l,this._timestampProvider=e,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=l===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,l)}next(r){const{isStopped:l,_buffer:e,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:m}=this;l||(e.push(r),!s&&e.push(u.now()+m)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const l=this._innerSubscribe(r),{_infiniteTimeWindow:e,_buffer:s}=this,u=s.slice();for(let m=0;m{if(e[r]){const s=e[r].currentValue;null!=s&&l(s)}}))}has(r,l){this.subscriptions.add(this.subject.subscribe(e=>{e[r]&&l(e[r].currentValue)}))}notFirst(r,l){this.subscriptions.add(this.subject.subscribe(e=>{e[r]&&!e[r].isFirstChange()&&l(e[r].currentValue)}))}notFirstAndEmpty(r,l){this.subscriptions.add(this.subject.subscribe(e=>{if(e[r]&&!e[r].isFirstChange()){const s=e[r].currentValue;null!=s&&l(s)}}))}}const $te=new ve("NGX_ECHARTS_CONFIG");let Yte=(()=>{class t{constructor(l,e,s){this.el=e,this.ngZone=s,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new Ce,this.optionsError=new Ce,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.chart$=new Qq(1),this.resize$=new he,this.changeFilter=new Bse,this.echarts=l.echarts}ngOnChanges(l){this.changeFilter.doFilter(l)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Vse(t,r=Ds,l){const e=hb(t,r);return function Nse(t,r){return Ae((l,e)=>{const{leading:s=!0,trailing:u=!1}=r??{};let m=!1,b=null,C=null,M=!1;const I=()=>{null==C||C.unsubscribe(),C=null,u&&(q(),M&&e.complete())},F=()=>{C=null,M&&e.complete()},H=Q=>C=ra(t(Q)).subscribe(Bn(e,I,F)),q=()=>{if(m){m=!1;const Q=b;b=null,e.next(Q),!M&&H(Q)}};l.subscribe(Bn(e,Q=>{m=!0,b=Q,(!C||C.closed)&&(s?q():H(Q))},()=>{M=!0,(!(u&&m&&C)||C.closed)&&e.complete()}))})}(()=>e,l)}(100,Ds,{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)),this.changeFilter.notFirstAndEmpty("options",l=>this.onOptionsChange(l)),this.changeFilter.notFirstAndEmpty("merge",l=>this.setOption(l)),this.changeFilter.has("loading",l=>this.toggleLoading(!!l)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}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.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),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(l){this.chart?l?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(e=>l?e.showLoading(this.loadingType,this.loadingOpts):e.hideLoading())}setOption(l,e){if(this.chart)try{this.chart.setOption(l,e)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){var l=this;return Ge(function*(){l.dispose(),yield l.initChart()})()}createChart(){const l=this.el.nativeElement;if(window&&window.getComputedStyle){const e=window.getComputedStyle(l,null).getPropertyValue("height");(!e||"0px"===e)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(l,this.theme,this.initOpts)))}initChart(){var l=this;return Ge(function*(){yield l.onOptionsChange(l.options),l.merge&&l.chart&&l.setOption(l.merge)})()}onOptionsChange(l){var e=this;return Ge(function*(){l&&(e.chart||(e.chart=yield e.createChart(),e.chart$.next(e.chart),e.chartInit.emit(e.chart)),e.setOption(e.options,!0))})()}createLazyEvent(l){return this.chartInit.pipe(Li(e=>new ln(s=>(e.on(l,u=>this.ngZone.run(()=>s.next(u))),()=>{this.chart&&(this.chart.isDisposed()||e.off(l))}))))}}return t.\u0275fac=function(l){return new(l||t)(V($te),V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",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:[nn]}),t})(),zse=(()=>{class t{static forRoot(l){return{ngModule:t,providers:[{provide:$te,useValue:l}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(l){return new(l||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),t})();function Hse(t,r){if(1&t&&(P(0,"div",21)(1,"div",11),pe(2,"img",3),P(3,"div",12),Y(4),R()(),P(5,"div",13)(6,"a",15)(7,"uds-translate"),Y(8,"View service pools"),R()()()()),2&t){const l=Z(2);N(2),z("src",l.api.staticURL("admin/img/icons/logs.png"),Ut),N(2),Re(" ",l.data.restrained," ")}}function Use(t,r){if(1&t){const l=Oe();P(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),pe(5,"img",3),P(6,"div",12),Y(7),R()(),P(8,"div",13)(9,"a",14)(10,"uds-translate"),Y(11,"View authenticators"),R()()()(),P(12,"div",10)(13,"div",11),pe(14,"img",3),P(15,"div",12),Y(16),R()(),P(17,"div",13)(18,"a",15)(19,"uds-translate"),Y(20,"View service pools"),R()()()(),P(21,"div",10)(22,"div",11),pe(23,"img",3),P(24,"div",12),Y(25),R()(),P(26,"div",13)(27,"a",15)(28,"uds-translate"),Y(29,"View service pools"),R()()()(),re(30,Hse,9,2,"div",16),R(),P(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),Y(35,"Assigned services chart"),R()(),P(36,"div",20),J("chartInit",function(s){return oe(l),le(Z().chartInit("assigned",s))}),R()(),P(37,"div",18)(38,"div",19)(39,"uds-translate"),Y(40,"In use services chart"),R()(),P(41,"div",20),J("chartInit",function(s){return oe(l),le(Z().chartInit("inuse",s))}),R()()()()()}if(2&t){const l=Z();N(5),z("src",l.api.staticURL("admin/img/icons/authenticators.png"),Ut),N(2),Re(" ",l.data.users," "),N(7),z("src",l.api.staticURL("admin/img/icons/pools.png"),Ut),N(2),Re(" ",l.data.pools," "),N(7),z("src",l.api.staticURL("admin/img/icons/services.png"),Ut),N(2),Re(" ",l.data.user_services," "),N(5),z("ngIf",l.data.restrained),N(6),z("options",l.assignedChartOpts),N(5),z("options",l.inuseChartOpts)}}function jse(t,r){1&t&&(P(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),Y(4,"UDS Administration"),R()(),P(5,"div",25)(6,"p")(7,"uds-translate"),Y(8,"You are accessing UDS Administration as staff member."),R()(),P(9,"p")(10,"uds-translate"),Y(11,"This means that you have restricted access to elements."),R()(),P(12,"p")(13,"uds-translate"),Y(14,"In order to increase your access privileges, please contact your local UDS administrator. "),R()(),pe(15,"br"),P(16,"p")(17,"uds-translate"),Y(18,"Thank you."),R()()()()())}let Gse=(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(e){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(e=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))});for(const e of["assigned","inuse"])this.rest.system.stats(e).then(s=>{const u={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:s.map(m=>Ms("SHORT_DATE_FORMAT",new Date(m.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:"assigned"===e?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:s.map(m=>m.value)}]};"assigned"===e?this.assignedChartOpts=u:this.inuseChartOpts=u})}}chartInit(e,s){"assigned"===e?this.assignedChartInstance=s:this.inuseChartInstance=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-summary"]],hostBindings:function(e,s){1&e&&J("resize",function(m){return s.onResize(m)},0,ss)},decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"options","chartInit"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),pe(3,"img",3),P(4,"uds-translate"),Y(5,"Dashboard"),R()(),pe(6,"div",4),R(),P(7,"div",5),re(8,Use,42,9,"div",6)(9,jse,19,0,"ng-template",null,7,so),R()()),2&e){const u=pn(10);N(3),z("src",s.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ut),N(5),z("ngIf",s.api.user.isAdmin)("ngIfElse",u)}},dependencies:[xn,mr,oS,Yte,vn],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700;padding:.5rem 1rem}.staff-content[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb 0%,#e2d1c3 100%);box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600 0%,#f9d423 100%);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(60deg,rgb(75,82,102),rgb(70,93,156))}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,rgb(75,82,102),rgb(70,93,156));width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb 0%,#e2d1c3 100%);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600 0%,#f9d423 100%);color:#fff} .dark-theme .info-panel-link{background:steelblue} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']}),r})();class Wse{}function Jq(t){return t&&"function"==typeof t.connect&&!(t instanceof SI)}class qte{applyChanges(r,l,e,s,u){r.forEachOperation((m,b,C)=>{let M,I;if(null==m.previousIndex){const F=e(m,b,C);M=l.createEmbeddedView(F.templateRef,F.context,F.index),I=1}else null==C?(l.remove(b),I=3):(M=l.get(b),l.move(M,C),I=2);u&&u({context:null==M?void 0:M.context,operation:I,record:m})})}detach(){}}class UP{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(r=!1,l,e=!0,s){this._multiple=r,this._emitChanges=e,this.compareWith=s,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new he,l&&l.length&&(r?l.forEach(u=>this._markSelected(u)):this._markSelected(l[0]),this._selectedToEmit.length=0)}select(...r){this._verifyValueAssignment(r),r.forEach(e=>this._markSelected(e));const l=this._hasQueuedChanges();return this._emitChangeEvent(),l}deselect(...r){this._verifyValueAssignment(r),r.forEach(e=>this._unmarkSelected(e));const l=this._hasQueuedChanges();return this._emitChangeEvent(),l}setSelection(...r){this._verifyValueAssignment(r);const l=this.selected,e=new Set(r);r.forEach(u=>this._markSelected(u)),l.filter(u=>!e.has(this._getConcreteValue(u,e))).forEach(u=>this._unmarkSelected(u));const s=this._hasQueuedChanges();return this._emitChangeEvent(),s}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=!0){this._unmarkAll();const l=this._hasQueuedChanges();return r&&this._emitChangeEvent(),l}isSelected(r){return this._selection.has(this._getConcreteValue(r))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(r){r=this._getConcreteValue(r),this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r))}_unmarkSelected(r){r=this._getConcreteValue(r),this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r))}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r))}_verifyValueAssignment(r){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(r,l){if(this.compareWith){l=l??this._selection;for(let e of l)if(this.compareWith(r,e))return e;return r}return r}}const jP=new ve("_ViewRepeater");function Xte(t={}){const{connector:r=(()=>new he),resetOnError:l=!0,resetOnComplete:e=!0,resetOnRefCountZero:s=!0}=t;return u=>{let m,b,C,M=0,I=!1,F=!1;const H=()=>{null==b||b.unsubscribe(),b=void 0},q=()=>{H(),m=C=void 0,I=F=!1},Q=()=>{const ne=m;q(),null==ne||ne.unsubscribe()};return Ae((ne,ae)=>{M++,!F&&!I&&H();const ge=C=C??r();ae.add(()=>{M--,0===M&&!F&&!I&&(b=eZ(Q,s))}),ge.subscribe(ae),!m&&M>0&&(m=new _e({next:se=>ge.next(se),error:se=>{F=!0,H(),b=eZ(q,l,se),ge.error(se)},complete:()=>{I=!0,H(),b=eZ(q,e),ge.complete()}}),ra(ne).subscribe(m))})(u)}}function eZ(t,r,...l){if(!0===r)return void t();if(!1===r)return;const e=new _e({next:()=>{e.unsubscribe(),t()}});return ra(r(...l)).subscribe(e)}class Yse{constructor(r){this._box=r,this._destroyed=new he,this._resizeSubject=new he,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(l=>this._resizeSubject.next(l)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new ln(l=>{var s;const e=this._resizeSubject.subscribe(l);return null==(s=this._resizeObserver)||s.observe(r,{box:this._box}),()=>{var u;null==(u=this._resizeObserver)||u.unobserve(r),e.unsubscribe(),this._elementObservables.delete(r)}}).pipe(bn(l=>l.some(e=>e.target===r)),function $se(t,r,l){let e,s=!1;return t&&"object"==typeof t?({bufferSize:e=1/0,windowTime:r=1/0,refCount:s=!1,scheduler:l}=t):e=t??1/0,Xte({connector:()=>new Qq(e,r,l),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}({bufferSize:1,refCount:!0}),Dt(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let qse=(()=>{var t;class r{constructor(){this._observers=new Map,this._ngZone=De(Ye)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,s){const u=(null==s?void 0:s.box)||"content-box";return this._observers.has(u)||this._observers.set(u,new Yse(u)),this._observers.get(u).observe(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const Zse=["notch"],Xse=["matFormFieldNotchedOutline",""],Kse=["*"],Qse=["textField"],Jse=["iconPrefixContainer"],ele=["textPrefixContainer"];function tle(t,r){1&t&&pe(0,"span",16)}function nle(t,r){if(1&t&&(P(0,"label",14),dt(1,1),re(2,tle,1,0,"span",15),R()),2&t){const l=Z(2);z("floating",l._shouldLabelFloat())("monitorResize",l._hasOutline())("id",l._labelId),$e("for",l._control.id),N(2),an(2,!l.hideRequiredMarker&&l._control.required?2:-1)}}function ile(t,r){1&t&&re(0,nle,3,5,"label",14),2&t&&an(0,Z()._hasFloatingLabel()?0:-1)}function rle(t,r){1&t&&pe(0,"div",17)}function ale(t,r){}function ole(t,r){1&t&&re(0,ale,0,0,"ng-template",9),2&t&&(Z(2),z("ngTemplateOutlet",pn(1)))}function sle(t,r){if(1&t&&(P(0,"div",5),re(1,ole,1,1,null,9),R()),2&t){const l=Z();z("matFormFieldNotchedOutlineOpen",l._shouldLabelFloat()),N(),an(1,l._forceDisplayInfixLabel()?-1:1)}}function lle(t,r){1&t&&(P(0,"div",18,19),dt(2,2),R())}function cle(t,r){1&t&&(P(0,"div",20,21),dt(2,3),R())}function dle(t,r){}function ule(t,r){1&t&&re(0,dle,0,0,"ng-template",9),2&t&&(Z(),z("ngTemplateOutlet",pn(1)))}function hle(t,r){1&t&&(P(0,"div",22),dt(1,4),R())}function fle(t,r){1&t&&(P(0,"div",23),dt(1,5),R())}function ple(t,r){1&t&&pe(0,"div",12)}function mle(t,r){1&t&&(P(0,"div",24),dt(1,6),R()),2&t&&z("@transitionMessages",Z()._subscriptAnimationState)}function gle(t,r){if(1&t&&(P(0,"mat-hint",26),Y(1),R()),2&t){const l=Z(2);z("id",l._hintLabelId),N(),En(l.hintLabel)}}function vle(t,r){if(1&t&&(P(0,"div",25),re(1,gle,2,2,"mat-hint",26),dt(2,7),pe(3,"div",27),dt(4,8),R()),2&t){const l=Z();z("@transitionMessages",l._subscriptAnimationState),N(),an(1,l.hintLabel?1:-1)}}const _le=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],yle=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ci=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-label"]]}),r})();const ble=new ve("MatError");let wle=0,Kte=(()=>{var t;class r{constructor(){this.align="start",this.id="mat-mdc-hint-"+wle++}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("align",null),et("mat-mdc-form-field-hint-end","end"===s.align))},inputs:{align:"align",id:"id"}}),r})();const xle=new ve("MatPrefix"),Qte=new ve("MatSuffix");let vS=(()=>{var t;class r{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[Je([{provide:Qte,useExisting:t}])]}),r})();const Jte=new ve("FloatingLabelParent");let ene=(()=>{var t;class r{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=De(qse),this._ngZone=De(Ye),this._parent=De(Jte),this._resizeSubscription=new bt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Cle(t){if(null!==t.offsetParent)return t.scrollWidth;const l=t.cloneNode(!0);l.style.setProperty("position","absolute"),l.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(l);const e=l.scrollWidth;return l.remove(),e}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-floating-label--float-above",s.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}}),r})();const tne="mdc-line-ripple--active",Wz="mdc-line-ripple--deactivating";let nne=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._handleTransitionEnd=u=>{const m=this._elementRef.nativeElement.classList,b=m.contains(Wz);"opacity"===u.propertyName&&b&&m.remove(tne,Wz)},s.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Wz),e.add(tne)}deactivate(){this._elementRef.nativeElement.classList.add(Wz)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),r})(),ine=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._ngZone=s,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275cmp=xe({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(e,s){if(1&e&&ft(Zse,5),2&e){let u;Ne(u=Ve())&&(s._notch=u.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-notched-outline--notched",s.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:Xse,ngContentSelectors:Kse,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(e,s){1&e&&(jn(),pe(0,"div",0),P(1,"div",1,2),dt(3),R(),pe(4,"div",3))},encapsulation:2,changeDetection:0}),r})();const Sle={transitionMessages:Vi("transitionMessages",[Vn("enter",lt({opacity:1,transform:"translateY(0%)"})),Cn("void => enter",[lt({opacity:0,transform:"translateY(-5px)"}),kn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let $z=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t}),r})();const _S=new ve("MatFormField"),rne=new ve("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ane=0,ri=(()=>{var t;class r{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ot(e)}get floatLabel(){var e;return this._floatLabel||(null==(e=this._defaults)?void 0:e.floatLabel)||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){var m;const s=this._appearance,u=e||(null==(m=this._defaults)?void 0:m.appearance)||"fill";this._appearance=u,"outline"===this._appearance&&this._appearance!==s&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){var e;return this._subscriptSizing||(null==(e=this._defaults)?void 0:e.subscriptSizing)||"fixed"}set subscriptSizing(e){var s;this._subscriptSizing=e||(null==(s=this._defaults)?void 0:s.subscriptSizing)||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,s,u,m,b,C,M,I){this._elementRef=e,this._changeDetectorRef=s,this._ngZone=u,this._dir=m,this._platform=b,this._defaults=C,this._animationMode=M,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+ane++,this._hintLabelId="mat-mdc-hint-"+ane++,this._subscriptAnimationState="",this._destroyed=new he,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,C&&(C.appearance&&(this.appearance=C.appearance),this._hideRequiredMarker=!(null==C||!C.hideRequiredMarker),C.color&&(this.color=C.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Dt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),xi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){var e,s,u;this._control.focused&&!this._isFocused?(this._isFocused=!0,null==(e=this._lineRipple)||e.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,null==(s=this._lineRipple)||s.deactivate()),null==(u=this._textField)||u.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Dt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Dt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const s=this._control?this._control.ngControl:null;return s&&s[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){var e,s;this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?null==(s=this._notchedOutline)||s._setNotchWidth(this._floatingLabel.getWidth()):null==(e=this._notchedOutline)||e._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const s=this._hintChildren?this._hintChildren.find(m=>"start"===m.align):null,u=this._hintChildren?this._hintChildren.find(m=>"end"===m.align):null;s?e.push(s.id):this._hintLabel&&e.push(this._hintLabelId),u&&e.push(u.id)}else this._errorChildren&&e.push(...this._errorChildren.map(s=>s.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){var H,q;if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const s=null==(H=this._iconPrefixContainer)?void 0:H.nativeElement,u=null==(q=this._textPrefixContainer)?void 0:q.nativeElement,m=(null==s?void 0:s.getBoundingClientRect().width)??0,b=(null==u?void 0:u.getBoundingClientRect().width)??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${m+b}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const s=e.getRootNode();return s&&s!==e}return document.documentElement.contains(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ye),V(Ir),V(Jn),V(rne,8),V(si,8),V(yt))},t.\u0275cmp=xe({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Ci,5),Kt(u,Ci,7),Kt(u,$z,5),Kt(u,xle,5),Kt(u,Qte,5),Kt(u,ble,5),Kt(u,Kte,5)),2&e){let m;Ne(m=Ve())&&(s._labelChildNonStatic=m.first),Ne(m=Ve())&&(s._labelChildStatic=m.first),Ne(m=Ve())&&(s._formFieldControl=m.first),Ne(m=Ve())&&(s._prefixChildren=m),Ne(m=Ve())&&(s._suffixChildren=m),Ne(m=Ve())&&(s._errorChildren=m),Ne(m=Ve())&&(s._hintChildren=m)}},viewQuery:function(e,s){if(1&e&&(ft(Qse,5),ft(Jse,5),ft(ele,5),ft(ene,5),ft(ine,5),ft(nne,5)),2&e){let u;Ne(u=Ve())&&(s._textField=u.first),Ne(u=Ve())&&(s._iconPrefixContainer=u.first),Ne(u=Ve())&&(s._textPrefixContainer=u.first),Ne(u=Ve())&&(s._floatingLabel=u.first),Ne(u=Ve())&&(s._notchedOutline=u.first),Ne(u=Ve())&&(s._lineRipple=u.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,s){2&e&&et("mat-mdc-form-field-label-always-float",s._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",s._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",s._hasIconSuffix)("mat-form-field-invalid",s._control.errorState)("mat-form-field-disabled",s._control.disabled)("mat-form-field-autofilled",s._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===s._animationMode)("mat-form-field-appearance-fill","fill"==s.appearance)("mat-form-field-appearance-outline","outline"==s.appearance)("mat-form-field-hide-placeholder",s._hasFloatingLabel()&&!s._shouldLabelFloat())("mat-focused",s._control.focused)("mat-primary","accent"!==s.color&&"warn"!==s.color)("mat-accent","accent"===s.color)("mat-warn","warn"===s.color)("ng-untouched",s._shouldForward("untouched"))("ng-touched",s._shouldForward("touched"))("ng-pristine",s._shouldForward("pristine"))("ng-dirty",s._shouldForward("dirty"))("ng-valid",s._shouldForward("valid"))("ng-invalid",s._shouldForward("invalid"))("ng-pending",s._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Je([{provide:_S,useExisting:t},{provide:Jte,useExisting:t}])],ngContentSelectors:yle,decls:18,vars:21,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],["class","mat-mdc-form-field-icon-prefix"],["class","mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],["class","mat-mdc-form-field-text-suffix"],["class","mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(e,s){if(1&e&&(jn(_le),re(0,ile,1,1,"ng-template",null,0,so),P(2,"div",1,2),J("click",function(m){return s._control.onContainerClick(m)}),re(4,rle,1,0,"div",3),P(5,"div",4),re(6,sle,2,2,"div",5)(7,lle,3,0,"div",6)(8,cle,3,0,"div",7),P(9,"div",8),re(10,ule,1,1,null,9),dt(11),R(),re(12,hle,2,0,"div",10)(13,fle,2,0,"div",11),R(),re(14,ple,1,0,"div",12),R(),P(15,"div",13),re(16,mle,2,1)(17,vle,5,2),R()),2&e){let u;N(2),et("mdc-text-field--filled",!s._hasOutline())("mdc-text-field--outlined",s._hasOutline())("mdc-text-field--no-label",!s._hasFloatingLabel())("mdc-text-field--disabled",s._control.disabled)("mdc-text-field--invalid",s._control.errorState),N(2),an(4,s._hasOutline()||s._control.disabled?-1:4),N(2),an(6,s._hasOutline()?6:-1),N(),an(7,s._hasIconPrefix?7:-1),N(),an(8,s._hasTextPrefix?8:-1),N(2),an(10,!s._hasOutline()||s._forceDisplayInfixLabel()?10:-1),N(2),an(12,s._hasTextSuffix?12:-1),N(),an(13,s._hasIconSuffix?13:-1),N(),an(14,s._hasOutline()?-1:14),N(),et("mat-mdc-form-field-subscript-dynamic-size","dynamic"===s.subscriptSizing),N(),an(16,"error"===(u=s._getDisplayedMessages())?16:"hint"===u?17:-1)}},dependencies:[pE,Kte,ene,ine,nne],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Sle.transitionMessages]},changeDetection:0}),r})(),Yz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Er,zk,$t]}),r})();const Mle=["trigger"],Ale=["panel"];function Ele(t,r){if(1&t&&(P(0,"span",9),Y(1),R()),2&t){const l=Z();N(),En(l.placeholder)}}function Ile(t,r){1&t&&dt(0)}function kle(t,r){if(1&t&&(P(0,"span",11),Y(1),R()),2&t){const l=Z(2);N(),En(l.triggerValue)}}function Ple(t,r){if(1&t&&(P(0,"span",10),re(1,Ile,1,0)(2,kle,2,1),R()),2&t){const l=Z();N(),an(1,l.customTrigger?1:2)}}function Rle(t,r){if(1&t){const l=Oe();Ia(),Bd(),P(0,"div",12,13),J("@transformPanel.done",function(s){return oe(l),le(Z()._panelDoneAnimatingStream.next(s.toState))})("keydown",function(s){return oe(l),le(Z()._handleKeydown(s))}),dt(2,1),R()}if(2&t){const l=Z();(function rM(t,r,l){Ar(Bo,So,Qh(Te(),t,r,l),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",l._getPanelTheme(),""),z("ngClass",l.panelClass)("@transformPanel","showing"),$e("id",l.id+"-panel")("aria-multiselectable",l.multiple)("aria-label",l.ariaLabel||null)("aria-labelledby",l._getPanelAriaLabelledby())}}const Ole=[[["mat-select-trigger"]],"*"],Lle=["mat-select-trigger","*"],Fle={transformPanelWrap:Vi("transformPanelWrap",[Cn("* => void",eS("@transformPanel",[Eb()],{optional:!0}))]),transformPanel:Vi("transformPanel",[Vn("void",lt({opacity:0,transform:"scale(1, 0.8)"})),Cn("void => showing",kn("120ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:1,transform:"scale(1, 1)"}))),Cn("* => void",kn("100ms linear",lt({opacity:0})))])};let lne=0;const cne=new ve("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),Vle=new ve("MAT_SELECT_CONFIG"),Ble={provide:cne,deps:[Mi],useFactory:function Nle(t){return()=>t.scrollStrategies.reposition()}},dne=new ve("MatSelectTrigger");class zle{constructor(r,l){this.source=r,this.value=l}}const Hle=sP(W1(lp(Db(class{constructor(t,r,l,e,s){this._elementRef=t,this._defaultErrorStateMatcher=r,this._parentForm=l,this._parentFormGroup=e,this.ngControl=s,this.stateChanges=new he}}))));let Ya=(()=>{var t;class r extends Hle{_scrollOptionIntoView(e){const s=this.options.toArray()[e];if(s){const u=this.panel.nativeElement,m=pP(e,this.options,this.optionGroups),b=s._getHostElement();u.scrollTop=0===e&&1===m?0:X1(b.offsetTop,b.offsetHeight,u.scrollTop,u.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new zle(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ot(e),this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ot(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ot(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=xa(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,s,u,m,b,C,M,I,F,H,q,Q,ne,ae){var ge,se,Be;super(b,m,M,I,H),this._viewportRuler=e,this._changeDetectorRef=s,this._ngZone=u,this._dir=C,this._parentFormField=F,this._liveAnnouncer=ne,this._defaultOptions=ae,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(Fe,Ft)=>Fe===Ft,this._uid="mat-select-"+lne++,this._triggerAriaLabelledBy=null,this._destroy=new he,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lne++,this._panelDoneAnimatingStream=new he,this._overlayPanelClass=(null==(ge=this._defaultOptions)?void 0:ge.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._hideSingleSelectionIndicator=(null==(se=this._defaultOptions)?void 0:se.hideSingleSelectionIndicator)??!1,this._multiple=!1,this._disableOptionCentering=(null==(Be=this._defaultOptions)?void 0:Be.disableOptionCentering)??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this.optionSelectionChanges=Ag(()=>{const Fe=this.options;return Fe?Fe.changes.pipe(pr(Fe),Li(()=>xi(...Fe.map(Ft=>Ft.onSelectionChange)))):this._ngZone.onStable.pipe(In(1),Li(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(bn(Fe=>Fe),Ee(()=>{})),this._closedStream=this.openedChange.pipe(bn(Fe=>!Fe),Ee(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,this._trackedModal=null,this._skipPredicate=Fe=>!this.panelOpen&&Fe.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ae?void 0:ae.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ae.typeaheadDebounceInterval),this._scrollStrategyFactory=Q,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(q)||0,this.id=this.id}ngOnInit(){this._selectionModel=new UP(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(O1(),Dt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Dt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Dt(this._destroy)).subscribe(e=>{e.added.forEach(s=>s.select()),e.removed.forEach(s=>s.deselect())}),this.options.changes.pipe(pr(null),Dt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),s=this.ngControl;if(e!==this._triggerAriaLabelledBy){const u=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?u.setAttribute("aria-labelledby",e):u.removeAttribute("aria-labelledby")}s&&(this._previousControl!==s.control&&(void 0!==this._previousControl&&null!==s.disabled&&s.disabled!==this.disabled&&(this.disabled=s.disabled),this._previousControl=s.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const s=`${this.id}-panel`;this._trackedModal&&sp(this._trackedModal,"aria-owns",s),F1(e,"aria-owns",s),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(sp(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,s;return this.multiple?(null==(e=this._selectionModel)?void 0:e.selected)||[]:null==(s=this._selectionModel)?void 0:s.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(s=>s.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const s=e.keyCode,u=40===s||38===s||37===s||39===s,m=13===s||32===s,b=this._keyManager;if(!b.isTyping()&&m&&!vr(e)||(this.multiple||e.altKey)&&u)e.preventDefault(),this.open();else if(!this.multiple){const C=this.selected;b.onKeydown(e);const M=this.selected;M&&C!==M&&this._liveAnnouncer.announce(M.viewValue,1e4)}}_handleOpenKeydown(e){const s=this._keyManager,u=e.keyCode,m=40===u||38===u,b=s.isTyping();if(m&&e.altKey)e.preventDefault(),this.close();else if(b||13!==u&&32!==u||!s.activeItem||vr(e))if(!b&&this._multiple&&65===u&&e.ctrlKey){e.preventDefault();const C=this.options.some(M=>!M.disabled&&!M.selected);this.options.forEach(M=>{M.disabled||(C?M.select():M.deselect())})}else{const C=s.activeItemIndex;s.onKeydown(e),this._multiple&&m&&e.shiftKey&&s.activeItem&&s.activeItemIndex!==C&&s.activeItem._selectViaInteraction()}else e.preventDefault(),s.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){var e;this._focused=!1,null==(e=this._keyManager)||e.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(In(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(s=>s.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(s=>this._selectOptionByValue(s)),this._sortValues();else{const s=this._selectOptionByValue(e);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const s=this.options.find(u=>{if(this._selectionModel.isSelected(u))return!1;try{return null!=u.value&&this._compareWith(u.value,e)}catch{return!1}});return s&&this._selectionModel.select(s),s}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof P1?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new $5(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=xi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Dt(e)).subscribe(s=>{this._onSelect(s.source,s.isUserInput),s.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),xi(...this.options.map(s=>s._stateChanges)).pipe(Dt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,s){const u=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(u!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),s&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),s&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),u!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((s,u)=>this.sortComparator?this.sortComparator(s,u,e):e.indexOf(s)-e.indexOf(u)),this.stateChanges.next()}}_propagateChanges(e){let s;s=this.multiple?this.selected.map(u=>u.value):this.selected?this.selected.value:e,this._value=s,this.valueChange.emit(s),this._onChange(s),this.selectionChange.emit(this._getChangeEvent(s)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let s=0;s0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var u;if(this.ariaLabel)return null;const e=null==(u=this._parentFormField)?void 0:u.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var u;if(this.ariaLabel)return null;const e=null==(u=this._parentFormField)?void 0:u.getLabelId();let s=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Nu),V(dn),V(Ye),V(Gu),V(je),V(Ir,8),V(ov,8),V(mS,8),V(_S,8),V(x,10),Ie("tabindex"),V(cne),V(ez),V(Vle,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-select"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,dne,5),Kt(u,Ni,5),Kt(u,fP,5)),2&e){let m;Ne(m=Ve())&&(s.customTrigger=m.first),Ne(m=Ve())&&(s.options=m),Ne(m=Ve())&&(s.optionGroups=m)}},viewQuery:function(e,s){if(1&e&&(ft(Mle,5),ft(Ale,5),ft(H5,5)),2&e){let u;Ne(u=Ve())&&(s.trigger=u.first),Ne(u=Ve())&&(s.panel=u.first),Ne(u=Ve())&&(s._overlayDir=u.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)})("focus",function(){return s._onFocus()})("blur",function(){return s._onBlur()}),2&e&&($e("id",s.id)("tabindex",s.tabIndex)("aria-controls",s.panelOpen?s.id+"-panel":null)("aria-expanded",s.panelOpen)("aria-label",s.ariaLabel||null)("aria-required",s.required.toString())("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState)("aria-activedescendant",s._getAriaActiveDescendant()),et("mat-mdc-select-disabled",s.disabled)("mat-mdc-select-invalid",s.errorState)("mat-mdc-select-required",s.required)("mat-mdc-select-empty",s.empty)("mat-mdc-select-multiple",s.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Je([{provide:$z,useExisting:t},{provide:hP,useExisting:t}]),ze,nn],ngContentSelectors:Lle,decls:11,vars:8,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,s){if(1&e&&(jn(Ole),P(0,"div",0,1),J("click",function(){return s.open()}),P(3,"div",2),re(4,Ele,2,1,"span",3)(5,Ple,3,1),R(),P(6,"div",4)(7,"div",5),Ia(),P(8,"svg",6),pe(9,"path",7),R()()()(),re(10,Rle,3,9,"ng-template",8),J("backdropClick",function(){return s.close()})("attach",function(){return s._onAttached()})("detach",function(){return s.close()})),2&e){const u=pn(1);N(3),$e("id",s._valueId),N(),an(4,s.empty?4:5),N(6),z("cdkConnectedOverlayPanelClass",s._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",s._scrollStrategy)("cdkConnectedOverlayOrigin",s._preferredOverlayOrigin||u)("cdkConnectedOverlayOpen",s.panelOpen)("cdkConnectedOverlayPositions",s._positions)("cdkConnectedOverlayWidth",s._overlayWidth)}},dependencies:[To,H5,P1],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Fle.transformPanel]},changeDetection:0}),r})(),une=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-select-trigger"]],features:[Je([{provide:dne,useExisting:t}])]}),r})(),hne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Ble],imports:[Er,Hu,K1,$t,np,Yz,K1,$t]}),r})();const Ule=["tooltip"],pne=new ve("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition({scrollThrottle:20})}}),Gle={provide:pne,deps:[Mi],useFactory:function jle(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},$le=new ve("mat-tooltip-default-options",{providedIn:"root",factory:function Wle(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mne="tooltip-panel",gne=Ko({passive:!0});let qz=(()=>{var t;class r{get position(){return this._position}set position(e){var s;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null==(s=this._tooltipInstance)||s.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ot(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=xa(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=xa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this._overlay=e,this._elementRef=s,this._scrollDispatcher=u,this._viewContainerRef=m,this._ngZone=b,this._platform=C,this._ariaDescriber=M,this._focusMonitor=I,this._dir=H,this._defaultOptions=q,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Qle,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new he,this._scrollStrategy=F,this._document=Q,q&&(this._showDelay=q.showDelay,this._hideDelay=q.hideDelay,q.position&&(this.position=q.position),q.positionAtOrigin&&(this.positionAtOrigin=q.positionAtOrigin),q.touchGestures&&(this.touchGestures=q.touchGestures)),H.change.pipe(Dt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Dt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([s,u])=>{e.removeEventListener(s,u,gne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,s){var b;if(this.disabled||!this.message||this._isTooltipVisible())return void(null==(b=this._tooltipInstance)||b._cancelPendingAnimations());const u=this._createOverlay(s);this._detach(),this._portal=this._portal||new Vu(this._tooltipComponent,this._viewContainerRef);const m=this._tooltipInstance=u.attach(this._portal).instance;m._triggerElement=this._elementRef.nativeElement,m._mouseLeaveHideDelay=this._hideDelay,m.afterHidden().pipe(Dt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),m.show(e)}hide(e=this.hideDelay){const s=this._tooltipInstance;s&&(s.isVisible()?s.hide(e):(s._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){var m;if(this._overlayRef){const b=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&b._origin instanceof je)return this._overlayRef;this._detach()}const s=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),u=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(s);return u.positionChanges.pipe(Dt(this._destroyed)).subscribe(b=>{this._updateCurrentPositionClass(b.connectionPair),this._tooltipInstance&&b.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:u,panelClass:`${this._cssClassPrefix}-${mne}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Dt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Dt(this._destroyed)).subscribe(()=>{var b;return null==(b=this._tooltipInstance)?void 0:b._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Dt(this._destroyed)).subscribe(b=>{this._isTooltipVisible()&&27===b.keyCode&&!vr(b)&&(b.preventDefault(),b.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!=(m=this._defaultOptions)&&m.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const s=e.getConfig().positionStrategy,u=this._getOrigin(),m=this._getOverlayPosition();s.withPositions([this._addOffset({...u.main,...m.main}),this._addOffset({...u.fallback,...m.fallback})])}_addOffset(e){const u=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=u?-8:8:"end"===e.originX&&(e.offsetX=u?8:-8),e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,s=this.position;let u;"above"==s||"below"==s?u={originX:"center",originY:"above"==s?"top":"bottom"}:"before"==s||"left"==s&&e||"right"==s&&!e?u={originX:"start",originY:"center"}:("after"==s||"right"==s&&e||"left"==s&&!e)&&(u={originX:"end",originY:"center"});const{x:m,y:b}=this._invertPosition(u.originX,u.originY);return{main:u,fallback:{originX:m,originY:b}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,s=this.position;let u;"above"==s?u={overlayX:"center",overlayY:"bottom"}:"below"==s?u={overlayX:"center",overlayY:"top"}:"before"==s||"left"==s&&e||"right"==s&&!e?u={overlayX:"end",overlayY:"center"}:("after"==s||"right"==s&&e||"left"==s&&!e)&&(u={overlayX:"start",overlayY:"center"});const{x:m,y:b}=this._invertPosition(u.overlayX,u.overlayY);return{main:u,fallback:{overlayX:m,overlayY:b}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(In(1),Dt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,s){return"above"===this.position||"below"===this.position?"top"===s?s="bottom":"bottom"===s&&(s="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:s}}_updateCurrentPositionClass(e){const{overlayY:s,originX:u,originY:m}=e;let b;if(b="center"===s?this._dir&&"rtl"===this._dir.value?"end"===u?"left":"right":"start"===u?"left":"right":"bottom"===s&&"top"===m?"above":"below",b!==this._currentPosition){const C=this._overlayRef;if(C){const M=`${this._cssClassPrefix}-${mne}-`;C.removePanelClass(M+this._currentPosition),C.addPanelClass(M+b)}this._currentPosition=b}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let s;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(s=e),this.show(void 0,s)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{var m;const s=null==(m=e.targetTouches)?void 0:m[0],u=s?{x:s.clientX,y:s.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,u),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",s=>{var m;const u=s.relatedTarget;(!u||null==(m=this._overlayRef)||!m.overlayElement.contains(u))&&this.hide()}],["wheel",s=>this._wheelListener(s)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const s=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",s],["touchcancel",s])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([s,u])=>{this._elementRef.nativeElement.addEventListener(s,u,gne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const s=this._document.elementFromPoint(e.clientX,e.clientY),u=this._elementRef.nativeElement;s!==u&&!u.contains(s)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const s=this._elementRef.nativeElement,u=s.style;("on"===e||"INPUT"!==s.nodeName&&"TEXTAREA"!==s.nodeName)&&(u.userSelect=u.msUserSelect=u.webkitUserSelect=u.MozUserSelect="none"),("on"===e||!s.draggable)&&(u.webkitUserDrag="none"),u.touchAction="none",u.webkitTapHighlightColor="transparent"}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(je),V(Ck),V(fi),V(Ye),V(Jn),V(G5),V(uo),V(pne),V(Ir),V($le,8),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,s){2&e&&et("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),r})(),Qle=(()=>{var t;class r{constructor(e,s,u){this._changeDetectorRef=e,this._elementRef=s,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new he,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===u}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const s=this._tooltip.nativeElement,u=this._showAnimation,m=this._hideAnimation;if(s.classList.remove(e?m:u),s.classList.add(e?u:m),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const b=getComputedStyle(s);("0s"===b.getPropertyValue("animation-duration")||"none"===b.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(s.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,s){if(1&e&&ft(Ule,7),2&e){let u;Ne(u=Ve())&&(s._tooltip=u.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,s){1&e&&J("mouseleave",function(m){return s._handleMouseLeave(m)}),2&e&&cr("zoom",s.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,s){1&e&&(P(0,"div",0,1),J("animationend",function(m){return s._handleAnimationEnd(m)}),P(2,"div",2),Y(3),R()()),2&e&&(et("mdc-tooltip--multiline",s._isMultiline),z("ngClass",s.tooltipClass),N(3),En(s.message))},dependencies:[To],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),r})(),tZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Gle],imports:[j1,Er,Hu,$t,$t,np]}),r})();function Jle(t,r){if(1&t&&(P(0,"mat-option",18),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}function ece(t,r){if(1&t){const l=Oe();P(0,"mat-form-field",16)(1,"mat-select",17),J("selectionChange",function(s){return oe(l),le(Z(2)._changePageSize(s.value))}),lf(2,Jle,2,2,"mat-option",18,sf),R()()}if(2&t){const l=Z(2);z("appearance",l._formFieldAppearance)("color",l.color),N(),z("value",l.pageSize)("disabled",l.disabled)("aria-labelledby",l._pageSizeLabelId)("panelClass",l.selectConfig.panelClass||"")("disableOptionCentering",l.selectConfig.disableOptionCentering),N(),cf(l._displayedPageSizeOptions)}}function tce(t,r){if(1&t&&(P(0,"div",19),Y(1),R()),2&t){const l=Z(2);N(),En(l.pageSize)}}function nce(t,r){if(1&t&&(P(0,"div",12)(1,"div",13),Y(2),R(),re(3,ece,4,7,"mat-form-field",14)(4,tce,2,1,"div",15),R()),2&t){const l=Z();N(),$e("id",l._pageSizeLabelId),N(),Re(" ",l._intl.itemsPerPageLabel," "),N(),an(3,l._displayedPageSizeOptions.length>1?3:-1),N(),an(4,l._displayedPageSizeOptions.length<=1?4:-1)}}function ice(t,r){if(1&t){const l=Oe();P(0,"button",20),J("click",function(){return oe(l),le(Z().firstPage())}),Ia(),P(1,"svg",7),pe(2,"path",21),R()()}if(2&t){const l=Z();z("matTooltip",l._intl.firstPageLabel)("matTooltipDisabled",l._previousButtonsDisabled())("matTooltipPosition","above")("disabled",l._previousButtonsDisabled()),$e("aria-label",l._intl.firstPageLabel)}}function rce(t,r){if(1&t){const l=Oe();Ia(),Bd(),P(0,"button",22),J("click",function(){return oe(l),le(Z().lastPage())}),Ia(),P(1,"svg",7),pe(2,"path",23),R()()}if(2&t){const l=Z();z("matTooltip",l._intl.lastPageLabel)("matTooltipDisabled",l._nextButtonsDisabled())("matTooltipPosition","above")("disabled",l._nextButtonsDisabled()),$e("aria-label",l._intl.lastPageLabel)}}let yS=(()=>{var t;class r{constructor(){this.changes=new he,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,s,u)=>{if(0==u||0==s)return`0 of ${u}`;const m=e*s;return`${m+1} \u2013 ${m<(u=Math.max(u,0))?Math.min(m+s,u):m+s} of ${u}`}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const oce={provide:yS,deps:[[new Pa,new Wl,yS]],useFactory:function ace(t){return t||new yS}},lce=new ve("MAT_PAGINATOR_DEFAULT_OPTIONS"),cce=lp(cp(class{}));let dce=0,Zz=(()=>{var t;class r extends cce{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(xa(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=xa(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(xa(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(s=>xa(s)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ot(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ot(e)}constructor(e,s,u){if(super(),this._intl=e,this._changeDetectorRef=s,this._pageSizeLabelId="mat-paginator-page-size-label-"+dce++,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Ce,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:m,pageSizeOptions:b,hidePageSize:C,showFirstLastButtons:M}=u;null!=m&&(this._pageSize=m),null!=b&&(this._pageSizeOptions=b),null!=C&&(this._hidePageSize=C),null!=M&&(this._showFirstLastButtons=M)}this._formFieldAppearance=(null==u?void 0:u.formFieldAppearance)||"outline"}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-s),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(yS),V(dn),V(lce,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled",color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},exportAs:["matPaginator"],features:[ze],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color"],["class","mat-mdc-paginator-page-size-value"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,nce,5,4,"div",2),P(3,"div",3)(4,"div",4),Y(5),R(),re(6,ice,3,5,"button",5),P(7,"button",6),J("click",function(){return s.previousPage()}),Ia(),P(8,"svg",7),pe(9,"path",8),R()(),Bd(),P(10,"button",9),J("click",function(){return s.nextPage()}),Ia(),P(11,"svg",7),pe(12,"path",10),R()(),re(13,rce,3,5,"button",11),R()()()),2&e&&(N(2),an(2,s.hidePageSize?-1:2),N(3),Re(" ",s._intl.getRangeLabel(s.pageIndex,s.pageSize,s.length)," "),N(),an(6,s.showFirstLastButtons?6:-1),N(),z("matTooltip",s._intl.previousPageLabel)("matTooltipDisabled",s._previousButtonsDisabled())("matTooltipPosition","above")("disabled",s._previousButtonsDisabled()),$e("aria-label",s._intl.previousPageLabel),N(3),z("matTooltip",s._intl.nextPageLabel)("matTooltipDisabled",s._nextButtonsDisabled())("matTooltipPosition","above")("disabled",s._nextButtonsDisabled()),$e("aria-label",s._intl.nextPageLabel),N(3),an(13,s.showFirstLastButtons?13:-1))},dependencies:[wc,ri,Ya,Ni,qz],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),uce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[oce],imports:[hp,hne,tZ]}),r})();const hce=["mat-sort-header",""];function fce(t,r){if(1&t){const l=Oe();P(0,"div",3),J("@arrowPosition.start",function(){return oe(l),le(Z()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return oe(l),le(Z()._disableViewStateAnimation=!1)}),pe(1,"div",4),P(2,"div",5),pe(3,"div",6)(4,"div",7)(5,"div",8),R()()}if(2&t){const l=Z();z("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),N(2),z("@indicator",l._getArrowDirectionState()),N(),z("@leftPointer",l._getArrowDirectionState()),N(),z("@rightPointer",l._getArrowDirectionState())}}const pce=["*"],vne=new ve("MAT_SORT_DEFAULT_OPTIONS"),mce=cp(lp(class{}));let GP=(()=>{var t;class r extends mce{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ot(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new he,this.start="asc",this._direction="",this.sortChange=new Ce}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var b;if(!e)return"";const s=(null==e?void 0:e.disableClear)??this.disableClear??!(null==(b=this._defaultOptions)||!b.disableClear);let u=function gce(t,r){let l=["asc","desc"];return"desc"==t&&l.reverse(),r||l.push(""),l}(e.start||this.start,s),m=u.indexOf(this.direction)+1;return m>=u.length&&(m=0),u[m]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(vne,8))},t.\u0275dir=ce({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ze,nn]}),r})();const lv=G1.ENTERING+" "+qY.STANDARD_CURVE,bS={indicator:Vi("indicator",[Vn("active-asc, asc",lt({transform:"translateY(0px)"})),Vn("active-desc, desc",lt({transform:"translateY(10px)"})),Cn("active-asc <=> active-desc",kn(lv))]),leftPointer:Vi("leftPointer",[Vn("active-asc, asc",lt({transform:"rotate(-45deg)"})),Vn("active-desc, desc",lt({transform:"rotate(45deg)"})),Cn("active-asc <=> active-desc",kn(lv))]),rightPointer:Vi("rightPointer",[Vn("active-asc, asc",lt({transform:"rotate(45deg)"})),Vn("active-desc, desc",lt({transform:"rotate(-45deg)"})),Cn("active-asc <=> active-desc",kn(lv))]),arrowOpacity:Vi("arrowOpacity",[Vn("desc-to-active, asc-to-active, active",lt({opacity:1})),Vn("desc-to-hint, asc-to-hint, hint",lt({opacity:.54})),Vn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",lt({opacity:0})),Cn("* => asc, * => desc, * => active, * => hint, * => void",kn("0ms")),Cn("* <=> *",kn(lv))]),arrowPosition:Vi("arrowPosition",[Cn("* => desc-to-hint, * => desc-to-active",kn(lv,nv([lt({transform:"translateY(-25%)"}),lt({transform:"translateY(0)"})]))),Cn("* => hint-to-desc, * => active-to-desc",kn(lv,nv([lt({transform:"translateY(0)"}),lt({transform:"translateY(25%)"})]))),Cn("* => asc-to-hint, * => asc-to-active",kn(lv,nv([lt({transform:"translateY(25%)"}),lt({transform:"translateY(0)"})]))),Cn("* => hint-to-asc, * => active-to-asc",kn(lv,nv([lt({transform:"translateY(0)"}),lt({transform:"translateY(-25%)"})]))),Vn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",lt({transform:"translateY(0)"})),Vn("hint-to-desc, active-to-desc, desc",lt({transform:"translateY(-25%)"})),Vn("hint-to-asc, active-to-asc, asc",lt({transform:"translateY(25%)"}))]),allowChildren:Vi("allowChildren",[Cn("* <=> *",[eS("@*",Eb(),{optional:!0})])])};let Xz=(()=>{var t;class r{constructor(){this.changes=new he}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const _ce={provide:Xz,deps:[[new Pa,new Wl,Xz]],useFactory:function vce(t){return t||new Xz}},yce=lp(class{});let _ne=(()=>{var t;class r extends yce{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ot(e)}constructor(e,s,u,m,b,C,M,I){super(),this._intl=e,this._changeDetectorRef=s,this._sort=u,this._columnDef=m,this._focusMonitor=b,this._elementRef=C,this._ariaDescriber=M,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=I&&I.arrowPosition&&(this.arrowPosition=null==I?void 0:I.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const s=!!e;s!==this._showIndicatorHint&&(this._setIndicatorHintVisible(s),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var s,u;this._sortButton&&(null==(s=this._ariaDescriber)||s.removeDescription(this._sortButton,this._sortActionDescription),null==(u=this._ariaDescriber)||u.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=xi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xz),V(dn),V(GP,8),V("MAT_SORT_HEADER_COLUMN_DEF",8),V(uo),V(je),V(G5,8),V(vne,8))},t.\u0275cmp=xe({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,s){1&e&&J("click",function(){return s._handleClick()})("keydown",function(m){return s._handleKeydown(m)})("mouseenter",function(){return s._setIndicatorHintVisible(!0)})("mouseleave",function(){return s._setIndicatorHintVisible(!1)}),2&e&&($e("aria-sort",s._getAriaSortAttribute()),et("mat-sort-header-disabled",s._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[ze],attrs:hce,ngContentSelectors:pce,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,s){1&e&&(jn(),P(0,"div",0)(1,"div",1),dt(2),R(),re(3,fce,6,6,"div",2),R()),2&e&&(et("mat-sort-header-sorted",s._isSorted())("mat-sort-header-position-before","before"===s.arrowPosition),$e("tabindex",s._isDisabled()?null:0)("role",s._isDisabled()?null:"button"),N(3),an(3,s._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[bS.indicator,bS.leftPointer,bS.rightPointer,bS.arrowOpacity,bS.arrowPosition,bS.allowChildren]},changeDetection:0}),r})(),bce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[_ce],imports:[$t]}),r})();const wce=[[["caption"]],[["colgroup"],["col"]]],xce=["caption","colgroup, col"];function nZ(t){return class extends t{get sticky(){return this._sticky}set sticky(r){const l=this._sticky;this._sticky=Ot(r),this._hasStickyChanged=l!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}}}const wS=new ve("CDK_TABLE");let xS=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkCellDef",""]]}),r})(),CS=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkHeaderCellDef",""]]}),r})(),Kz=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkFooterCellDef",""]]}),r})();class Tce{}const Mce=nZ(Tce);let mp=(()=>{var t;class r extends Mce{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,xS,5),Kt(u,CS,5),Kt(u,Kz,5)),2&e){let m;Ne(m=Ve())&&(s.cell=m.first),Ne(m=Ve())&&(s.headerCell=m.first),Ne(m=Ve())&&(s.footerCell=m.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:["stickyEnd","stickyEnd",jt]},features:[Je([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),na,ze]}),r})();class iZ{constructor(r,l){l.nativeElement.classList.add(...r._columnCssClassName)}}let rZ=(()=>{var t;class r extends iZ{constructor(e,s){super(e,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(mp),V(je))},t.\u0275dir=ce({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ze]}),r})(),aZ=(()=>{var t;class r extends iZ{constructor(e,s){var u;if(super(e,s),1===(null==(u=e._table)?void 0:u._elementRef.nativeElement.nodeType)){const m=e._table._elementRef.nativeElement.getAttribute("role");s.nativeElement.setAttribute("role","grid"===m||"treegrid"===m?"gridcell":"cell")}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(mp),V(je))},t.\u0275dir=ce({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ze]}),r})();class bne{constructor(){this.tasks=[],this.endTasks=[]}}const oZ=new ve("_COALESCED_STYLE_SCHEDULER");let wne=(()=>{var t;class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new he}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bne,this._getScheduleObservable().pipe(Dt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new bne;for(const s of e.tasks)s();for(const s of e.endTasks)s()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?nr(Promise.resolve(void 0)):this._ngZone.onStable.pipe(In(1))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),sZ=(()=>{var t;class r{constructor(e,s){this.template=e,this._differs=s}ngOnChanges(e){if(!this._columnsDiffer){const s=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(s).create(),this._columnsDiffer.diff(s)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof WP?e.headerCell.template:this instanceof $P?e.footerCell.template:e.cell.template}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu))},t.\u0275dir=ce({type:t,features:[nn]}),r})();class Ace extends sZ{}const Ece=nZ(Ace);let WP=(()=>{var t;class r extends Ece{constructor(e,s,u){super(e,s),this._table=u}ngOnChanges(e){super.ngOnChanges(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ze,nn]}),r})();class Ice extends sZ{}const kce=nZ(Ice);let $P=(()=>{var t;class r extends kce{constructor(e,s,u){super(e,s),this._table=u}ngOnChanges(e){super.ngOnChanges(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ze,nn]}),r})(),Qz=(()=>{var t;class r extends sZ{constructor(e,s,u){super(e,s),this._table=u}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ze]}),r})(),gp=(()=>{var t;class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return(t=r).mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(V(fi))},t.\u0275dir=ce({type:t,selectors:[["","cdkCellOutlet",""]]}),r})(),lZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),dZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),Jz=(()=>{var t;class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const xne=["top","bottom","left","right"];class Pce{constructor(r,l,e,s,u=!0,m=!0,b){this._isNativeHtmlTable=r,this._stickCellCss=l,this.direction=e,this._coalescedStyleScheduler=s,this._isBrowser=u,this._needsPositionStickyOnElement=m,this._positionListener=b,this._cachedCellWidths=[],this._borderCellCss={top:`${l}-border-elem-top`,bottom:`${l}-border-elem-bottom`,left:`${l}-border-elem-left`,right:`${l}-border-elem-right`}}clearStickyPositioning(r,l){const e=[];for(const s of r)if(s.nodeType===s.ELEMENT_NODE){e.push(s);for(let u=0;u{for(const s of e)this._removeStickyStyle(s,l)})}updateStickyColumns(r,l,e,s=!0){if(!r.length||!this._isBrowser||!l.some(H=>H)&&!e.some(H=>H))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const u=r[0],m=u.children.length,b=this._getCellWidths(u,s),C=this._getStickyStartColumnPositions(b,l),M=this._getStickyEndColumnPositions(b,e),I=l.lastIndexOf(!0),F=e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const H="rtl"===this.direction,q=H?"right":"left",Q=H?"left":"right";for(const ne of r)for(let ae=0;ael[ae]?ne:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===F?[]:b.slice(F).map((ne,ae)=>e[ae+F]?ne:null).reverse()}))})}stickRows(r,l,e){if(!this._isBrowser)return;const s="bottom"===e?r.slice().reverse():r,u="bottom"===e?l.slice().reverse():l,m=[],b=[],C=[];for(let I=0,F=0;I{var I,F;for(let H=0;H{l.some(s=>!s)?this._removeStickyStyle(e,["bottom"]):this._addStickyStyle(e,"bottom",0,!1)})}_removeStickyStyle(r,l){for(const s of l)r.style[s]="",r.classList.remove(this._borderCellCss[s]);xne.some(s=>-1===l.indexOf(s)&&r.style[s])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,l,e,s){r.classList.add(this._stickCellCss),s&&r.classList.add(this._borderCellCss[l]),r.style[l]=`${e}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const l={top:100,bottom:10,left:1,right:1};let e=0;for(const s of xne)r.style[s]&&(e+=l[s]);return e?`${e}`:""}_getCellWidths(r,l=!0){if(!l&&this._cachedCellWidths.length)return this._cachedCellWidths;const e=[],s=r.children;for(let u=0;u0;u--)l[u]&&(e[u]=s,s+=r[u]);return e}}const uZ=new ve("CDK_SPL");let e4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","rowOutlet",""]]}),r})(),t4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","headerRowOutlet",""]]}),r})(),n4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","footerRowOutlet",""]]}),r})(),r4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","noDataRowOutlet",""]]}),r})(),a4=(()=>{var t;class r{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this._differs=e,this._changeDetectorRef=s,this._elementRef=u,this._dir=b,this._platform=M,this._viewRepeater=I,this._coalescedStyleScheduler=F,this._viewportRuler=H,this._stickyPositioningListener=q,this._ngZone=Q,this._onDestroy=new he,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ce,this.viewChange=new ye({start:0,end:Number.MAX_VALUE}),m||this._elementRef.nativeElement.setAttribute("role","table"),this._document=C,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,s)=>this.trackBy?this.trackBy(s.dataIndex,s.data):s),this._viewportRuler.change().pipe(Dt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const s=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||s,this._forceRecalculateCellWidths=s,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jq(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const s=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,s,(u,m,b)=>this._getEmbeddedViewArgs(u.item,b),u=>u.item.data,u=>{1===u.operation&&u.context&&this._renderCellTemplateForItem(u.record.item.rowDef,u.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(u=>{s.get(u.currentIndex).context.$implicit=u.item.data}),this._updateNoDataRow(),this._ngZone&&Ye.isInAngularZone()?this._ngZone.onStable.pipe(In(1),Dt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),u=this._elementRef.nativeElement.querySelector("thead");u&&(u.style.display=e.length?"":"none");const m=this._headerRowDefs.map(b=>b.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,m,"top"),this._headerRowDefs.forEach(b=>b.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),u=this._elementRef.nativeElement.querySelector("tfoot");u&&(u.style.display=e.length?"":"none");const m=this._footerRowDefs.map(b=>b.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,m,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,m),this._footerRowDefs.forEach(b=>b.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._getRenderedRows(this._rowOutlet),u=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...s,...u],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((m,b)=>{this._addStickyColumnStyles([m],this._headerRowDefs[b])}),this._rowDefs.forEach(m=>{const b=[];for(let C=0;C{this._addStickyColumnStyles([m],this._footerRowDefs[b])}),Array.from(this._columnDefsByName.values()).forEach(m=>m.resetStickyChanged())}_getAllRenderRows(){const e=[],s=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let u=0;u{const C=u&&u.has(b)?u.get(b):[];if(C.length){const M=C.shift();return M.dataIndex=s,M}return{data:e,rowDef:b,dataIndex:s}})}_cacheColumnDefs(){this._columnDefsByName.clear(),o4(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(s=>{this._columnDefsByName.has(s.name),this._columnDefsByName.set(s.name,s)})}_cacheRowDefs(){this._headerRowDefs=o4(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=o4(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=o4(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(s=>!s.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(b,C)=>b||!!C.getColumnsDiff(),s=this._rowDefs.reduce(e,!1);s&&this._forceRenderDataRows();const u=this._headerRowDefs.reduce(e,!1);u&&this._forceRenderHeaderRows();const m=this._footerRowDefs.reduce(e,!1);return m&&this._forceRenderFooterRows(),s||u||m}_switchDataSource(e){this._data=[],Jq(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Jq(this.dataSource)?e=this.dataSource.connect(this):_I(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=tt(this.dataSource)),this._renderChangeSubscription=e.pipe(Dt(this._onDestroy)).subscribe(s=>{this._data=s||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,s)=>this._renderRow(this._headerRowOutlet,e,s)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,s)=>this._renderRow(this._footerRowOutlet,e,s)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,s){const u=Array.from(s.columns||[]).map(C=>this._columnDefsByName.get(C)),m=u.map(C=>C.sticky),b=u.map(C=>C.stickyEnd);this._stickyStyler.updateStickyColumns(e,m,b,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const s=[];for(let u=0;u!m.when||m.when(s,e));else{let m=this._rowDefs.find(b=>b.when&&b.when(s,e))||this._defaultRowDef;m&&u.push(m)}return u}_getEmbeddedViewArgs(e,s){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:s}}_renderRow(e,s,u,m={}){const b=e.viewContainer.createEmbeddedView(s.template,m,u);return this._renderCellTemplateForItem(s,m),b}_renderCellTemplateForItem(e,s){for(let u of this._getCellTemplates(e))gp.mostRecentCellOutlet&&gp.mostRecentCellOutlet._viewContainer.createEmbeddedView(u,s);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let s=0,u=e.length;s{const u=this._columnDefsByName.get(s);return e.extractCellTemplate(u)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),s=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const u of s){const m=this._document.createElement(u.tag);m.setAttribute("role","rowgroup");for(const b of u.outlets)m.appendChild(b.elementRef.nativeElement);e.appendChild(m)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(s,u)=>s||u.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Pce(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:tt()).pipe(Dt(this._onDestroy)).subscribe(s=>{this._stickyStyler.direction=s,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(s=>!s._table||s._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const s=0===this._rowOutlet.viewContainer.length;if(s===this._isShowingNoDataRow)return;const u=this._noDataRowOutlet.viewContainer;if(s){const m=u.createEmbeddedView(e.templateRef),b=m.rootNodes[0];1===m.rootNodes.length&&(null==b?void 0:b.nodeType)===this._document.ELEMENT_NODE&&(b.setAttribute("role","row"),b.classList.add(e._contentClassName))}else u.clear();this._isShowingNoDataRow=s,this._changeDetectorRef.markForCheck()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(tu),V(dn),V(je),Ie("role"),V(Ir,8),V(yt),V(Jn),V(jP),V(oZ),V(Nu),V(uZ,12),V(Ye,8))},t.\u0275cmp=xe({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Jz,5),Kt(u,mp,5),Kt(u,Qz,5),Kt(u,WP,5),Kt(u,$P,5)),2&e){let m;Ne(m=Ve())&&(s._noDataRow=m.first),Ne(m=Ve())&&(s._contentColumnDefs=m),Ne(m=Ve())&&(s._contentRowDefs=m),Ne(m=Ve())&&(s._contentHeaderRowDefs=m),Ne(m=Ve())&&(s._contentFooterRowDefs=m)}},viewQuery:function(e,s){if(1&e&&(ft(e4,7),ft(t4,7),ft(n4,7),ft(r4,7)),2&e){let u;Ne(u=Ve())&&(s._rowOutlet=u.first),Ne(u=Ve())&&(s._headerRowOutlet=u.first),Ne(u=Ve())&&(s._footerRowOutlet=u.first),Ne(u=Ve())&&(s._noDataRowOutlet=u.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(e,s){2&e&&et("cdk-table-fixed-layout",s.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:["multiTemplateDataRows","multiTemplateDataRows",jt],fixedLayout:["fixedLayout","fixedLayout",jt]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Je([{provide:wS,useExisting:t},{provide:jP,useClass:qte},{provide:oZ,useClass:wne},{provide:uZ,useValue:null}]),na],ngContentSelectors:xce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,s){1&e&&(jn(wce),dt(0),dt(1,1),ao(2,0)(3,1)(4,2)(5,3))},dependencies:[e4,t4,n4,r4],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function o4(t,r){return t.concat(Array.from(r))}let Oce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Sk]}),r})();const Lce=[[["caption"]],[["colgroup"],["col"]]],Fce=["caption","colgroup, col"];let hZ=(()=>{var t;class r extends a4{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-table-fixed-layout",s.fixedLayout)},exportAs:["matTable"],features:[Je([{provide:a4,useExisting:t},{provide:wS,useExisting:t},{provide:oZ,useClass:wne},{provide:jP,useClass:qte},{provide:uZ,useValue:null}]),ze],ngContentSelectors:Fce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,s){1&e&&(jn(Lce),dt(0),dt(1,1),ao(2,0)(3,1)(4,2)(5,3))},dependencies:[e4,t4,n4,r4],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),r})(),s4=(()=>{var t;class r extends xS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matCellDef",""]],features:[Je([{provide:xS,useExisting:t}]),ze]}),r})(),l4=(()=>{var t;class r extends CS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matHeaderCellDef",""]],features:[Je([{provide:CS,useExisting:t}]),ze]}),r})(),c4=(()=>{var t;class r extends mp{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Je([{provide:mp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ze]}),r})(),d4=(()=>{var t;class r extends rZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ze]}),r})(),u4=(()=>{var t;class r extends aZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ze]}),r})(),fZ=(()=>{var t;class r extends WP{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Je([{provide:WP,useExisting:t}]),ze]}),r})(),pZ=(()=>{var t;class r extends Qz{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Je([{provide:Qz,useExisting:t}]),ze]}),r})(),mZ=(()=>{var t;class r extends lZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Je([{provide:lZ,useExisting:t}]),ze],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),gZ=(()=>{var t;class r extends dZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Je([{provide:dZ,useExisting:t}]),ze],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),Gce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Oce,$t]}),r})();class Sne extends Wse{get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}constructor(r=[]){super(),this._renderData=new ye([]),this._filter=new ye(""),this._internalPageChanges=new he,this._renderChangesSubscription=null,this.sortingDataAccessor=(l,e)=>{const s=l[e];if(hk(s)){const u=Number(s);return u<9007199254740991?u:s}return s},this.sortData=(l,e)=>{const s=e.active,u=e.direction;return s&&""!=u?l.sort((m,b)=>{let C=this.sortingDataAccessor(m,s),M=this.sortingDataAccessor(b,s);const I=typeof C,F=typeof M;I!==F&&("number"===I&&(C+=""),"number"===F&&(M+=""));let H=0;return null!=C&&null!=M?C>M?H=1:C{const s=Object.keys(l).reduce((m,b)=>m+l[b]+"\u25ec","").toLowerCase(),u=e.trim().toLowerCase();return-1!=s.indexOf(u)},this._data=new ye(r),this._updateChangeSubscription()}_updateChangeSubscription(){var b;const r=this._sort?xi(this._sort.sortChange,this._sort.initialized):tt(null),l=this._paginator?xi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):tt(null),s=Pu([this._data,this._filter]).pipe(Ee(([C])=>this._filterData(C))),u=Pu([s,r]).pipe(Ee(([C])=>this._orderData(C))),m=Pu([u,l]).pipe(Ee(([C])=>this._pageData(C)));null==(b=this._renderChangesSubscription)||b.unsubscribe(),this._renderChangesSubscription=m.subscribe(C=>this._renderData.next(C))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(l=>this.filterPredicate(l,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const l=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(l,l+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const l=this.paginator;if(l&&(l.length=r,l.pageIndex>0)){const e=Math.ceil(l.length/l.pageSize)-1||0,s=Math.min(l.pageIndex,e);s!==l.pageIndex&&(l.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var r;null==(r=this._renderChangesSubscription)||r.unsubscribe(),this._renderChangesSubscription=null}}function Dne(t,r){return r?l=>Yf(r.pipe(In(1),function $ce(){return Ae((t,r)=>{t.subscribe(Bn(r,qb))})}()),l.pipe(Dne(t))):Gi((l,e)=>ra(t(l,e)).pipe(In(1),B3(l)))}function h4(t,r=Ds){const l=hb(t,r);return Dne(()=>l)}const Yce=["input"],qce=["label"],Zce=["*"],Xce=new ve("mat-checkbox-default-options",{providedIn:"root",factory:Tne});function Tne(){return{color:"accent",clickAction:"check-indeterminate"}}const Kce={provide:Pr,useExisting:Jt(()=>Ane),multi:!0};class Qce{}let Jce=0;const Mne=Tne();let Ane=(()=>{var t;class r{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const s=new Qce;return s.source=this,s.checked=e,s}_getAnimationTargetElement(){var e;return null==(e=this._inputElement)?void 0:e.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,s,u,m,b,C){this._elementRef=e,this._changeDetectorRef=s,this._ngZone=u,this._animationMode=b,this._options=C,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Mne,this.color=this._options.color||Mne.color,this.tabIndex=parseInt(m)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++Jce}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const s=e!=this._indeterminate;this._indeterminate=e,s&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let s=this._currentCheckState,u=this._getAnimationTargetElement();if(s!==e&&u&&(this._currentAnimationClass&&u.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(s,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){u.classList.add(this._currentAnimationClass);const m=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{u.classList.remove(m)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var s;const e=null==(s=this._options)?void 0:s.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,s){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===s)return this._animationClasses.uncheckedToChecked;if(3==s)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===s?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===s?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===s?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const s=this._inputElement;s&&(s.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ye),Ie("tabindex"),V(si,8),V(Xce,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,s){if(1&e&&(ft(Yce,5),ft(qce,5),ft(bl,5)),2&e){let u;Ne(u=Ve())&&(s._inputElement=u.first),Ne(u=Ve())&&(s._labelElement=u.first),Ne(u=Ve())&&(s.ripple=u.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("tabindex",null)("aria-label",null)("aria-labelledby",null),cu(s.color?"mat-"+s.color:"mat-accent"),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mdc-checkbox--disabled",s.disabled)("mat-mdc-checkbox-disabled",s.disabled)("mat-mdc-checkbox-checked",s.checked))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:["required","required",jt],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:["disableRipple","disableRipple",jt],tabIndex:["tabIndex","tabIndex",l=>null==l?void 0:qA(l)],color:"color",checked:["checked","checked",jt],disabled:["disabled","disabled",jt],indeterminate:["indeterminate","indeterminate",jt]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Je([Kce]),na],ngContentSelectors:Zce,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(e,s){if(1&e&&(jn(),P(0,"div",0),J("click",function(m){return s._preventBubblingFromLabel(m)}),P(1,"div",1,2)(3,"div",3),J("click",function(){return s._onTouchTargetClick()}),R(),P(4,"input",4,5),J("blur",function(){return s._onBlur()})("click",function(){return s._onInputClick()})("change",function(m){return s._onInteractionEvent(m)}),R(),pe(6,"div",6),P(7,"div",7),Ia(),P(8,"svg",8),pe(9,"path",9),R(),Bd(),pe(10,"div",10),R(),pe(11,"div",11),R(),P(12,"label",12,13),dt(14),R()()),2&e){const u=pn(2);et("mdc-form-field--align-end","before"==s.labelPosition),N(4),et("mdc-checkbox--selected",s.checked),z("checked",s.checked)("indeterminate",s.indeterminate)("disabled",s.disabled)("id",s.inputId)("required",s.required)("tabIndex",s.disabled?-1:s.tabIndex),$e("aria-label",s.ariaLabel||null)("aria-labelledby",s.ariaLabelledby)("aria-describedby",s.ariaDescribedby)("aria-checked",s.indeterminate?"mixed":null)("name",s.name)("value",s.value),N(7),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),N(),z("for",s.inputId)}},dependencies:[bl],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})(),Ene=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Ine=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,Ene,$t,Ene]}),r})();const nde=["*"];let f4;function YP(t){var r;return(null==(r=function ide(){if(void 0===f4&&(f4=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(f4=t.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return f4}())?void 0:r.createHTML(t))||t}function kne(t){return Error(`Unable to find icon with the name "${t}"`)}function Pne(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Rne(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Nb{constructor(r,l,e){this.url=r,this.svgText=l,this.options=e}}let p4=(()=>{var t;class r{constructor(e,s,u,m){this._httpClient=e,this._sanitizer=s,this._errorHandler=m,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=u}addSvgIcon(e,s,u){return this.addSvgIconInNamespace("",e,s,u)}addSvgIconLiteral(e,s,u){return this.addSvgIconLiteralInNamespace("",e,s,u)}addSvgIconInNamespace(e,s,u,m){return this._addSvgIconConfig(e,s,new Nb(u,null,m))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,s,u,m){const b=this._sanitizer.sanitize(Qi.HTML,u);if(!b)throw Rne(u);const C=YP(b);return this._addSvgIconConfig(e,s,new Nb("",C,m))}addSvgIconSet(e,s){return this.addSvgIconSetInNamespace("",e,s)}addSvgIconSetLiteral(e,s){return this.addSvgIconSetLiteralInNamespace("",e,s)}addSvgIconSetInNamespace(e,s,u){return this._addSvgIconSetConfig(e,new Nb(s,null,u))}addSvgIconSetLiteralInNamespace(e,s,u){const m=this._sanitizer.sanitize(Qi.HTML,s);if(!m)throw Rne(s);const b=YP(m);return this._addSvgIconSetConfig(e,new Nb("",b,u))}registerFontClassAlias(e,s=e){return this._fontCssClassesByAlias.set(e,s),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const s=this._sanitizer.sanitize(Qi.RESOURCE_URL,e);if(!s)throw Pne(e);const u=this._cachedIconsByUrl.get(s);return u?tt(m4(u)):this._loadSvgIconFromConfig(new Nb(e,null)).pipe(Fi(m=>this._cachedIconsByUrl.set(s,m)),Ee(m=>m4(m)))}getNamedSvgIcon(e,s=""){const u=One(s,e);let m=this._svgIconConfigs.get(u);if(m)return this._getSvgFromConfig(m);if(m=this._getIconConfigFromResolvers(s,e),m)return this._svgIconConfigs.set(u,m),this._getSvgFromConfig(m);const b=this._iconSetConfigs.get(s);return b?this._getSvgFromIconSetConfigs(e,b):Eg(kne(u))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?tt(m4(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ee(s=>m4(s)))}_getSvgFromIconSetConfigs(e,s){const u=this._extractIconWithNameFromAnySet(e,s);return u?tt(u):LP(s.filter(b=>!b.svgText).map(b=>this._loadSvgIconSetFromConfig(b).pipe(Eo(C=>{const I=`Loading icon set URL: ${this._sanitizer.sanitize(Qi.RESOURCE_URL,b.url)} failed: ${C.message}`;return this._errorHandler.handleError(new Error(I)),tt(null)})))).pipe(Ee(()=>{const b=this._extractIconWithNameFromAnySet(e,s);if(!b)throw kne(e);return b}))}_extractIconWithNameFromAnySet(e,s){for(let u=s.length-1;u>=0;u--){const m=s[u];if(m.svgText&&m.svgText.toString().indexOf(e)>-1){const b=this._svgElementFromConfig(m),C=this._extractSvgIconFromSet(b,e,m.options);if(C)return C}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Fi(s=>e.svgText=s),Ee(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?tt(null):this._fetchIcon(e).pipe(Fi(s=>e.svgText=s))}_extractSvgIconFromSet(e,s,u){const m=e.querySelector(`[id="${s}"]`);if(!m)return null;const b=m.cloneNode(!0);if(b.removeAttribute("id"),"svg"===b.nodeName.toLowerCase())return this._setSvgAttributes(b,u);if("symbol"===b.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(b),u);const C=this._svgElementFromString(YP(""));return C.appendChild(b),this._setSvgAttributes(C,u)}_svgElementFromString(e){const s=this._document.createElement("DIV");s.innerHTML=e;const u=s.querySelector("svg");if(!u)throw Error(" tag not found");return u}_toSvgElement(e){const s=this._svgElementFromString(YP("")),u=e.attributes;for(let m=0;mYP(I)),Hf(()=>this._inProgressUrlFetches.delete(b)),Xte());return this._inProgressUrlFetches.set(b,M),M}_addSvgIconConfig(e,s,u){return this._svgIconConfigs.set(One(e,s),u),this}_addSvgIconSetConfig(e,s){const u=this._iconSetConfigs.get(e);return u?u.push(s):this._iconSetConfigs.set(e,[s]),this}_svgElementFromConfig(e){if(!e.svgElement){const s=this._svgElementFromString(e.svgText);this._setSvgAttributes(s,e.options),e.svgElement=s}return e.svgElement}_getIconConfigFromResolvers(e,s){for(let u=0;ur?r.pathname+r.search:""}}}),Lne=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ude=Lne.map(t=>`[${t}]`).join(", "),hde=/^url\(['"]?#(.*?)['"]?\)$/;let fde=(()=>{var t;class r extends sde{get inline(){return this._inline}set inline(e){this._inline=Ot(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const s=this._cleanupFontValue(e);s!==this._fontSet&&(this._fontSet=s,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const s=this._cleanupFontValue(e);s!==this._fontIcon&&(this._fontIcon=s,this._updateFontIconClasses())}constructor(e,s,u,m,b,C){super(e),this._iconRegistry=s,this._location=m,this._errorHandler=b,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=bt.EMPTY,C&&(C.color&&(this.color=this.defaultColor=C.color),C.fontSet&&(this.fontSet=C.fontSet)),u||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const s=e.split(":");switch(s.length){case 1:return["",s[0]];case 2:return s;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const s=this._location.getPathname();s!==this._previousPath&&(this._previousPath=s,this._prependPathToReferences(s))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const s=this._location.getPathname();this._previousPath=s,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(s),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let s=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();s--;){const u=e.childNodes[s];(1!==u.nodeType||"svg"===u.nodeName.toLowerCase())&&u.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,s=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(u=>u.length>0);this._previousFontSetClass.forEach(u=>e.classList.remove(u)),s.forEach(u=>e.classList.add(u)),this._previousFontSetClass=s,this.fontIcon!==this._previousFontIconClass&&!s.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const s=this._elementsWithExternalReferences;s&&s.forEach((u,m)=>{u.forEach(b=>{m.setAttribute(b.name,`url('${e}#${b.value}')`)})})}_cacheChildrenWithExternalReferences(e){const s=e.querySelectorAll(ude),u=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let m=0;m{const C=s[m],M=C.getAttribute(b),I=M?M.match(hde):null;if(I){let F=u.get(C);F||(F=[],u.set(C,F)),F.push({name:b,value:I[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[s,u]=this._splitIconName(e);s&&(this._svgNamespace=s),u&&(this._svgName=u),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(u,s).pipe(In(1)).subscribe(m=>this._setSvgElement(m),m=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${s}:${u}! ${m.message}`))})}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(p4),Ie("aria-hidden"),V(cde),V(Tr),V(lde,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,s){2&e&&($e("data-mat-icon-type",s._usingFontIcon()?"font":"svg")("data-mat-icon-name",s._svgName||s.fontIcon)("data-mat-icon-namespace",s._svgNamespace||s.fontSet)("fontIcon",s._usingFontIcon()?s.fontIcon:null),et("mat-icon-inline",s.inline)("mat-icon-no-color","primary"!==s.color&&"accent"!==s.color&&"warn"!==s.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ze],ngContentSelectors:nde,decls:1,vars:0,template:function(e,s){1&e&&(jn(),dt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),pde=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})();const mde=["determinateSpinner"];function gde(t,r){if(1&t&&(Ia(),P(0,"svg",11),pe(1,"circle",12),R()),2&t){const l=Z();$e("viewBox",l._viewBox()),N(),cr("stroke-dasharray",l._strokeCircumference(),"px")("stroke-dashoffset",l._strokeCircumference()/2,"px")("stroke-width",l._circleStrokeWidth(),"%"),$e("r",l._circleRadius())}}const vde=tv(class{constructor(t){this._elementRef=t}},"primary"),_de=new ve("mat-progress-spinner-default-options",{providedIn:"root",factory:function yde(){return{diameter:Fne}}}),Fne=100;let Nne=(()=>{var t;class r extends vde{constructor(e,s,u){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=Fne,this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,xa(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=xa(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=xa(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(si,8),V(_de))},t.\u0275cmp=xe({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,s){if(1&e&&ft(mde,5),2&e){let u;Ne(u=Ve())&&(s._determinateCircle=u.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(e,s){2&e&&($e("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===s.mode?s.value:null)("mode",s.mode),cr("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),et("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===s.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[ze],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,s){if(1&e&&(re(0,gde,2,8,"ng-template",null,0,so),P(2,"div",1,2),Ia(),P(4,"svg",3),pe(5,"circle",4),R()(),Bd(),P(6,"div",5)(7,"div",6)(8,"div",7),ao(9,8),R(),P(10,"div",9),ao(11,8),R(),P(12,"div",10),ao(13,8),R()()()),2&e){const u=pn(1);N(4),$e("viewBox",s._viewBox()),N(),cr("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),$e("r",s._circleRadius()),N(4),z("ngTemplateOutlet",u),N(2),z("ngTemplateOutlet",u),N(2),z("ngTemplateOutlet",u)}},dependencies:[pE],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),r})(),Vne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,$t]}),r})(),Bne=(()=>{var t;class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ot(e)}get inset(){return this._inset}set inset(e){this._inset=Ot(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,s){2&e&&($e("aria-orientation",s.vertical?"vertical":"horizontal"),et("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,s){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),r})(),zne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})();const wde=["searchSelectInput"],xde=["innerSelectSearch"];function Cde(t,r){if(1&t){const l=Oe();P(0,"mat-checkbox",10),J("change",function(s){return oe(l),le(Z()._emitSelectAllBooleanToParent(s.checked))}),R()}if(2&t){const l=Z();z("color",null==l.matFormField?null:l.matFormField.color)("checked",l.toggleAllCheckboxChecked)("indeterminate",l.toggleAllCheckboxIndeterminate)("matTooltip",l.toggleAllCheckboxTooltipMessage)("matTooltipPosition",l.toggleAllCheckboxTooltipPosition)}}function Sde(t,r){1&t&&pe(0,"mat-spinner",11)}function Dde(t,r){1&t&&dt(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Tde(t,r){if(1&t&&(P(0,"mat-icon",15),Y(1),R()),2&t){const l=Z(2);z("svgIcon",l.closeSvgIcon),N(),Re(" ",l.closeSvgIcon?null:l.closeIcon," ")}}function Mde(t,r){if(1&t){const l=Oe();P(0,"button",12),J("click",function(){return oe(l),le(Z()._reset(!0))}),re(1,Dde,1,0,"ng-content",13)(2,Tde,2,2,"ng-template",null,14,so),R()}if(2&t){const l=pn(3),e=Z();N(),z("ngIf",e.clearIcon)("ngIfElse",l)}}function Ade(t,r){1&t&&dt(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Ede(t,r){1&t&&Y(0),2&t&&En(Z(2).noEntriesFoundLabel)}function Ide(t,r){if(1&t&&(P(0,"div",16),re(1,Ade,1,0,"ng-content",13)(2,Ede,1,1,"ng-template",null,17,so),R()),2&t){const l=pn(3),e=Z();N(),z("ngIf",e.noEntriesFound)("ngIfElse",l)}}const kde=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Pde=(t,r)=>({"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":r}),Rde=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Ode=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275dir=ce({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();const Lde=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Fde=new ve("mat-selectsearch-default-options");let Nde=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275dir=ce({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),t})(),Vde=(()=>{class t{constructor(l,e,s,u=null,m=null,b){this.matSelect=l,this.changeDetectorRef=e,this._viewportRuler=s,this.matOption=u,this.matFormField=m,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new Ce,this.onTouched=C=>{},this._options$=new ye(null),this.optionsList$=this._options$.pipe(Li(C=>C?C.changes.pipe(Ee(M=>M.toArray()),pr(C.toArray())):tt(null))),this.optionsLength$=this.optionsList$.pipe(Ee(C=>C?C.length:0)),this._formControl=new Vq(""),this._showNoEntriesFound$=Pu([this._formControl.valueChanges,this.optionsLength$]).pipe(Ee(([C,M])=>this.noEntriesFoundLabel&&C&&M===this.getOptionsLengthOffset())),this._onDestroy=new he,this.applyDefaultOptions(b)}get value(){return this._formControl.value}set _options(l){this._options$.next(l)}get _options(){return this._options$.getValue()}applyDefaultOptions(l){if(l)for(const e of Lde)l.hasOwnProperty(e)&&(this[e]=l[e])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(h4(1),Dt(this._onDestroy)).subscribe(l=>{l?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(In(1),Li(l=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Fi(()=>{setTimeout(()=>{const s=this._options.toArray(),u=s[this.getOptionsLengthOffset()],m=this.matSelect._keyManager;m&&this.matSelect.panelOpen&&u&&((!e||!this.matSelect.compareWith(e.value,u.value)||!m.activeItem||!s.find(C=>this.matSelect.compareWith(C.value,m.activeItem.value)))&&m.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=u})}))})).pipe(Dt(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Dt(this._onDestroy)).subscribe(l=>{this.matOption&&(l?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(Dt(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Dt(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(l){this.toggleAll.emit(l)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(l){(l.key&&1===l.key.length||l.keyCode>=65&&l.keyCode<=90||l.keyCode>=48&&l.keyCode<=57||32===l.keyCode||this.preventHomeEndKeyPropagation&&(36===l.keyCode||35===l.keyCode))&&l.stopPropagation(),this.matSelect.multiple&&l.key&&13===l.keyCode&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&27===l.keyCode&&this.value&&(this._reset(!0),l.stopPropagation())}_handleKeyup(l){if(38===l.keyCode||40===l.keyCode){const e=this.matSelect._getAriaActiveDescendant(),s=this._options.toArray().findIndex(u=>u.id===e);-1!==s&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[s]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",e))}}writeValue(l){this._lastExternalInputValue=l,this._formControl.setValue(l),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(l){this._formControl.valueChanges.pipe(bn(e=>e!==this._lastExternalInputValue),Fi(()=>this._lastExternalInputValue=void 0),Dt(this._onDestroy)).subscribe(l)}registerOnTouched(l){this.onTouched=l}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const l=this.matSelect.panel.nativeElement,e=l.scrollTop;this.searchSelectInput.nativeElement.focus(),l.scrollTop=e}_reset(l){this._formControl.setValue(""),l&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(Dt(this._onDestroy)).subscribe(l=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!l||!Array.isArray(l))&&(l=[]);const s=this.matSelect.options.map(u=>u.value);this.previousSelectedValues.forEach(u=>{!l.some(m=>this.matSelect.compareWith(m,u))&&!s.some(m=>this.matSelect.compareWith(m,u))&&(l.push(u),e=!0)})}this.previousSelectedValues=l,e&&this.matSelect._onChange(l)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e,l=this.innerSelectSearch.nativeElement;for(;l=l.parentElement;)if(l.classList.contains("mat-select-panel")){e=l;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){var l;null==(l=this.activeDescendant)||l.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return t.\u0275fac=function(l){return new(l||t)(V(Ya),V(dn),V(Nu),V(Ni,8),V(ri,8),V(Fde,8))},t.\u0275cmp=xe({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(l,e,s){if(1&l&&(Kt(s,Ode,5),Kt(s,Nde,5)),2&l){let u;Ne(u=Ve())&&(e.clearIcon=u.first),Ne(u=Ve())&&(e.noEntriesFound=u.first)}},viewQuery:function(l,e){if(1&l&&(ft(wde,7,je),ft(xde,7,je)),2&l){let s;Ne(s=Ve())&&(e.searchSelectInput=s.first),Ne(s=Ve())&&(e.innerSelectSearch=s.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[Je([{provide:Pr,useExisting:Jt(()=>t),multi:!0}])],ngContentSelectors:Rde,decls:13,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(l,e){1&l&&(jn(kde),pe(0,"input",0),P(1,"div",1,2)(3,"div",3),re(4,Cde,1,5,"mat-checkbox",4),P(5,"input",5,6),J("keydown",function(u){return e._handleKeydown(u)})("keyup",function(u){return e._handleKeyup(u)})("blur",function(){return e.onBlur()}),R(),re(7,Sde,1,0,"mat-spinner",7)(8,Mde,4,2,"button",8),dt(9),R(),pe(10,"mat-divider"),R(),re(11,Ide,4,2,"div",9),nl(12,"async")),2&l&&(N(),z("ngClass",Ix(11,Pde,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),N(3),z("ngIf",e._isToggleAllCheckboxVisible()),N(),z("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),$e("aria-label",e.ariaLabel),N(2),z("ngIf",e.searching),N(),z("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),N(3),z("ngIf",ng(12,9,e._showNoEntriesFound$)))},dependencies:[To,xn,$i,A,Hq,wc,Ane,fde,Nne,qz,Bne,gE],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),t})(),Bde=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,xte,hp,Ine,pde,Vne,tZ,zne]}),t})();function zde(t,r){if(1&t){const l=Oe();P(0,"mat-option")(1,"ngx-mat-select-search",1),J("ngModelChange",function(s){return oe(l),le(Z().changed.emit(s))}),R()()}if(2&t){const l=Z();N(),z("placeholderLabel",l.placeholderLabel)("noEntriesFoundLabel",l.noEntriesFoundLabel)}}let Cc=(()=>{var t;class r{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new Ce,this.notIfLessThan=7}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"placeholderLabel","noEntriesFoundLabel","ngModelChange"]],template:function(e,s){1&e&&re(0,zde,2,2,"mat-option",0),2&e&&z("ngIf",s.options&&s.options.length>s.notIfLessThan)},dependencies:[xn,A,ii,Ni,Vde]}),r})();function Hde(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New user permission for"),R())}function Ude(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New group permission for"),R())}function jde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}function Gde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}function Wde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}let $de=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.done=new wl}static launch(e,s,u){return Ge(function*(){const m=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(r,{width:m,data:{type:s,item:u},disableClose:!0}).componentInstance.done})()}ngOnInit(){var e=this;return Ge(function*(){const s=yield e.rest.authenticators.summary();for(const u of s)e.authenticators.push({id:u.id,text:u.name})})()}changeAuth(e){var s=this;return Ge(function*(){s.entities.length=0,s.entity="";const u=yield s.rest.authenticators.detail(e,s.data.type+"s").summary();for(const m of u)s.entities.push({id:m.id,text:m.name})})()}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){const e=new Array;return this.entities.forEach(s=>{(!this.filterUser||s.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(s)}),e}getFieldLabel(e){return"user"===e?django.gettext("User"):"group"===e?django.gettext("Group"):"auth"===e?django.gettext("Authenticator"):django.gettext("Permission")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"options","changed"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,Hde,2,0,"uds-translate",1),pe(2,"b",2),re(3,Ude,2,0,"ng-template",null,3,so),R(),P(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),J("valueChange",function(m){return s.changeAuth(m)})("ngModelChange",function(m){return s.authenticator=m}),re(9,jde,2,2,"mat-option",6),R()(),P(10,"mat-form-field")(11,"mat-select",7),J("ngModelChange",function(m){return s.entity=m}),P(12,"uds-cond-select-search",8),J("changed",function(m){return s.filterUser=m}),R(),re(13,Gde,2,2,"mat-option",6),R()(),P(14,"mat-form-field")(15,"mat-select",7),J("ngModelChange",function(m){return s.permission=m}),re(16,Wde,2,2,"mat-option",6),R()()()(),P(17,"mat-dialog-actions")(18,"button",9),J("click",function(){return s.cancel()}),P(19,"uds-translate"),Y(20,"Cancel"),R()(),P(21,"button",10),J("click",function(){return s.save()}),P(22,"uds-translate"),Y(23,"Ok"),R()()()),2&e){const u=pn(4);N(),z("ngIf","user"===s.data.type)("ngIfElse",u),N(),z("innerHTML",s.data.item.name,zr),N(6),z("placeholder",s.getFieldLabel("auth"))("ngModel",s.authenticator),N(),z("ngForOf",s.authenticators),N(2),z("placeholder",s.getFieldLabel(s.data.type))("ngModel",s.entity),N(),z("options",s.entities),N(),z("ngForOf",s.filteredEntities()),N(2),z("placeholder",s.getFieldLabel("perm"))("ngModel",s.permission),N(),z("ngForOf",s.permissions)}},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ya,Ni,vn,Cc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function Yde(t,r){if(1&t){const l=Oe();P(0,"div",11)(1,"div",12),Y(2),R(),P(3,"div",13),Y(4),P(5,"a",14),J("click",function(){const u=oe(l).$implicit;return le(Z(2).revokePermission(u))}),P(6,"i",15),Y(7,"close"),R()()()()}if(2&t){const l=r.$implicit;N(2),eg(" ",l.entity_name,"@",l.auth_name," "),N(2),Re(" ",l.perm_name," \xa0")}}function qde(t,r){if(1&t){const l=Oe();P(0,"div",7)(1,"div",8)(2,"div",9),J("click",function(s){const m=oe(l).$implicit;return Z().newPermission(m),le(s.preventDefault())}),P(3,"uds-translate"),Y(4,"New permission..."),R()(),re(5,Yde,8,3,"div",10),R()()}if(2&t){const l=r.$implicit;N(5),z("ngForOf",l)}}const Zde=(t,r)=>[t,r];let Xde=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.dialogRef=s,this.data=u,this.userPermissions=[],this.groupPermissions=[]}static launch(e,s,u){const m=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(r,{width:m,data:{rest:s,item:u},disableClose:!1})}ngOnInit(){var e=this;return Ge(function*(){yield e.reload()})()}reload(){var e=this;return Ge(function*(){const s=yield e.data.rest.getPermissions(e.data.item.id);e.updatePermissions(s)})()}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(const s of e)"user"===s.type?this.userPermissions.push(s):this.groupPermissions.push(s)}revokePermission(e){var s=this;return Ge(function*(){(yield s.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+""))&&(yield s.data.rest.revokePermission([e.id]),s.reload())})()}newPermission(e){var s=this;return Ge(function*(){const u=e===s.userPermissions?"user":"group",m=yield $de.launch(s.api,u,s.data.item);m&&(yield s.data.rest.addPermission(s.data.item.id,u+"s",m.entity,m.permissision),s.reload())})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Permissions for"),R(),Y(3,"\xa0"),pe(4,"b",1),R(),P(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),Y(8,"Users"),R(),P(9,"uds-translate",3),Y(10,"Groups"),R()(),P(11,"div",4),re(12,qde,6,1,"div",5),R()(),P(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),Y(16,"Ok"),R()()()),2&e&&(N(4),z("innerHTML",s.data.item.name,zr),N(8),z("ngForOf",Ix(2,Zde,s.userPermissions,s.groupPermissions)))},dependencies:[mi,Pn,Io,zi,Ai,Hi,vn],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();var vZ=Dn(897);const jne=t=>(void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'),Gne=t=>{let r="";t.columns.forEach(s=>{r+=jne(s.title)+","}),r=r.slice(0,-1)+"\r\n";const l=t.dataSource.data;for(const s of l){for(const u of t.columns){let m=s[u.name];switch(u.type){case $a.DATE:m=Ms("SHORT_DATE_FORMAT",m);break;case $a.DATETIME:m=Ms("SHORT_DATETIME_FORMAT",m);break;case $a.DATETIMESEC:m=Ms("SHORT_DATE_FORMAT",m," H:i:s");break;case $a.TIME:m=Ms("TIME_FORMAT",m)}r+=jne(m)+","}r=r.slice(0,-1)+"\r\n"}const e=new Blob([r],{type:"text/csv"});setTimeout(()=>{(0,vZ.saveAs)(e,t.title+".csv")})};class Qde{constructor(r,l){this._document=l;const e=this._textarea=this._document.createElement("textarea"),s=e.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",e.setAttribute("aria-hidden","true"),e.value=r,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){const r=this._textarea;let l=!1;try{if(r){const e=this._document.activeElement;r.select(),r.setSelectionRange(0,r.value.length),l=this._document.execCommand("copy"),e&&e.focus()}}catch{}return l}destroy(){const r=this._textarea;r&&(r.remove(),this._textarea=void 0)}}let Jde=(()=>{var t;class r{constructor(e){this._document=e}copy(e){const s=this.beginCopy(e),u=s.copy();return s.destroy(),u}beginCopy(e){return new Qde(e,this._document)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),eue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const tue=["mat-menu-item",""];function nue(t,r){1&t&&(Ia(),P(0,"svg",3),pe(1,"polygon",4),R())}const iue=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],rue=["mat-icon, [matMenuItemIcon]","*"];function aue(t,r){if(1&t){const l=Oe();P(0,"div",0),J("keydown",function(s){return oe(l),le(Z()._handleKeydown(s))})("click",function(){return oe(l),le(Z().closed.emit("click"))})("@transformMenu.start",function(s){return oe(l),le(Z()._onAnimationStart(s))})("@transformMenu.done",function(s){return oe(l),le(Z()._onAnimationDone(s))}),P(1,"div",1),dt(2),R()()}if(2&t){const l=Z();z("id",l.panelId)("ngClass",l._classList)("@transformMenu",l._panelAnimationState),$e("aria-label",l.ariaLabel||null)("aria-labelledby",l.ariaLabelledby||null)("aria-describedby",l.ariaDescribedby||null)}}const oue=["*"],_Z=new ve("MAT_MENU_PANEL");let qP=(()=>{var t;class r{constructor(e,s,u,m,b){var C;this._elementRef=e,this._document=s,this._focusMonitor=u,this._parentMenu=m,this._changeDetectorRef=b,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new he,this._focused=new he,this._highlighted=!1,this._triggersSubmenu=!1,null==(C=null==m?void 0:m.addItem)||C.call(m,this)}focus(e,s){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,s):this._getHostElement().focus(s),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var u;const e=this._elementRef.nativeElement.cloneNode(!0),s=e.querySelectorAll("mat-icon, .material-icons");for(let m=0;m{var t;class r{constructor(e,s,u,m,b,C,M){this._template=e,this._componentFactoryResolver=s,this._appRef=u,this._injector=m,this._viewContainerRef=b,this._document=C,this._changeDetectorRef=M,this._attached=new he}attach(e={}){var u;this._portal||(this._portal=new yd(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new g5(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const s=this._template.elementRef.nativeElement;s.parentNode.insertBefore(this._outlet.outletElement,s),null==(u=this._changeDetectorRef)||u.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(ls),V(ol),V(mn),V(fi),V(yt),V(dn))},t.\u0275dir=ce({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Je([{provide:Wne,useExisting:t}])]}),r})();const g4={transformMenu:Vi("transformMenu",[Vn("void",lt({opacity:0,transform:"scale(0.8)"})),Cn("void => enter",kn("120ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:1,transform:"scale(1)"}))),Cn("* => void",kn("100ms 25ms linear",lt({opacity:0})))]),fadeInItems:Vi("fadeInItems",[Vn("showing",lt({opacity:1})),Cn("void => *",[lt({opacity:0}),kn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lue=0;const cue=new ve("mat-menu-default-options",{providedIn:"root",factory:function due(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let SS=(()=>{var t;class r{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){const s=this._previousPanelClass;s&&s.length&&s.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,s,u,m){this._elementRef=e,this._ngZone=s,this._changeDetectorRef=m,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new yu,this._classList={},this._panelAnimationState="void",this._animationDone=new he,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+lue++,this.overlayPanelClass=u.overlayPanelClass||"",this._xPosition=u.xPosition,this._yPosition=u.yPosition,this.backdropClass=u.backdropClass,this.overlapTrigger=u.overlapTrigger,this.hasBackdrop=u.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qk(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(pr(this._directDescendantItems),Li(e=>xi(...e.map(s=>s._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var u;const s=this._keyManager;if("enter"===this._panelAnimationState&&null!=(u=s.activeItem)&&u._hasFocus()){const m=e.toArray(),b=Math.max(0,Math.min(m.length-1,s.activeItemIndex||0));m[b]&&!m[b].disabled?s.setActiveItem(b):s.setNextItemActive()}})}ngOnDestroy(){var e,s;null==(e=this._keyManager)||e.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),null==(s=this._firstItemFocusSubscription)||s.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(pr(this._directDescendantItems),Li(s=>xi(...s.map(u=>u._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const s=e.keyCode,u=this._keyManager;switch(s){case 27:vr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===s||40===s)&&u.setFocusOrigin("keyboard"),void u.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){var s;null==(s=this._firstItemFocusSubscription)||s.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(In(1)).subscribe(()=>{let u=null;if(this._directDescendantItems.length&&(u=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!u||!u.contains(document.activeElement)){const m=this._keyManager;m.setFocusOrigin(e).setFirstItemActive(),!m.activeItem&&u&&u.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const s=Math.min(this._baseElevation+e,24),u=`${this._elevationPrefix}${s}`,m=Object.keys(this._classList).find(b=>b.startsWith(this._elevationPrefix));(!m||m===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(e=this.xPosition,s=this.yPosition){var m;const u=this._classList;u["mat-menu-before"]="before"===e,u["mat-menu-after"]="after"===e,u["mat-menu-above"]="above"===s,u["mat-menu-below"]="below"===s,null==(m=this._changeDetectorRef)||m.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(pr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(s=>s._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye),V(cue),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-menu"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Wne,5),Kt(u,qP,5),Kt(u,qP,4)),2&e){let m;Ne(m=Ve())&&(s.lazyContent=m.first),Ne(m=Ve())&&(s._allItems=m),Ne(m=Ve())&&(s.items=m)}},viewQuery:function(e,s){if(1&e&&ft(Kn,5),2&e){let u;Ne(u=Ve())&&(s.templateRef=u.first)}},hostVars:3,hostBindings:function(e,s){2&e&&$e("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",jt],hasBackdrop:["hasBackdrop","hasBackdrop",l=>null==l?null:jt(l)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Je([{provide:_Z,useExisting:t}]),na],ngContentSelectors:oue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(e,s){1&e&&(jn(),re(0,aue,3,6,"ng-template"))},dependencies:[To],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[g4.transformMenu,g4.fadeInItems]},changeDetection:0}),r})();const $ne=new ve("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),hue={provide:$ne,deps:[Mi],useFactory:function uue(t){return()=>t.scrollStrategies.reposition()}},Yne=Ko({passive:!0});let qne=(()=>{var t;class r{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){var s;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(u=>{this._destroyMenu(u),("click"===u||"tab"===u)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(u)})),null==(s=this._menuItemInstance)||s._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,s,u,m,b,C,M,I,F){this._overlay=e,this._element=s,this._viewContainerRef=u,this._menuItemInstance=C,this._dir=M,this._focusMonitor=I,this._ngZone=F,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=bt.EMPTY,this._hoverSubscription=bt.EMPTY,this._menuCloseSubscription=bt.EMPTY,this._changeDetectorRef=De(dn),this._handleTouchStart=H=>{Jk(H)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=m,this._parentMaterialMenu=b instanceof SS?b:void 0,s.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yne)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Yne),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const s=this._createOverlay(e),u=s.getConfig(),m=u.positionStrategy;this._setPosition(e,m),u.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,s.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof SS&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Dt(e.close)).subscribe(()=>{m.withLockedPosition(!1).reapplyLastPosition(),m.withLockedPosition(!0)}))}closeMenu(){var e;null==(e=this.menu)||e.close.emit()}focus(e,s){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,s):this._element.nativeElement.focus(s)}updatePosition(){var e;null==(e=this._overlayRef)||e.updatePosition()}_destroyMenu(e){var u;if(!this._overlayRef||!this.menuOpen)return;const s=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,s instanceof SS?(s._resetAnimation(),s.lazyContent?s._animationDone.pipe(bn(m=>"void"===m.toState),In(1),Dt(s.lazyContent._attached)).subscribe({next:()=>s.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==(u=null==s?void 0:s.lazyContent)||u.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let s=0,u=e.parentMenu;for(;u;)s++,u=u.parentMenu;e.setElevation(s)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const s=this._getOverlayConfig(e);this._subscribeToPositions(e,s.positionStrategy),this._overlayRef=this._overlay.create(s),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new zu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,s){e.setPositionClasses&&s.positionChanges.subscribe(u=>{const m="start"===u.connectionPair.overlayX?"after":"before",b="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(m,b)):e.setPositionClasses(m,b)})}_setPosition(e,s){let[u,m]="before"===e.xPosition?["end","start"]:["start","end"],[b,C]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[M,I]=[b,C],[F,H]=[u,m],q=0;if(this.triggersSubmenu()){if(H=u="before"===e.xPosition?"start":"end",m=F="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Q=this._parentMaterialMenu.items.first;this._parentInnerPadding=Q?Q._getHostElement().offsetTop:0}q="bottom"===b?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(M="top"===b?"bottom":"top",I="top"===C?"bottom":"top");s.withPositions([{originX:u,originY:M,overlayX:F,overlayY:b,offsetY:q},{originX:m,originY:M,overlayX:H,overlayY:b,offsetY:q},{originX:u,originY:I,overlayX:F,overlayY:C,offsetY:-q},{originX:m,originY:I,overlayX:H,overlayY:C,offsetY:-q}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),s=this._overlayRef.detachments();return xi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:tt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(bn(b=>b!==this._menuItemInstance),bn(()=>this._menuOpen)):tt(),s)}_handleMousedown(e){Qk(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const s=e.keyCode;(13===s||32===s)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===s&&"ltr"===this.dir||37===s&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(bn(e=>e===this._menuItemInstance&&!e.disabled),h4(0,w1)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof SS&&this.menu._isAnimating?this.menu._animationDone.pipe(In(1),h4(0,w1),Dt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new yd(e.templateRef,this._viewContainerRef)),this._portal}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(je),V(fi),V($ne),V(_Z,8),V(qP,10),V(Ir,8),V(uo),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(e,s){1&e&&J("click",function(m){return s._handleClick(m)})("mousedown",function(m){return s._handleMousedown(m)})("keydown",function(m){return s._handleKeydown(m)}),2&e&&$e("aria-haspopup",s.menu?"menu":null)("aria-expanded",s.menuOpen)("aria-controls",s.menuOpen?s.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),r})(),fue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[hue],imports:[Er,Wu,$t,Hu,np,$t]}),r})();const Zne=Ko({passive:!0});let pue=(()=>{var t;class r{constructor(e,s){this._platform=e,this._ngZone=s,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ao;const s=ml(e),u=this._monitoredElements.get(s);if(u)return u.subject;const m=new he,b="cdk-text-field-autofilled",C=M=>{"cdk-text-field-autofill-start"!==M.animationName||s.classList.contains(b)?"cdk-text-field-autofill-end"===M.animationName&&s.classList.contains(b)&&(s.classList.remove(b),this._ngZone.run(()=>m.next({target:M.target,isAutofilled:!1}))):(s.classList.add(b),this._ngZone.run(()=>m.next({target:M.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{s.addEventListener("animationstart",C,Zne),s.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(s,{subject:m,unlisten:()=>{s.removeEventListener("animationstart",C,Zne)}}),m}stopMonitoring(e){const s=ml(e),u=this._monitoredElements.get(s);u&&(u.unlisten(),u.subject.complete(),s.classList.remove("cdk-text-field-autofill-monitored"),s.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(s))}ngOnDestroy(){this._monitoredElements.forEach((e,s)=>this.stopMonitoring(s))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const Xne=new ve("MAT_INPUT_VALUE_ACCESSOR"),gue=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let vue=0;const _ue=Db(class{constructor(t,r,l,e){this._defaultErrorStateMatcher=t,this._parentForm=r,this._parentFormGroup=l,this.ngControl=e,this.stateChanges=new he}});let Sa=(()=>{var t;class r extends _ue{get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&x1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ot(e)}constructor(e,s,u,m,b,C,M,I,F,H){super(C,m,b,u),this._elementRef=e,this._platform=s,this._autofillMonitor=I,this._formField=H,this._uid="mat-input-"+vue++,this.focused=!1,this.stateChanges=new he,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ne=>x1().has(ne)),this._iOSKeyupListener=ne=>{const ae=ne.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};const q=this._elementRef.nativeElement,Q=q.nodeName.toLowerCase();this._inputValueAccessor=M||q,this._previousNativeValue=this.value,this.id=this.id,s.IOS&&F.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Q,this._isTextarea="textarea"===Q,this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=q.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=e,e?s.setAttribute("placeholder",e):s.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){gue.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,s=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(x,10),V(ov,8),V(mS,8),V(Gu),V(Xne,10),V(pue),V(Ye),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,s){1&e&&J("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),2&e&&(Ba("id",s.id)("disabled",s.disabled)("required",s.required),$e("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),et("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Je([{provide:$z,useExisting:t}]),ze,nn]}),r})(),yue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Yz,Yz,mue,$t]}),r})(),bue=(()=>{var t;class r{transform(e,s){let u;return u=void 0===s?(m,b)=>m>b?1:-1:(m,b)=>m[s]>b[s]?1:-1,e.sort(u)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ua({name:"sort",type:t,pure:!0}),r})();const wue=["trigger"];function xue(t,r){1&t&&pe(0,"img",36),2&t&&z("src",Z().icon,Ut)}function Cue(t,r){if(1&t){const l=Oe();P(0,"button",46),J("click",function(){const u=oe(l).$implicit,m=Z(5);return le(m.newAction.emit({param:u,table:m}))}),R()}if(2&t){const l=r.$implicit,e=Z(5);z("innerHTML",e.api.safeString(e.api.gui.icon(l.icon)+l.name),zr)}}function Sue(t,r){if(1&t&&(An(0),P(1,"button",42),Y(2),R(),P(3,"mat-menu",43,44),re(5,Cue,1,1,"button",45),nl(6,"sort"),R(),On()),2&t){const l=r.$implicit,e=pn(4);N(),z("matMenuTriggerFor",e),N(),En(l.key),N(),z("overlapTrigger",!1),N(2),z("ngForOf",lA(6,4,l.value,"name"))}}function Due(t,r){if(1&t&&(An(0),P(1,"mat-menu",37,38),re(3,Sue,7,7,"ng-container",39),nl(4,"keyvalue"),R(),P(5,"a",40)(6,"i",17),Y(7,"insert_drive_file"),R(),P(8,"span",41)(9,"uds-translate"),Y(10,"New"),R()(),P(11,"i",17),Y(12,"arrow_drop_down"),R()(),On()),2&t){const l=pn(2),e=Z(3);N(),z("overlapTrigger",!1),N(2),z("ngForOf",ng(4,3,e.grpTypes)),N(2),z("matMenuTriggerFor",l)}}function Tue(t,r){if(1&t){const l=Oe();P(0,"button",48),J("click",function(){const u=oe(l).$implicit,m=Z(4);return le(m.newAction.emit({param:u,table:m}))}),R()}if(2&t){const l=r.$implicit,e=Z(4);z("innerHTML",e.api.safeString(e.api.gui.icon(l.icon)+l.name),zr)}}function Mue(t,r){if(1&t&&(An(0),P(1,"mat-menu",37,38),re(3,Tue,1,1,"button",47),nl(4,"sort"),R(),P(5,"a",40)(6,"i",17),Y(7,"insert_drive_file"),R(),P(8,"span",41)(9,"uds-translate"),Y(10,"New"),R()(),P(11,"i",17),Y(12,"arrow_drop_down"),R()(),On()),2&t){const l=pn(2),e=Z(3);N(),z("overlapTrigger",!1),N(2),z("ngForOf",lA(4,3,e.oTypes,"name")),N(2),z("matMenuTriggerFor",l)}}function Aue(t,r){if(1&t&&(An(0),re(1,Due,13,5,"ng-container",8)(2,Mue,13,6,"ng-container",8),On()),2&t){const l=Z(2);N(),z("ngIf",l.newGrouped),N(),z("ngIf",!l.newGrouped)}}function Eue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",49),J("click",function(){oe(l);const s=Z(2);return le(s.newAction.emit({param:void 0,table:s}))}),P(2,"i",17),Y(3,"insert_drive_file"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"New"),R()()(),On()}}function Iue(t,r){if(1&t&&(An(0),re(1,Aue,3,2,"ng-container",8)(2,Eue,7,0,"ng-container",8),On()),2&t){const l=Z();N(),z("ngIf",void 0!==l.oTypes&&0!==l.oTypes.length),N(),z("ngIf",void 0!==l.oTypes&&0===l.oTypes.length)}}function kue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",50),J("click",function(){oe(l);const s=Z();return le(s.emitIfSelection(s.editAction))}),P(2,"i",17),Y(3,"edit"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Edit"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",1!==l.selection.selected.length)}}function Pue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",50),J("click",function(){return oe(l),le(Z().permissions())}),P(2,"i",17),Y(3,"perm_identity"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Permissions"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",1!==l.selection.selected.length)}}function Rue(t,r){if(1&t){const l=Oe();P(0,"a",52),J("click",function(){const u=oe(l).$implicit;return le(Z(2).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(2).isCustomDisabled(l))("innerHTML",l.html,zr)}}function Oue(t,r){if(1&t&&(An(0),re(1,Rue,1,2,"a",51),On()),2&t){const l=Z();N(),z("ngForOf",l.getcustomButtons())}}function Lue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",53),J("click",function(){return oe(l),le(Z().export())}),P(2,"i",17),Y(3,"import_export"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Export"),R()()(),On()}}function Fue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",54),J("click",function(){oe(l);const s=Z();return le(s.emitIfSelection(s.deleteAction,!0))}),P(2,"i",17),Y(3,"delete_forever"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Delete"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",l.selection.isEmpty())}}function Nue(t,r){if(1&t){const l=Oe();P(0,"button",55),J("click",function(){oe(l);const s=Z();return s.filterText="",le(s.applyFilter())}),P(1,"i",17),Y(2,"clear"),R()()}}function Vue(t,r){1&t&&pe(0,"mat-header-cell")}function Bue(t,r){1&t&&(P(0,"i",61),Y(1,"check_box"),R())}function zue(t,r){1&t&&(P(0,"i",62),Y(1,"check_box_outline_blank"),R())}function Hue(t,r){if(1&t){const l=Oe();P(0,"mat-cell",58),J("click",function(s){const m=oe(l).$implicit;return le(Z(2).clickRow(m,s))}),re(1,Bue,2,0,"i",59)(2,zue,2,0,"ng-template",null,60,so),R()}if(2&t){const l=r.$implicit,e=pn(3),s=Z(2);N(),z("ngIf",s.selection.isSelected(l))("ngIfElse",e)}}function Uue(t,r){1&t&&(An(0,56),re(1,Vue,1,0,"mat-header-cell",22)(2,Hue,4,2,"mat-cell",57),On())}function jue(t,r){1&t&&pe(0,"mat-header-cell")}function Gue(t,r){if(1&t){const l=Oe();P(0,"mat-cell")(1,"div",63),J("click",function(s){const m=oe(l).$implicit,b=Z();return b.detailAction.emit({param:m,table:b}),le(s.stopPropagation())}),P(2,"i",17),Y(3,"subdirectory_arrow_right"),R()()()}}function Wue(t,r){if(1&t&&(P(0,"mat-header-cell",67),Y(1),R()),2&t){const l=Z().$implicit;N(),En(l.title)}}function $ue(t,r){if(1&t){const l=Oe();P(0,"mat-cell",68),J("click",function(s){const m=oe(l).$implicit;return le(Z(2).clickRow(m,s))})("contextmenu",function(s){const m=oe(l).$implicit,b=Z().$implicit;return le(Z().onContextMenu(m,b,s))}),pe(1,"div",69),R()}if(2&t){const l=r.$implicit,e=Z().$implicit,s=Z();N(),z("innerHtml",s.getRowColumn(l,e),zr)}}function Yue(t,r){1&t&&(An(0,64),re(1,Wue,2,1,"mat-header-cell",65)(2,$ue,2,1,"mat-cell",66),On()),2&t&&_u("matColumnDef",r.$implicit.name)}function que(t,r){1&t&&pe(0,"mat-header-row")}function Zue(t,r){if(1&t&&pe(0,"mat-row",70),2&t){const l=r.$implicit;z("ngClass",Z().rowClass(l))}}function Xue(t,r){if(1&t&&(P(0,"div",71),Y(1),P(2,"uds-translate"),Y(3,"Selected items"),R()()),2&t){const l=Z();N(),Re(" ",l.selection.selected.length," ")}}function Kue(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){return oe(l),le(Z(2).copyToClipboard())}),P(1,"i",76),Y(2,"content_copy"),R(),P(3,"uds-translate"),Y(4,"Copy"),R()()}}function Que(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){oe(l);const s=Z().item,u=Z();return le(u.detailAction.emit({param:s,table:u}))}),P(1,"i",76),Y(2,"subdirectory_arrow_right"),R(),P(3,"uds-translate"),Y(4,"Detail"),R()()}}function Jue(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){oe(l);const s=Z(2);return le(s.emitIfSelection(s.editAction))}),P(1,"i",76),Y(2,"edit"),R(),P(3,"uds-translate"),Y(4,"Edit"),R()()}}function ehe(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){return oe(l),le(Z(2).permissions())}),P(1,"i",76),Y(2,"perm_identity"),R(),P(3,"uds-translate"),Y(4,"Permissions"),R()()}}function the(t,r){if(1&t){const l=Oe();P(0,"button",77),J("click",function(){const u=oe(l).$implicit;return le(Z(2).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(2).isCustomDisabled(l))("innerHTML",l.html,zr)}}function nhe(t,r){if(1&t){const l=Oe();P(0,"button",78),J("click",function(){oe(l);const s=Z(2);return le(s.emitIfSelection(s.deleteAction))}),P(1,"i",76),Y(2,"delete_forever"),R(),P(3,"uds-translate"),Y(4,"Delete"),R()()}}function ihe(t,r){if(1&t){const l=Oe();P(0,"button",77),J("click",function(){const u=oe(l).$implicit;return le(Z(3).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(3).isCustomDisabled(l))("innerHTML",l.html,zr)}}function rhe(t,r){if(1&t&&(An(0),pe(1,"mat-divider"),re(2,ihe,1,2,"button",73),On()),2&t){const l=Z(2);N(2),z("ngForOf",l.getCustomAccelerators())}}function ahe(t,r){if(1&t&&re(0,Kue,5,0,"button",72)(1,Que,5,0,"button",72)(2,Jue,5,0,"button",72)(3,ehe,5,0,"button",72)(4,the,1,2,"button",73)(5,nhe,5,0,"button",74)(6,rhe,3,1,"ng-container",8),2&t){const l=Z();z("ngIf",!0===l.allowCopy),N(),z("ngIf",l.detailAction.observed),N(),z("ngIf",l.editAction.observed),N(),z("ngIf",!0===l.hasPermissions),N(),z("ngForOf",l.getCustomMenu()),N(),z("ngIf",l.deleteAction.observed),N(),z("ngIf",l.hasAccelerators)}}const ohe=()=>[5,10,25,100,1e3];let hi=(()=>{var t;class r{constructor(e,s){this.api=e,this.clipboard=s,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new Ce,this.rowSelected=new Ce,this.newAction=new Ce,this.editAction=new Ce,this.deleteAction=new Ce,this.customButtonAction=new Ce,this.detailAction=new Ce,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new UP(!0,[]),this.lastSel=null,this.dataSource=new Sne([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){var e=this;return Ge(function*(){e.hasCustomButtons=!(void 0===e.customButtons||0===e.customButtons.length||!e.customButtonAction.observed)&&e.getcustomButtons().length>0,e.hasAccelerators=e.getCustomAccelerators().length>0,e.hasButtons=e.hasCustomButtons||e.detailAction.observed||e.editAction.observed||e.hasPermissions||e.deleteAction.observed,e.hasActions=e.hasButtons||void 0!==e.customButtons&&e.customButtons.length>0,e.tableId=e.tableId||e.rest.id,e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.dataSource.sortingDataAccessor=(b,C)=>{if(!(C in b))return"";let M=b[C];return"number"==typeof M?M:"string"==typeof M?M.toLocaleLowerCase():(null===M&&(M=7226578800),M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),(""+M).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},e.dataSource.filterPredicate=(b,C)=>{try{e.columns.forEach(M=>{if((""+b[M.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(C))throw Error()})}catch{return!0}return!1},e.dataSource.sort.active=e.api.getFromStorage(e.tableId+"sort-column")||"name",e.dataSource.sort.direction=e.api.getFromStorage(e.tableId+"sort-direction")||"asc",e.filterText=e.api.getFromStorage(e.tableId+"filterValue")||"",e.applyFilter(),e.selection=new UP(!0===e.multiSelect,[]);const s=e.rest.permision();s&Fb.MANAGEMENT||(e.newAction.unsubscribe(),e.editAction.unsubscribe(),e.deleteAction.unsubscribe(),e.customButtonAction.unsubscribe()),s!==Fb.ALL&&(e.hasPermissions=!1),void 0!==e.icon&&(e.icon=e.api.staticURL("admin/img/icons/"+e.icon+".png"));const u=yield e.rest.types(),m=yield e.rest.tableInfo();yield e.initialize(m,u)})()}initialize(e,s){var u=this;return Ge(function*(){u.oTypes=s,u.types=new Map,u.grpTypes=new Map;for(const b of s)if(u.types.set(b.type,b),void 0!==b.group){u.grpTypes.has(b.group)||u.grpTypes.set(b.group,[]);const C=u.grpTypes.get(b.group);void 0!==C&&C.push(b)}u.rowStyleInfo=void 0!==e["row-style"]&&void 0!==e["row-style"].field?e["row-style"]:null,u.title=e.title,u.subtitle=e.subtitle||"",u.hasButtons&&u.displayedColumns.push("selection-column");const m=[];for(const b of e.fields)for(const C in b)if(b.hasOwnProperty(C)){const M=b[C];m.push({name:C,title:M.title,type:void 0===M.type?$a.ALPHANUMERIC:M.type,dict:M.dict}),(void 0===M.visible||M.visible)&&u.displayedColumns.push(C)}u.columns=m,u.detailAction.observed&&u.displayedColumns.push("detail-column"),yield u.overview()})()}overview(){var e=this;return Ge(function*(){if(!e.loading){e.selection.clear(),e.dataSource.data=[],e.loading=!0;try{const s=yield e.rest.overview();if(e.onItem)for(const u of s)e.onItem(u);e.dataSource.data=s,e.loaded.emit({param:e.firstLoad,table:e}),e.firstLoad=!1}finally{e.loading=!1}}})()}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==gi.ONLY_MENU&&e.type!==gi.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==gi.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===gi.ACCELERATOR):[]}getRowColumn(e,s){let u=e[s.name];switch(s.type){case $a.IMAGE:return this.api.safeString(this.api.gui.icon(u,"48px"));case $a.DATE:u=Ms("SHORT_DATE_FORMAT",u);break;case $a.DATETIME:u=Ms("SHORT_DATETIME_FORMAT",u);break;case $a.TIME:u=Ms("TIME_FORMAT",u);break;case $a.DATETIMESEC:u=Ms("SHORT_DATE_FORMAT",u," H:i:s");break;case $a.ICON:try{u=this.api.gui.icon(this.types.get(e.type).icon)+u}catch{}return this.api.safeString(u);case $a.CALLBACK:break;case $a.DICTIONARY:try{u=s.dict[u]}catch{u=""}}return u}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage(this.tableId+"sort-column",e.active),this.api.putOnStorage(this.tableId+"sort-direction",e.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(e){const s=[];return this.selection.isSelected(e)&&s.push("selected"),null!==this.rowStyleInfo&&s.push(this.rowStyleInfo.prefix+e[this.rowStyleInfo.field]),s}emitIfSelection(e,s=!1){const u=this.selection.selected.length;u>0&&(!0===s||1===u)&&e.emit({table:this,param:u})}isCustomDisabled(e){switch(e.type){case void 0:case gi.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===e.disabled;case gi.MULTI_SELECT:return this.selection.isEmpty()||!0===e.disabled;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==gi.ALWAYS||(e.type===gi.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,s){const u=(new Date).getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-s.x)<16&&Math.abs(this.lastClickInfo.y-s.y)<16&&u-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(e),void(this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:u,x:s.x,y:s.y},this.doSelect(e,s)}doSelect(e,s){if(s.ctrlKey)this.lastSel=e,this.selection.toggle(e);else if(s.shiftKey){if(this.selection.isEmpty())this.selection.toggle(e);else if(this.selection.clear(),this.lastSel!==e){let u=!1;const m=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(const b of m){if((b===e||b===this.lastSel)&&(u=!u,!1===u)){this.selection.select(b);break}u&&this.selection.select(b)}}}else this.lastSel!==e&&this.selection.clear(),this.lastSel=e,this.selection.toggle(e);this.rowSelected.emit({param:null,table:this})}onContextMenu(e,s,u){u.preventDefault();let m=e[s.name];m.changingThisBreaksApplicationSecurity&&(m=m.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+m,this.hasActions&&(this.selection.clear(),this.selection.select(e),this.contextMenuPosition.x=u.clientX+"px",this.contextMenuPosition.y=u.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e,s){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((m,b)=>{if(m[e]===s){const C=Math.floor(b/this.paginator.pageSize);this.selection.select(m),this.paginator.pageIndex=C,this.paginator.page.next({pageIndex:C,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){Gne(this)}permissions(){this.selection.selected.length&&Xde.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault()}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Jde))},t.\u0275cmp=xe({type:t,selectors:[["uds-table"]],viewQuery:function(e,s){if(1&e&&(ft(wue,7),ft(Zz,7),ft(GP,7)),2&e){let u;Ne(u=Ve())&&(s.contextMenu=u.first),Ne(u=Ve())&&(s.paginator=u.first),Ne(u=Ve())&&(s.sort=u.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"innerHTML","click"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],["uncheck",""],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),re(3,xue,1,1,"img",3),Y(4),R(),P(5,"div",4),Y(6),R()(),P(7,"div",5)(8,"div",6)(9,"div",7),re(10,Iue,3,2,"ng-container",8)(11,kue,7,1,"ng-container",8)(12,Pue,7,1,"ng-container",8)(13,Oue,2,1,"ng-container",8)(14,Lue,7,0,"ng-container",8)(15,Fue,7,1,"ng-container",8),R(),P(16,"div",9)(17,"div",10)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"Filter"),R()(),P(22,"input",11),J("keyup",function(){return s.applyFilter()})("ngModelChange",function(m){return s.filterText=m}),R(),re(23,Nue,3,0,"button",12),R()(),P(24,"div",13),pe(25,"mat-paginator",14),R(),P(26,"div",15)(27,"a",16),J("click",function(){return s.overview()}),P(28,"i",17),Y(29,"autorenew"),R()()()()(),P(30,"div",18),J("keydown",function(m){return s.keyDown(m)}),P(31,"mat-table",19),J("matSortChange",function(m){return s.sortChanged(m)}),re(32,Uue,3,0,"ng-container",20),An(33,21),re(34,jue,1,0,"mat-header-cell",22)(35,Gue,4,0,"mat-cell",23),On(),re(36,Yue,3,1,"ng-container",24)(37,que,1,0,"mat-header-row",25)(38,Zue,1,1,"mat-row",26),R(),P(39,"div",27)(40,"div",28),pe(41,"mat-progress-spinner",29),R()()(),P(42,"div",30),Y(43," \xa0 "),re(44,Xue,4,1,"div",31),R()(),pe(45,"div",32,33),P(47,"mat-menu",null,34),re(49,ahe,7,7,"ng-template",35),R()()),2&e){const u=pn(48);N(3),z("ngIf",void 0!==s.icon),N(),Re(" ",s.title," "),N(2),Re(" ",s.subtitle," "),N(4),z("ngIf",s.newAction.observed),N(),z("ngIf",s.editAction.observed),N(),z("ngIf",!0===s.hasPermissions),N(),z("ngIf",s.hasCustomButtons),N(),z("ngIf",!0===s.allowExport),N(),z("ngIf",s.deleteAction.observed),N(7),z("ngModel",s.filterText),N(),z("ngIf",s.filterText),N(2),z("pageSize",s.pageSize)("hidePageSize",!0)("pageSizeOptions",Ex(27,ohe))("showFirstLastButtons",!0),N(6),z("dataSource",s.dataSource),N(),z("ngIf",s.hasButtons),N(4),z("ngForOf",s.columns),N(),z("matHeaderRowDef",s.displayedColumns),N(),z("matRowDefColumns",s.displayedColumns),N(),z("hidden",!s.loading),N(5),z("ngIf",s.hasButtons&&s.selection.selected.length>0),N(),cr("left",s.contextMenuPosition.x)("top",s.contextMenuPosition.y),z("matMenuTriggerFor",u)}},dependencies:[To,mi,xn,$i,A,ii,oS,Rz,wc,SS,qP,sue,qne,ri,Ci,vS,Sa,hZ,l4,fZ,c4,s4,pZ,d4,u4,mZ,gZ,Zz,GP,_ne,Nne,Bne,vn,vV,bue],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-mdc-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']}),r})();const Kne='pause'+django.gettext("Maintenance")+"",she='pause'+django.gettext("Exit maintenance mode")+"",lhe='pause'+django.gettext("Enter maintenance mode")+"";let Qne=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:Kne,type:gi.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.rest.providers.maintenance(s.id).then(()=>{e.table.overview()})})}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?Kne:s.selection.selected[0].maintenance_mode?she:lhe}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.onMaintenance(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("rowSelected",function(m){return s.onRowSelect(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.providers)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]}),r})();class Vb{constructor(r,l,e,s){this.title=r,this.data=l,this.columns=e,this.id=s,this.columnsDefinition=Array.from(e,u=>{const m={};return m[u.field]={visible:!0,title:u.title,type:void 0===u.type?$a.ALPHANUMERIC:u.type},m})}get(r){return Promise.resolve({})}getLogs(r){return Promise.resolve([])}overview(r){return"function"==typeof this.data?this.data():Promise.resolve(this.data)}summary(r){return this.overview()}put(r,l){return Promise.resolve({})}create(r){return Promise.resolve({})}save(r,l){return Promise.resolve({})}test(r,l){return Promise.resolve({})}delete(r){return Promise.resolve({})}permision(){return Fb.ALL}getPermissions(r){return Promise.resolve([])}addPermission(r,l,e,s){return Promise.resolve({})}revokePermission(r){return Promise.resolve({})}types(){return Promise.resolve({})}gui(r){return Promise.resolve({})}callback(r,l){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(r,l){return null}invoke(r,l){return Promise.resolve({})}}function che(t,r){if(1&t){const l=Oe();P(0,"button",24),J("click",function(){oe(l);const s=Z();return s.filterText="",le(s.applyFilter())}),P(1,"i",8),Y(2,"close"),R()()}}function dhe(t,r){if(1&t&&(P(0,"mat-header-cell",28),Y(1),R()),2&t){const l=Z().$implicit;N(),En(l)}}function uhe(t,r){if(1&t&&(P(0,"mat-cell"),pe(1,"div",29),R()),2&t){const l=r.$implicit,e=Z().$implicit,s=Z();N(),z("innerHtml",s.getRowColumn(l,e),zr)}}function hhe(t,r){1&t&&(An(0,25),re(1,dhe,2,1,"mat-header-cell",26)(2,uhe,2,1,"mat-cell",27),On()),2&t&&z("matColumnDef",r.$implicit)}function fhe(t,r){1&t&&pe(0,"mat-header-row")}function phe(t,r){if(1&t&&pe(0,"mat-row",30),2&t){const l=r.$implicit;z("ngClass",Z().rowClass(l))}}const mhe=()=>[5,10,25,100,1e3];let DS=(()=>{var t;class r{constructor(e){this.api=e,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Sne([]),this.selection=new UP}ngOnInit(){this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc";for(const e of this.displayedColumns)this.columns.push({name:e,title:e,type:"date"===e?$a.DATETIMESEC:$a.ALPHANUMERIC});this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){var e=this;return Ge(function*(){e.dataSource.data=yield e.rest.getLogs(e.itemId)})()}selectElement(e,s){}getRowColumn(e,s){let u=e[s];return"date"===s?u=Ms("SHORT_DATE_FORMAT",u," H:i:s"):"level"===s&&(u=(t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[t]||"OTHER"))(u)),u}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Gne(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault()}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-logs-table"]],viewQuery:function(e,s){if(1&e&&(ft(Zz,7),ft(GP,7)),2&e){let u;Ne(u=Ve())&&(s.paginator=u.first),Ne(u=Ve())&&(s.sort=u.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),pe(3,"img",3),Y(4," \xa0"),P(5,"uds-translate"),Y(6,"Logs"),R()()(),P(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),J("click",function(){return s.export()}),P(11,"i",8),Y(12,"import_export"),R(),P(13,"span",9)(14,"uds-translate"),Y(15,"Export"),R()()()(),P(16,"div",10)(17,"div",11)(18,"uds-translate"),Y(19,"Filter"),R(),Y(20,"\xa0 "),P(21,"mat-form-field")(22,"input",12),J("keyup",function(){return s.applyFilter()})("ngModelChange",function(m){return s.filterText=m}),R(),re(23,che,3,0,"button",13),R()(),P(24,"div",14),pe(25,"mat-paginator",15),R(),P(26,"div",16)(27,"a",17),J("click",function(){return s.overview()}),P(28,"i",8),Y(29,"autorenew"),R()()()()(),P(30,"div",18),J("keydown",function(m){return s.keyDown(m)}),P(31,"mat-table",19),J("matSortChange",function(m){return s.sortChanged(m)}),re(32,hhe,3,1,"ng-container",20)(33,fhe,1,0,"mat-header-row",21)(34,phe,1,1,"mat-row",22),R()(),pe(35,"div",23),R()()),2&e&&(N(3),z("src",s.api.staticURL("admin/img/icons/logs.png"),Ut),N(19),z("ngModel",s.filterText),N(),z("ngIf",s.filterText),N(2),z("pageSize",s.pageSize)("hidePageSize",!0)("pageSizeOptions",Ex(11,mhe))("showFirstLastButtons",!0),N(6),z("dataSource",s.dataSource),N(),z("ngForOf",s.displayedColumns),N(),z("matHeaderRowDef",s.displayedColumns),N(),z("matRowDefColumns",s.displayedColumns))},dependencies:[To,mi,xn,$i,A,ii,oS,Pn,Rz,wc,ri,vS,Sa,hZ,l4,fZ,c4,s4,pZ,d4,u4,mZ,gZ,Zz,GP,_ne,vn],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]}),r})();function ghe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services pools"),R())}function vhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}const _he=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}];let yhe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.customButtons=[Sl.getGotoButton(Yq,"id")],this.servicePools={},this.logs={},this.services=m.services,this.service=m.service}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:u,services:s},disableClose:!1})}ngOnInit(){this.servicePools=new Vb(django.gettext("Service pools"),()=>this.services.invoke(this.service.id+"/servicesPools"),_he,this.service.id+"infopsls")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),re(7,ghe,2,0,"ng-template",1),pe(8,"uds-table",2),R(),P(9,"mat-tab"),re(10,vhe,2,0,"ng-template",1),P(11,"div",3),pe(12,"uds-logs-table",4),R()()()(),P(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),Y(16,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.service.name,"\n"),N(5),z("rest",s.servicePools)("customButtons",s.customButtons)("pageSize",6),N(4),z("rest",s.services)("itemId",s.service.id)("tableId","serviceInfo-d-log"+s.service.id)("pageSize",5))},dependencies:[Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi,DS],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),r})();function bhe(t,r){if(1&t&&(P(0,"div",3),pe(1,"div",4)(2,"div",5),R()),2&t){const l=r.$implicit;N(),z("innerHTML",l.gui.label,zr),N(),z("innerHTML",l.value,zr)}}let TS=(()=>{var t;class r{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;const e=this.gui.filter(s=>s.gui.type!==Ca.HIDDEN);for(const s of e){const u=this.value[s.name];switch(s.gui.type){case Ca.CHECKBOX:s.value=u?django.gettext("Yes"):django.gettext("No");break;case Ca.PASSWORD:s.value=django.gettext("(hidden)");break;case Ca.CHOICE:{const m=OP.locateChoice(u,s);s.value=m.text;break}case Ca.MULTI_CHOICE:s.value=django.gettext("Selected items :")+u.length;break;case Ca.IMAGECHOICE:{const m=OP.locateChoice(u,s);m.img&&(s.value=this.api.safeString(this.api.gui.icon(m.img)+" "+m.text));break}case Ca.INFO:continue;default:s.value=u}(""===s.value||null==s.value)&&(s.value="(empty)")}return e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,bhe,3,2,"div",2),R(),pe(3,"div"),R()),2&e&&(N(2),z("ngForOf",s.processFields()))},dependencies:[mi],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),r})();function whe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function xhe(t,r){if(1&t&&pe(0,"uds-information",15),2&t){const l=Z(2);z("value",l.provider)("gui",l.gui)}}function Che(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services"),R())}function She(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Usage"),R())}function Dhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function The(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,whe,2,0,"ng-template",9),P(5,"div",10),re(6,xhe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Che,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNewService(s))})("editAction",function(s){return oe(l),le(Z().onEditService(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteService(s))})("customButtonAction",function(s){return oe(l),le(Z().onInformation(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()(),P(11,"mat-tab"),re(12,She,2,0,"ng-template",9),P(13,"div",10)(14,"uds-table",13),J("deleteAction",function(s){return oe(l),le(Z().onDeleteUsage(s))}),R()()(),P(15,"mat-tab"),re(16,Dhe,2,0,"ng-template",9),P(17,"div",10),pe(18,"uds-logs-table",14),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.provider&&l.gui),N(4),z("rest",l.services)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","providers-d-services"+l.provider.id),N(4),z("rest",l.usage)("multiSelect",!0)("allowExport",!0)("pageSize",l.api.config.admin.page_size)("tableId","providers-d-usage"+l.provider.id),N(4),z("rest",l.services.parentModel)("itemId",l.provider.id)("tableId","providers-d-log"+l.provider.id)}}const Mhe=t=>["/services","providers",t];let Jne=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){const e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(s=>{this.provider=s,this.services.parentModel.gui(s.type).then(u=>{this.gui=u})}))}onInformation(e){yhe.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){this.api.gui.forms.typedNewForm(e,django.gettext("New service"),!1)}onEditService(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit service"),!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("service");if(void 0!==s){this.selectedTab=1;const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-provider-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,The,19,17,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,Mhe,s.services.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/services.png"),Ut),N(),Re(" \xa0",null==s.provider?null:s.provider.name," "),N(),z("ngIf",null!==s.provider))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS]}),r})(),eie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.serverGroups)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();function Ahe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Ehe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services"),R())}function Ihe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,Ahe,2,0,"ng-template",9),P(5,"div",10),pe(6,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Ehe,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNew(s))})("rowSelected",function(s){return oe(l),le(Z().onRowSelect(s))})("deleteAction",function(s){return oe(l),le(Z().onDelete(s))})("customButtonAction",function(s){return oe(l),le(Z().onMaintenance(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("value",l.server)("gui",l.gui),N(4),z("rest",l.servers)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","servers-d-servers"+l.server.id)}}const khe=t=>["/services","servers",t],tie='pause'+django.gettext("Maintenance")+"",Phe='pause'+django.gettext("Exit maintenance mode")+"",Rhe='pause'+django.gettext("Enter maintenance mode")+"";let Ohe=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:tie,type:gi.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("server");s&&(e.servers=e.rest.serverGroups.detail(s,"servers"),e.server=yield e.servers.parentModel.get(s),e.gui=yield e.servers.parentModel.gui(e.server.type))})()}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.servers.get(s.id+"/maintenance").then(()=>{e.table.overview()})})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"))}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?tie:s.selection.selected[0].maintenance_mode?Phe:Rhe}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("server");if(void 0!==s){const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-server-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","rowSelected","deleteAction","customButtonAction","loaded"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Ihe,11,9,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,khe,s.servers.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/servers.png"),Ut),N(),Re(" \xa0",null==s.server?null:s.server.name," "),N(),z("ngIf",null!==s.server))},dependencies:[xn,mr,As,Es,Cl,vn,hi,TS],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]}),r})(),nie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){var e=this;return Ge(function*(){e.route.snapshot.paramMap.get("authenticator")})()}onDetail(e){var s=this;return Ge(function*(){s.api.navigation.gotoAuthenticatorDetail(e.param.id)})()}onNew(e){var s=this;return Ge(function*(){s.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})()}onEdit(e){var s=this;return Ge(function*(){s.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})()}onDelete(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})()}onLoad(e){var s=this;return Ge(function*(){!0===e.param&&e.table.selectElement("id",s.route.snapshot.paramMap.get("authenticator"))})()}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",s.processElement)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),iie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})();const Lhe=["panel"];function Fhe(t,r){if(1&t){const l=Oe();P(0,"div",0,1),J("@panelAnimation.done",function(s){return oe(l),le(Z()._animationDone.next(s))}),dt(2),R()}if(2&t){const l=r.id,e=Z();z("id",e.id)("ngClass",e._classList)("@panelAnimation",e.isOpen?"visible":"hidden"),$e("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby(l))}}const Nhe=["*"],Vhe=Vi("panelAnimation",[Vn("void, hidden",lt({opacity:0,transform:"scaleY(0.8)"})),Cn(":enter, hidden => visible",[_P([kn("0.03s linear",lt({opacity:1})),kn("0.12s cubic-bezier(0, 0, 0.2, 1)",lt({transform:"scaleY(1)"}))])]),Cn(":leave, visible => hidden",[kn("0.075s linear",lt({opacity:0}))])]);let Bhe=0;class zhe{constructor(r,l){this.source=r,this.option=l}}const rie=new ve("mat-autocomplete-default-options",{providedIn:"root",factory:function Hhe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let yZ=(()=>{var t;class r{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}set classList(e){this._classList=e&&e.length?fk(e).reduce((s,u)=>(s[u]=!0,s),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,s,u,m){this._changeDetectorRef=e,this._elementRef=s,this._defaults=u,this._activeOptionChanges=bt.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Ce,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+Bhe++,this.inertGroups=(null==m?void 0:m.SAFARI)||!1,this.autoActiveFirstOption=!!u.autoActiveFirstOption,this.autoSelectActiveOption=!!u.autoSelectActiveOption,this.requireSelection=!!u.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new $5(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const s=new zhe(this,e);this.optionSelected.emit(s)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(rie),V(Jn))},t.\u0275cmp=xe({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Ni,5),Kt(u,fP,5)),2&e){let m;Ne(m=Ve())&&(s.options=m),Ne(m=Ve())&&(s.optionGroups=m)}},viewQuery:function(e,s){if(1&e&&(ft(Kn,7),ft(Lhe,5)),2&e){let u;Ne(u=Ve())&&(s.template=u.first),Ne(u=Ve())&&(s.panel=u.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:["autoActiveFirstOption","autoActiveFirstOption",jt],autoSelectActiveOption:["autoSelectActiveOption","autoSelectActiveOption",jt],requireSelection:["requireSelection","requireSelection",jt],panelWidth:"panelWidth",disableRipple:["disableRipple","disableRipple",jt],classList:["class","classList"],hideSingleSelectionIndicator:["hideSingleSelectionIndicator","hideSingleSelectionIndicator",jt]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Je([{provide:hP,useExisting:t}]),na],ngContentSelectors:Nhe,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,s){1&e&&(jn(),re(0,Fhe,3,5,"ng-template"))},dependencies:[To],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Vhe]},changeDetection:0}),r})();const Uhe={provide:Pr,useExisting:Jt(()=>v4),multi:!0},aie=new ve("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),Ghe={provide:aie,deps:[Mi],useFactory:function jhe(t){return()=>t.scrollStrategies.reposition()}};let v4=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I,F,H,q){this._element=e,this._overlay=s,this._viewContainerRef=u,this._zone=m,this._changeDetectorRef=b,this._dir=M,this._formField=I,this._document=F,this._viewportRuler=H,this._defaults=q,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=bt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new he,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Ag(()=>{const Q=this.autocomplete?this.autocomplete.options:null;return Q?Q.changes.pipe(pr(Q),Li(()=>xi(...Q.map(ne=>ne.onSelectionChange)))):this._zone.onStable.pipe(In(1),Li(()=>this.optionSelections))}),this._handlePanelKeydown=Q=>{(27===Q.keyCode&&!vr(Q)||38===Q.keyCode&&vr(Q,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Q.stopPropagation(),Q.preventDefault())},this._trackedModal=null,this._scrollStrategy=C}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&F1(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&sp(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return xi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(bn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(bn(()=>this._overlayAttached)):tt()).pipe(Ee(e=>e instanceof hz?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return xi(vd(this._document,"click"),vd(this._document,"auxclick"),vd(this._document,"touchend")).pipe(bn(e=>{const s=vc(e),u=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,m=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&s!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!u||!u.contains(s))&&(!m||!m.contains(s))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(s)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const s=e.keyCode,u=vr(e);if(27===s&&!u&&e.preventDefault(),this.activeOption&&13===s&&this.panelOpen&&!u)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const m=this.autocomplete._keyManager.activeItem,b=38===s||40===s;9===s||b&&!u&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):b&&this._canOpen()&&this.openPanel(),(b||this.autocomplete._keyManager.activeItem!==m)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){var m,b,C;let s=e.target,u=s.value;if("number"===s.type&&(u=""==u?null:parseFloat(u)),this._previousValue!==u){if(this._previousValue=u,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(u),u){if(this.panelOpen&&!this.autocomplete.requireSelection){const M=null==(m=this.autocomplete.options)?void 0:m.find(I=>I.selected);M&&u!==((null==(C=(b=this.autocomplete).displayWith)?void 0:C.call(b,M))??M.value)&&M.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);this._canOpen()&&this._document.activeElement===e.target&&this.openPanel()}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return xi(this._zone.onStable.pipe(In(1)),this.autocomplete.options.changes.pipe(Fi(()=>this._positionStrategy.reapplyLastPosition()),h4(0))).pipe(Li(()=>(this._zone.run(()=>{const u=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),u!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),In(1)).subscribe(u=>this._setValueAndClose(u))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const s=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;null==e&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(s??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const s=this.autocomplete,u=e?e.source:this._pendingAutoselectedOption;u?(this._clearPreviousSelectedOption(u),this._assignOptionValue(u.value),this._onChange(u.value),s._emitSelectEvent(u),this._element.nativeElement.focus()):s.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),s._animationDone?s._animationDone.pipe(In(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,s){var u,m;null==(m=null==(u=this.autocomplete)?void 0:u.options)||m.forEach(b=>{b!==e&&b.selected&&b.deselect(s)})}_attachOverlay(){var u,m;let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new yd(this.autocomplete.template,this._viewContainerRef,{id:null==(u=this._formField)?void 0:u.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._valueOnAttach=this._element.nativeElement.value,this._closingActionsSubscription=this._subscribeToClosingActions());const s=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(null==(m=this._formField)?void 0:m.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&s!==this.panelOpen&&this._emitOpened()}_updatePanelState(){var e,s;if(this.autocomplete._setVisibility(),this.panelOpen){const u=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=u.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=u.outsidePointerEvents().subscribe())}else null==(e=this._keydownSubscription)||e.unsubscribe(),null==(s=this._outsideClickSubscription)||s.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){var e;return new zu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:null==(e=this._defaults)?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const s=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],u=this._aboveClass,m=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:u},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:u}];let b;b="above"===this.position?m:"below"===this.position?s:[...s,...m],e.withPositions(b)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let s=-1;for(let u=0;u .cdk-overlay-container [aria-modal="true"]');if(!e)return;const s=this.autocomplete.id;this._trackedModal&&sp(this._trackedModal,"aria-owns",s),F1(e,"aria-owns",s),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(sp(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Mi),V(fi),V(Ye),V(dn),V(aie),V(Ir,8),V(_S,9),V(yt,8),V(Nu),V(rie,8))},t.\u0275dir=ce({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,s){1&e&&J("focusin",function(){return s._handleFocus()})("blur",function(){return s._onTouched()})("input",function(m){return s._handleInput(m)})("keydown",function(m){return s._handleKeydown(m)})("click",function(){return s._handleClick()}),2&e&&$e("autocomplete",s.autocompleteAttribute)("role",s.autocompleteDisabled?null:"combobox")("aria-autocomplete",s.autocompleteDisabled?null:"list")("aria-activedescendant",s.panelOpen&&s.activeOption?s.activeOption.id:null)("aria-expanded",s.autocompleteDisabled?null:s.panelOpen.toString())("aria-controls",s.autocompleteDisabled||!s.panelOpen||null==s.autocomplete?null:s.autocomplete.id)("aria-haspopup",s.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled",jt]},exportAs:["matAutocompleteTrigger"],features:[Je([Uhe]),na,nn]}),r})(),Whe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Ghe],imports:[Hu,K1,$t,Er,np,K1,$t]}),r})();function $he(t,r){if(1&t&&(P(0,"div")(1,"uds-translate"),Y(2,"Edit user"),R(),Y(3),R()),2&t){const l=Z();N(3),Re(" ",l.user.name," ")}}function Yhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New user"),R())}function qhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",19),J("ngModelChange",function(s){return oe(l),le(Z().user.name=s)}),R()()}if(2&t){const l=Z();N(2),Re(" ",l.authenticator.type_info.label_username," "),N(),z("ngModel",l.user.name)("disabled",l.user.id)}}function Zhe(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),eg(" ",l.id," (",l.name,") ")}}function Xhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",20),J("ngModelChange",function(s){return oe(l),le(Z().user.name=s)})("input",function(s){return oe(l),le(Z().filterUser(s))}),R(),P(4,"mat-autocomplete",null,21),re(6,Zhe,2,3,"mat-option",16),R()()}if(2&t){const l=pn(5),e=Z();N(2),Re(" ",e.authenticator.type_info.label_username," "),N(),z("ngModel",e.user.name)("matAutocomplete",l),N(3),z("ngForOf",e.users)}}function Khe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",23),J("ngModelChange",function(s){return oe(l),le(Z().user.password=s)}),R()()}if(2&t){const l=Z();N(2),Re(" ",l.authenticator.type_info.label_password," "),N(),z("ngModel",l.user.password)}}function Qhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"MFA"),R()(),P(4,"input",24),J("ngModelChange",function(s){return oe(l),le(Z().user.mfa_data=s)}),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.user.mfa_data)}}function Jhe(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let oie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.groups=[],this.onSave=new Ce(!0),this.users=[],this.authenticator=m.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},void 0!==m.user&&(this.user.id=m.user.id,this.user.name=m.user.name)}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:s,user:u},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin="admin"===e,this.user.staff_member="admin"===e||"staff"===e}filterUser(e){this.rest.authenticators.search(this.authenticator.id,"user",e.target.value,100).then(u=>{this.users.length=0,u.forEach(m=>{this.users.push(m)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-user"]],decls:61,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"],["type","text","matInput","",3,"ngModel","ngModelChange"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,$he,4,1,"div",1)(2,Yhe,2,0,"ng-template",null,2,so),R(),P(4,"mat-dialog-content")(5,"div",3),re(6,qhe,4,3,"mat-form-field",4)(7,Xhe,7,4,"mat-form-field",4),P(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),Y(11,"Real name"),R()(),P(12,"input",5),J("ngModelChange",function(m){return s.user.real_name=m}),R()(),P(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),Y(16,"Comments"),R()(),P(17,"input",6),J("ngModelChange",function(m){return s.user.comments=m}),R()(),P(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"State"),R()(),P(22,"mat-select",7),J("ngModelChange",function(m){return s.user.state=m}),P(23,"mat-option",8)(24,"uds-translate"),Y(25,"Enabled"),R()(),P(26,"mat-option",9)(27,"uds-translate"),Y(28,"Disabled"),R()(),P(29,"mat-option",10)(30,"uds-translate"),Y(31,"Blocked"),R()()()(),P(32,"mat-form-field")(33,"mat-label")(34,"uds-translate"),Y(35,"Role"),R()(),P(36,"mat-select",11),J("ngModelChange",function(m){return s.user.role=m})("valueChange",function(m){return s.roleChanged(m)}),P(37,"mat-option",12)(38,"uds-translate"),Y(39,"Admin"),R()(),P(40,"mat-option",13)(41,"uds-translate"),Y(42,"Staff member"),R()(),P(43,"mat-option",14)(44,"uds-translate"),Y(45,"User"),R()()()(),re(46,Khe,4,2,"mat-form-field",4)(47,Qhe,5,1,"mat-form-field",4),P(48,"mat-form-field")(49,"mat-label")(50,"uds-translate"),Y(51,"Groups"),R()(),P(52,"mat-select",15),J("ngModelChange",function(m){return s.user.groups=m}),re(53,Jhe,2,2,"mat-option",16),R()()()(),P(54,"mat-dialog-actions")(55,"button",17)(56,"uds-translate"),Y(57,"Cancel"),R()(),P(58,"button",18),J("click",function(){return s.save()}),P(59,"uds-translate"),Y(60,"Ok"),R()()()),2&e){const u=pn(3);N(),z("ngIf",s.user.id)("ngIfElse",u),N(5),z("ngIf",!1===s.authenticator.type_info.search_users_supported||s.user.id),N(),z("ngIf",!0===s.authenticator.type_info.search_users_supported&&!s.user.id),N(5),z("ngModel",s.user.real_name),N(5),z("ngModel",s.user.comments),N(5),z("ngModel",s.user.state),N(14),z("ngModel",s.user.role),N(10),z("ngIf",s.authenticator.type_info.needsPassword),N(),z("ngIf",!s.authenticator.type_info.is_external),N(5),z("ngModel",s.user.groups),N(),z("ngForOf",s.groups)}},dependencies:[mi,xn,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,yZ,v4,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function efe(t,r){if(1&t&&(P(0,"div")(1,"uds-translate"),Y(2,"Edit group"),R(),Y(3),R()),2&t){const l=Z();N(3),Re(" ",l.group.name," ")}}function tfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New group"),R())}function nfe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",13),J("ngModelChange",function(s){return oe(l),le(Z(2).group.name=s)}),R()()}if(2&t){const l=Z(2);N(2),Re(" ",l.authenticator.type_info.label_groupname," "),N(),z("ngModel",l.group.name)("disabled",l.group.id)}}function ife(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),eg(" ",l.id," (",l.name,") ")}}function rfe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",14),J("ngModelChange",function(s){return oe(l),le(Z(2).group.name=s)})("input",function(s){return oe(l),le(Z(2).filterGroup(s))}),R(),P(4,"mat-autocomplete",null,15),re(6,ife,2,3,"mat-option",16),R()()}if(2&t){const l=pn(5),e=Z(2);N(2),Re(" ",e.authenticator.type_info.label_groupname," "),N(),z("ngModel",e.group.name)("matAutocomplete",l),N(3),z("ngForOf",e.fltrGroup)}}function afe(t,r){if(1&t&&(An(0),re(1,nfe,4,3,"mat-form-field",12)(2,rfe,7,4,"mat-form-field",12),On()),2&t){const l=Z();N(),z("ngIf",!1===l.authenticator.type_info.search_groups_supported||l.group.id),N(),z("ngIf",!0===l.authenticator.type_info.search_groups_supported&&!l.group.id)}}function ofe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"Meta group name"),R()(),P(4,"input",13),J("ngModelChange",function(s){return oe(l),le(Z().group.name=s)}),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.group.name)("disabled",l.group.id)}}function sfe(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function lfe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Service Pools"),R()(),P(5,"mat-select",18),J("ngModelChange",function(s){return oe(l),le(Z().group.pools=s)}),re(6,sfe,2,2,"mat-option",16),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.group.pools),N(),z("ngForOf",l.servicePools)}}function cfe(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=Z().$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function dfe(t,r){if(1&t&&(An(0),re(1,cfe,2,2,"mat-option",20),On()),2&t){const l=r.$implicit;N(),z("ngIf","group"===l.type)}}function ufe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"Match mode"),R()(),P(4,"mat-select",6),J("ngModelChange",function(s){return oe(l),le(Z().group.meta_if_any=s)}),P(5,"mat-option",17)(6,"uds-translate"),Y(7,"Any group"),R()(),P(8,"mat-option",17)(9,"uds-translate"),Y(10,"All groups"),R()()()(),P(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),Y(14,"Selected Groups"),R()(),P(15,"mat-select",18),J("ngModelChange",function(s){return oe(l),le(Z().group.groups=s)}),re(16,dfe,2,1,"ng-container",19),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.group.meta_if_any),N(),z("value",!0),N(3),z("value",!1),N(7),z("ngModel",l.group.groups),N(),z("ngForOf",l.groups)}}let sie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=m.authenticator,this.group={id:void 0,type:m.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},void 0!==m.group&&(this.group.id=m.group.id,this.group.type=m.group.type,this.group.name=m.group.name)}static launch(e,s,u,m){const b=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:b,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:s,groupType:u,group:m},disableClose:!0}).componentInstance.onSave}ngOnInit(){const e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).then(s=>{this.group=s},s=>{this.dialogRef.close()}),"meta"===this.group.type?e.summary().then(s=>this.groups=s):this.rest.servicesPools.summary().then(s=>this.servicePools=s)}filterGroup(e){this.rest.authenticators.search(this.authenticator.id,"group",e.target.value,100).then(u=>{this.fltrGroup.length=0,u.forEach(m=>{this.fltrGroup.push(m)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,efe,4,1,"div",1)(2,tfe,2,0,"ng-template",null,2,so),R(),P(4,"mat-dialog-content")(5,"div",3),re(6,afe,3,2,"ng-container",1)(7,ofe,5,2,"ng-template",null,4,so),P(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),Y(12,"Comments"),R()(),P(13,"input",5),J("ngModelChange",function(m){return s.group.comments=m}),R()(),P(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),Y(17,"State"),R()(),P(18,"mat-select",6),J("ngModelChange",function(m){return s.group.state=m}),P(19,"mat-option",7)(20,"uds-translate"),Y(21,"Enabled"),R()(),P(22,"mat-option",8)(23,"uds-translate"),Y(24,"Disabled"),R()()()(),P(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),Y(28,"Skip MFA"),R()(),P(29,"mat-select",6),J("ngModelChange",function(m){return s.group.skip_mfa=m}),P(30,"mat-option",7)(31,"uds-translate"),Y(32,"Enabled"),R()(),P(33,"mat-option",8)(34,"uds-translate"),Y(35,"Disabled"),R()()()(),re(36,lfe,7,2,"ng-container",1)(37,ufe,17,5,"ng-template",null,9,so),R()(),P(39,"mat-dialog-actions")(40,"button",10)(41,"uds-translate"),Y(42,"Cancel"),R()(),P(43,"button",11),J("click",function(){return s.save()}),P(44,"uds-translate"),Y(45,"Ok"),R()()()),2&e){const u=pn(3),m=pn(8),b=pn(38);N(),z("ngIf",s.group.id)("ngIfElse",u),N(5),z("ngIf","group"===s.group.type)("ngIfElse",m),N(7),z("ngModel",s.group.comments),N(5),z("ngModel",s.group.state),N(11),z("ngModel",s.group.skip_mfa),N(7),z("ngIf","group"===s.group.type)("ngIfElse",b)}},dependencies:[mi,xn,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,yZ,v4,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),r})();function hfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function ffe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,hfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.group)("pageSize",6)}}function pfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services Pools"),R())}function mfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,pfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.servicesPools)("pageSize",6)}}function gfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned Services"),R())}function vfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,gfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.userServices)("pageSize",6)}}const _fe=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yfe=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],bfe=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}];let wfe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.group={},this.servicesPools={},this.userServices={},this.users=m.users,this.user=m.user}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:s,user:u},disableClose:!1})}ngOnInit(){this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).then(e=>{this.group=new Vb(django.gettext("Groups"),()=>this.rest.authenticators.detail(this.users.parentId,"groups").overview().then(b=>b.filter(C=>e.groups.includes(C.id))),_fe,this.user.id+"infogrp"),this.servicesPools=new Vb(django.gettext("Services Pools"),()=>this.users.invoke(this.user.id+"/servicesPools"),yfe,this.user.id+"infopool"),this.userServices=new Vb(django.gettext("Assigned services"),()=>this.users.invoke(this.user.id+"/userServices").then(b=>b.map(C=>(C.in_use=this.api.boolAsHumanString(C.in_use),C))),bfe,this.user.id+"userservpool")})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"mat-tab-group"),re(6,ffe,3,2,"mat-tab",1)(7,mfe,3,2,"mat-tab",1)(8,vfe,3,2,"mat-tab",1),R()(),P(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),Y(12,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.user.name,"\n"),N(3),z("ngIf",s.group),N(),z("ngIf",s.servicesPools),N(),z("ngIf",s.userServices))},dependencies:[xn,Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function xfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services Pools"),R())}function Cfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,xfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.servicesPools)("pageSize",6)}}function Sfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Users"),R())}function Dfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Sfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.users)("pageSize",6)}}function Tfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Mfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Tfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.groups)("pageSize",6)}}const Afe=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Efe=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:$a.DATETIME}],Ife=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}];let kfe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.users={},this.groups={},this.servicesPools={}}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:u,groups:s},disableClose:!1})}ngOnInit(){const e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");if(this.servicesPools=new Vb(django.gettext("Service pools"),()=>e.invoke(this.data.group.id+"/servicesPools"),Afe,this.data.group.id+"infopls"),this.users=new Vb(django.gettext("Users"),()=>e.invoke(this.data.group.id+"/users").then(m=>m.map(b=>(b.state="A"===b.state?django.gettext("Enabled"):"I"===b.state?django.gettext("Disabled"):django.gettext("Blocked"),b))),Efe,this.data.group.id+"infousr"),"meta"===this.data.group.type){const m=()=>e.overview().then(b=>b.filter(C=>this.data.group.groups.includes(C.id)));this.groups=new Vb(django.gettext("Groups"),m,Ife,this.data.group.id+"infogrps")}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R()(),P(3,"mat-dialog-content")(4,"mat-tab-group"),re(5,Cfe,3,2,"mat-tab",1)(6,Dfe,3,2,"mat-tab",1)(7,Mfe,3,2,"mat-tab",1),R()(),P(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),Y(11,"Ok"),R()()()),2&e&&(N(5),z("ngIf",s.servicesPools),N(),z("ngIf",s.users),N(),z("ngIf",s.groups))},dependencies:[xn,Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function Pfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Rfe(t,r){if(1&t&&pe(0,"uds-information",16),2&t){const l=Z(2);z("value",l.authenticator)("gui",l.gui)}}function Ofe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Users"),R())}function Lfe(t,r){if(1&t){const l=Oe();P(0,"uds-table",17),J("loaded",function(s){return oe(l),le(Z(2).onLoad(s))})("newAction",function(s){return oe(l),le(Z(2).onNewUser(s))})("editAction",function(s){return oe(l),le(Z(2).onEditUser(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteUser(s))})("customButtonAction",function(s){return oe(l),le(Z(2).onUserCustom(s))}),R()}if(2&t){const l=Z(2);z("rest",l.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+l.authenticator.id)("customButtons",l.usersCustomButtons)("pageSize",l.api.config.admin.page_size)}}function Ffe(t,r){if(1&t){const l=Oe();P(0,"uds-table",18),J("loaded",function(s){return oe(l),le(Z(2).onLoad(s))})("editAction",function(s){return oe(l),le(Z(2).onEditUser(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteUser(s))})("customButtonAction",function(s){return oe(l),le(Z(2).onUserCustom(s))}),R()}if(2&t){const l=Z(2);z("rest",l.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+l.authenticator.id)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)}}function Nfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Vfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function Bfe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,Pfe,2,0,"ng-template",9),P(5,"div",10),re(6,Rfe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Ofe,2,0,"ng-template",9),P(9,"div",10),re(10,Lfe,1,6,"uds-table",12)(11,Ffe,1,6,"uds-table",13),R()(),P(12,"mat-tab"),re(13,Nfe,2,0,"ng-template",9),P(14,"div",10)(15,"uds-table",14),J("loaded",function(s){return oe(l),le(Z().onLoad(s))})("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("editAction",function(s){return oe(l),le(Z().onEditGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))})("customButtonAction",function(s){return oe(l),le(Z().onGroupInformation(s))}),R()()(),P(16,"mat-tab"),re(17,Vfe,2,0,"ng-template",9),P(18,"div",10),pe(19,"uds-logs-table",15),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.authenticator&&l.gui),N(4),z("ngIf",l.authenticator.type_info.create_users_supported),N(),z("ngIf",!l.authenticator.type_info.create_users_supported),N(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("tableId","authenticators-d-groups"+l.authenticator.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.rest.authenticators)("itemId",l.authenticator.id)("tableId","authenticators-d-log"+l.authenticator.id)}}const zfe=t=>["/authenticators",t];let bZ=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:gi.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){const e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(s=>{this.authenticator=s,this.rest.authenticators.gui(s.type).then(u=>{this.gui=u})}))}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("user"),u=this.route.snapshot.paramMap.get("group");e.table.selectElement("id",s||u)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){oie.launch(this.api,this.authenticator).subscribe(s=>e.table.overview())}onEditUser(e){oie.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){sie.launch(this.api,this.authenticator,e.param.type).subscribe(s=>e.table.overview())}onEditGroup(e){sie.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){var s=this;"info"===e.param.id?wfe.launch(this.api,this.users,e.table.selection.selected[0]):"clean-related"===e.param.id&&this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0).then(u=>Ge(function*(){u&&(yield s.users.invoke(e.table.selection.selected[0].id+"/cleanRelated"),s.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.overview())}))}onGroupInformation(e){kfe.launch(this.api,this.groups,e.table.selection.selected[0])}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Bfe,20,14,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,zfe,s.authenticator?s.authenticator.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/services.png"),Ut),N(),Re(" \xa0",null==s.authenticator?null:s.authenticator.name," "),N(),z("ngIf",s.authenticator))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS]}),r})(),lie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),cie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.map(s=>s.id).join(", ")}catch{e.allowed_oss=""}}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",s.processElement)("pageSize",s.api.config.admin.page_size))},dependencies:[hi],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),r})(),die=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),uie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.tunnels)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();function Hfe(t,r){if(1&t&&(P(0,"mat-option",7),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Ufe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=m.availableTunnelServers,this.tunnelId=m.tunnelId}static launch(e,s,u){return Ge(function*(){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:s,availableTunnelServers:u},disableClose:!1}).componentInstance.done})()}ngOnInit(){return Ge(function*(){})()}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;const e=new Array;for(const s of this.availTunnelServers)s.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(s);return e}save(){var e=this;return Ge(function*(){""!==e.serverId?(e.dialogRef.close(),e.done.resolve(!0),yield e.rest.tunnels.assign(e.tunnelId,e.serverId)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"))})()}cancel(){var e=this;return Ge(function*(){e.dialogRef.close(),e.done.resolve(!1)})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Assign new server to tunnel group"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Tunnel"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.serverId=m}),P(10,"uds-cond-select-search",3),J("changed",function(m){return s.tunnelFilter=m}),R(),re(11,Hfe,2,2,"mat-option",4),R()()()(),P(12,"mat-dialog-actions")(13,"button",5),J("click",function(){return s.cancel()}),P(14,"uds-translate"),Y(15,"Cancel"),R()(),P(16,"button",6),J("click",function(){return s.save()}),P(17,"uds-translate"),Y(18,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.serverId),N(),z("options",s.availTunnelServers),N(),z("ngForOf",s.filteredTunnels()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function jfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Gfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Tunnel servers"),R())}function Wfe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,jfe,2,0,"ng-template",9),P(5,"div",10),pe(6,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Gfe,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNew(s))})("rowSelected",function(s){return oe(l),le(Z().onRowSelect(s))})("deleteAction",function(s){return oe(l),le(Z().onDelete(s))})("customButtonAction",function(s){return oe(l),le(Z().onMaintenance(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("value",l.tunnel)("gui",l.gui),N(4),z("rest",l.servers)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","tunnels-d-servers"+l.tunnel.id)}}const $fe=t=>["/connectivity","tunnels",t],hie='pause'+django.gettext("Maintenance")+"",Yfe='pause'+django.gettext("Exit maintenance mode")+"",qfe='pause'+django.gettext("Enter maintenance mode")+"";let Zfe=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:hie,type:gi.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("tunnel");s&&(e.servers=e.rest.tunnels.detail(s,"servers"),e.tunnel=yield e.servers.parentModel.get(s),e.gui=yield e.servers.parentModel.gui(),console.log(e.gui),console.log(e.tunnel))})()}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.servers.get(s.id+"/maintenance").then(()=>{e.table.overview()})})}onNew(e){var s=this;return Ge(function*(){const u=yield s.rest.tunnels.tunnels(s.tunnel.id);0==u.length?s.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):!0===(yield Ufe.launch(s.api,s.tunnel.id,u))&&e.table.overview()})()}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?hie:s.selection.selected[0].maintenance_mode?Yfe:qfe}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("tunnel");if(void 0!==s){const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-tunnels-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","rowSelected","deleteAction","customButtonAction","loaded"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Wfe,11,9,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,$fe,s.servers.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/tunnels.png"),Ut),N(),Re(" \xa0",null==s.tunnel?null:s.tunnel.name," "),N(),z("ngIf",null!==s.tunnel))},dependencies:[xn,mr,As,Es,Cl,vn,hi,TS],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]}),r})(),fie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[Sl.getGotoButton("provider","provider_id"),Sl.getGotoButton("service","provider_id","service_id"),Sl.getGotoButton("osmanager","osmanager_id"),Sl.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}ngOnInit(){return Ge(function*(){})()}onChange(e){var s=this;return Ge(function*(){const u=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===e.on||"service_id"===e.on.field.name){if(""===e.all.service_id.value){e.all.osmanager_id.gui.choices=[];for(const b of u)e.all[b].gui.readonly=!0;return void(e.all.cache_l2_srvs.gui.readonly=!0)}const m=yield s.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!m.info.can_reset,e.all.osmanager_id.gui.choices=[],s.editing||(e.all.osmanager_id.gui.readonly=!m.info.needs_manager),!0===m.info.needs_manager){const b=yield s.rest.osManagers.overview(),C=[];for(const M of b)for(const I of M.servicesTypes)m.info.services_type_provided.includes(I)&&C.push({id:M.id,text:M.name});e.all.osmanager_id.value=C.length>0?e.all.osmanager_id.value||C[0].id:"",e.all.osmanager_id.gui.choices=C}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(const b of u)e.all[b].gui.readonly=!m.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=!1===m.info.uses_cache||!1===m.info.uses_cache_l2,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!m.info.needs_publication)}})()}onNew(e){var s=this;return Ge(function*(){s.editing=!1,yield s.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Ca.CHECKBOX,order:150,default:"true"}}],s.onChange.bind(s))})()}onEdit(e){var s=this;return Ge(function*(){return s.editing=!0,s.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,s.onChange.bind(s))})()}onDelete(e){var s=this;return Ge(function*(){return s.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"))})()}processElement(e){e.visible=this.api.boolAsHumanString(e.visible),e.show_transports=this.api.boolAsHumanString(e.show_transports),e.restrained?(e.name='warning '+this.api.gui.icon(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",s.processElement)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]}),r})();function Xfe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Kfe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let pie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=m.userService,this.userServices=m.userServices}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:s,userServices:u},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.authId=e.userService.owner_info.auth_id||"",e.userId=e.userService.owner_info.user_id||"",e.auths=yield e.rest.authenticators.summary(),e.authChanged()})()}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;const e=new Array;return this.users.forEach(s=>{(""===this.userFilter||s.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(s)}),e}save(){""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){var e=this;return Ge(function*(){e.users=e.authId?yield e.rest.authenticators.detail(e.authId,"users").summary():[]})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"options","changed"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Change owner of assigned service"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Authenticator"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),re(10,Xfe,2,2,"mat-option",3),R()(),P(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),Y(14,"User"),R()(),P(15,"mat-select",4),J("ngModelChange",function(m){return s.userId=m}),P(16,"uds-cond-select-search",5),J("changed",function(m){return s.userFilter=m}),R(),re(17,Kfe,2,2,"mat-option",3),R()()()(),P(18,"mat-dialog-actions")(19,"button",6),J("click",function(){return s.cancel()}),P(20,"uds-translate"),Y(21,"Cancel"),R()(),P(22,"button",7),J("click",function(){return s.save()}),P(23,"uds-translate"),Y(24,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.authId),N(),z("ngForOf",s.auths),N(5),z("ngModel",s.userId),N(),z("options",s.users),N(),z("ngForOf",s.filteredUsers()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function Qfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New access rule for"),R())}function Jfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit access rule for"),R())}function epe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Default fallback access for"),R())}function tpe(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function npe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Priority"),R()(),P(5,"input",8),J("ngModelChange",function(s){return oe(l),le(Z().accessRule.priority=s)}),R()(),P(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Calendar"),R()(),P(10,"mat-select",3),J("ngModelChange",function(s){return oe(l),le(Z().accessRule.calendarId=s)}),P(11,"uds-cond-select-search",9),J("changed",function(s){return oe(l),le(Z().calendarsFilter=s)}),R(),re(12,tpe,2,2,"mat-option",10),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.accessRule.priority),N(5),z("ngModel",l.accessRule.calendarId),N(),z("options",l.calendars),N(),z("ngForOf",l.filtered(l.calendars,l.calendarsFilter))}}let _4=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.calendars=[],this.calendarsFilter="",this.pool=m.pool,this.model=m.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},m.accessRule&&(this.accessRule.id=m.accessRule.id)}static launch(e,s,u,m){const b=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(r,{width:b,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:s,model:u,accessRule:m},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(e=>{this.calendars=e}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}save(){const e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0),re(1,Qfe,2,0,"uds-translate",1)(2,Jfe,2,0,"uds-translate",1)(3,epe,2,0,"uds-translate",1),Y(4),R(),P(5,"mat-dialog-content")(6,"div",2),re(7,npe,13,4,"ng-container",1),P(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),Y(11,"Action"),R()(),P(12,"mat-select",3),J("ngModelChange",function(m){return s.accessRule.access=m}),P(13,"mat-option",4),Y(14," ALLOW "),R(),P(15,"mat-option",5),Y(16," DENY "),R()()()()(),P(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),Y(20,"Cancel"),R()(),P(21,"button",7),J("click",function(){return s.save()}),P(22,"uds-translate"),Y(23,"Ok"),R()()()),2&e&&(N(),z("ngIf",void 0===s.accessRule.id),N(),z("ngIf",void 0!==s.accessRule.id&&-1!==s.accessRule.id),N(),z("ngIf",-1===s.accessRule.id),N(),Re(" ",s.pool.name,"\n"),N(3),z("ngIf",-1!==s.accessRule.id),N(5),z("ngModel",s.accessRule.access))},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function ipe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function rpe(t,r){if(1&t&&(An(0),Y(1),On()),2&t){const l=Z().$implicit;N(),Re(" (",l.comments,")")}}function ape(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),re(2,rpe,2,1,"ng-container",9),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name,""),N(),z("ngIf",l.comments)}}let mie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=m.pool,this.model=m.model}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:s,model:u},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.auths=yield e.rest.authenticators.summary()})()}changeAuth(e){var s=this;return Ge(function*(){s.groupId="",s.authChanged()})()}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){var e=this;return Ge(function*(){""!==e.groupId&&""!==e.authId?(yield e.model.create({id:e.groupId}),e.dialogRef.close(),e.done.resolve(!0)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))})()}cancel(){var e=this;return Ge(function*(){e.dialogRef.close(),e.done.resolve(!1)})()}authChanged(){var e=this;return Ge(function*(){e.groups=e.authId?yield e.rest.authenticators.detail(e.authId,"groups").summary():[]})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-add-group"]],decls:27,vars:7,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New group for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Authenticator"),R()(),P(10,"mat-select",2),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),P(11,"uds-cond-select-search",3),J("changed",function(m){return s.authFilter=m}),R(),re(12,ipe,2,2,"mat-option",4),R()(),P(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),Y(16,"Group"),R()(),P(17,"mat-select",5),J("ngModelChange",function(m){return s.groupId=m}),P(18,"uds-cond-select-search",3),J("changed",function(m){return s.groupFilter=m}),R(),re(19,ape,3,3,"mat-option",4),R()()()(),P(20,"mat-dialog-actions")(21,"button",6),J("click",function(){return s.cancel()}),P(22,"uds-translate"),Y(23,"Cancel"),R()(),P(24,"button",7),J("click",function(){return s.save()}),P(25,"uds-translate"),Y(26,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.pool.name,""),N(7),z("ngModel",s.authId),N(),z("options",s.auths),N(),z("ngForOf",s.filteredAuths()),N(5),z("ngModel",s.groupId),N(),z("options",s.groups),N(),z("ngForOf",s.filteredGroups()))},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function ope(t,r){if(1&t&&(An(0),Y(1),On()),2&t){const l=Z().$implicit;N(),Re(" (",l.comments,")")}}function spe(t,r){if(1&t&&(P(0,"mat-option",7),Y(1),re(2,ope,2,1,"ng-container",8),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name,""),N(),z("ngIf",l.comments)}}let lpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.transports=(yield e.rest.transports.summary()).filter(s=>e.servicePool.info.allowed_protocols.includes(s.protocol))})()}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){var e=this;return Ge(function*(){""!==e.transportId?(yield e.rest.servicesPools.detail(e.servicePool.id,"transports").create({id:e.transportId}),e.done.resolve(!0),e.dialogRef.close()):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))})()}cancel(){var e=this;return Ge(function*(){e.done.resolve(!1),e.dialogRef.close()})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New transport for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Transport"),R()(),P(10,"mat-select",2),J("ngModelChange",function(m){return s.transportId=m}),P(11,"uds-cond-select-search",3),J("changed",function(m){return s.transportsFilter=m}),R(),re(12,spe,3,3,"mat-option",4),R()()()(),P(13,"mat-dialog-actions")(14,"button",5),J("click",function(){return s.cancel()}),P(15,"uds-translate"),Y(16,"Cancel"),R()(),P(17,"button",6),J("click",function(){return s.save()}),P(18,"uds-translate"),Y(19,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,""),N(7),z("ngModel",s.transportId),N(),z("options",s.transports),N(),z("ngForOf",s.filteredTransports()))},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),cpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.reason="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){}save(){this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New publication for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Comments"),R()(),P(10,"input",2),J("ngModelChange",function(m){return s.reason=m}),R()()()(),P(11,"mat-dialog-actions")(12,"button",3),J("click",function(){return s.cancel()}),P(13,"uds-translate"),Y(14,"Cancel"),R()(),P(15,"button",4),J("click",function(){return s.save()}),P(16,"uds-translate"),Y(17,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,"\n"),N(7),z("ngModel",s.reason))},dependencies:[$i,A,ii,Pn,zi,Ai,Hi,ri,Ci,Sa,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),dpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.changeLogPubs={},this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1})}ngOnInit(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Changelog of"),R(),Y(3),R(),P(4,"mat-dialog-content"),pe(5,"uds-table",1,2),R(),P(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),Y(10,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,"\n"),N(2),z("rest",s.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+s.servicePool.id))},dependencies:[Pn,Io,zi,Ai,Hi,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();const upe=["switch"];function hpe(t,r){1&t&&(P(0,"div",12),Ia(),P(1,"svg",13),pe(2,"path",14),R(),P(3,"svg",15),pe(4,"path",16),R()())}const fpe=["*"],ppe=new ve("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),mpe={provide:Pr,useExisting:Jt(()=>ZP),multi:!0};class gie{constructor(r,l){this.source=r,this.checked=l}}let gpe=0,ZP=(()=>{var t;class r{_createChangeEvent(e){return new gie(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,s,u,m,b,C){this._elementRef=e,this._focusMonitor=s,this._changeDetectorRef=u,this.defaults=b,this._onChange=M=>{},this._onTouched=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(m)||0,this.color=b.color||"accent",this._noopAnimations="NoopAnimations"===C,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++gpe,this.hideIcon=b.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new gie(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(uo),V(dn),Ie("tabindex"),V(ppe),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,s){if(1&e&&ft(upe,5),2&e){let u;Ne(u=Ve())&&(s._switchElement=u.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),cu(s.color?"mat-"+s.color:""),et("mat-mdc-slide-toggle-focused",s._focused)("mat-mdc-slide-toggle-checked",s.checked)("_mat-animation-noopable",s._noopAnimations))},inputs:{disabled:["disabled","disabled",jt],disableRipple:["disableRipple","disableRipple",jt],color:"color",tabIndex:["tabIndex","tabIndex",l=>null==l?0:qA(l)],name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:["required","required",jt],checked:["checked","checked",jt],hideIcon:["hideIcon","hideIcon",jt]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Je([mpe]),na],ngContentSelectors:fpe,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(e,s){if(1&e&&(jn(),P(0,"div",0)(1,"button",1,2),J("click",function(){return s._handleClick()}),pe(3,"div",3),P(4,"div",4)(5,"div",5)(6,"div",6),pe(7,"div",7),R(),P(8,"div",8),pe(9,"div",9),R(),re(10,hpe,5,0,"div",10),R()()(),P(11,"label",11),J("click",function(m){return m.stopPropagation()}),dt(12),R()()),2&e){const u=pn(2);et("mdc-form-field--align-end","before"==s.labelPosition),N(),et("mdc-switch--selected",s.checked)("mdc-switch--unselected",!s.checked)("mdc-switch--checked",s.checked)("mdc-switch--disabled",s.disabled),z("tabIndex",s.disabled?-1:s.tabIndex)("disabled",s.disabled),$e("id",s.buttonId)("name",s.name)("aria-label",s.ariaLabel)("aria-labelledby",s._getAriaLabelledBy())("aria-describedby",s.ariaDescribedby)("aria-required",s.required||null)("aria-checked",s.checked),N(8),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),N(),an(10,s.hideIcon?-1:10),N(),z("for",s.buttonId),$e("id",s._labelId)}},dependencies:[bl],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0}),r})();const vpe={provide:Ei,useExisting:Jt(()=>vie),multi:!0};let vie=(()=>{var t;class r extends jz{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Je([vpe]),ze]}),r})(),_ie=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),_pe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[_ie,$t,Wu,_ie,$t]}),r})();function ype(t,r){1&t&&(An(0),P(1,"uds-translate"),Y(2,"Edit action for"),R(),On())}function bpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New action for"),R())}function wpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function xpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.description," ")}}function Cpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Spe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Transport"),R()(),P(5,"mat-select",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),P(6,"uds-cond-select-search",5),J("changed",function(s){return oe(l),le(Z().transportsFilter=s)}),R(),re(7,Cpe,2,2,"mat-option",6),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.paramValue),N(),z("options",l.transports),N(),z("ngForOf",l.filtered(l.transports,l.transportsFilter))}}function Dpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Tpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",Z(2).authenticator+"@"+l.id),N(),Re(" ",l.name," ")}}function Mpe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Authenticator"),R()(),P(5,"mat-select",9),J("ngModelChange",function(s){return oe(l),le(Z().authenticator=s)})("valueChange",function(s){return oe(l),le(Z().authenticatorChangedTo(s))}),re(6,Dpe,2,2,"mat-option",6),R()(),P(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),Y(10,"Group"),R()(),P(11,"mat-select",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),P(12,"uds-cond-select-search",5),J("changed",function(s){return oe(l),le(Z().groupsFilter=s)}),R(),re(13,Tpe,2,2,"mat-option",6),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.authenticator),N(),z("ngForOf",l.authenticators),N(5),z("ngModel",l.paramValue),N(),z("options",l.groups),N(),z("ngForOf",l.filtered(l.groups,l.groupsFilter))}}function Ape(t,r){if(1&t){const l=Oe();An(0),P(1,"div",14)(2,"span",15),Y(3),R(),Y(4,"\xa0 "),P(5,"mat-slide-toggle",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),R()(),On()}if(2&t){const l=Z();N(3),En(l.parameter.description),N(2),z("ngModel",l.paramValue)}}function Epe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",16),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),R()(),On()}if(2&t){const l=Z();N(3),Re(" ",l.parameter.description," "),N(),z("type",l.parameter.type)("ngModel",l.paramValue)}}const Ipe=()=>["transport","group","bool"];let yie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=m.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},void 0!==m.scheduledAction&&(this.scheduledAction.id=m.scheduledAction.id)}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s,scheduledAction:u},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.summary().then(e=>this.authenticators=e),this.rest.transports.summary().then(e=>this.transports=e),this.rest.calendars.summary().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,this.actionList.forEach(s=>{this.paramsDict[s.id]=s.params[0]}),void 0!==this.scheduledAction.id&&this.rest.servicesPools.detail(this.servicePool.id,"actions").get(this.scheduledAction.id).then(s=>{this.scheduledAction=s,this.actionChangedTo(this.scheduledAction.action)})})}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){let s=this.paramValue.split("@");2!==s.length&&(s=["",""]),this.authenticator=s[0],this.authenticatorChangedTo(this.authenticator)}}authenticatorChangedTo(e){var s=this;return Ge(function*(){e&&(s.groups=yield s.rest.authenticators.detail(e,"groups").summary())})()}save(){var e=this;return Ge(function*(){e.scheduledAction.params={},e.parameter&&(e.scheduledAction.params[e.parameter.name]=e.paramValue),yield e.rest.servicesPools.detail(e.servicePool.id,"actions").save(e.scheduledAction),e.dialogRef.close(),e.onSave.emit(!0)})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:40,vars:15,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"toggle"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"mat-form-field-infix"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,ype,3,0,"ng-container",1)(2,bpe,2,0,"ng-template",null,2,so),Y(4),R(),P(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),Y(10,"Calendar"),R()(),P(11,"mat-select",4),J("ngModelChange",function(m){return s.scheduledAction.calendar_id=m}),P(12,"uds-cond-select-search",5),J("changed",function(m){return s.calendarsFilter=m}),R(),re(13,wpe,2,2,"mat-option",6),R()(),P(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),Y(17,"Events offset (minutes)"),R()(),P(18,"input",7),J("ngModelChange",function(m){return s.scheduledAction.events_offset=m}),R()(),P(19,"div",8)(20,"mat-slide-toggle",4),J("ngModelChange",function(m){return s.scheduledAction.at_start=m}),P(21,"uds-translate"),Y(22,"At the beginning of the interval?"),R()()(),P(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),Y(26,"Action"),R()(),P(27,"mat-select",9),J("ngModelChange",function(m){return s.scheduledAction.action=m})("valueChange",function(m){return s.actionChangedTo(m)}),re(28,xpe,2,2,"mat-option",6),R()(),re(29,Spe,8,3,"ng-container",10)(30,Mpe,14,5,"ng-container",10)(31,Ape,6,2,"ng-container",10)(32,Epe,5,3,"ng-container",10),R()(),P(33,"mat-dialog-actions")(34,"button",11)(35,"uds-translate"),Y(36,"Cancel"),R()(),P(37,"button",12),J("click",function(){return s.save()}),P(38,"uds-translate"),Y(39,"Ok"),R()()()),2&e){const u=pn(3);N(),z("ngIf",void 0!==s.scheduledAction.id)("ngIfElse",u),N(3),Re(" ",s.servicePool.name,"\n"),N(7),z("ngModel",s.scheduledAction.calendar_id),N(),z("options",s.calendars),N(),z("ngForOf",s.filtered(s.calendars,s.calendarsFilter)),N(5),z("ngModel",s.scheduledAction.events_offset),N(2),z("ngModel",s.scheduledAction.at_start),N(7),z("ngModel",s.scheduledAction.action),N(),z("ngForOf",s.actionList),N(),z("ngIf","transport"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf","group"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf","bool"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf",(null==s.parameter?null:s.parameter.type)&&!Ex(14,Ipe).includes(s.parameter.type))}},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,ZP,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),wZ=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.userService=m.userService,this.model=m.model}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:s,model:u},disableClose:!1})}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Logs of"),R(),Y(3),R(),P(4,"mat-dialog-content"),pe(5,"uds-logs-table",1),R(),P(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),Y(9,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.userService.name,"\n"),N(2),z("rest",s.model)("itemId",s.userService.id)("tableId","servicePools-d-uslog"+s.userService.id))},dependencies:[Pn,Io,zi,Ai,Hi,vn,DS],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function kpe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}function Ppe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Rpe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Ope=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.authId="",e.userId="";const s=yield e.rest.authenticators.summary(),u=yield e.rest.servicesPools.listAssignables(e.servicePool.id);e.auths=s,e.assignablesServices=u})()}changeAuth(e){var s=this;return Ge(function*(){s.userId="",s.authChanged()})()}filteredUsers(){if(!this.userFilter)return this.users;const e=new Array;return this.users.forEach(s=>{s.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(s)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;const e=new Array;return this.assignablesServices.forEach(s=>{s.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(s)}),e}save(){var e=this;return Ge(function*(){""!==e.userId&&""!==e.authId?e.rest.servicesPools.createFromAssignable(e.servicePool.id,e.userId,e.serviceId).then(s=>{e.dialogRef.close(),e.done.resolve(!0)}):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))})()}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){var e=this;return Ge(function*(){e.authId&&(e.users=yield e.rest.authenticators.detail(e.authId,"users").summary())})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Assign service to user manually"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Service"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.serviceId=m}),P(10,"uds-cond-select-search",3),J("changed",function(m){return s.assignablesServicesFilter=m}),R(),re(11,kpe,2,2,"mat-option",4),R()(),P(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),Y(15,"Authenticator"),R()(),P(16,"mat-select",5),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),re(17,Ppe,2,2,"mat-option",4),R()(),P(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"User"),R()(),P(22,"mat-select",2),J("ngModelChange",function(m){return s.userId=m}),P(23,"uds-cond-select-search",3),J("changed",function(m){return s.userFilter=m}),R(),re(24,Rpe,2,2,"mat-option",4),R()()()(),P(25,"mat-dialog-actions")(26,"button",6),J("click",function(){return s.cancel()}),P(27,"uds-translate"),Y(28,"Cancel"),R()(),P(29,"button",7),J("click",function(){return s.save()}),P(30,"uds-translate"),Y(31,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.serviceId),N(),z("options",s.assignablesServices),N(),z("ngForOf",s.filteredAssignables()),N(5),z("ngModel",s.authId),N(),z("ngForOf",s.auths),N(5),z("ngModel",s.userId),N(),z("options",s.users),N(),z("ngForOf",s.filteredUsers()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),Lpe=(()=>{var t;class r{constructor(e){this.rest=e,this.poolUuid="",this.options={},this.chart=null}onResize(e){this.chart&&this.chart.resize()}ngOnInit(){var e=this;return Ge(function*(){const s=yield e.rest.system.stats("complete",e.poolUuid);e.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:s.assigned.map(u=>Ms("SHORT_DATETIME_FORMAT",new Date(u.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:s.assigned.map(u=>u.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:s.cached.map(u=>u.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:s.inuse.map(u=>u.value)}]}})()}chartInit(e){this.chart=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(e,s){1&e&&J("resize",function(m){return s.onResize(m)},0,ss)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),J("chartInit",function(m){return s.chartInit(m)}),R()()),2&e&&(N(),z("options",s.options))},dependencies:[Yte]}),r})();function Fpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Npe(t,r){if(1&t&&pe(0,"uds-information",21),2&t){const l=Z(2);z("value",l.servicePool)("gui",l.gui)}}function Vpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned services"),R())}function Bpe(t,r){if(1&t){const l=Oe();P(0,"uds-table",22),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomAssigned(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteAssigned(s))}),R()}if(2&t){const l=Z(2);z("rest",l.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",l.processsAssignedElement)("tableId","servicePools-d-services"+l.servicePool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size)}}function zpe(t,r){if(1&t){const l=Oe();P(0,"uds-table",23),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomAssigned(s))})("newAction",function(s){return oe(l),le(Z(2).onNewAssigned(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteAssigned(s))}),R()}if(2&t){const l=Z(2);z("rest",l.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",l.processsAssignedElement)("tableId","servicePools-d-services"+l.servicePool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size)}}function Hpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Cache"),R())}function Upe(t,r){if(1&t){const l=Oe();P(0,"mat-tab"),re(1,Hpe,2,0,"ng-template",9),P(2,"div",10)(3,"uds-table",24),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomCached(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteCache(s))}),R()()()}if(2&t){const l=Z(2);N(3),z("rest",l.cache)("multiSelect",!0)("allowExport",!0)("onItem",l.processsCacheElement)("tableId","servicePools-d-cache"+l.servicePool.id)("customButtons",l.customButtonsCachedServices)("pageSize",l.api.config.admin.page_size)}}function jpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Gpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Transports"),R())}function Wpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Publications"),R())}function $pe(t,r){if(1&t){const l=Oe();P(0,"mat-tab"),re(1,Wpe,2,0,"ng-template",9),P(2,"div",10)(3,"uds-table",25),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomPublication(s))})("newAction",function(s){return oe(l),le(Z(2).onNewPublication(s))})("rowSelected",function(s){return oe(l),le(Z(2).onPublicationRowSelect(s))}),R()()()}if(2&t){const l=Z(2);N(3),z("rest",l.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+l.servicePool.id)("customButtons",l.customButtonsPublication)("pageSize",l.api.config.admin.page_size)}}function Ype(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Scheduled actions"),R())}function qpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Access calendars"),R())}function Zpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Charts"),R())}function Xpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function Kpe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,Fpe,2,0,"ng-template",9),P(5,"div",10),re(6,Npe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Vpe,2,0,"ng-template",9),P(9,"div",10),re(10,Bpe,1,7,"uds-table",12)(11,zpe,1,7,"ng-template",null,13,so),R()(),re(13,Upe,4,7,"mat-tab",14),P(14,"mat-tab"),re(15,jpe,2,0,"ng-template",9),P(16,"div",10)(17,"uds-table",15),J("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))}),R()()(),P(18,"mat-tab"),re(19,Gpe,2,0,"ng-template",9),P(20,"div",10)(21,"uds-table",16),J("newAction",function(s){return oe(l),le(Z().onNewTransport(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteTransport(s))}),R()()(),re(22,$pe,4,6,"mat-tab",14),P(23,"mat-tab"),re(24,Ype,2,0,"ng-template",9),P(25,"div",10)(26,"uds-table",17),J("customButtonAction",function(s){return oe(l),le(Z().onCustomScheduleAction(s))})("newAction",function(s){return oe(l),le(Z().onNewScheduledAction(s))})("editAction",function(s){return oe(l),le(Z().onEditScheduledAction(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteScheduledAction(s))}),R()()(),P(27,"mat-tab"),re(28,qpe,2,0,"ng-template",9),P(29,"div",10)(30,"uds-table",18),J("newAction",function(s){return oe(l),le(Z().onNewAccessCalendar(s))})("editAction",function(s){return oe(l),le(Z().onEditAccessCalendar(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAccessCalendar(s))})("loaded",function(s){return oe(l),le(Z().onAccessCalendarLoad(s))}),R()()(),P(31,"mat-tab"),re(32,Zpe,2,0,"ng-template",9),P(33,"div",10),pe(34,"uds-service-pools-charts",19),R()(),P(35,"mat-tab"),re(36,Xpe,2,0,"ng-template",9),P(37,"div",10),pe(38,"uds-logs-table",20),R()()()()()}if(2&t){const l=pn(12),e=Z();N(2),z("selectedIndex",e.selectedTab)("@.disabled",!0),N(4),z("ngIf",e.servicePool&&e.gui),N(4),z("ngIf",!1===e.servicePool.info.must_assign_manually)("ngIfElse",l),N(3),z("ngIf",e.cache),N(4),z("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size),N(4),z("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size),N(),z("ngIf",e.publications),N(4),z("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size),N(4),z("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size),N(4),z("poolUuid",e.servicePool.id),N(4),z("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}const Qpe=t=>["/pools","service-pools",t],xZ='event'+django.gettext("Logs")+"",Jpe='computer'+django.gettext("VNC")+"",eme='schedule'+django.gettext("Launch now")+"",bie='perm_identity'+django.gettext("Change owner")+"",tme='perm_identity'+django.gettext("Assign service")+"",nme='cancel'+django.gettext("Cancel")+"",ime='event'+django.gettext("Changelog")+"";let wie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtonsScheduledAction=[{id:"launch-action",html:eme,type:gi.SINGLE_SELECT},Sl.getGotoButton(Zq,"calendarId")],this.customButtonAccessCalendars=[Sl.getGotoButton(Zq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:bie,type:gi.SINGLE_SELECT},{id:"log",html:xZ,type:gi.SINGLE_SELECT},Sl.getGotoButton(qq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:xZ,type:gi.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:nme,type:gi.SINGLE_SELECT},{id:"changelog",html:ime,type:gi.ALWAYS}],this.customButtonsGroups=[Sl.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Sl.getGotoButton("transport","id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(s=>["E","R","M","S","C"].includes(s.state)).forEach(s=>e.table.selection.deselect(s)),e.table.selection.isEmpty()}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("pool");if(!s)return;e.assignedServices=e.rest.servicesPools.detail(s,"services"),e.groups=e.rest.servicesPools.detail(s,"groups"),e.transports=e.rest.servicesPools.detail(s,"transports"),e.scheduledActions=e.rest.servicesPools.detail(s,"actions"),e.accessCalendars=e.rest.servicesPools.detail(s,"access");const u=yield e.rest.servicesPools.get(s),m=(yield e.rest.servicesPools.gui()).filter(b=>!(!1===u.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(b.name)||!1===u.info.uses_cache_l2&&"cache_l2_srvs"===b.name||!1===u.info.needs_manager&&"osmanager_id"===b.name));e.servicePool=u,e.gui=m,e.cache=u.info.uses_cache?e.rest.servicesPools.detail(s,"cache"):null,e.publications=u.info.needs_publication?e.rest.servicesPools.detail(s,"publications"):null,e.api.config.admin.vnc_userservices&&e.customButtonsAssignedServices.push({id:"vnc",html:Jpe,type:gi.ONLY_MENU}),e.servicePool.info.can_list_assignables&&e.customButtonsAssignedServices.push({id:"assign-service",html:tme,type:gi.ALWAYS})})()}onNewAssigned(e){}vnc(e){const u=new Blob(["[connection]\nhost="+e.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(()=>{(0,vZ.saveAs)(u,e.ip+".vnc")},100)}onCustomAssigned(e){var s=this;return Ge(function*(){const u=e.table.selection.selected[0];if("change-owner"===e.param.id){if(["E","R","M","S","C"].includes(u.state))return;!0===(yield pie.launch(s.api,u,s.assignedServices))&&e.table.overview()}else"log"===e.param.id?wZ.launch(s.api,u,s.assignedServices):"assign-service"===e.param.id?!0===(yield Ope.launch(s.api,s.servicePool))&&e.table.overview():"vnc"===e.param.id&&s.vnc(u)})()}onCustomCached(e){"log"===e.param.id&&this.cache&&wZ.launch(this.api,e.table.selection.selected[0],this.cache)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,"U"===e.state&&(e.state=""!==e.os_state&&"U"!==e.os_state?"Z":"U")}onDeleteAssigned(e){r.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){r.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,"U"===e.state&&(e.state=""!==e.os_state&&"U"!==e.os_state?"Z":"U")}onNewGroup(e){var s=this;return Ge(function*(){!0===(yield mie.launch(s.api,s.servicePool,s.groups))&&e.table.overview()})()}onDeleteGroup(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})()}onNewTransport(e){var s=this;return Ge(function*(){!0===(yield lpe.launch(s.api,s.servicePool))&&e.table.overview()})()}onDeleteTransport(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})()}onNewPublication(e){var s=this;return Ge(function*(){!0===(yield cpe.launch(s.api,s.servicePool))&&e.table.overview()})()}onPublicationRowSelect(e){1===e.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))}onCustomPublication(e){"cancel-publication"===e.param.id?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(s=>{s&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(u=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})}):"changelog"===e.param.id&&dpe.launch(this.api,this.servicePool)}onNewScheduledAction(e){yie.launch(this.api,this.servicePool).subscribe(s=>e.table.overview())}onEditScheduledAction(e){yie.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteScheduledAction(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))}onCustomScheduleAction(e){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(s=>{s&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})})}onNewAccessCalendar(e){_4.launch(this.api,this.servicePool,this.accessCalendars).subscribe(s=>e.table.overview())}onEditAccessCalendar(e){_4.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteAccessCalendar(e){-1!==e.table.selection.selected[0].id?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(s=>{const u=e.table.dataSource.data.filter(m=>!0);u.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:s}),e.table.dataSource.data=u})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Kpe,39,38,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,Qpe,s.servicePool?s.servicePool.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/pools.png"),Ut),N(),Re(" \xa0",null==s.servicePool?null:s.servicePool.name," "),N(),z("ngIf",null!==s.servicePool))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS,Lpe],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]}),r})(),xie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"))}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){e.visible=this.api.boolAsHumanString(e.visible),e.name=this.api.safeString(this.api.gui.icon(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("detailAction",function(m){return s.onDetail(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",s.processElement)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),r})();function rme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New member pool"),R())}function ame(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit member pool"),R())}function ome(t,r){if(1&t){const l=Oe();P(0,"uds-cond-select-search",11),J("changed",function(s){return oe(l),le(Z().servicePoolsFilter=s)}),R()}}function sme(t,r){if(1&t&&(P(0,"mat-option",12),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Cie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.servicePools=[],this.servicePoolsFilter="",this.model=m.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},m.memberPool&&(this.memberPool.id=m.memberPool.id)}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:u,model:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.servicePools=yield e.rest.servicesPools.summary(),e.memberPool.id&&(e.memberPool=yield e.model.get(e.memberPool.id))})()}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}save(){var e=this;return Ge(function*(){e.memberPool.pool_id?(yield e.model.save(e.memberPool),e.dialogRef.close(),e.done.resolve(!0)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))})()}cancel(){this.dialogRef.close(),this.done.resolve(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0),re(1,rme,2,0,"uds-translate",1)(2,ame,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Priority"),R()(),P(9,"input",3),J("ngModelChange",function(m){return s.memberPool.priority=m}),R()(),P(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),Y(13,"Service pool"),R()(),P(14,"mat-select",4),J("ngModelChange",function(m){return s.memberPool.pool_id=m}),re(15,ome,1,0,"uds-cond-select-search",5)(16,sme,2,2,"mat-option",6),R()(),P(17,"div",7)(18,"span",8)(19,"uds-translate"),Y(20,"Enabled?"),R()(),P(21,"mat-slide-toggle",4),J("ngModelChange",function(m){return s.memberPool.enabled=m}),Y(22),R()()()(),P(23,"mat-dialog-actions")(24,"button",9),J("click",function(){return s.cancel()}),P(25,"uds-translate"),Y(26,"Cancel"),R()(),P(27,"button",10),J("click",function(){return s.save()}),P(28,"uds-translate"),Y(29,"Ok"),R()()()),2&e&&(N(),z("ngIf",!(null!=s.memberPool&&s.memberPool.id)),N(),z("ngIf",null==s.memberPool?null:s.memberPool.id),N(7),z("ngModel",s.memberPool.priority),N(5),z("ngModel",s.memberPool.pool_id),N(),z("ngIf",s.servicePools.length>10),N(),z("ngForOf",s.filtered(s.servicePools,s.servicePoolsFilter)),N(5),z("ngModel",s.memberPool.enabled),N(),Re(" ",s.api.boolAsHumanString(s.memberPool.enabled)," "))},dependencies:[mi,xn,$i,sv,A,ii,Pn,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,ZP,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),r})();function lme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function cme(t,r){if(1&t&&pe(0,"uds-information",17),2&t){const l=Z(2);z("value",l.metaPool)("gui",l.gui)}}function dme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Service pools"),R())}function ume(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned services"),R())}function hme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function fme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Access calendars"),R())}function pme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function mme(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,lme,2,0,"ng-template",9),P(5,"div",10),re(6,cme,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,dme,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNewMemberPool(s))})("editAction",function(s){return oe(l),le(Z().onEditMemberPool(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteMemberPool(s))}),R()()(),P(11,"mat-tab"),re(12,ume,2,0,"ng-template",9),P(13,"div",10)(14,"uds-table",13),J("customButtonAction",function(s){return oe(l),le(Z().onCustomAssigned(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAssigned(s))}),R()()(),P(15,"mat-tab"),re(16,hme,2,0,"ng-template",9),P(17,"div",10)(18,"uds-table",14),J("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))}),R()()(),P(19,"mat-tab"),re(20,fme,2,0,"ng-template",9),P(21,"div",10)(22,"uds-table",15),J("newAction",function(s){return oe(l),le(Z().onNewAccessCalendar(s))})("editAction",function(s){return oe(l),le(Z().onEditAccessCalendar(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAccessCalendar(s))})("loaded",function(s){return oe(l),le(Z().onAccessCalendarLoad(s))}),R()()(),P(23,"mat-tab"),re(24,pme,2,0,"ng-template",9),P(25,"div",10),pe(26,"uds-logs-table",16),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.metaPool&&l.gui),N(4),z("rest",l.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("customButtons",l.customButtons)("tableId","metaPools-d-members"+l.metaPool.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+l.metaPool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+l.metaPool.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+l.metaPool.id)("pageSize",l.api.config.admin.page_size)("onItem",l.processsCalendarItem),N(4),z("rest",l.rest.metaPools)("itemId",l.metaPool.id)("tableId","metaPools-d-log"+l.metaPool.id)("pageSize",l.api.config.admin.page_size)}}const gme=t=>["/pools","meta-pools",t];let vme=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[Sl.getGotoButton(Yq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:bie,type:gi.SINGLE_SELECT},{id:"log",html:xZ,type:gi.SINGLE_SELECT},Sl.getGotoButton(qq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("metapool");if(!s)return;const u=yield e.rest.metaPools.get(s),m=yield e.rest.metaPools.gui();e.memberPools=e.rest.metaPools.detail(s,"pools"),e.memberUserServices=e.rest.metaPools.detail(s,"services"),e.groups=e.rest.metaPools.detail(s,"groups"),e.accessCalendars=e.rest.metaPools.detail(s,"access"),e.metaPool=u,e.gui=m})()}onNewMemberPool(e){var s=this;return Ge(function*(){!0===(yield Cie.launch(s.api,s.memberPools))&&e.table.overview()})()}onEditMemberPool(e){var s=this;return Ge(function*(){!0===(yield Cie.launch(s.api,s.memberPools,e.table.selection.selected[0]))&&e.table.overview()})()}onDeleteMemberPool(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})()}onCustomAssigned(e){var s=this;return Ge(function*(){const u=e.table.selection.selected[0];if("change-owner"===e.param.id){if(["E","R","M","S","C"].includes(u.state))return;!0===(yield pie.launch(s.api,u,s.memberUserServices))&&e.table.overview()}else"log"===e.param.id&&wZ.launch(s.api,u,s.memberUserServices)})()}onDeleteAssigned(e){var s=this;return Ge(function*(){wie.cleanInvalidSelections(e)||s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})()}onNewGroup(e){var s=this;return Ge(function*(){!0===(yield mie.launch(s.api,s.metaPool.id,s.groups))&&e.table.overview()})()}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){_4.launch(this.api,this.metaPool,this.accessCalendars).subscribe(s=>e.table.overview())}onEditAccessCalendar(e){_4.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteAccessCalendar(e){-1!==e.table.selection.selected[0].id?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(s=>{const u=e.table.dataSource.data.filter(m=>!0);u.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:s}),e.table.dataSource.data=u})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,mme,27,31,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,gme,s.metaPool?s.metaPool.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/metas.png"),Ut),N(),Re(" ",null==s.metaPool?null:s.metaPool.name," "),N(),z("ngIf",s.metaPool))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),r})(),Sie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.overview())}onEdit(e){var s=this;return Ge(function*(){s.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})()}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),r})(),Die=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();const _me=["mat-calendar-body",""];function yme(t,r){if(1&t&&(P(0,"tr",0)(1,"td",2),Y(2),R()()),2&t){const l=Z();N(),cr("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),$e("colspan",l.numCols),N(),Re(" ",l.label," ")}}function bme(t,r){if(1&t&&(P(0,"td",2),Y(1),R()),2&t){const l=Z(2);cr("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),$e("colspan",l._firstRowOffset),N(),Re(" ",l._firstRowOffset>=l.labelMinRequiredCells?l.label:""," ")}}function wme(t,r){if(1&t){const l=Oe();P(0,"td",5)(1,"button",6),J("click",function(s){const m=oe(l).$implicit;return le(Z(2)._cellClicked(m,s))})("focus",function(s){const m=oe(l).$implicit;return le(Z(2)._emitActiveDateChange(m,s))}),P(2,"span",7),Y(3),R(),pe(4,"span",8),R()()}if(2&t){const l=r.$implicit,e=r.$index,s=Z().$index,u=Z();cr("width",u._cellWidth)("padding-top",u._cellPadding)("padding-bottom",u._cellPadding),$e("data-mat-row",s)("data-mat-col",e),N(),et("mat-calendar-body-disabled",!l.enabled)("mat-calendar-body-active",u._isActiveCell(s,e))("mat-calendar-body-range-start",u._isRangeStart(l.compareValue))("mat-calendar-body-range-end",u._isRangeEnd(l.compareValue))("mat-calendar-body-in-range",u._isInRange(l.compareValue))("mat-calendar-body-comparison-bridge-start",u._isComparisonBridgeStart(l.compareValue,s,e))("mat-calendar-body-comparison-bridge-end",u._isComparisonBridgeEnd(l.compareValue,s,e))("mat-calendar-body-comparison-start",u._isComparisonStart(l.compareValue))("mat-calendar-body-comparison-end",u._isComparisonEnd(l.compareValue))("mat-calendar-body-in-comparison-range",u._isInComparisonRange(l.compareValue))("mat-calendar-body-preview-start",u._isPreviewStart(l.compareValue))("mat-calendar-body-preview-end",u._isPreviewEnd(l.compareValue))("mat-calendar-body-in-preview",u._isInPreview(l.compareValue)),z("ngClass",l.cssClasses)("tabindex",u._isActiveCell(s,e)?0:-1),$e("aria-label",l.ariaLabel)("aria-disabled",!l.enabled||null)("aria-pressed",u._isSelected(l.compareValue))("aria-current",u.todayValue===l.compareValue?"date":null)("aria-describedby",u._getDescribedby(l.compareValue)),N(),et("mat-calendar-body-selected",u._isSelected(l.compareValue))("mat-calendar-body-comparison-identical",u._isComparisonIdentical(l.compareValue))("mat-calendar-body-today",u.todayValue===l.compareValue),N(),Re(" ",l.displayValue," ")}}function xme(t,r){if(1&t&&(P(0,"tr",3),re(1,bme,2,6,"td",4),lf(2,wme,5,48,"td",9,sf),R()),2&t){const l=r.$implicit,e=r.$index,s=Z();N(),an(1,0===e&&s._firstRowOffset?1:-1),N(),cf(l)}}function Cme(t,r){if(1&t&&(P(0,"th",4)(1,"span",5),Y(2),R(),P(3,"span",6),Y(4),R()()),2&t){const l=r.$implicit;N(2),En(l.long),N(2),En(l.narrow)}}const Sme=["*"];function Dme(t,r){}function Tme(t,r){if(1&t){const l=Oe();P(0,"mat-month-view",2),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("_userSelection",function(s){return oe(l),le(Z()._dateSelected(s))})("dragStarted",function(s){return oe(l),le(Z()._dragStarted(s))})("dragEnded",function(s){return oe(l),le(Z()._dragEnded(s))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)("comparisonStart",l.comparisonStart)("comparisonEnd",l.comparisonEnd)("startDateAccessibleName",l.startDateAccessibleName)("endDateAccessibleName",l.endDateAccessibleName)("activeDrag",l._activeDrag)}}function Mme(t,r){if(1&t){const l=Oe();P(0,"mat-year-view",3),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("monthSelected",function(s){return oe(l),le(Z()._monthSelectedInYearView(s))})("selectedChange",function(s){return oe(l),le(Z()._goToDateInView(s,"month"))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)}}function Ame(t,r){if(1&t){const l=Oe();P(0,"mat-multi-year-view",4),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("yearSelected",function(s){return oe(l),le(Z()._yearSelectedInMultiYearView(s))})("selectedChange",function(s){return oe(l),le(Z()._goToDateInView(s,"year"))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)}}function Eme(t,r){}const Ime=["button"];function kme(t,r){1&t&&(Ia(),P(0,"svg",3),pe(1,"path",4),R())}const Pme=[[["","matDatepickerToggleIcon",""]]],Rme=["[matDatepickerToggleIcon]"];let XP=(()=>{var t;class r{constructor(){this.changes=new he,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,s){return`${e} \u2013 ${s}`}formatYearRangeLabel(e,s){return`${e} to ${s}`}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class CZ{constructor(r,l,e,s,u={},m=r,b){this.value=r,this.displayValue=l,this.ariaLabel=e,this.enabled=s,this.cssClasses=u,this.compareValue=m,this.rawValue=b}}let Ome=1;const Tie=Ko({passive:!1,capture:!0}),cv=Ko({passive:!0,capture:!0}),y4=Ko({passive:!0});let MS=(()=>{var t;class r{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,s){this._elementRef=e,this._ngZone=s,this._platform=De(Jn),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Ce,this.previewChange=new Ce,this.activeDateChange=new Ce,this.dragStarted=new Ce,this.dragEnded=new Ce,this._didDragSinceMouseDown=!1,this._enterHandler=u=>{if(this._skipNextFocus&&"focus"===u.type)this._skipNextFocus=!1;else if(u.target&&this.isRange){const m=this._getCellFromElement(u.target);m&&this._ngZone.run(()=>this.previewChange.emit({value:m.enabled?m:null,event:u}))}},this._touchmoveHandler=u=>{if(!this.isRange)return;const m=Mie(u),b=m?this._getCellFromElement(m):null;m!==u.target&&(this._didDragSinceMouseDown=!0),DZ(u.target)&&u.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:null!=b&&b.enabled?b:null,event:u}))},this._leaveHandler=u=>{null!==this.previewEnd&&this.isRange&&("blur"!==u.type&&(this._didDragSinceMouseDown=!0),u.target&&this._getCellFromElement(u.target)&&(!u.relatedTarget||!this._getCellFromElement(u.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:u})))},this._mousedownHandler=u=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const m=u.target&&this._getCellFromElement(u.target);!m||!this._isInRange(m.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:m.rawValue,event:u})})},this._mouseupHandler=u=>{if(!this.isRange)return;const m=DZ(u.target);m?m.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const b=this._getCellFromElement(m);this.dragEnded.emit({value:(null==b?void 0:b.rawValue)??null,event:u})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:u})})},this._touchendHandler=u=>{const m=Mie(u);m&&this._mouseupHandler({target:m})},this._id="mat-calendar-body-"+Ome++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,s.runOutsideAngular(()=>{const u=e.nativeElement;u.addEventListener("touchmove",this._touchmoveHandler,Tie),u.addEventListener("mouseenter",this._enterHandler,cv),u.addEventListener("focus",this._enterHandler,cv),u.addEventListener("mouseleave",this._leaveHandler,cv),u.addEventListener("blur",this._leaveHandler,cv),u.addEventListener("mousedown",this._mousedownHandler,y4),u.addEventListener("touchstart",this._mousedownHandler,y4),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,s){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:s})}_emitActiveDateChange(e,s){e.enabled&&this.activeDateChange.emit({value:e.value,event:s})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const s=e.numCols,{rows:u,numCols:m}=this;(e.rows||s)&&(this._firstRowOffset=u&&u.length&&u[0].length?m-u[0].length:0),(e.cellAspectRatio||s||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/m+"%"),(s||!this._cellWidth)&&(this._cellWidth=100/m+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Tie),e.removeEventListener("mouseenter",this._enterHandler,cv),e.removeEventListener("focus",this._enterHandler,cv),e.removeEventListener("mouseleave",this._leaveHandler,cv),e.removeEventListener("blur",this._leaveHandler,cv),e.removeEventListener("mousedown",this._mousedownHandler,y4),e.removeEventListener("touchstart",this._mousedownHandler,y4),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,s){let u=e*this.numCols+s;return e&&(u-=this._firstRowOffset),u==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(In(1)).subscribe(()=>{setTimeout(()=>{const s=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");s&&(e||(this._skipNextFocus=!0),s.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return TZ(e,this.startValue,this.endValue)}_isRangeEnd(e){return MZ(e,this.startValue,this.endValue)}_isInRange(e){return AZ(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return TZ(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,s,u){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let m=this.rows[s][u-1];if(!m){const b=this.rows[s-1];m=b&&b[b.length-1]}return m&&!this._isRangeEnd(m.compareValue)}_isComparisonBridgeEnd(e,s,u){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let m=this.rows[s][u+1];if(!m){const b=this.rows[s+1];m=b&&b[0]}return m&&!this._isRangeStart(m.compareValue)}_isComparisonEnd(e){return MZ(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return AZ(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return TZ(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return MZ(e,this.previewStart,this.previewEnd)}_isInPreview(e){return AZ(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const s=DZ(e);if(s){const u=s.getAttribute("data-mat-row"),m=s.getAttribute("data-mat-col");if(u&&m)return this.rows[parseInt(u)][parseInt(m)]}return null}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275cmp=xe({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[nn],attrs:_me,decls:7,vars:5,consts:[["aria-hidden","true"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"]],template:function(e,s){1&e&&(re(0,yme,3,6,"tr",0),lf(1,xme,4,1,"tr",3,sf),P(3,"label",1),Y(4),R(),P(5,"label",1),Y(6),R()),2&e&&(an(0,s._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),r})();function SZ(t){return"TD"===(null==t?void 0:t.nodeName)}function DZ(t){var l;let r;return SZ(t)?r=t:SZ(t.parentNode)?r=t.parentNode:SZ(null==(l=t.parentNode)?void 0:l.parentNode)&&(r=t.parentNode.parentNode),null!=(null==r?void 0:r.getAttribute("data-mat-row"))?r:null}function TZ(t,r,l){return null!==l&&r!==l&&t=r&&t===l}function AZ(t,r,l,e){return e&&null!==r&&null!==l&&r!==l&&t>=r&&t<=l}function Mie(t){const r=t.changedTouches[0];return document.elementFromPoint(r.clientX,r.clientY)}class Jo{constructor(r,l){this.start=r,this.end=l}}let dv=(()=>{var t;class r{constructor(e,s){this.selection=e,this._adapter=s,this._selectionChanged=new he,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,s){const u=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:s,oldValue:u})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Lme=(()=>{var t;class r extends dv{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new r(this._adapter);return e.updateSelection(this.selection,this),e}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(aa))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const Aie={provide:dv,deps:[[new Pa,new Wl,dv],aa],useFactory:function Nme(t,r){return t||new Lme(r)}},b4=new ve("MAT_DATE_RANGE_SELECTION_STRATEGY");let Eie=(()=>{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){const s=this._activeDate,u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),this._hasSameMonthAndYear(s,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u,m,b){this._changeDetectorRef=e,this._dateFormats=s,this._dateAdapter=u,this._dir=m,this._rangeStrategy=b,this._rerenderSubscription=bt.EMPTY,this.activeDrag=null,this.selectedChange=new Ce,this._userSelection=new Ce,this.dragStarted=new Ce,this.dragEnded=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnChanges(e){const s=e.comparisonStart||e.comparisonEnd;s&&!s.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const s=e.value,u=this._getDateFromDayOfMonth(s);let m,b;this._selected instanceof Jo?(m=this._getDateInCurrentMonth(this._selected.start),b=this._getDateInCurrentMonth(this._selected.end)):m=b=this._getDateInCurrentMonth(this._selected),(m!==s||b!==s)&&this.selectedChange.emit(u),this._userSelection.emit({value:u,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!vr(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(s,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:s}){var u,m;if(this._rangeStrategy){const b=s?s.rawValue:null,C=this._rangeStrategy.createPreview(b,this.selected,e);if(this._previewStart=this._getCellCompareValue(C.start),this._previewEnd=this._getCellCompareValue(C.end),this.activeDrag&&b){const M=null==(m=(u=this._rangeStrategy).createDrag)?void 0:m.call(u,this.activeDrag.value,this.selected,b,e);M&&(this._previewStart=this._getCellCompareValue(M.start),this._previewEnd=this._getCellCompareValue(M.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){var s,u;if(this.activeDrag)if(e.value){const m=null==(u=null==(s=this._rangeStrategy)?void 0:s.createDrag)?void 0:u.call(s,this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:m??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),s=this._dateAdapter.getDayOfWeekNames("narrow");let m=this._dateAdapter.getDayOfWeekNames("long").map((b,C)=>({long:b,narrow:s[C]}));this._weekdays=m.slice(e).concat(m.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),s=this._dateAdapter.getDateNames();this._weeks=[[]];for(let u=0,m=this._firstWeekOffset;u=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,s){return!(!e||!s||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(s)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(s))}_getCellCompareValue(e){if(e){const s=this._dateAdapter.getYear(e),u=this._dateAdapter.getMonth(e),m=this._dateAdapter.getDate(e);return new Date(s,u,m).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Jo?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(dp,8),V(aa,8),V(Ir,8),V(b4,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,s){if(1&e&&ft(MS,5),2&e){let u;Ne(u=Ve())&&(s._matCalendarBody=u.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[nn],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,s){1&e&&(P(0,"table",0)(1,"thead",1)(2,"tr"),lf(3,Cme,5,2,"th",4,sf),R(),P(5,"tr"),pe(6,"th",2),R()(),P(7,"tbody",3),J("selectedValueChange",function(m){return s._dateSelected(m)})("activeDateChange",function(m){return s._updateActiveDate(m)})("previewChange",function(m){return s._previewChanged(m)})("dragStarted",function(m){return s.dragStarted.emit(m)})("dragEnded",function(m){return s._dragEnded(m)})("keyup",function(m){return s._handleCalendarBodyKeyup(m)})("keydown",function(m){return s._handleCalendarBodyKeydown(m)}),R()()),2&e&&(N(3),cf(s._weekdays),N(4),z("label",s._monthLabel)("rows",s._weeks)("todayValue",s._todayDate)("startValue",s._rangeStart)("endValue",s._rangeEnd)("comparisonStart",s._comparisonRangeStart)("comparisonEnd",s._comparisonRangeEnd)("previewStart",s._previewStart)("previewEnd",s._previewEnd)("isRange",s._isRange)("labelMinRequiredCells",3)("activeCell",s._dateAdapter.getDate(s.activeDate)-1)("startDateAccessibleName",s.startDateAccessibleName)("endDateAccessibleName",s.endDateAccessibleName))},dependencies:[MS],encapsulation:2,changeDetection:0}),r})();const Dl=24;let Iie=(()=>{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){let s=this._activeDate;const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),kie(this._dateAdapter,s,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u){this._changeDetectorRef=e,this._dateAdapter=s,this._dir=u,this._rerenderSubscription=bt.EMPTY,this.selectedChange=new Ce,this.yearSelected=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const s=this._dateAdapter.getYear(this._activeDate)-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let u=0,m=[];uthis._createCellForYear(b))),m=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const s=e.value,u=this._dateAdapter.createDate(s,0,1),m=this._getDateFromYear(s);this.yearSelected.emit(u),this.selectedChange.emit(m)}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dl-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-Dl:-Dl);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*Dl:Dl);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(s,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const s=this._dateAdapter.getMonth(this.activeDate),u=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,s,1));return this._dateAdapter.createDate(e,s,Math.min(this._dateAdapter.getDate(this.activeDate),u))}_createCellForYear(e){const s=this._dateAdapter.createDate(e,0,1),u=this._dateAdapter.getYearName(s),m=this.dateClass?this.dateClass(s,"multi-year"):void 0;return new CZ(e,u,u,this._shouldEnableYear(e),m)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){let s=this._activeDate;const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),this._dateAdapter.getYear(s)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u,m){this._changeDetectorRef=e,this._dateFormats=s,this._dateAdapter=u,this._dir=m,this._rerenderSubscription=bt.EMPTY,this.selectedChange=new Ce,this.monthSelected=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const s=e.value,u=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),s,1);this.monthSelected.emit(u);const m=this._getDateFromMonth(s);this.selectedChange.emit(m)}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(s,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(s=>s.map(u=>this._createCellForMonth(u,e[u]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),u=this._dateAdapter.getNumDaysInMonth(s);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),u))}_createCellForMonth(e,s){const u=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),m=this._dateAdapter.format(u,this._dateFormats.display.monthYearA11yLabel),b=this.dateClass?this.dateClass(u,"year"):void 0;return new CZ(e,s.toLocaleUpperCase(),m,this._shouldEnableMonth(e),b)}_shouldEnableMonth(e){const s=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(s,e)||this._isYearAndMonthBeforeMinDate(s,e))return!1;if(!this.dateFilter)return!0;for(let m=this._dateAdapter.createDate(s,e,1);this._dateAdapter.getMonth(m)==e;m=this._dateAdapter.addCalendarDays(m,1))if(this.dateFilter(m))return!0;return!1}_isYearAndMonthAfterMaxDate(e,s){if(this.maxDate){const u=this._dateAdapter.getYear(this.maxDate),m=this._dateAdapter.getMonth(this.maxDate);return e>u||e===u&&s>m}return!1}_isYearAndMonthBeforeMinDate(e,s){if(this.minDate){const u=this._dateAdapter.getYear(this.minDate),m=this._dateAdapter.getMonth(this.minDate);return e{var t;class r{constructor(e,s,u,m,b){this._intl=e,this.calendar=s,this._dateAdapter=u,this._dateFormats=m,this._id="mat-calendar-header-"+Ume++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>b.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Dl)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Dl)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,s){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(s)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(s):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(s):kie(this._dateAdapter,e,s,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const s=this._dateAdapter.getYear(this.calendar.activeDate)-KP(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),u=s+Dl-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(s,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(u,0,1))]}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(Jt(()=>kZ)),V(aa,8),V(dp,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Sme,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(e,s){1&e&&(jn(),P(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){return s.currentPeriodClicked()}),P(3,"span",3),Y(4),R(),Ia(),P(5,"svg",4),pe(6,"polygon",5),R()(),Bd(),pe(7,"div",6),dt(8),P(9,"button",7),J("click",function(){return s.previousClicked()}),R(),P(10,"button",8),J("click",function(){return s.nextClicked()}),R()()(),P(11,"label",9),Y(12),R()),2&e&&(N(2),$e("aria-label",s.periodButtonLabel)("aria-describedby",s._periodButtonLabelId),N(2),En(s.periodButtonText),N(),et("mat-calendar-invert","month"!==s.calendar.currentView),N(4),z("disabled",!s.previousEnabled()),$e("aria-label",s.prevButtonLabel),N(),z("disabled",!s.nextEnabled()),$e("aria-label",s.nextButtonLabel),N(),z("id",s._periodButtonLabelId),N(),En(s.periodButtonDescription))},dependencies:[Pn,wc],encapsulation:2,changeDetection:0}),r})(),kZ=(()=>{var t;class r{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const s=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),s&&this.viewChanged.emit(s)}constructor(e,s,u,m){this._dateAdapter=s,this._dateFormats=u,this._changeDetectorRef=m,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Ce,this.yearSelected=new Ce,this.monthSelected=new Ce,this.viewChanged=new Ce(!0),this._userSelection=new Ce,this._userDragDrop=new Ce,this._activeDrag=null,this.stateChanges=new he,this._intlChanges=e.changes.subscribe(()=>{m.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Vu(this.headerComponent||jme),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const s=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,u=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,m=s||u||e.dateFilter;if(m&&!m.firstChange){const b=this._getCurrentViewComponent();b&&(this._changeDetectorRef.detectChanges(),b._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const s=e.value;(this.selected instanceof Jo||s&&!this._dateAdapter.sameDate(s,this.selected))&&this.selectedChange.emit(s),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,s){this.activeDate=e,this.currentView=s}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(aa,8),V(dp,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,s){if(1&e&&(ft(Eie,5),ft(Rie,5),ft(Iie,5)),2&e){let u;Ne(u=Ve())&&(s.monthView=u.first),Ne(u=Ve())&&(s.yearView=u.first),Ne(u=Ve())&&(s.multiYearView=u.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Je([Aie]),nn],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,s){if(1&e&&(re(0,Dme,0,0,"ng-template",0),P(1,"div",1),re(2,Tme,1,11)(3,Mme,1,6)(4,Ame,1,6),R()),2&e){let u;z("cdkPortalOutlet",s._calendarHeaderPortal),N(2),an(2,"month"===(u=s.currentView)?2:"year"===u?3:"multi-year"===u?4:-1)}},dependencies:[U1,_c,Eie,Rie,Iie],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),r})();const Oie={transformPanel:Vi("transformPanel",[Cn("void => enter-dropdown",kn("120ms cubic-bezier(0, 0, 0.2, 1)",nv([lt({opacity:0,transform:"scale(1, 0.8)"}),lt({opacity:1,transform:"scale(1, 1)"})]))),Cn("void => enter-dialog",kn("150ms cubic-bezier(0, 0, 0.2, 1)",nv([lt({opacity:0,transform:"scale(0.7)"}),lt({transform:"none",opacity:1})]))),Cn("* => void",kn("100ms linear",lt({opacity:0})))]),fadeInCalendar:Vi("fadeInCalendar",[Vn("void",lt({opacity:0})),Vn("enter",lt({opacity:1})),Cn("void => *",kn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Gme=0;const Lie=new ve("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),$me={provide:Lie,deps:[Mi],useFactory:function Wme(t){return()=>t.scrollStrategies.reposition()}},Yme=tv(class{constructor(t){this._elementRef=t}});let qme=(()=>{var t;class r extends Yme{constructor(e,s,u,m,b,C){super(e),this._changeDetectorRef=s,this._globalModel=u,this._dateAdapter=m,this._rangeSelectionStrategy=b,this._subscriptions=new bt,this._animationDone=new he,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=C.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const s=this._model.selection,u=e.value,m=s instanceof Jo;if(m&&this._rangeSelectionStrategy){const b=this._rangeSelectionStrategy.selectionFinished(u,s,e.event);this._model.updateSelection(b,this)}else u&&(m||!this._dateAdapter.sameDate(u,s))&&this._model.add(u);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,s){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,s&&this._changeDetectorRef.detectChanges()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(dv),V(aa),V(b4,8),V(XP))},t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,s){if(1&e&&ft(kZ,5),2&e){let u;Ne(u=Ve())&&(s._calendar=u.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,s){1&e&&Z_("@transformPanel.start",function(m){return s._handleAnimationEvent(m)})("@transformPanel.done",function(m){return s._handleAnimationEvent(m)}),2&e&&(cx("@transformPanel",s._animationState),et("mat-datepicker-content-touch",s.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ze],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"mat-calendar",1),J("yearSelected",function(m){return s.datepicker._selectYear(m)})("monthSelected",function(m){return s.datepicker._selectMonth(m)})("viewChanged",function(m){return s.datepicker._viewChanged(m)})("_userSelection",function(m){return s._handleUserSelection(m)})("_userDragDrop",function(m){return s._handleUserDragDrop(m)}),R(),re(2,Eme,0,0,"ng-template",2),P(3,"button",3),J("focus",function(){return s._closeButtonFocused=!0})("blur",function(){return s._closeButtonFocused=!1})("click",function(){return s.datepicker.close()}),Y(4),R()()),2&e){let u;et("mat-datepicker-content-container-with-custom-header",s.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",s._actionsPortal),$e("aria-modal",!0)("aria-labelledby",null!==(u=s._dialogLabelId)&&void 0!==u?u:void 0),N(),z("id",s.datepicker.id)("ngClass",s.datepicker.panelClass)("startAt",s.datepicker.startAt)("startView",s.datepicker.startView)("minDate",s.datepicker._getMinDate())("maxDate",s.datepicker._getMaxDate())("dateFilter",s.datepicker._getDateFilter())("headerComponent",s.datepicker.calendarHeaderComponent)("selected",s._getSelected())("dateClass",s.datepicker.dateClass)("comparisonStart",s.comparisonStart)("comparisonEnd",s.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",s.startDateAccessibleName)("endDateAccessibleName",s.endDateAccessibleName),N(),z("cdkPortalOutlet",s._actionsPortal),N(),et("cdk-visually-hidden",!s._closeButtonFocused),z("color",s.color||"primary"),N(),En(s._closeButtonText)}},dependencies:[To,Pn,RY,_c,kZ],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Oie.transformPanel,Oie.fadeInCalendar]},changeDetection:0}),r})(),Fie=(()=>{var t;class r{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ot(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const s=Ot(e);s!==this._disabled&&(this._disabled=s,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ot(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=fk(e)}get opened(){return this._opened}set opened(e){Ot(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,s,u,m,b,C,M){this._overlay=e,this._ngZone=s,this._viewContainerRef=u,this._dateAdapter=b,this._dir=C,this._model=M,this._inputStateChanges=bt.EMPTY,this._document=De(yt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Ce,this.monthSelected=new Ce,this.viewChanged=new Ce(!0),this.openedStream=new Ce,this.closedStream=new Ce,this._opened=!1,this.id="mat-datepicker-"+Gme++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new he,this._scrollStrategy=m}ngOnChanges(e){const s=e.xPosition||e.yPosition;if(s&&!s.firstChange&&this._overlayRef){const u=this._overlayRef.getConfig().positionStrategy;u instanceof N5&&(this._setConnectedPositions(u),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){var s;this._actionsPortal=e,null==(s=this._componentRef)||s.instance._assignActions(e,!0)}removeActions(e){var s;e===this._actionsPortal&&(this._actionsPortal=null,null==(s=this._componentRef)||s.instance._assignActions(null,!0))}open(){var e;this._opened||this.disabled||null!=(e=this._componentRef)&&e.instance._isAnimating||(this._focusedElementBeforeOpen=pb(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){var u;if(!this._opened||null!=(u=this._componentRef)&&u.instance._isAnimating)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,s=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:m,location:b}=this._componentRef;m._startExitAnimation(),m._animationDone.pipe(In(1)).subscribe(()=>{const C=this._document.activeElement;e&&(!C||C===this._document.activeElement||b.nativeElement.contains(C))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(s):s()}_applyPendingSelection(){var e,s;null==(s=null==(e=this._componentRef)?void 0:e.instance)||s._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,s=new Vu(qme,this._viewContainerRef),u=this._overlayRef=this._overlay.create(new zu({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(u).subscribe(m=>{m&&m.preventDefault(),this.close()}),u.keydownEvents().subscribe(m=>{const b=m.keyCode;(38===b||40===b||37===b||39===b||33===b||34===b)&&m.preventDefault()}),this._componentRef=u.attach(s),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(In(1)).subscribe(()=>u.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const s="end"===this.xPosition?"end":"start",u="start"===s?"end":"start",m="above"===this.yPosition?"bottom":"top",b="top"===m?"bottom":"top";return e.withPositions([{originX:s,originY:b,overlayX:s,overlayY:m},{originX:s,originY:m,overlayX:s,overlayY:b},{originX:u,originY:b,overlayX:u,overlayY:m},{originX:u,originY:m,overlayX:u,overlayY:b}])}_getCloseStream(e){const s=["ctrlKey","shiftKey","metaKey"];return xi(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(bn(u=>27===u.keyCode&&!vr(u)||this.datepickerInput&&vr(u,"altKey")&&38===u.keyCode&&s.every(m=>!vr(u,m)))))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(Ye),V(fi),V(Lie),V(aa,8),V(Ir,8),V(dv))},t.\u0275dir=ce({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[nn]}),r})(),Nie=(()=>{var t;class r extends Fie{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Je([Aie,{provide:Fie,useExisting:t}]),ze],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),r})();class w4{constructor(r,l){this.target=r,this.targetElement=l,this.value=this.target.value}}let Zme=(()=>{var t;class r{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const s=Ot(e),u=this._elementRef.nativeElement;this._disabled!==s&&(this._disabled=s,this.stateChanges.next(void 0)),s&&this._isInitialized&&u.blur&&u.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(s=>{if(this._shouldHandleChangeEvent(s)){const u=this._getValueFromModel(s.selection);this._lastValueValid=this._isValidValue(u),this._cvaOnChange(u),this._onTouched(),this._formatValue(u),this.dateInput.emit(new w4(this,this._elementRef.nativeElement)),this.dateChange.emit(new w4(this,this._elementRef.nativeElement))}})}constructor(e,s,u){this._elementRef=e,this._dateAdapter=s,this._dateFormats=u,this.dateChange=new Ce,this.dateInput=new Ce,this.stateChanges=new he,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=bt.EMPTY,this._localeSubscription=bt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value));return!b||this._matchesFilter(b)?null:{matDatepickerFilter:!0}},this._minValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),C=this._getMinDate();return!C||!b||this._dateAdapter.compareDate(C,b)<=0?null:{matDatepickerMin:{min:C,actual:b}}},this._maxValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),C=this._getMaxDate();return!C||!b||this._dateAdapter.compareDate(C,b)>=0?null:{matDatepickerMax:{max:C,actual:b}}},this._lastValueValid=!1,this._localeSubscription=s.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Xme(t,r){const l=Object.keys(t);for(let e of l){const{previousValue:s,currentValue:u}=t[e];if(!r.isDateInstance(s)||!r.isDateInstance(u))return!0;if(!r.sameDate(s,u))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){vr(e,"altKey")&&40===e.keyCode&&["ctrlKey","shiftKey","metaKey"].every(m=>!vr(e,m))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const s=this._lastValueValid;let u=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(u),u=this._dateAdapter.getValidDateOrNull(u);const m=!this._dateAdapter.sameDate(u,this.value);!u||m?this._cvaOnChange(u):(e&&!this.value&&this._cvaOnChange(u),s!==this._lastValueValid&&this._validatorOnChange()),m&&(this._assignValue(u),this.dateInput.emit(new w4(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new w4(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const s=this._getDateFilter();return!s||s(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(aa,8),V(dp,8))},t.\u0275dir=ce({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[nn]}),r})();const Kme={provide:Pr,useExisting:Jt(()=>x4),multi:!0},Qme={provide:Ei,useExisting:Jt(()=>x4),multi:!0};let x4=(()=>{var t;class r extends Zme{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(s,this._min)||(this._min=s,this._validatorOnChange())}get max(){return this._max}set max(e){const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(s,this._max)||(this._max=s,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const s=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==s&&this._validatorOnChange()}constructor(e,s,u,m){super(e,s,u),this._formField=m,this._closedSubscription=bt.EMPTY,this._validator=hS.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(aa,8),V(dp,8),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,s){1&e&&J("input",function(m){return s._onInput(m.target.value)})("change",function(){return s._onChange()})("blur",function(){return s._onBlur()})("keydown",function(m){return s._onKeydown(m)}),2&e&&(Ba("disabled",s.disabled),$e("aria-haspopup",s._datepicker?"dialog":null)("aria-owns",(null==s._datepicker?null:s._datepicker.opened)&&s._datepicker.id||null)("min",s.min?s._dateAdapter.toIso8601(s.min):null)("max",s.max?s._dateAdapter.toIso8601(s.max):null)("data-mat-calendar",s._datepicker?s._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Je([Kme,Qme,{provide:Xne,useExisting:t}]),ze]}),r})(),Jme=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),r})(),Vie=(()=>{var t;class r{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ot(e)}constructor(e,s,u){this._intl=e,this._changeDetectorRef=s,this._stateChanges=bt.EMPTY;const m=Number(u);this.tabIndex=m||0===m?m:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:tt(),s=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:tt(),u=this.datepicker?xi(this.datepicker.openedStream,this.datepicker.closedStream):tt();this._stateChanges.unsubscribe(),this._stateChanges=xi(this._intl.changes,e,s,u).subscribe(()=>this._changeDetectorRef.markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(dn),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Jme,5),2&e){let m;Ne(m=Ve())&&(s._customIcon=m.first)}},viewQuery:function(e,s){if(1&e&&ft(Ime,5),2&e){let u;Ne(u=Ve())&&(s._button=u.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,s){1&e&&J("click",function(m){return s._open(m)}),2&e&&($e("tabindex",null)("data-mat-calendar",s.datepicker?s.datepicker.id:null),et("mat-datepicker-toggle-active",s.datepicker&&s.datepicker.opened)("mat-accent",s.datepicker&&"accent"===s.datepicker.color)("mat-warn",s.datepicker&&"warn"===s.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[nn],ngContentSelectors:Rme,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,s){1&e&&(jn(Pme),P(0,"button",0,1),re(2,kme,2,0,":svg:svg",2),dt(3),R()),2&e&&(z("disabled",s.disabled)("disableRipple",s.disableRipple),$e("aria-haspopup",s.datepicker?"dialog":null)("aria-label",s.ariaLabel||s._intl.openCalendarLabel)("tabindex",s.disabled?-1:s.tabIndex),N(2),an(2,s._customIcon?-1:2))},dependencies:[wc],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),r})(),nge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[XP,$me],imports:[Er,hp,Hu,j1,gl,$t,np]}),r})();const ige=["button"],rge=["*"],zie=new ve("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Hie=new ve("MatButtonToggleGroup"),age={provide:Pr,useExisting:Jt(()=>Gie),multi:!0};let Uie=0;class jie{constructor(r,l){this.source=r,this.value=l}}let Gie=(()=>{var t;class r{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(s=>s.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}constructor(e,s){this._changeDetector=e,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Uie++,this.valueChange=new Ce,this.change=new Ce,this.appearance=s&&s.appearance?s.appearance:"standard"}ngOnInit(){this._selectionModel=new UP(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const s=new jie(e,this.value);this._rawValue=s.value,this._controlValueAccessorChangeFn(s.value),this.change.emit(s)}_syncButtonToggle(e,s,u=!1,m=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?s?this._selectionModel.select(e):this._selectionModel.deselect(e):m=!0,m?Promise.resolve().then(()=>this._updateModelValue(e,u)):this._updateModelValue(e,u)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(s=>null!=e.value&&s===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(s=>this._selectValue(s))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const s=this._buttonToggles.find(u=>null!=u.value&&u.value===e);s&&(s.checked=!0,this._selectionModel.select(s))}_updateModelValue(e,s){s&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){var e;null==(e=this._buttonToggles)||e.forEach(s=>s._markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(zie,8))},t.\u0275dir=ce({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Wie,5),2&e){let m;Ne(m=Ve())&&(s._buttonToggles=m)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,s){2&e&&($e("aria-disabled",s.disabled),et("mat-button-toggle-vertical",s.vertical)("mat-button-toggle-group-appearance-standard","standard"===s.appearance))},inputs:{appearance:"appearance",name:"name",vertical:["vertical","vertical",jt],value:"value",multiple:["multiple","multiple",jt],disabled:["disabled","disabled",jt]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Je([age,{provide:Hie,useExisting:t}]),na]}),r})(),Wie=(()=>{var t;class r{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}constructor(e,s,u,m,b,C){this._changeDetectorRef=s,this._elementRef=u,this._focusMonitor=m,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ce;const M=Number(b);this.tabIndex=M||0===M?M:null,this.buttonToggleGroup=e,this.appearance=C&&C.appearance?C.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Uie++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new jie(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Hie,8),V(dn),V(je),V(uo),Ie("tabindex"),V(zie,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(e,s){if(1&e&&ft(ige,5),2&e){let u;Ne(u=Ve())&&(s._buttonElement=u.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,s){1&e&&J("focus",function(){return s.focus()}),2&e&&($e("aria-label",null)("aria-labelledby",null)("id",s.id)("name",null),et("mat-button-toggle-standalone",!s.buttonToggleGroup)("mat-button-toggle-checked",s.checked)("mat-button-toggle-disabled",s.disabled)("mat-button-toggle-appearance-standard","standard"===s.appearance))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:["disableRipple","disableRipple",jt],appearance:"appearance",checked:["checked","checked",jt],disabled:["disabled","disabled",jt]},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[na],ngContentSelectors:rge,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,s){if(1&e&&(jn(),P(0,"button",0,1),J("click",function(){return s._onButtonClick()}),P(2,"span",2),dt(3),R()(),pe(4,"span",3)(5,"span",4)),2&e){const u=pn(1);z("id",s.buttonId)("disabled",s.disabled||null),$e("tabindex",s.disabled?-1:s.tabIndex)("aria-pressed",s.checked)("name",s._getButtonName())("aria-label",s.ariaLabel)("aria-labelledby",s.ariaLabelledby),N(5),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)}},dependencies:[bl],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),r})(),oge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,$t]}),r})();function sge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit rule"),R())}function lge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New rule"),R())}function cge(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function dge(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function uge(t,r){if(1&t&&(P(0,"mat-button-toggle",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function hge(t,r){if(1&t){const l=Oe();P(0,"div",23)(1,"span",24)(2,"uds-translate"),Y(3,"Weekdays"),R()(),P(4,"mat-button-toggle-group",25),J("ngModelChange",function(s){return oe(l),le(Z().wDays=s)}),re(5,uge,2,2,"mat-button-toggle",8),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.wDays),N(),z("ngForOf",l.weekDays)}}function fge(t,r){if(1&t){const l=Oe();P(0,"mat-form-field",9)(1,"mat-label")(2,"uds-translate"),Y(3,"Repeat every"),R()(),P(4,"input",6),J("ngModelChange",function(s){return oe(l),le(Z().rule.interval=s)}),R(),P(5,"div",26),Y(6),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.rule.interval),N(2),Re("\xa0",l.frequency(),"")}}const C4={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},S4={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},$ie=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Yie=(t,r=!1)=>{const l=new Array;for(let e=0;e<7;e++)1&t&&l.push($ie[e].substr(0,r?100:3)),t>>=1;return l.length?l.join(", "):django.gettext("(no days)")};let qie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.dunits=Object.keys(S4).map(b=>({id:b,value:S4[b]})),this.freqs=Object.keys(C4).map(b=>({id:b,value:C4[b][2]})),this.weekDays=$ie.map((b,C)=>({id:1<{if(this.rule=e,this.startDate=new Date(1e3*this.rule.start),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(1e3*this.rule.end):null,"WEEKDAYS"===this.rule.frequency){const s=[];for(let u=0;u<7;u++)this.rule.interval&1<this.rule.interval+=s),0===this.rule.interval)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD");const s=EP(django.get_format("SHORT_DATE_FORMAT")),u=this.updateRuleData();if(null===u){e=django.gettext("This rule will be valid every"),e+="WEEKDAYS"===this.rule.frequency?" "+Yie(this.rule.interval,!0)+" "+django.gettext("of any week"):" "+ +this.rule.interval+" "+this.frequency();const m=new Date(1e3*this.rule.start);e+=", "+django.gettext("from")+" "+iv(s,m),e+=this.rule.end?" "+django.gettext("until")+" "+iv(s,new Date(1e3*this.rule.end)):" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+m.toTimeString().split(":").slice(0,2).join(":"),e+=+this.rule.duration>0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+S4[this.rule.duration_unit]:django.gettext("with no duration")}return e.replace("$FIELD",u)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,sge,2,0,"uds-translate",1)(2,lge,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Name"),R()(),P(9,"input",3),J("ngModelChange",function(m){return s.rule.name=m}),R()(),P(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),Y(13,"Comments"),R()(),P(14,"input",3),J("ngModelChange",function(m){return s.rule.comments=m}),R()(),P(15,"h3")(16,"uds-translate"),Y(17,"Event"),R()(),P(18,"mat-form-field",4)(19,"mat-label")(20,"uds-translate"),Y(21,"Start time"),R()(),P(22,"input",5),J("ngModelChange",function(m){return s.startTime=m}),R()(),P(23,"mat-form-field",4)(24,"mat-label")(25,"uds-translate"),Y(26,"Duration"),R()(),P(27,"input",6),J("ngModelChange",function(m){return s.rule.duration=m}),R()(),P(28,"mat-form-field",4)(29,"mat-label")(30,"uds-translate"),Y(31,"Duration units"),R()(),P(32,"mat-select",7),J("ngModelChange",function(m){return s.rule.duration_unit=m}),re(33,cge,2,2,"mat-option",8),R()(),P(34,"h3"),Y(35," Repetition "),R(),P(36,"mat-form-field",9)(37,"mat-label")(38,"uds-translate"),Y(39," Start date "),R()(),P(40,"input",10),J("ngModelChange",function(m){return s.startDate=m}),R(),pe(41,"mat-datepicker-toggle",11)(42,"mat-datepicker",null,12),R(),P(44,"mat-form-field",9)(45,"mat-label")(46,"uds-translate"),Y(47," Repeat until date "),R()(),P(48,"input",13),J("ngModelChange",function(m){return s.endDate=m}),R(),pe(49,"mat-datepicker-toggle",11)(50,"mat-datepicker",null,14),R(),P(52,"div",15)(53,"mat-form-field",9)(54,"mat-label")(55,"uds-translate"),Y(56,"Frequency"),R()(),P(57,"mat-select",16),J("ngModelChange",function(m){return s.rule.frequency=m})("valueChange",function(){return s.rule.interval=1}),re(58,dge,2,2,"mat-option",8),R()(),re(59,hge,6,2,"div",17)(60,fge,7,2,"mat-form-field",18),R(),P(61,"h3")(62,"uds-translate"),Y(63,"Summary"),R()(),P(64,"div",19),Y(65),R()()(),P(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),Y(69,"Cancel"),R()(),P(70,"button",21),J("click",function(){return s.save()}),P(71,"uds-translate"),Y(72,"Ok"),R()()()),2&e){const u=pn(43),m=pn(51);N(),z("ngIf",s.rule.id),N(),z("ngIf",!s.rule.id),N(7),z("ngModel",s.rule.name),N(5),z("ngModel",s.rule.comments),N(8),z("ngModel",s.startTime),N(5),z("ngModel",s.rule.duration),N(5),z("ngModel",s.rule.duration_unit),N(),z("ngForOf",s.dunits),N(7),z("matDatepicker",u)("ngModel",s.startDate),N(),z("for",u),N(7),z("matDatepicker",m)("ngModel",s.endDate)("placeholder",s.FOREVER_STRING),N(),z("for",m),N(8),z("ngModel",s.rule.frequency),N(),z("ngForOf",s.freqs),N(),z("ngIf","WEEKDAYS"===s.rule.frequency),N(),z("ngIf","WEEKDAYS"!==s.rule.frequency)("ngIfAnd","NEVER"!==s.rule.frequency),N(5),Re(" ",s.summary()," "),N(5),z("disabled",null!==s.updateRuleData()||""===s.rule.name)}},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,vS,Sa,Ya,Ni,Nie,x4,Vie,Gie,Wie,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),r})();function mge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Rules"),R())}function gge(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,mge,2,0,"ng-template",9),P(5,"div",10)(6,"uds-table",11),J("newAction",function(s){return oe(l),le(Z().onNewRule(s))})("editAction",function(s){return oe(l),le(Z().onEditRule(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteRule(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("rest",l.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("tableId","calendars-d-rules"+l.calendar.id)("pageSize",l.api.config.admin.page_size)}}const vge=t=>["/pools","calendars",t];let _ge=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.calendarRules={}}ngOnInit(){const e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(s=>{this.calendar=s,this.calendarRules=this.rest.calendars.detail(s.id,"rules")})}onNewRule(e){qie.launch(this.api,this.calendarRules).subscribe(()=>e.table.overview())}onEditRule(e){qie.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.overview())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){(t=>{t.interval="WEEKDAYS"===t.frequency?Yie(t.interval):t.interval+" "+C4[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+S4[t.duration_unit]})(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,gge,7,7,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,vge,s.calendar?s.calendar.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/calendars.png"),Ut),N(),Re(" ",null==s.calendar?null:s.calendar.name," "),N(),z("ngIf",s.calendar))},dependencies:[xn,mr,As,Es,Cl,vn,hi],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),r})();const yge='event'+django.gettext("Set time mark")+"";let Zie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"timemark",html:yge,type:gi.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){const s=e.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",s.name)).then(u=>{u&&this.rest.accounts.timemark(s.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=78793200===e.time_mark?django.gettext("No time mark"):Ms("SHORT_DATE_FORMAT",e.time_mark)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.onTimeMark(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)("onItem",s.processElement)},dependencies:[hi]}),r})();function bge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Account usage"),R())}function wge(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,bge,2,0,"ng-template",9),P(5,"div",10)(6,"uds-table",11),J("deleteAction",function(s){return oe(l),le(Z().onDeleteUsage(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("rest",l.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("tableId","account-d-usage"+l.account.id)}}const xge=t=>["/pools","accounts",t];let Cge=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.accountUsage={}}ngOnInit(){const e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(s=>{this.account=s,this.accountUsage=this.rest.accounts.detail(s.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,wge,7,6,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,xge,s.account?s.account.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/accounts.png"),Ut),N(),Re(" ",null==s.account?null:s.account.name," "),N(),z("ngIf",s.account))},dependencies:[xn,mr,As,Es,Cl,vn,hi]}),r})();function Sge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New image for"),R())}function Dge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit for"),R())}let Xie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.preview="",this.image={id:void 0,data:"",name:""},m.image&&(this.image.id=m.image.id)}static launch(e,s=null){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:s},disableClose:!0}).componentInstance.onSave}onFileChanged(e){const s=e.target;if(!s.files||0===s.files.length)return;const u=s.files[0];if(u.size>262144)return void this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));if(!["image/jpeg","image/png","image/gif"].includes(u.type))return void this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));const m=new FileReader;m.onload=b=>{const C=m.result;this.preview=C,this.image.data=C.substr(C.indexOf("base64,")+7),this.image.name||(this.image.name=u.name)},m.readAsDataURL(u)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){const e=this.api.config.image_size[0],s=this.api.config.image_size[1],u={"width.px":e,"height.px":s,"background-size":e+"px "+s+"px","background-image":"none"};return this.preview&&(u["background-image"]="url("+this.preview+")"),u}save(){this.image.name&&this.image.data?this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,s){if(1&e){const u=Oe();P(0,"h4",0),re(1,Sge,2,0,"uds-translate",1)(2,Dge,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Image name"),R()(),P(9,"input",3),J("ngModelChange",function(b){return s.image.name=b}),R()(),P(10,"input",4,5),J("change",function(b){return s.onFileChanged(b)}),R(),P(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),Y(15,"Image (click to change)"),R()(),P(16,"input",6),J("click",function(){return oe(u),le(pn(11).click())}),R(),P(17,"div",7),J("click",function(){return oe(u),le(pn(11).click())}),pe(18,"div",8),R()(),P(19,"div",9)(20,"uds-translate"),Y(21,' For optimal results, use "squared" images. '),R(),P(22,"uds-translate"),Y(23," The image will be resized on upload to "),R(),Y(24),R()()(),P(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),Y(28,"Cancel"),R()(),P(29,"button",11),J("click",function(){return s.save()}),P(30,"uds-translate"),Y(31,"Ok"),R()()()}2&e&&(N(),z("ngIf",!s.image.id),N(),z("ngIf",s.image.id),N(7),z("ngModel",s.image.name),N(7),z("hidden",!0),N(2),z("ngStyle",s.background()),N(6),eg(" ",s.api.config.image_size[0],"x",s.api.config.image_size[1]," "))},dependencies:[xn,fE,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),r})(),Kie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){Xie.launch(this.api).subscribe(()=>e.table.overview())}onEdit(e){Xie.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.overview())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),r})();const Tge='assessment'+django.gettext("Generate report")+"";function Ege(t,r){1&t&&Y(0),2&t&&Re(" ",Z().$implicit," ")}function Ige(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",18),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("type",s.config[e][l].crypt?"password":"text")("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function kge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"textarea",19),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Pge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",20),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Rge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),Y(3),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(2),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help),N(),Re(" ",l," ")}}function Oge(t,r){if(1&t&&(P(0,"mat-option",24),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}function Lge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"mat-select",22),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),re(5,Oge,2,2,"mat-option",23),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),Re(" ",l," "),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help),N(),z("ngForOf",s.config[e][l].params)}}function Fge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",25),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Nge(t,r){1&t&&ao(0)}function Vge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",26),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Bge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",27),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function zge(t,r){if(1&t&&(An(0,15),re(1,Ige,5,4,"div",16)(2,kge,5,3,"div",16)(3,Pge,5,3,"div",16)(4,Rge,4,3,"div",16)(5,Lge,6,4,"div",16)(6,Fge,5,3,"div",16)(7,Nge,1,0,"ng-container",16)(8,Vge,5,3,"div",16)(9,Bge,5,3,"div",17),On()),2&t){const l=Z().$implicit,e=Z().$implicit;z("ngSwitch",Z(2).config[e][l].type),N(),z("ngSwitchCase",0),N(),z("ngSwitchCase",1),N(),z("ngSwitchCase",2),N(),z("ngSwitchCase",3),N(),z("ngSwitchCase",4),N(),z("ngSwitchCase",5),N(),z("ngSwitchCase",6),N(),z("ngSwitchCase",7)}}function Hge(t,r){if(1&t&&(P(0,"div",13),re(1,zge,10,9,"ng-container",14),R()),2&t){const l=r.$implicit,e=Z().$implicit,s=Z(2);N(),z("ngIf",s.config[e][l])}}function Uge(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Ege,1,1,"ng-template",10),P(2,"div",11),re(3,Hge,2,1,"div",12),R()()),2&t){const l=r.$implicit,e=Z(2);N(3),z("ngForOf",e.configElements(l))}}function jge(t,r){if(1&t){const l=Oe();P(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),re(3,Uge,4,1,"mat-tab",7),R(),P(4,"div",8)(5,"button",9),J("click",function(){return oe(l),le(Z().save())}),P(6,"uds-translate"),Y(7,"Save"),R()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(),z("ngForOf",l.sections())}}const Qie=["UDS","Security"],Jie=["UDS ID"],Gge=[{path:"",canActivate:[mse],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Gse},{path:"services/providers",component:Qne},{path:"services/providers/:provider/detail",component:Jne},{path:"services/providers/:provider",component:Qne},{path:"services/providers/:provider/detail/:service",component:Jne},{path:"services/servers",component:eie},{path:"services/servers/:server/detail",component:Ohe},{path:"services/servers/:server",component:eie},{path:"authenticators",component:nie},{path:"authenticators/:authenticator/detail",component:bZ},{path:"authenticators/:authenticator",component:nie},{path:"authenticators/:authenticator/detail/groups/:group",component:bZ},{path:"authenticators/:authenticator/detail/users/:user",component:bZ},{path:"mfas",component:iie},{path:"mfas/:mfa",component:iie},{path:"osmanagers",component:lie},{path:"osmanagers/:osmanager",component:lie},{path:"connectivity/transports",component:cie},{path:"connectivity/transports/:transport",component:cie},{path:"connectivity/networks",component:die},{path:"connectivity/networks/:network",component:die},{path:"connectivity/tunnels",component:uie},{path:"connectivity/tunnels/:tunnel",component:uie},{path:"connectivity/tunnels/:tunnel/detail",component:Zfe},{path:"pools/service-pools",component:fie},{path:"pools/service-pools/:pool",component:fie},{path:"pools/service-pools/:pool/detail",component:wie},{path:"pools/meta-pools",component:xie},{path:"pools/meta-pools/:metapool",component:xie},{path:"pools/meta-pools/:metapool/detail",component:vme},{path:"pools/pool-groups",component:Sie},{path:"pools/pool-groups/:poolgroup",component:Sie},{path:"pools/calendars",component:Die},{path:"pools/calendars/:calendar",component:Die},{path:"pools/calendars/:calendar/detail",component:_ge},{path:"pools/accounts",component:Zie},{path:"pools/accounts/:account",component:Zie},{path:"pools/accounts/:account/detail",component:Cge},{path:"tools/gallery",component:Kie},{path:"tools/gallery/:image",component:Kie},{path:"tools/reports",component:(()=>{var t;class r{constructor(e,s){this.rest=e,this.api=s,this.customButtons=[{id:"genreport",html:Tge,type:gi.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){var s=this;return Ge(function*(){const u=new wl;s.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:u});const m=yield u;s.api.gui.snackbar.open(django.gettext("Generating report..."));const b=yield s.rest.reports.save(m,e.table.selection.selected[0].id),C=b.encoded?window.atob(b.data):b.data,M=C.length,I=new Uint8Array(M);for(let H=0;H{(0,vZ.saveAs)(F,b.filename)})})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.generateReport(m)}),R()),2&e&&z("rest",s.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),r})()},{path:"tools/notifiers",component:(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","newAction","editAction","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/tokens/actor",component:(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onDelete(e){var s=this;return Ge(function*(){yield s.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/tokens/server",component:(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/configuration",component:(()=>{var t;class r{constructor(e,s){this.rest=e,this.api=s}ngOnInit(){this.rest.configuration.overview().then(e=>{this.config=e;for(const s in this.config)if(this.config.hasOwnProperty(s))for(const u in this.config[s])if(this.config[s].hasOwnProperty(u)){const m=this.config[s][u];7===m.type?m.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===m.type&&(m.value=!!["1",1,!0].includes(m.value)),m.original_value=m.value}})}sections(){let e=[];for(const s in this.config)this.config.hasOwnProperty(s)&&!Qie.includes(s)&&e.push(s);return e=e.sort((s,u)=>s.localeCompare(u)),e.unshift.apply(e,Qie),e}configElements(e){let s=[];const u=this.config[e];if(u)for(const m in u)u.hasOwnProperty(m)&&("UDS"!==e||!Jie.includes(m))&&s.push(m);return s=s.sort((m,b)=>m.localeCompare(b)),"UDS"===e&&s.unshift.apply(s,Jie),s}save(){const e={};for(const s in this.config)if(this.config.hasOwnProperty(s))for(const u in this.config[s])if(this.config[s].hasOwnProperty(u)){const m=this.config[s][u];if(m.original_value!==m.value){m.original_value=m.value,e[s]||(e[s]={});let b=m.value;3===m.type&&(b=["1",1,!0].includes(m.value)?"1":"0"),e[s][u]={value:b}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","matTooltip","ngModelChange"],["matInput","",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","number",3,"ngModel","matTooltip","ngModelChange"],[1,"toggle"],[3,"ngModel","matTooltip","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","password",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","text",3,"ngModel","matTooltip","ngModelChange"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),pe(2,"img",2),Y(3,"\xa0"),P(4,"uds-translate"),Y(5,"UDS Configuration"),R()(),re(6,jge,8,2,"div",3),R()),2&e&&(N(2),z("src",s.api.staticURL("admin/img/icons/configuration.png"),Ut),N(4),z("ngIf",s.config))},dependencies:[mi,xn,_g,gC,Zo,$i,sv,A,ii,Pn,qz,ri,Ci,Sa,Ya,Ni,As,Es,Cl,ZP,vn],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),r})()}]}];let Wge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[e5.forRoot(Gge,{}),e5]}),r})();function ere(t){return new be(3e3,!1)}function uv(t){switch(t.length){case 0:return new $u;case 1:return t[0];default:return new yP(t)}}function tre(t,r,l=new Map,e=new Map){const s=[],u=[];let m=-1,b=null;if(r.forEach(C=>{const M=C.get("offset"),I=M==m,F=I&&b||new Map;C.forEach((H,q)=>{let Q=q,ne=H;if("offset"!==q)switch(Q=t.normalizePropertyName(Q,s),ne){case"!":ne=l.get(q);break;case wd:ne=e.get(q);break;default:ne=t.normalizeStyleValue(q,Q,ne,s)}F.set(Q,ne)}),I||u.push(F),b=F,m=M}),s.length)throw function pve(t){return new be(3502,!1)}();return u}function RZ(t,r,l,e){switch(r){case"start":t.onStart(()=>e(l&&OZ(l,"start",t)));break;case"done":t.onDone(()=>e(l&&OZ(l,"done",t)));break;case"destroy":t.onDestroy(()=>e(l&&OZ(l,"destroy",t)))}}function OZ(t,r,l){const u=LZ(t.element,t.triggerName,t.fromState,t.toState,r||t.phaseName,l.totalTime??t.totalTime,!!l.disabled),m=t._data;return null!=m&&(u._data=m),u}function LZ(t,r,l,e,s="",u=0,m){return{element:t,triggerName:r,fromState:l,toState:e,phaseName:s,totalTime:u,disabled:!!m}}function Tl(t,r,l){let e=t.get(r);return e||t.set(r,e=l),e}function nre(t){const r=t.indexOf(":");return[t.substring(1,r),t.slice(r+1)]}const Tve=(()=>typeof document>"u"?null:document.documentElement)();function FZ(t){const r=t.parentNode||t.host||null;return r===Tve?null:r}let Bb=null,ire=!1;function rre(t,r){for(;r;){if(r===t)return!0;r=FZ(r)}return!1}function are(t,r,l){if(l)return Array.from(t.querySelectorAll(r));const e=t.querySelector(r);return e?[e]:[]}let NZ=(()=>{var t;class r{validateStyleProperty(e){return function Ave(t){Bb||(Bb=function Eve(){return typeof document<"u"?document.body:null}()||{},ire=!!Bb.style&&"WebkitAppearance"in Bb.style);let r=!0;return Bb.style&&!function Mve(t){return"ebkit"==t.substring(1,6)}(t)&&(r=t in Bb.style,!r&&ire&&(r="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Bb.style)),r}(e)}matchesElement(e,s){return!1}containsElement(e,s){return rre(e,s)}getParentElement(e){return FZ(e)}query(e,s,u){return are(e,s,u)}computeStyle(e,s,u){return u||""}animate(e,s,u,m,b,C=[],M){return new $u(u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),VZ=(()=>{class r{}return r.NOOP=new NZ,r})();class BZ{}const kve=1e3,zZ="ng-enter",D4="ng-leave",T4="ng-trigger",M4=".ng-trigger",sre="ng-animating",HZ=".ng-animating";function vp(t){if("number"==typeof t)return t;const r=t.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:UZ(parseFloat(r[1]),r[2])}function UZ(t,r){return"s"===r?t*kve:t}function A4(t,r,l){return t.hasOwnProperty("duration")?t:function Rve(t,r,l){let s,u=0,m="";if("string"==typeof t){const b=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===b)return r.push(ere()),{duration:0,delay:0,easing:""};s=UZ(parseFloat(b[1]),b[2]);const C=b[3];null!=C&&(u=UZ(parseFloat(C),b[4]));const M=b[5];M&&(m=M)}else s=t;if(!l){let b=!1,C=r.length;s<0&&(r.push(function $ge(){return new be(3100,!1)}()),b=!0),u<0&&(r.push(function Yge(){return new be(3101,!1)}()),b=!0),b&&r.splice(C,0,ere())}return{duration:s,delay:u,easing:m}}(t,r,l)}function QP(t,r={}){return Object.keys(t).forEach(l=>{r[l]=t[l]}),r}function lre(t){const r=new Map;return Object.keys(t).forEach(l=>{r.set(l,t[l])}),r}function hv(t,r=new Map,l){if(l)for(let[e,s]of l)r.set(e,s);for(let[e,s]of t)r.set(e,s);return r}function Ku(t,r,l){r.forEach((e,s)=>{const u=GZ(s);l&&!l.has(s)&&l.set(s,t.style[u]),t.style[u]=e})}function zb(t,r){r.forEach((l,e)=>{const s=GZ(e);t.style[s]=""})}function JP(t){return Array.isArray(t)?1==t.length?t[0]:function aq(t,r=null){return{type:2,steps:t,options:r}}(t):t}const jZ=new RegExp("{{\\s*(.+?)\\s*}}","g");function dre(t){let r=[];if("string"==typeof t){let l;for(;l=jZ.exec(t);)r.push(l[1]);jZ.lastIndex=0}return r}function eR(t,r,l){const e=t.toString(),s=e.replace(jZ,(u,m)=>{let b=r[m];return null==b&&(l.push(function Zge(t){return new be(3003,!1)}()),b=""),b.toString()});return s==e?t:s}function E4(t){const r=[];let l=t.next();for(;!l.done;)r.push(l.value),l=t.next();return r}const Fve=/-+([a-z0-9])/g;function GZ(t){return t.replace(Fve,(...r)=>r[1].toUpperCase())}function Ml(t,r,l){switch(r.type){case 7:return t.visitTrigger(r,l);case 0:return t.visitState(r,l);case 1:return t.visitTransition(r,l);case 2:return t.visitSequence(r,l);case 3:return t.visitGroup(r,l);case 4:return t.visitAnimate(r,l);case 5:return t.visitKeyframes(r,l);case 6:return t.visitStyle(r,l);case 8:return t.visitReference(r,l);case 9:return t.visitAnimateChild(r,l);case 10:return t.visitAnimateRef(r,l);case 11:return t.visitQuery(r,l);case 12:return t.visitStagger(r,l);default:throw function Xge(t){return new be(3004,!1)}()}}function ure(t,r){return window.getComputedStyle(t)[r]}const Bve=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class hre extends BZ{normalizePropertyName(r,l){return GZ(r)}normalizeStyleValue(r,l,e,s){let u="";const m=e.toString().trim();if(Bve.has(l)&&0!==e&&"0"!==e)if("number"==typeof e)u="px";else{const b=e.match(/^[+-]?[\d\.]+([a-z]*)$/);b&&0==b[1].length&&s.push(function Kge(t,r){return new be(3005,!1)}())}return m+u}}const I4="*";function zve(t,r){const l=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(e=>function Hve(t,r,l){if(":"==t[0]){const C=function Uve(t,r){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,e)=>parseFloat(e)>parseFloat(l);case":decrement":return(l,e)=>parseFloat(e) *"}}(t,l);if("function"==typeof C)return void r.push(C);t=C}const e=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==e||e.length<4)return l.push(function cve(t){return new be(3015,!1)}()),r;const s=e[1],u=e[2],m=e[3];r.push(fre(s,m));"<"==u[0]&&!(s==I4&&m==I4)&&r.push(fre(m,s))}(e,l,r)):l.push(t),l}const k4=new Set(["true","1"]),P4=new Set(["false","0"]);function fre(t,r){const l=k4.has(t)||P4.has(t),e=k4.has(r)||P4.has(r);return(s,u)=>{let m=t==I4||t==s,b=r==I4||r==u;return!m&&l&&"boolean"==typeof s&&(m=s?k4.has(t):P4.has(t)),!b&&e&&"boolean"==typeof u&&(b=u?k4.has(r):P4.has(r)),m&&b}}const jve=new RegExp("s*:selfs*,?","g");function WZ(t,r,l,e){return new Gve(t).build(r,l,e)}class Gve{constructor(r){this._driver=r}build(r,l,e){const s=new Yve(l);return this._resetContextStyleTimingState(s),Ml(this,JP(r),s)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,l){let e=l.queryCount=0,s=l.depCount=0;const u=[],m=[];return"@"==r.name.charAt(0)&&l.errors.push(function Qge(){return new be(3006,!1)}()),r.definitions.forEach(b=>{if(this._resetContextStyleTimingState(l),0==b.type){const C=b,M=C.name;M.toString().split(/\s*,\s*/).forEach(I=>{C.name=I,u.push(this.visitState(C,l))}),C.name=M}else if(1==b.type){const C=this.visitTransition(b,l);e+=C.queryCount,s+=C.depCount,m.push(C)}else l.errors.push(function Jge(){return new be(3007,!1)}())}),{type:7,name:r.name,states:u,transitions:m,queryCount:e,depCount:s,options:null}}visitState(r,l){const e=this.visitStyle(r.styles,l),s=r.options&&r.options.params||null;if(e.containsDynamicStyles){const u=new Set,m=s||{};e.styles.forEach(b=>{b instanceof Map&&b.forEach(C=>{dre(C).forEach(M=>{m.hasOwnProperty(M)||u.add(M)})})}),u.size&&(E4(u.values()),l.errors.push(function eve(t,r){return new be(3008,!1)}()))}return{type:0,name:r.name,style:e,options:s?{params:s}:null}}visitTransition(r,l){l.queryCount=0,l.depCount=0;const e=Ml(this,JP(r.animation),l);return{type:1,matchers:zve(r.expr,l.errors),animation:e,queryCount:l.queryCount,depCount:l.depCount,options:Hb(r.options)}}visitSequence(r,l){return{type:2,steps:r.steps.map(e=>Ml(this,e,l)),options:Hb(r.options)}}visitGroup(r,l){const e=l.currentTime;let s=0;const u=r.steps.map(m=>{l.currentTime=e;const b=Ml(this,m,l);return s=Math.max(s,l.currentTime),b});return l.currentTime=s,{type:3,steps:u,options:Hb(r.options)}}visitAnimate(r,l){const e=function Zve(t,r){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return $Z(A4(t,r).duration,0,"");const l=t;if(l.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=$Z(0,0,"");return u.dynamic=!0,u.strValue=l,u}const s=A4(l,r);return $Z(s.duration,s.delay,s.easing)}(r.timings,l.errors);l.currentAnimateTimings=e;let s,u=r.styles?r.styles:lt({});if(5==u.type)s=this.visitKeyframes(u,l);else{let m=r.styles,b=!1;if(!m){b=!0;const M={};e.easing&&(M.easing=e.easing),m=lt(M)}l.currentTime+=e.duration+e.delay;const C=this.visitStyle(m,l);C.isEmptyStep=b,s=C}return l.currentAnimateTimings=null,{type:4,timings:e,style:s,options:null}}visitStyle(r,l){const e=this._makeStyleAst(r,l);return this._validateStyleAst(e,l),e}_makeStyleAst(r,l){const e=[],s=Array.isArray(r.styles)?r.styles:[r.styles];for(let b of s)"string"==typeof b?b===wd?e.push(b):l.errors.push(new be(3002,!1)):e.push(lre(b));let u=!1,m=null;return e.forEach(b=>{if(b instanceof Map&&(b.has("easing")&&(m=b.get("easing"),b.delete("easing")),!u))for(let C of b.values())if(C.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:e,easing:m,offset:r.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(r,l){const e=l.currentAnimateTimings;let s=l.currentTime,u=l.currentTime;e&&u>0&&(u-=e.duration+e.delay),r.styles.forEach(m=>{"string"!=typeof m&&m.forEach((b,C)=>{const M=l.collectedStyles.get(l.currentQuerySelector),I=M.get(C);let F=!0;I&&(u!=s&&u>=I.startTime&&s<=I.endTime&&(l.errors.push(function nve(t,r,l,e,s){return new be(3010,!1)}()),F=!1),u=I.startTime),F&&M.set(C,{startTime:u,endTime:s}),l.options&&function Lve(t,r,l){const e=r.params||{},s=dre(t);s.length&&s.forEach(u=>{e.hasOwnProperty(u)||l.push(function qge(t){return new be(3001,!1)}())})}(b,l.options,l.errors)})})}visitKeyframes(r,l){const e={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function ive(){return new be(3011,!1)}()),e;let u=0;const m=[];let b=!1,C=!1,M=0;const I=r.steps.map(ge=>{const se=this._makeStyleAst(ge,l);let Be=null!=se.offset?se.offset:function qve(t){if("string"==typeof t)return null;let r=null;if(Array.isArray(t))t.forEach(l=>{if(l instanceof Map&&l.has("offset")){const e=l;r=parseFloat(e.get("offset")),e.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const l=t;r=parseFloat(l.get("offset")),l.delete("offset")}return r}(se.styles),Fe=0;return null!=Be&&(u++,Fe=se.offset=Be),C=C||Fe<0||Fe>1,b=b||Fe0&&u{const Be=H>0?se==q?1:H*se:m[se],Fe=Be*ae;l.currentTime=Q+ne.delay+Fe,ne.duration=Fe,this._validateStyleAst(ge,l),ge.offset=Be,e.styles.push(ge)}),e}visitReference(r,l){return{type:8,animation:Ml(this,JP(r.animation),l),options:Hb(r.options)}}visitAnimateChild(r,l){return l.depCount++,{type:9,options:Hb(r.options)}}visitAnimateRef(r,l){return{type:10,animation:this.visitReference(r.animation,l),options:Hb(r.options)}}visitQuery(r,l){const e=l.currentQuerySelector,s=r.options||{};l.queryCount++,l.currentQuery=r;const[u,m]=function Wve(t){const r=!!t.split(/\s*,\s*/).find(l=>":self"==l);return r&&(t=t.replace(jve,"")),t=t.replace(/@\*/g,M4).replace(/@\w+/g,l=>M4+"-"+l.slice(1)).replace(/:animating/g,HZ),[t,r]}(r.selector);l.currentQuerySelector=e.length?e+" "+u:u,Tl(l.collectedStyles,l.currentQuerySelector,new Map);const b=Ml(this,JP(r.animation),l);return l.currentQuery=null,l.currentQuerySelector=e,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:m,animation:b,originalSelector:r.selector,options:Hb(r.options)}}visitStagger(r,l){l.currentQuery||l.errors.push(function sve(){return new be(3013,!1)}());const e="full"===r.timings?{duration:0,delay:0,easing:"full"}:A4(r.timings,l.errors,!0);return{type:12,animation:Ml(this,JP(r.animation),l),timings:e,options:null}}}class Yve{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hb(t){return t?(t=QP(t)).params&&(t.params=function $ve(t){return t?QP(t):null}(t.params)):t={},t}function $Z(t,r,l){return{duration:t,delay:r,easing:l}}function YZ(t,r,l,e,s,u,m=null,b=!1){return{type:1,element:t,keyframes:r,preStyleProps:l,postStyleProps:e,duration:s,delay:u,totalTime:s+u,easing:m,subTimeline:b}}class R4{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,l){let e=this._map.get(r);e||this._map.set(r,e=[]),e.push(...l)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const Qve=new RegExp(":enter","g"),e_e=new RegExp(":leave","g");function qZ(t,r,l,e,s,u=new Map,m=new Map,b,C,M=[]){return(new t_e).buildKeyframes(t,r,l,e,s,u,m,b,C,M)}class t_e{buildKeyframes(r,l,e,s,u,m,b,C,M,I=[]){M=M||new R4;const F=new ZZ(r,l,M,s,u,I,[]);F.options=C;const H=C.delay?vp(C.delay):0;F.currentTimeline.delayNextStep(H),F.currentTimeline.setStyles([m],null,F.errors,C),Ml(this,e,F);const q=F.timelines.filter(Q=>Q.containsAnimation());if(q.length&&b.size){let Q;for(let ne=q.length-1;ne>=0;ne--){const ae=q[ne];if(ae.element===l){Q=ae;break}}Q&&!Q.allowOnlyTimelineStyles()&&Q.setStyles([b],null,F.errors,C)}return q.length?q.map(Q=>Q.buildKeyframes()):[YZ(l,[],[],[],0,H,"",!1)]}visitTrigger(r,l){}visitState(r,l){}visitTransition(r,l){}visitAnimateChild(r,l){const e=l.subInstructions.get(l.element);if(e){const s=l.createSubContext(r.options),u=l.currentTimeline.currentTime,m=this._visitSubInstructions(e,s,s.options);u!=m&&l.transformIntoNewTimeline(m)}l.previousNode=r}visitAnimateRef(r,l){const e=l.createSubContext(r.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([r.options,r.animation.options],l,e),this.visitReference(r.animation,e),l.transformIntoNewTimeline(e.currentTimeline.currentTime),l.previousNode=r}_applyAnimationRefDelays(r,l,e){for(const s of r){const u=null==s?void 0:s.delay;if(u){const m="number"==typeof u?u:vp(eR(u,(null==s?void 0:s.params)??{},l.errors));e.delayNextStep(m)}}}_visitSubInstructions(r,l,e){let u=l.currentTimeline.currentTime;const m=null!=e.duration?vp(e.duration):null,b=null!=e.delay?vp(e.delay):null;return 0!==m&&r.forEach(C=>{const M=l.appendInstructionToTimeline(C,m,b);u=Math.max(u,M.duration+M.delay)}),u}visitReference(r,l){l.updateOptions(r.options,!0),Ml(this,r.animation,l),l.previousNode=r}visitSequence(r,l){const e=l.subContextCount;let s=l;const u=r.options;if(u&&(u.params||u.delay)&&(s=l.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=O4);const m=vp(u.delay);s.delayNextStep(m)}r.steps.length&&(r.steps.forEach(m=>Ml(this,m,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>e&&s.transformIntoNewTimeline()),l.previousNode=r}visitGroup(r,l){const e=[];let s=l.currentTimeline.currentTime;const u=r.options&&r.options.delay?vp(r.options.delay):0;r.steps.forEach(m=>{const b=l.createSubContext(r.options);u&&b.delayNextStep(u),Ml(this,m,b),s=Math.max(s,b.currentTimeline.currentTime),e.push(b.currentTimeline)}),e.forEach(m=>l.currentTimeline.mergeTimelineCollectedStyles(m)),l.transformIntoNewTimeline(s),l.previousNode=r}_visitTiming(r,l){if(r.dynamic){const e=r.strValue;return A4(l.params?eR(e,l.params,l.errors):e,l.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,l){const e=l.currentAnimateTimings=this._visitTiming(r.timings,l),s=l.currentTimeline;e.delay&&(l.incrementTime(e.delay),s.snapshotCurrentStyles());const u=r.style;5==u.type?this.visitKeyframes(u,l):(l.incrementTime(e.duration),this.visitStyle(u,l),s.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=r}visitStyle(r,l){const e=l.currentTimeline,s=l.currentAnimateTimings;!s&&e.hasCurrentStyleProperties()&&e.forwardFrame();const u=s&&s.easing||r.easing;r.isEmptyStep?e.applyEmptyStep(u):e.setStyles(r.styles,u,l.errors,l.options),l.previousNode=r}visitKeyframes(r,l){const e=l.currentAnimateTimings,s=l.currentTimeline.duration,u=e.duration,b=l.createSubContext().currentTimeline;b.easing=e.easing,r.styles.forEach(C=>{b.forwardTime((C.offset||0)*u),b.setStyles(C.styles,C.easing,l.errors,l.options),b.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(b),l.transformIntoNewTimeline(s+u),l.previousNode=r}visitQuery(r,l){const e=l.currentTimeline.currentTime,s=r.options||{},u=s.delay?vp(s.delay):0;u&&(6===l.previousNode.type||0==e&&l.currentTimeline.hasCurrentStyleProperties())&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=O4);let m=e;const b=l.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,l.errors);l.currentQueryTotal=b.length;let C=null;b.forEach((M,I)=>{l.currentQueryIndex=I;const F=l.createSubContext(r.options,M);u&&F.delayNextStep(u),M===l.element&&(C=F.currentTimeline),Ml(this,r.animation,F),F.currentTimeline.applyStylesToKeyframe(),m=Math.max(m,F.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(m),C&&(l.currentTimeline.mergeTimelineCollectedStyles(C),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=r}visitStagger(r,l){const e=l.parentContext,s=l.currentTimeline,u=r.timings,m=Math.abs(u.duration),b=m*(l.currentQueryTotal-1);let C=m*l.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":C=b-C;break;case"full":C=e.currentStaggerTime}const I=l.currentTimeline;C&&I.delayNextStep(C);const F=I.currentTime;Ml(this,r.animation,l),l.previousNode=r,e.currentStaggerTime=s.currentTime-F+(s.startTime-e.currentTimeline.startTime)}}const O4={};class ZZ{constructor(r,l,e,s,u,m,b,C){this._driver=r,this.element=l,this.subInstructions=e,this._enterClassName=s,this._leaveClassName=u,this.errors=m,this.timelines=b,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=O4,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new L4(this._driver,l,0),b.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,l){if(!r)return;const e=r;let s=this.options;null!=e.duration&&(s.duration=vp(e.duration)),null!=e.delay&&(s.delay=vp(e.delay));const u=e.params;if(u){let m=s.params;m||(m=this.options.params={}),Object.keys(u).forEach(b=>{(!l||!m.hasOwnProperty(b))&&(m[b]=eR(u[b],m,this.errors))})}}_copyOptions(){const r={};if(this.options){const l=this.options.params;if(l){const e=r.params={};Object.keys(l).forEach(s=>{e[s]=l[s]})}}return r}createSubContext(r=null,l,e){const s=l||this.element,u=new ZZ(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,e||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(r),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(r){return this.previousNode=O4,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,l,e){const s={duration:l??r.duration,delay:this.currentTimeline.currentTime+(e??0)+r.delay,easing:""},u=new n_e(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,l,e,s,u,m){let b=[];if(s&&b.push(this.element),r.length>0){r=(r=r.replace(Qve,"."+this._enterClassName)).replace(e_e,"."+this._leaveClassName);let M=this._driver.query(this.element,r,1!=e);0!==e&&(M=e<0?M.slice(M.length+e,M.length):M.slice(0,e)),b.push(...M)}return!u&&0==b.length&&m.push(function lve(t){return new be(3014,!1)}()),b}}class L4{constructor(r,l,e,s){this._driver=r,this.element=l,this.startTime=e,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const l=1===this._keyframes.size&&this._pendingStyles.size;this.duration||l?(this.forwardTime(this.currentTime+r),l&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,l){return this.applyStylesToKeyframe(),new L4(this._driver,r,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,l){this._localTimelineStyles.set(r,l),this._globalTimelineStyles.set(r,l),this._styleSummary.set(r,{time:this.currentTime,value:l})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[l,e]of this._globalTimelineStyles)this._backFill.set(l,e||wd),this._currentKeyframe.set(l,wd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,l,e,s){l&&this._previousKeyframe.set("easing",l);const u=s&&s.params||{},m=function i_e(t,r){const l=new Map;let e;return t.forEach(s=>{if("*"===s){e=e||r.keys();for(let u of e)l.set(u,wd)}else hv(s,l)}),l}(r,this._globalTimelineStyles);for(let[b,C]of m){const M=eR(C,u,e);this._pendingStyles.set(b,M),this._localTimelineStyles.has(b)||this._backFill.set(b,this._globalTimelineStyles.get(b)??wd),this._updateStyle(b,M)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,l)=>{this._currentKeyframe.set(l,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,l)=>{this._currentKeyframe.has(l)||this._currentKeyframe.set(l,r)}))}snapshotCurrentStyles(){for(let[r,l]of this._localTimelineStyles)this._pendingStyles.set(r,l),this._updateStyle(r,l)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let l in this._currentKeyframe)r.push(l);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((l,e)=>{const s=this._styleSummary.get(e);(!s||l.time>s.time)&&this._updateStyle(e,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,l=new Set,e=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((b,C)=>{const M=hv(b,new Map,this._backFill);M.forEach((I,F)=>{"!"===I?r.add(F):I===wd&&l.add(F)}),e||M.set("offset",C/this.duration),s.push(M)});const u=r.size?E4(r.values()):[],m=l.size?E4(l.values()):[];if(e){const b=s[0],C=new Map(b);b.set("offset",0),C.set("offset",1),s=[b,C]}return YZ(this.element,s,u,m,this.duration,this.startTime,this.easing,!1)}}class n_e extends L4{constructor(r,l,e,s,u,m,b=!1){super(r,l,m.delay),this.keyframes=e,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=b,this.timings={duration:m.duration,delay:m.delay,easing:m.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:l,duration:e,easing:s}=this.timings;if(this._stretchStartingKeyframe&&l){const u=[],m=e+l,b=l/m,C=hv(r[0]);C.set("offset",0),u.push(C);const M=hv(r[0]);M.set("offset",gre(b)),u.push(M);const I=r.length-1;for(let F=1;F<=I;F++){let H=hv(r[F]);const q=H.get("offset");H.set("offset",gre((l+q*e)/m)),u.push(H)}e=m,l=0,s="",r=u}return YZ(this.element,r,this.preStyleProps,this.postStyleProps,e,l,s,!0)}}function gre(t,r=3){const l=Math.pow(10,r-1);return Math.round(t*l)/l}function vre(t,r,l,e,s,u,m,b,C,M,I,F,H){return{type:0,element:t,triggerName:r,isRemovalTransition:s,fromState:l,fromStyles:u,toState:e,toStyles:m,timelines:b,queriedElements:C,preStyleProps:M,postStyleProps:I,totalTime:F,errors:H}}const XZ={};class _re{constructor(r,l,e){this._triggerName=r,this.ast=l,this._stateStyles=e}match(r,l,e,s){return function r_e(t,r,l,e,s){return t.some(u=>u(r,l,e,s))}(this.ast.matchers,r,l,e,s)}buildStyles(r,l,e){let s=this._stateStyles.get("*");return void 0!==r&&(s=this._stateStyles.get(null==r?void 0:r.toString())||s),s?s.buildStyles(l,e):new Map}build(r,l,e,s,u,m,b,C,M,I){var Qu;const F=[],H=this.ast.options&&this.ast.options.params||XZ,Q=this.buildStyles(e,b&&b.params||XZ,F),ne=C&&C.params||XZ,ae=this.buildStyles(s,ne,F),ge=new Set,se=new Map,Be=new Map,Fe="void"===s,Ft={params:a_e(ne,H),delay:null==(Qu=this.ast.options)?void 0:Qu.delay},Sn=I?[]:qZ(r,l,this.ast.animation,u,m,Q,ae,Ft,M,F);let ai=0;if(Sn.forEach(Al=>{ai=Math.max(Al.duration+Al.delay,ai)}),F.length)return vre(l,this._triggerName,e,s,Fe,Q,ae,[],[],se,Be,ai,F);Sn.forEach(Al=>{const iR=Al.element,rR=Tl(se,iR,new Set);Al.preStyleProps.forEach(kS=>rR.add(kS));const aR=Tl(Be,iR,new Set);Al.postStyleProps.forEach(kS=>aR.add(kS)),iR!==l&&ge.add(iR)});const fo=E4(ge.values());return vre(l,this._triggerName,e,s,Fe,Q,ae,Sn,fo,se,Be,ai)}}function a_e(t,r){const l=QP(r);for(const e in t)t.hasOwnProperty(e)&&null!=t[e]&&(l[e]=t[e]);return l}class o_e{constructor(r,l,e){this.styles=r,this.defaultParams=l,this.normalizer=e}buildStyles(r,l){const e=new Map,s=QP(this.defaultParams);return Object.keys(r).forEach(u=>{const m=r[u];null!==m&&(s[u]=m)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((m,b)=>{m&&(m=eR(m,s,l));const C=this.normalizer.normalizePropertyName(b,l);m=this.normalizer.normalizeStyleValue(b,C,m,l),e.set(b,m)})}),e}}class l_e{constructor(r,l,e){this.name=r,this.ast=l,this._normalizer=e,this.transitionFactories=[],this.states=new Map,l.states.forEach(s=>{this.states.set(s.name,new o_e(s.style,s.options&&s.options.params||{},e))}),yre(this.states,"true","1"),yre(this.states,"false","0"),l.transitions.forEach(s=>{this.transitionFactories.push(new _re(r,s,this.states))}),this.fallbackTransition=function c_e(t,r,l){return new _re(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(m,b)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,l,e,s){return this.transitionFactories.find(m=>m.match(r,l,e,s))||null}matchStyles(r,l,e){return this.fallbackTransition.buildStyles(r,l,e)}}function yre(t,r,l){t.has(r)?t.has(l)||t.set(l,t.get(r)):t.has(l)&&t.set(r,t.get(l))}const d_e=new R4;class u_e{constructor(r,l,e){this.bodyNode=r,this._driver=l,this._normalizer=e,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,l){const e=[],u=WZ(this._driver,l,e,[]);if(e.length)throw function mve(t){return new be(3503,!1)}();this._animations.set(r,u)}_buildPlayer(r,l,e){const s=r.element,u=tre(this._normalizer,r.keyframes,l,e);return this._driver.animate(s,u,r.duration,r.delay,r.easing,[],!0)}create(r,l,e={}){const s=[],u=this._animations.get(r);let m;const b=new Map;if(u?(m=qZ(this._driver,l,u,zZ,D4,new Map,new Map,e,d_e,s),m.forEach(I=>{const F=Tl(b,I.element,new Map);I.postStyleProps.forEach(H=>F.set(H,null))})):(s.push(function gve(){return new be(3300,!1)}()),m=[]),s.length)throw function vve(t){return new be(3504,!1)}();b.forEach((I,F)=>{I.forEach((H,q)=>{I.set(q,this._driver.computeStyle(F,q,wd))})});const M=uv(m.map(I=>{const F=b.get(I.element);return this._buildPlayer(I,new Map,F)}));return this._playersById.set(r,M),M.onDestroy(()=>this.destroy(r)),this.players.push(M),M}destroy(r){const l=this._getPlayer(r);l.destroy(),this._playersById.delete(r);const e=this.players.indexOf(l);e>=0&&this.players.splice(e,1)}_getPlayer(r){const l=this._playersById.get(r);if(!l)throw function _ve(t){return new be(3301,!1)}();return l}listen(r,l,e,s){const u=LZ(l,"","","");return RZ(this._getPlayer(r),e,u,s),()=>{}}command(r,l,e,s){if("register"==e)return void this.register(r,s[0]);if("create"==e)return void this.create(r,l,s[0]||{});const u=this._getPlayer(r);switch(e){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const bre="ng-animate-queued",KZ="ng-animate-disabled",g_e=[],wre={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},v_e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Td="__ng_removed";class QZ{get params(){return this.options.params}constructor(r,l=""){this.namespaceId=l;const e=r&&r.hasOwnProperty("value");if(this.value=function w_e(t){return t??null}(e?r.value:r),e){const u=QP(r);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(r){const l=r.params;if(l){const e=this.options.params;Object.keys(l).forEach(s=>{null==e[s]&&(e[s]=l[s])})}}}const tR="void",JZ=new QZ(tR);class __e{constructor(r,l,e){this.id=r,this.hostElement=l,this._engine=e,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Sc(l,this._hostClassName)}listen(r,l,e,s){if(!this._triggers.has(l))throw function yve(t,r){return new be(3302,!1)}();if(null==e||0==e.length)throw function bve(t){return new be(3303,!1)}();if(!function x_e(t){return"start"==t||"done"==t}(e))throw function wve(t,r){return new be(3400,!1)}();const u=Tl(this._elementListeners,r,[]),m={name:l,phase:e,callback:s};u.push(m);const b=Tl(this._engine.statesByElement,r,new Map);return b.has(l)||(Sc(r,T4),Sc(r,T4+"-"+l),b.set(l,JZ)),()=>{this._engine.afterFlush(()=>{const C=u.indexOf(m);C>=0&&u.splice(C,1),this._triggers.has(l)||b.delete(l)})}}register(r,l){return!this._triggers.has(r)&&(this._triggers.set(r,l),!0)}_getTrigger(r){const l=this._triggers.get(r);if(!l)throw function xve(t){return new be(3401,!1)}();return l}trigger(r,l,e,s=!0){const u=this._getTrigger(l),m=new eX(this.id,l,r);let b=this._engine.statesByElement.get(r);b||(Sc(r,T4),Sc(r,T4+"-"+l),this._engine.statesByElement.set(r,b=new Map));let C=b.get(l);const M=new QZ(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&C&&M.absorbOptions(C.options),b.set(l,M),C||(C=JZ),M.value!==tR&&C.value===M.value){if(!function D_e(t,r){const l=Object.keys(t),e=Object.keys(r);if(l.length!=e.length)return!1;for(let s=0;s{zb(r,ae),Ku(r,ge)})}return}const H=Tl(this._engine.playersByElement,r,[]);H.forEach(ne=>{ne.namespaceId==this.id&&ne.triggerName==l&&ne.queued&&ne.destroy()});let q=u.matchTransition(C.value,M.value,r,M.params),Q=!1;if(!q){if(!s)return;q=u.fallbackTransition,Q=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:l,transition:q,fromState:C,toState:M,player:m,isFallbackTransition:Q}),Q||(Sc(r,bre),m.onStart(()=>{AS(r,bre)})),m.onDone(()=>{let ne=this.players.indexOf(m);ne>=0&&this.players.splice(ne,1);const ae=this._engine.playersByElement.get(r);if(ae){let ge=ae.indexOf(m);ge>=0&&ae.splice(ge,1)}}),this.players.push(m),H.push(m),m}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(l=>l.delete(r)),this._elementListeners.forEach((l,e)=>{this._elementListeners.set(e,l.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const l=this._engine.playersByElement.get(r);l&&(l.forEach(e=>e.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,l){const e=this._engine.driver.query(r,M4,!0);e.forEach(s=>{if(s[Td])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(m=>m.triggerLeaveAnimation(s,l,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>e.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,l,e,s){const u=this._engine.statesByElement.get(r),m=new Map;if(u){const b=[];if(u.forEach((C,M)=>{if(m.set(M,C.value),this._triggers.has(M)){const I=this.trigger(r,M,tR,s);I&&b.push(I)}}),b.length)return this._engine.markElementAsRemoved(this.id,r,!0,l,m),e&&uv(b).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const l=this._elementListeners.get(r),e=this._engine.statesByElement.get(r);if(l&&e){const s=new Set;l.forEach(u=>{const m=u.name;if(s.has(m))return;s.add(m);const C=this._triggers.get(m).fallbackTransition,M=e.get(m)||JZ,I=new QZ(tR),F=new eX(this.id,m,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:m,transition:C,fromState:M,toState:I,player:F,isFallbackTransition:!0})})}}removeNode(r,l){const e=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,l),this.triggerLeaveAnimation(r,l,!0))return;let s=!1;if(e.totalAnimations){const u=e.players.length?e.playersByQueriedElement.get(r):[];if(u&&u.length)s=!0;else{let m=r;for(;m=m.parentNode;)if(e.statesByElement.get(m)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)e.markElementAsRemoved(this.id,r,!1,l);else{const u=r[Td];(!u||u===wre)&&(e.afterFlush(()=>this.clearElementCache(r)),e.destroyInnerAnimations(r),e._onRemovalComplete(r,l))}}insertNode(r,l){Sc(r,this._hostClassName)}drainQueuedTransitions(r){const l=[];return this._queue.forEach(e=>{const s=e.player;if(s.destroyed)return;const u=e.element,m=this._elementListeners.get(u);m&&m.forEach(b=>{if(b.name==e.triggerName){const C=LZ(u,e.triggerName,e.fromState.value,e.toState.value);C._data=r,RZ(e.player,b.phase,C,b.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):l.push(e)}),this._queue=[],l.sort((e,s)=>{const u=e.transition.ast.depCount,m=s.transition.ast.depCount;return 0==u||0==m?u-m:this._engine.driver.containsElement(e.element,s.element)?1:-1})}destroy(r){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}}class y_e{_onRemovalComplete(r,l){this.onRemovalComplete(r,l)}constructor(r,l,e){this.bodyNode=r,this.driver=l,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,u)=>{}}get queuedPlayers(){const r=[];return this._namespaceList.forEach(l=>{l.players.forEach(e=>{e.queued&&r.push(e)})}),r}createNamespace(r,l){const e=new __e(r,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(e,l):(this.newHostElements.set(l,e),this.collectEnterElement(l)),this._namespaceLookup[r]=e}_balanceNamespaceList(r,l){const e=this._namespaceList,s=this.namespacesByHostElement;if(e.length-1>=0){let m=!1,b=this.driver.getParentElement(l);for(;b;){const C=s.get(b);if(C){const M=e.indexOf(C);e.splice(M+1,0,r),m=!0;break}b=this.driver.getParentElement(b)}m||e.unshift(r)}else e.push(r);return s.set(l,r),r}register(r,l){let e=this._namespaceLookup[r];return e||(e=this.createNamespace(r,l)),e}registerTrigger(r,l,e){let s=this._namespaceLookup[r];s&&s.register(l,e)&&this.totalAnimations++}destroy(r,l){r&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const e=this._fetchNamespace(r);this.namespacesByHostElement.delete(e.hostElement);const s=this._namespaceList.indexOf(e);s>=0&&this._namespaceList.splice(s,1),e.destroy(l),delete this._namespaceLookup[r]}))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const l=new Set,e=this.statesByElement.get(r);if(e)for(let s of e.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&l.add(u)}return l}trigger(r,l,e,s){if(F4(l)){const u=this._fetchNamespace(r);if(u)return u.trigger(l,e,s),!0}return!1}insertNode(r,l,e,s){if(!F4(l))return;const u=l[Td];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const m=this.collectedLeaveElements.indexOf(l);m>=0&&this.collectedLeaveElements.splice(m,1)}if(r){const m=this._fetchNamespace(r);m&&m.insertNode(l,e)}s&&this.collectEnterElement(l)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,l){l?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Sc(r,KZ)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),AS(r,KZ))}removeNode(r,l,e){if(F4(l)){const s=r?this._fetchNamespace(r):null;s?s.removeNode(l,e):this.markElementAsRemoved(r,l,!1,e);const u=this.namespacesByHostElement.get(l);u&&u.id!==r&&u.removeNode(l,e)}else this._onRemovalComplete(l,e)}markElementAsRemoved(r,l,e,s,u){this.collectedLeaveElements.push(l),l[Td]={namespaceId:r,setForRemoval:s,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:u}}listen(r,l,e,s,u){return F4(l)?this._fetchNamespace(r).listen(l,e,s,u):()=>{}}_buildInstruction(r,l,e,s,u){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,e,s,r.fromState.options,r.toState.options,l,u)}destroyInnerAnimations(r){let l=this.driver.query(r,M4,!0);l.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(r,HZ,!0),l.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(r){const l=this.playersByElement.get(r);l&&l.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(r){const l=this.playersByQueriedElement.get(r);l&&l.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return uv(this.players).onDone(()=>r());r()})}processLeaveNode(r){var e;const l=r[Td];if(l&&l.setForRemoval){if(r[Td]=wre,l.namespaceId){this.destroyInnerAnimations(r);const s=this._fetchNamespace(l.namespaceId);s&&s.clearElementCache(r)}this._onRemovalComplete(r,l.setForRemoval)}null!=(e=r.classList)&&e.contains(KZ)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(r=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,s)=>this._balanceNamespaceList(e,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],l.length?uv(l).onDone(()=>{e.forEach(s=>s())}):e.forEach(s=>s())}}reportError(r){throw function Cve(t){return new be(3402,!1)}()}_flushAnimations(r,l){const e=new R4,s=[],u=new Map,m=[],b=new Map,C=new Map,M=new Map,I=new Set;this.disabledNodes.forEach(ut=>{I.add(ut);const Tt=this.driver.query(ut,".ng-animate-queued",!0);for(let Nt=0;Nt{const Nt=zZ+ne++;Q.set(Tt,Nt),ut.forEach($n=>Sc($n,Nt))});const ae=[],ge=new Set,se=new Set;for(let ut=0;utge.add($n)):se.add(Tt))}const Be=new Map,Fe=Sre(H,Array.from(ge));Fe.forEach((ut,Tt)=>{const Nt=D4+ne++;Be.set(Tt,Nt),ut.forEach($n=>Sc($n,Nt))}),r.push(()=>{q.forEach((ut,Tt)=>{const Nt=Q.get(Tt);ut.forEach($n=>AS($n,Nt))}),Fe.forEach((ut,Tt)=>{const Nt=Be.get(Tt);ut.forEach($n=>AS($n,Nt))}),ae.forEach(ut=>{this.processLeaveNode(ut)})});const Ft=[],Sn=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(l).forEach(Nt=>{const $n=Nt.player,qa=Nt.element;if(Ft.push($n),this.collectedEnterElements.length){const ko=qa[Td];if(ko&&ko.setForMove){if(ko.previousTriggersValues&&ko.previousTriggersValues.has(Nt.triggerName)){const Ub=ko.previousTriggersValues.get(Nt.triggerName),Dc=this.statesByElement.get(Nt.element);if(Dc&&Dc.has(Nt.triggerName)){const H4=Dc.get(Nt.triggerName);H4.value=Ub,Dc.set(Nt.triggerName,H4)}}return void $n.destroy()}}const Ju=!F||!this.driver.containsElement(F,qa),El=Be.get(qa),fv=Q.get(qa),_r=this._buildInstruction(Nt,e,fv,El,Ju);if(_r.errors&&_r.errors.length)return void Sn.push(_r);if(Ju)return $n.onStart(()=>zb(qa,_r.fromStyles)),$n.onDestroy(()=>Ku(qa,_r.toStyles)),void s.push($n);if(Nt.isFallbackTransition)return $n.onStart(()=>zb(qa,_r.fromStyles)),$n.onDestroy(()=>Ku(qa,_r.toStyles)),void s.push($n);const Gre=[];_r.timelines.forEach(ko=>{ko.stretchStartingKeyframe=!0,this.disabledNodes.has(ko.element)||Gre.push(ko)}),_r.timelines=Gre,e.append(qa,_r.timelines),m.push({instruction:_r,player:$n,element:qa}),_r.queriedElements.forEach(ko=>Tl(b,ko,[]).push($n)),_r.preStyleProps.forEach((ko,Ub)=>{if(ko.size){let Dc=C.get(Ub);Dc||C.set(Ub,Dc=new Set),ko.forEach((H4,cX)=>Dc.add(cX))}}),_r.postStyleProps.forEach((ko,Ub)=>{let Dc=M.get(Ub);Dc||M.set(Ub,Dc=new Set),ko.forEach((H4,cX)=>Dc.add(cX))})});if(Sn.length){const ut=[];Sn.forEach(Tt=>{ut.push(function Sve(t,r){return new be(3505,!1)}())}),Ft.forEach(Tt=>Tt.destroy()),this.reportError(ut)}const ai=new Map,fo=new Map;m.forEach(ut=>{const Tt=ut.element;e.has(Tt)&&(fo.set(Tt,Tt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,ai))}),s.forEach(ut=>{const Tt=ut.element;this._getPreviousPlayers(Tt,!1,ut.namespaceId,ut.triggerName,null).forEach($n=>{Tl(ai,Tt,[]).push($n),$n.destroy()})});const Qu=ae.filter(ut=>Tre(ut,C,M)),Al=new Map;Cre(Al,this.driver,se,M,wd).forEach(ut=>{Tre(ut,C,M)&&Qu.push(ut)});const rR=new Map;q.forEach((ut,Tt)=>{Cre(rR,this.driver,new Set(ut),C,"!")}),Qu.forEach(ut=>{const Tt=Al.get(ut),Nt=rR.get(ut);Al.set(ut,new Map([...(null==Tt?void 0:Tt.entries())??[],...(null==Nt?void 0:Nt.entries())??[]]))});const aR=[],kS=[],jre={};m.forEach(ut=>{const{element:Tt,player:Nt,instruction:$n}=ut;if(e.has(Tt)){if(I.has(Tt))return Nt.onDestroy(()=>Ku(Tt,$n.toStyles)),Nt.disabled=!0,Nt.overrideTotalTime($n.totalTime),void s.push(Nt);let qa=jre;if(fo.size>1){let El=Tt;const fv=[];for(;El=El.parentNode;){const _r=fo.get(El);if(_r){qa=_r;break}fv.push(El)}fv.forEach(_r=>fo.set(_r,qa))}const Ju=this._buildAnimation(Nt.namespaceId,$n,ai,u,rR,Al);if(Nt.setRealPlayer(Ju),qa===jre)aR.push(Nt);else{const El=this.playersByElement.get(qa);El&&El.length&&(Nt.parentPlayer=uv(El)),s.push(Nt)}}else zb(Tt,$n.fromStyles),Nt.onDestroy(()=>Ku(Tt,$n.toStyles)),kS.push(Nt),I.has(Tt)&&s.push(Nt)}),kS.forEach(ut=>{const Tt=u.get(ut.element);if(Tt&&Tt.length){const Nt=uv(Tt);ut.setRealPlayer(Nt)}}),s.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Ju.destroyed);qa.length?C_e(this,Tt,qa):this.processLeaveNode(Tt)}return ae.length=0,aR.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Tt=this.players.indexOf(ut);this.players.splice(Tt,1)}),ut.play()}),aR}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,l,e,s,u){let m=[];if(l){const b=this.playersByQueriedElement.get(r);b&&(m=b)}else{const b=this.playersByElement.get(r);if(b){const C=!u||u==tR;b.forEach(M=>{M.queued||!C&&M.triggerName!=s||m.push(M)})}}return(e||s)&&(m=m.filter(b=>!(e&&e!=b.namespaceId||s&&s!=b.triggerName))),m}_beforeAnimationBuild(r,l,e){const u=l.element,m=l.isRemovalTransition?void 0:r,b=l.isRemovalTransition?void 0:l.triggerName;for(const C of l.timelines){const M=C.element,I=M!==u,F=Tl(e,M,[]);this._getPreviousPlayers(M,I,m,b,l.toState).forEach(q=>{const Q=q.getRealPlayer();Q.beforeDestroy&&Q.beforeDestroy(),q.destroy(),F.push(q)})}zb(u,l.fromStyles)}_buildAnimation(r,l,e,s,u,m){const b=l.triggerName,C=l.element,M=[],I=new Set,F=new Set,H=l.timelines.map(Q=>{const ne=Q.element;I.add(ne);const ae=ne[Td];if(ae&&ae.removedBeforeQueried)return new $u(Q.duration,Q.delay);const ge=ne!==C,se=function S_e(t){const r=[];return Dre(t,r),r}((e.get(ne)||g_e).map(ai=>ai.getRealPlayer())).filter(ai=>!!ai.element&&ai.element===ne),Be=u.get(ne),Fe=m.get(ne),Ft=tre(this._normalizer,Q.keyframes,Be,Fe),Sn=this._buildPlayer(Q,Ft,se);if(Q.subTimeline&&s&&F.add(ne),ge){const ai=new eX(r,b,ne);ai.setRealPlayer(Sn),M.push(ai)}return Sn});M.forEach(Q=>{Tl(this.playersByQueriedElement,Q.element,[]).push(Q),Q.onDone(()=>function b_e(t,r,l){let e=t.get(r);if(e){if(e.length){const s=e.indexOf(l);e.splice(s,1)}0==e.length&&t.delete(r)}return e}(this.playersByQueriedElement,Q.element,Q))}),I.forEach(Q=>Sc(Q,sre));const q=uv(H);return q.onDestroy(()=>{I.forEach(Q=>AS(Q,sre)),Ku(C,l.toStyles)}),F.forEach(Q=>{Tl(s,Q,[]).push(q)}),q}_buildPlayer(r,l,e){return l.length>0?this.driver.animate(r.element,l,r.duration,r.delay,r.easing,e):new $u(r.duration,r.delay)}}class eX{constructor(r,l,e){this.namespaceId=r,this.triggerName=l,this.element=e,this._player=new $u,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((l,e)=>{l.forEach(s=>RZ(r,e,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const l=this._player;l.triggerCallback&&r.onStart(()=>l.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,l){Tl(this._queuedCallbacks,r,[]).push(l)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const l=this._player;l.triggerCallback&&l.triggerCallback(r)}}function F4(t){return t&&1===t.nodeType}function xre(t,r){const l=t.style.display;return t.style.display=r??"none",l}function Cre(t,r,l,e,s){const u=[];l.forEach(C=>u.push(xre(C)));const m=[];e.forEach((C,M)=>{const I=new Map;C.forEach(F=>{const H=r.computeStyle(M,F,s);I.set(F,H),(!H||0==H.length)&&(M[Td]=v_e,m.push(M))}),t.set(M,I)});let b=0;return l.forEach(C=>xre(C,u[b++])),m}function Sre(t,r){const l=new Map;if(t.forEach(b=>l.set(b,[])),0==r.length)return l;const s=new Set(r),u=new Map;function m(b){if(!b)return 1;let C=u.get(b);if(C)return C;const M=b.parentNode;return C=l.has(M)?M:s.has(M)?1:m(M),u.set(b,C),C}return r.forEach(b=>{const C=m(b);1!==C&&l.get(C).push(b)}),l}function Sc(t,r){var l;null==(l=t.classList)||l.add(r)}function AS(t,r){var l;null==(l=t.classList)||l.remove(r)}function C_e(t,r,l){uv(l).onDone(()=>t.processLeaveNode(r))}function Dre(t,r){for(let l=0;ls.add(u)):r.set(t,e),l.delete(t),!0}class nR{constructor(r,l,e){this._driver=l,this._normalizer=e,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new y_e(r.body,l,e),this._timelineEngine=new u_e(r.body,l,e),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(r,l,e,s,u){const m=r+"-"+s;let b=this._triggerCache[m];if(!b){const C=[],I=WZ(this._driver,u,C,[]);if(C.length)throw function fve(t,r){return new be(3404,!1)}();b=function s_e(t,r,l){return new l_e(t,r,l)}(s,I,this._normalizer),this._triggerCache[m]=b}this._transitionEngine.registerTrigger(l,s,b)}register(r,l){this._transitionEngine.register(r,l)}destroy(r,l){this._transitionEngine.destroy(r,l)}onInsert(r,l,e,s){this._transitionEngine.insertNode(r,l,e,s)}onRemove(r,l,e){this._transitionEngine.removeNode(r,l,e)}disableAnimations(r,l){this._transitionEngine.markElementAsDisabled(r,l)}process(r,l,e,s){if("@"==e.charAt(0)){const[u,m]=nre(e);this._timelineEngine.command(u,l,m,s)}else this._transitionEngine.trigger(r,l,e,s)}listen(r,l,e,s,u){if("@"==e.charAt(0)){const[m,b]=nre(e);return this._timelineEngine.listen(m,l,b,u)}return this._transitionEngine.listen(r,l,e,s,u)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(r){this._transitionEngine.afterFlushAnimationsDone(r)}}let M_e=(()=>{class r{constructor(e,s,u){this._element=e,this._startStyles=s,this._endStyles=u,this._state=0;let m=r.initialStylesByElement.get(e);m||r.initialStylesByElement.set(e,m=new Map),this._initialStyles=m}start(){this._state<1&&(this._startStyles&&Ku(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ku(this._element,this._initialStyles),this._endStyles&&(Ku(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(zb(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zb(this._element,this._endStyles),this._endStyles=null),Ku(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function tX(t){let r=null;return t.forEach((l,e)=>{(function A_e(t){return"display"===t||"position"===t})(e)&&(r=r||new Map,r.set(e,l))}),r}class Mre{constructor(r,l,e,s){this.element=r,this.keyframes=l,this.options=e,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map;const l=()=>this._onFinish();this.domPlayer.addEventListener("finish",l),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",l)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const l=[];return r.forEach(e=>{l.push(Object.fromEntries(e))}),l}_triggerWebAnimation(r,l,e){return r.animate(this._convertKeyframesToObject(l),e)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,s)=>{"offset"!==s&&r.set(s,this._finished?e:ure(this.element,s))}),this.currentSnapshot=r}triggerCallback(r){const l="start"===r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}class Are{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,l){return!1}containsElement(r,l){return rre(r,l)}getParentElement(r){return FZ(r)}query(r,l,e){return are(r,l,e)}computeStyle(r,l,e){return window.getComputedStyle(r)[l]}animate(r,l,e,s,u,m=[]){const C={duration:e,delay:s,fill:0==s?"both":"forwards"};u&&(C.easing=u);const M=new Map,I=m.filter(q=>q instanceof Mre);(function Nve(t,r){return 0===t||0===r})(e,s)&&I.forEach(q=>{q.currentSnapshot.forEach((Q,ne)=>M.set(ne,Q))});let F=function Ove(t){return t.length?t[0]instanceof Map?t:t.map(r=>lre(r)):[]}(l).map(q=>hv(q));F=function Vve(t,r,l){if(l.size&&r.length){let e=r[0],s=[];if(l.forEach((u,m)=>{e.has(m)||s.push(m),e.set(m,u)}),s.length)for(let u=1;um.set(b,ure(t,b)))}}return r}(r,F,M);const H=function T_e(t,r){let l=null,e=null;return Array.isArray(r)&&r.length?(l=tX(r[0]),r.length>1&&(e=tX(r[r.length-1]))):r instanceof Map&&(l=tX(r)),l||e?new M_e(t,l,e):null}(r,F);return new Mre(r,F,C,H)}}const Ere="@.disabled";class Ire{constructor(r,l,e,s){this.namespaceId=r,this.delegate=l,this.engine=e,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(r){var l,e;null==(e=(l=this.delegate).destroyNode)||e.call(l,r)}destroy(){var r;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null==(r=this._onDestroy)||r.call(this)}createElement(r,l){return this.delegate.createElement(r,l)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,l){this.delegate.appendChild(r,l),this.engine.onInsert(this.namespaceId,l,r,!1)}insertBefore(r,l,e,s=!0){this.delegate.insertBefore(r,l,e),this.engine.onInsert(this.namespaceId,l,r,s)}removeChild(r,l,e){this.engine.onRemove(this.namespaceId,l,this.delegate)}selectRootElement(r,l){return this.delegate.selectRootElement(r,l)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,l,e,s){this.delegate.setAttribute(r,l,e,s)}removeAttribute(r,l,e){this.delegate.removeAttribute(r,l,e)}addClass(r,l){this.delegate.addClass(r,l)}removeClass(r,l){this.delegate.removeClass(r,l)}setStyle(r,l,e,s){this.delegate.setStyle(r,l,e,s)}removeStyle(r,l,e){this.delegate.removeStyle(r,l,e)}setProperty(r,l,e){"@"==l.charAt(0)&&l==Ere?this.disableAnimations(r,!!e):this.delegate.setProperty(r,l,e)}setValue(r,l){this.delegate.setValue(r,l)}listen(r,l,e){return this.delegate.listen(r,l,e)}disableAnimations(r,l){this.engine.disableAnimations(r,l)}}class E_e extends Ire{constructor(r,l,e,s,u){super(l,e,s,u),this.factory=r,this.namespaceId=l}setProperty(r,l,e){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Ere?this.disableAnimations(r,e=void 0===e||!!e):this.engine.process(this.namespaceId,r,l.slice(1),e):this.delegate.setProperty(r,l,e)}listen(r,l,e){if("@"==l.charAt(0)){const s=function I_e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(r);let u=l.slice(1),m="";return"@"!=u.charAt(0)&&([u,m]=function k_e(t){const r=t.indexOf(".");return[t.substring(0,r),t.slice(r+1)]}(u)),this.engine.listen(this.namespaceId,s,u,m,b=>{this.factory.scheduleListenerCallback(b._data||-1,e,b)})}return this.delegate.listen(r,l,e)}}class P_e{constructor(r,l,e){this.delegate=r,this.engine=l,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,l.onRemovalComplete=(s,u)=>{const m=null==u?void 0:u.parentNode(s);m&&u.removeChild(m,s)}}createRenderer(r,l){var M;const s=this.delegate.createRenderer(r,l);if(!r||null==(M=null==l?void 0:l.data)||!M.animation){const I=this._rendererCache;let F=I.get(s);return F||(F=new Ire("",s,this.engine,()=>I.delete(s)),I.set(s,F)),F}const u=l.id,m=l.id+"-"+this._currentId;this._currentId++,this.engine.register(m,r);const b=I=>{Array.isArray(I)?I.forEach(b):this.engine.registerTrigger(u,m,r,I.name,I)};return l.data.animation.forEach(b),new E_e(this,m,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(r,l,e){if(r>=0&&rl(e));const s=this._animationCallbacksBuffer;0==s.length&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(u=>{const[m,b]=u;m(b)}),this._animationCallbacksBuffer=[]})}),s.push([l,e])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const kre=[{provide:BZ,useFactory:function O_e(){return new hre}},{provide:nR,useClass:(()=>{var t;class r extends nR{constructor(e,s,u,m){super(e,s,u)}ngOnDestroy(){this.flush()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(VZ),fe(BZ),fe(ol))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})()},{provide:yw,useFactory:function L_e(t,r,l){return new P_e(t,r,l)},deps:[PE,nR,Ye]}],nX=[{provide:VZ,useFactory:()=>new Are},{provide:si,useValue:"BrowserAnimations"},...kre],Pre=[{provide:VZ,useClass:NZ},{provide:si,useValue:"NoopAnimations"},...kre];let F_e=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?Pre:nX}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:nX,imports:[zy]}),r})();function N_e(t,r){1&t&&(P(0,"span",7),dt(1,1),R())}function V_e(t,r){1&t&&(P(0,"span",8),dt(1,2),R())}const Rre=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ore=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function H_e(t,r){1&t&&pe(0,"span",7)}function U_e(t,r){1&t&&(P(0,"span",8),dt(1),R())}function j_e(t,r){1&t&&dt(0,1)}function G_e(t,r){1&t&&pe(0,"span",9)}function W_e(t,r){1&t&&re(0,j_e,1,0)(1,G_e,1,0),2&t&&an(0,Z().contentEditInput?0:1)}function $_e(t,r){1&t&&dt(0,2)}function Y_e(t,r){1&t&&(P(0,"span",10),dt(1,3),R())}const q_e=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Z_e=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],iX=["*"],V4=new ve("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rX=new ve("MatChipAvatar"),aX=new ve("MatChipTrailingIcon"),oX=new ve("MatChipRemove"),B4=new ve("MatChip");class X_e{}const K_e=W1(X_e,-1);let ES=(()=>{var t;class r extends K_e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ot(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,s){super(),this._elementRef=e,this._parentChip=s,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(B4))},t.\u0275dir=ce({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,s){1&e&&J("click",function(m){return s._handleClick(m)})("keydown",function(m){return s._handleKeydown(m)}),2&e&&($e("tabindex",s._getTabindex())("disabled",s._getDisabledAttribute())("aria-disabled",s.disabled),et("mdc-evolution-chip__action--primary",s._isPrimary)("mdc-evolution-chip__action--presentational",!s.isInteractive)("mdc-evolution-chip__action--trailing",!s._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ze]}),r})(),Nre=(()=>{var t;class r extends ES{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,s){2&e&&$e("aria-hidden",null)},features:[Je([{provide:oX,useExisting:t}]),ze]}),r})(),eye=0;const tye=W1(tv(sP(lp(class{constructor(t){this._elementRef=t}})),"primary"),-1);let IS=(()=>{var t;class r extends tye{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ot(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ot(e)}get ripple(){var e;return null==(e=this._rippleLoader)?void 0:e.getRipple(this._elementRef.nativeElement)}set ripple(e){var s;null==(s=this._rippleLoader)||s.attachRipple(this._elementRef.nativeElement,e)}constructor(e,s,u,m,b,C,M,I){var F;super(s),this._changeDetectorRef=e,this._ngZone=u,this._focusMonitor=m,this._globalRippleOptions=M,this._onFocus=new he,this._onBlur=new he,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+eye++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ce,this.destroyed=new Ce,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=De(J1),this._document=b,this._animationsDisabled="NoopAnimations"===C,null!=I&&(this.tabIndex=parseInt(I)??this.defaultTabIndex),this._monitorFocus(),null==(F=this._rippleLoader)||F.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=xi(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){var e,s;this._focusMonitor.stopMonitoring(this._elementRef),null==(e=this._rippleLoader)||e.destroyRipple(this._elementRef.nativeElement),null==(s=this._actionChanges)||s.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){var e;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!(null==(e=this._globalRippleOptions)||!e.disabled)}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(s=>{const u=s._elementRef.nativeElement;return u===e||u.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const s=null!==e;s!==this._hasFocusInternal&&(this._hasFocusInternal=s,s?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(In(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(Ye),V(uo),V(yt),V(si,8),V(Z1,8),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,rX,5),Kt(u,aX,5),Kt(u,oX,5),Kt(u,rX,5),Kt(u,aX,5),Kt(u,oX,5)),2&e){let m;Ne(m=Ve())&&(s.leadingIcon=m.first),Ne(m=Ve())&&(s.trailingIcon=m.first),Ne(m=Ve())&&(s.removeIcon=m.first),Ne(m=Ve())&&(s._allLeadingIcons=m),Ne(m=Ve())&&(s._allTrailingIcons=m),Ne(m=Ve())&&(s._allRemoveIcons=m)}},viewQuery:function(e,s){if(1&e&&ft(ES,5),2&e){let u;Ne(u=Ve())&&(s.primaryAction=u.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)}),2&e&&(Ba("id",s.id),$e("role",s.role)("tabindex",s.role?s.tabIndex:null)("aria-label",s.ariaLabel),et("mdc-evolution-chip",!s._isBasicChip)("mdc-evolution-chip--disabled",s.disabled)("mdc-evolution-chip--with-trailing-action",s._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",s.leadingIcon)("mdc-evolution-chip--with-primary-icon",s.leadingIcon)("mdc-evolution-chip--with-avatar",s.leadingIcon)("mat-mdc-chip-with-avatar",s.leadingIcon)("mat-mdc-chip-highlighted",s.highlighted)("mat-mdc-chip-disabled",s.disabled)("mat-mdc-basic-chip",s._isBasicChip)("mat-mdc-standard-chip",!s._isBasicChip)("mat-mdc-chip-with-trailing-icon",s._hasTrailingIcon())("_mat-animation-noopable",s._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Je([{provide:B4,useExisting:t}]),ze],ngContentSelectors:Ore,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,s){1&e&&(jn(Rre),pe(0,"span",0),P(1,"span",1)(2,"span",2),re(3,N_e,2,0,"span",3),P(4,"span",4),dt(5),pe(6,"span",5),R()()(),re(7,V_e,2,0,"span",6)),2&e&&(N(2),z("isInteractive",!1),N(),an(3,s.leadingIcon?3:-1),N(4),an(7,s._hasTrailingIcon()?7:-1))},dependencies:[ES],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})(),z4=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._document=s}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const s=window.getSelection();s.removeAllRanges(),s.addRange(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(yt))},t.\u0275dir=ce({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),r})(),sX=(()=>{var t;class r extends IS{constructor(e,s,u,m,b,C,M,I){super(e,s,u,m,b,C,M,I),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ce,this._isEditing=!1,this.role="row",this._onBlur.pipe(Dt(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const s=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(s),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(Ye),V(uo),V(yt),V(si,8),V(Z1,8),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,s,u){if(1&e&&Kt(u,z4,5),2&e){let m;Ne(m=Ve())&&(s.contentEditInput=m.first)}},viewQuery:function(e,s){if(1&e&&ft(z4,5),2&e){let u;Ne(u=Ve())&&(s.defaultEditInput=u.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,s){1&e&&J("focus",function(m){return s._handleFocus(m)})("dblclick",function(m){return s._handleDoubleclick(m)}),2&e&&(Ba("id",s.id),$e("tabindex",s.disabled?null:-1)("aria-label",null)("aria-description",null)("role",s.role),et("mat-mdc-chip-with-avatar",s.leadingIcon)("mat-mdc-chip-disabled",s.disabled)("mat-mdc-chip-editing",s._isEditing)("mat-mdc-chip-editable",s.editable)("mdc-evolution-chip--disabled",s.disabled)("mdc-evolution-chip--with-trailing-action",s._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",s.leadingIcon)("mdc-evolution-chip--with-primary-icon",s.leadingIcon)("mdc-evolution-chip--with-avatar",s.leadingIcon)("mat-mdc-chip-highlighted",s.highlighted)("mat-mdc-chip-with-trailing-icon",s._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Je([{provide:IS,useExisting:t},{provide:B4,useExisting:t}]),ze],ngContentSelectors:Z_e,decls:10,vars:10,consts:[["class","mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,s){1&e&&(jn(q_e),re(0,H_e,1,0,"span",0),P(1,"span",1),re(2,U_e,2,0,"span",2),P(3,"span",3),re(4,W_e,2,1)(5,$_e,1,0),pe(6,"span",4),R()(),re(7,Y_e,2,0,"span",5),P(8,"span",6),Y(9),R()),2&e&&(an(0,s._isEditing?-1:0),N(),z("tabIndex",s.tabIndex)("disabled",s.disabled),$e("aria-label",s.ariaLabel)("aria-describedby",s._ariaDescriptionId),N(),an(2,s.leadingIcon?2:-1),N(2),an(4,s._isEditing?4:5),N(3),an(7,s._hasTrailingIcon()?7:-1),N(),z("id",s._ariaDescriptionId),N(),En(s.ariaDescription))},dependencies:[ES,z4],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})();class nye{constructor(r){}}const iye=W1(nye);let lX=(()=>{var t;class r extends iye{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,s,u){super(e),this._elementRef=e,this._changeDetectorRef=s,this._dir=u,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new he,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new yu}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(pr(null),Li(()=>xi(...this._chips.map(e))))}_originatesFromChip(e){let s=e.target;for(;s&&s!==this._elementRef.nativeElement;){if(s.classList.contains("mat-mdc-chip"))return!0;s=s.parentElement}return!1}_setUpFocusManagement(){var e;this._chips.changes.pipe(pr(this._chips)).subscribe(s=>{const u=[];s.forEach(m=>m._getActions().forEach(b=>u.push(b))),this._chipActions.reset(u),this._chipActions.notifyOnChanges()}),this._keyManager=new qk(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(s=>this._skipPredicate(s)),this.chipFocusChanges.pipe(Dt(this._destroyed)).subscribe(({chip:s})=>{const u=s._getSourceAction(document.activeElement);u&&this._keyManager.updateActiveItem(u)}),null==(e=this._dir)||e.change.pipe(Dt(this._destroyed)).subscribe(s=>this._keyManager.withHorizontalOrientation(s))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(pr(null),Dt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Dt(this._destroyed)).subscribe(e=>{const u=this._chips.toArray().indexOf(e.chip);this._isValidIndex(u)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),s=this._chips.toArray()[e];s.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():s.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ir,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-set"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,IS,5),2&e){let m;Ne(m=Ve())&&(s._chips=m)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)}),2&e&&$e("role",s.role)},inputs:{disabled:"disabled",role:"role"},features:[ze],ngContentSelectors:iX,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,s){1&e&&(jn(),P(0,"div",0),dt(1),R())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),r})();class oye{constructor(r,l){this.source=r,this.value=l}}class sye extends lX{constructor(r,l,e,s,u,m,b){super(r,l,e),this._defaultErrorStateMatcher=s,this._parentForm=u,this._parentFormGroup=m,this.ngControl=b,this.stateChanges=new he}}const lye=Db(sye);let zre=(()=>{var t;class r extends lye{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ot(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,s,u,m,b,C,M){super(e,s,u,C,m,b,M),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ce,this.valueChange=new Ce,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(Dt(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),xi(this.chipFocusChanges,this._chips.changes).pipe(Dt(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){var s;this._ariaDescribedbyIds=e,null==(s=this._chipInput)||s.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&vr(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(s=>s.value):[];this._value=e,this.change.emit(new oye(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ir,8),V(ov,8),V(mS,8),V(Gu),V(x,10))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,sX,5),2&e){let m;Ne(m=Ve())&&(s._chips=m)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,s){1&e&&J("focus",function(){return s.focus()})("blur",function(){return s._blur()}),2&e&&(Ba("tabIndex",s._chips&&0===s._chips.length?-1:s.tabIndex),$e("role",s.role)("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState),et("mat-mdc-chip-list-disabled",s.disabled)("mat-mdc-chip-list-invalid",s.errorState)("mat-mdc-chip-list-required",s.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Je([{provide:$z,useExisting:t}]),ze],ngContentSelectors:iX,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,s){1&e&&(jn(),P(0,"div",0),dt(1),R())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),r})(),cye=0,Hre=(()=>{var t;class r{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ot(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ot(e)}get empty(){return!this.inputElement.value}constructor(e,s,u){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Ce,this.placeholder="",this.id="mat-mdc-chip-list-input-"+cye++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=s.separatorKeyCodes,u&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const s=this._elementRef.nativeElement;e.length?s.setAttribute("aria-describedby",e.join(" ")):s.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!vr(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(V4),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._keydown(m)})("keyup",function(m){return s._keyup(m)})("blur",function(){return s._blur()})("focus",function(){return s._focus()})("input",function(){return s._onInput()}),2&e&&(Ba("id",s.id),$e("disabled",s.disabled||null)("placeholder",s.placeholder||null)("aria-invalid",s._chipGrid&&s._chipGrid.ngControl?s._chipGrid.ngControl.invalid:null)("aria-required",s._chipGrid&&s._chipGrid.required||null)("required",s._chipGrid&&s._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[nn]}),r})(),dye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Gu,{provide:V4,useValue:{separatorKeyCodes:[13]}}],imports:[$t,Wu,$t]}),r})(),uye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),hye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,uye,gl]}),r})();const fye=["*",[["mat-toolbar-row"]]],pye=["*","mat-toolbar-row"],mye=tv(class{constructor(t){this._elementRef=t}});let gye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),vye=(()=>{var t;class r extends mye{constructor(e,s,u){super(e),this._platform=s,this._document=u}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(yt))},t.\u0275cmp=xe({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,gye,5),2&e){let m;Ne(m=Ve())&&(s._toolbarRows=m)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-toolbar-multiple-rows",s._toolbarRows.length>0)("mat-toolbar-single-row",0===s._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ze],ngContentSelectors:pye,decls:2,vars:0,template:function(e,s){1&e&&(jn(fye),dt(0),dt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),r})(),_ye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})(),yye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:rne,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Tb,useValue:udsData.language}],imports:[Er,Zae,xte,_ye,hp,fue,tZ,hye,wz,Yz,yue,hne,nge,sz,Gce,uce,bce,Vne,Ine,koe,dye,oge,_pe,Whe,pse,zne,eue,Bde]}),r})();function bye(t,r){if(1&t){const l=Oe();P(0,"button",6),J("click",function(){const u=oe(l).$implicit;return le(Z().changeLang(u))}),Y(1),R()}if(2&t){const l=r.$implicit;N(),En(l.name)}}function wye(t,r){if(1&t&&(P(0,"button",12)(1,"i",7),Y(2,"face"),R(),Y(3),R()),2&t){const l=Z();z("matMenuTriggerFor",pn(7)),N(3),En(l.api.user.user)}}function xye(t,r){if(1&t&&(P(0,"button",18),Y(1),P(2,"i",7),Y(3,"arrow_drop_down"),R()()),2&t){const l=Z();z("matMenuTriggerFor",pn(7)),N(),Re("",l.api.user.user," ")}}let Cye=(()=>{var t;class r{constructor(e){this.api=e,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;const s=e.config.language;this.langs=[];for(const u of e.config.available_languages)u.id===s?this.lang=u:this.langs.push(u)}ngOnInit(){}changeLang(e){this.lang=e;const s=document.getElementById("id_language");return s&&s.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,s){if(1&e&&(P(0,"form",0),pe(1,"input",1)(2,"input",2),R(),P(3,"mat-menu",null,3),re(5,bye,2,1,"button",4),R(),P(6,"mat-menu",null,5)(8,"button",6),J("click",function(){return s.user()}),P(9,"i",7),Y(10,"home"),R(),P(11,"uds-translate"),Y(12,"User mode"),R()(),P(13,"button",6),J("click",function(){return s.logout()}),P(14,"i",8),Y(15,"exit_to_app"),R(),P(16,"uds-translate"),Y(17,"Logout"),R()()(),P(18,"mat-menu",9,10),re(20,wye,4,2,"button",11),P(21,"button",12)(22,"i",7),Y(23,"language"),R(),Y(24),R()(),P(25,"mat-toolbar",13)(26,"button",14),pe(27,"img",15),R(),pe(28,"span",16),P(29,"div",17)(30,"button",18),Y(31),P(32,"i",7),Y(33,"arrow_drop_down"),R()(),re(34,xye,4,2,"button",19),R(),P(35,"div",20)(36,"button",21)(37,"i",7),Y(38,"menu"),R()()()()),2&e){const u=pn(4),m=pn(19);_u("action",s.api.config.urls.changeLang,Ut),N(),_u("name",s.api.csrfField),_u("value",s.api.csrfToken),N(),_u("value",s.lang.id),N(3),z("ngForOf",s.langs),N(15),z("ngIf",s.api.user.isLogged),N(),z("matMenuTriggerFor",u),N(3),En(s.lang.name),N(3),z("src",s.api.staticURL("admin/img/udsicon.png"),Ut),N(3),z("matMenuTriggerFor",u),N(),Re("",s.lang.name," "),N(3),z("ngIf",s.api.user.isLogged),N(2),z("matMenuTriggerFor",m)}},dependencies:[mi,xn,mr,Bq,E,ov,vye,Pn,wc,SS,qP,qne,vn],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),r})(),Sye=(()=>{var t;class r{constructor(){}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(e,s){1&e&&(P(0,"div"),Y(1,"\xa9 2012-2023 "),P(2,"a",0),Y(3,"Virtual Cable S.L.U."),R()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),r})();function Dye(t,r){if(1&t&&(P(0,"a",27),pe(1,"img",2),P(2,"uds-translate"),Y(3,"Groups"),R()()),2&t){const l=Z();N(),z("src",l.icon("groups"),Ut)}}function Tye(t,r){if(1&t){const l=Oe();P(0,"a",3),J("click",function(){return oe(l),le(Z().toggleConfig())}),pe(1,"img",2),P(2,"span")(3,"uds-translate"),Y(4,"Tools"),R(),P(5,"i",4),Y(6,"arrow_drop_down"),R()()()}if(2&t){const l=Z();N(),z("src",l.icon("tools"),Ut)}}let Mye=(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){const s=new Map([["connectivity",u=>this.connectivityShown=!!u&&!this.connectivityShown],["pools",u=>this.poolsShown=!!u&&!this.poolsShown],["config",u=>this.configShown=!!u&&!this.configShown],["tokens",u=>this.tokensShown=!!u&&!this.tokensShown],["auths",u=>this.authsShown=!!u&&!this.authsShown],["services",u=>this.servicesShown=!!u&&!this.servicesShown]]);for(const u of s)u[1](u[0]===e)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"a",1),pe(2,"img",2),P(3,"uds-translate"),Y(4,"Summary"),R()(),P(5,"a",3),J("click",function(){return s.toggleServices()}),pe(6,"img",2),P(7,"span")(8,"uds-translate"),Y(9,"Services"),R(),P(10,"i",4),Y(11,"arrow_drop_down"),R()()(),P(12,"div",5)(13,"a",6),pe(14,"img",2),P(15,"uds-translate"),Y(16,"Providers"),R()(),P(17,"a",7),pe(18,"img",2),P(19,"uds-translate"),Y(20,"Servers"),R()()(),P(21,"a",3),J("click",function(){return s.toggleAuths()}),pe(22,"img",2),P(23,"span")(24,"uds-translate"),Y(25,"Authentication"),R(),P(26,"i",4),Y(27,"arrow_drop_down"),R()()(),P(28,"div",5)(29,"a",8),pe(30,"img",2),P(31,"uds-translate"),Y(32,"Authenticators"),R()(),P(33,"a",9),pe(34,"img",2),P(35,"uds-translate"),Y(36,"Multi Factor"),R()()(),P(37,"a",10),pe(38,"img",2),P(39,"uds-translate"),Y(40,"Os Managers"),R()(),P(41,"a",3),J("click",function(){return s.toggleConnectivity()}),pe(42,"img",2),P(43,"span")(44,"uds-translate"),Y(45,"Connectivity"),R(),P(46,"i",4),Y(47,"arrow_drop_down"),R()()(),P(48,"div",5)(49,"a",11),pe(50,"img",2),P(51,"uds-translate"),Y(52,"Transports"),R()(),P(53,"a",12),pe(54,"img",2),P(55,"uds-translate"),Y(56,"Networks"),R()(),P(57,"a",13),pe(58,"img",2),P(59,"uds-translate"),Y(60,"Tunnels"),R()()(),P(61,"a",3),J("click",function(){return s.togglePools()}),pe(62,"img",2),P(63,"span")(64,"uds-translate"),Y(65,"Pools"),R(),P(66,"i",4),Y(67,"arrow_drop_down"),R()()(),P(68,"div",5)(69,"a",14),pe(70,"img",2),P(71,"uds-translate"),Y(72,"Service pools"),R()(),P(73,"a",15),pe(74,"img",2),P(75,"uds-translate"),Y(76,"Meta pools"),R()(),re(77,Dye,4,1,"a",16),P(78,"a",17),pe(79,"img",2),P(80,"uds-translate"),Y(81,"Calendars"),R()(),P(82,"a",18),pe(83,"img",2),P(84,"uds-translate"),Y(85,"Accounting"),R()()(),re(86,Tye,7,1,"a",19),P(87,"div",5)(88,"a",20),pe(89,"img",2),P(90,"uds-translate"),Y(91,"Gallery"),R()(),P(92,"a",21),pe(93,"img",2),P(94,"uds-translate"),Y(95,"Reports"),R()(),P(96,"a",22),pe(97,"img",2),P(98,"uds-translate"),Y(99,"Notifiers"),R()(),P(100,"a",3),J("click",function(){return s.tokensShown=!s.tokensShown}),pe(101,"img",2),P(102,"span")(103,"uds-translate"),Y(104,"Tokens"),R(),P(105,"i",4),Y(106,"arrow_drop_down"),R()()(),P(107,"div",23)(108,"a",24),pe(109,"img",2),P(110,"uds-translate"),Y(111,"Actor"),R()(),P(112,"a",25),pe(113,"img",2),P(114,"uds-translate"),Y(115,"Servers"),R()()(),P(116,"a",26),pe(117,"img",2),P(118,"uds-translate"),Y(119,"Configuration"),R()(),P(120,"a",3),J("click",function(){return s.flushCache()}),pe(121,"img",2),P(122,"uds-translate"),Y(123,"Flush Cache"),R()()()()),2&e&&(N(2),z("src",s.icon("dashboard-monitor"),Ut),N(4),z("src",s.icon("providers"),Ut),N(6),z("hidden",!s.servicesShown),N(2),z("src",s.icon("providers"),Ut),N(4),z("src",s.icon("servers"),Ut),N(4),z("src",s.icon("authentication"),Ut),N(6),z("hidden",!s.authsShown),N(2),z("src",s.icon("authenticators"),Ut),N(4),z("src",s.icon("mfas"),Ut),N(4),z("src",s.icon("osmanagers"),Ut),N(4),z("src",s.icon("connectivity"),Ut),N(6),z("hidden",!s.connectivityShown),N(2),z("src",s.icon("transports"),Ut),N(4),z("src",s.icon("networks"),Ut),N(4),z("src",s.icon("tunnels"),Ut),N(4),z("src",s.icon("poolsmenu"),Ut),N(6),z("hidden",!s.poolsShown),N(2),z("src",s.icon("pools"),Ut),N(4),z("src",s.icon("metas"),Ut),N(3),z("ngIf",s.api.user.isAdmin),N(2),z("src",s.icon("calendars"),Ut),N(4),z("src",s.icon("accounts"),Ut),N(3),z("ngIf",s.api.user.isAdmin),N(),z("hidden",!s.configShown),N(2),z("src",s.icon("gallery"),Ut),N(4),z("src",s.icon("reports"),Ut),N(4),z("src",s.icon("notifiers"),Ut),N(4),z("src",s.icon("tokens"),Ut),N(6),z("hidden",!s.tokensShown),N(2),z("src",s.icon("actors"),Ut),N(4),z("src",s.icon("servers"),Ut),N(4),z("src",s.icon("configuration"),Ut),N(4),z("src",s.icon("flush-cache"),Ut))},dependencies:[xn,mr,oS,vn],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),r})();function Aye(t,r){1&t&&pe(0,"div",1),2&t&&z("innerHTML",Z().messages,zr)}let Eye=(()=>{var t;class r{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){const e=s=>s.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){const s='
';this.messages='
'+s+this.api.notices.map(e).join("
"+s)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(e,s){1&e&&re(0,Aye,1,1,"div",0),2&e&&z("ngIf",s.visible)},dependencies:[xn],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),r})(),Iye=(()=>{var t;class r{constructor(e){this.api=e,this.title="UDS Admin"}get blackTheme(){return"true"===this.api.getFromStorage("blackTheme")}set blackTheme(e){this.api.putOnStorage("blackTheme",e.toString())}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&"b"===e.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-root"]],hostBindings:function(e,s){1&e&&J("keydown",function(m){return s.handleKeyboardEvent(m)},0,Bs)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,s){1&e&&(pe(0,"uds-navbar")(1,"uds-sidebar"),P(2,"div",0)(3,"div",1),pe(4,"uds-notices")(5,"router-outlet"),R(),P(6,"div",2),pe(7,"uds-footer"),R()())},dependencies:[GI,Cye,Sye,Mye,Eye],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),r})(),kye=(()=>{var t;class r extends yS{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Pye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",0),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("maxlength",s.field.gui.length||128)("autocomplete","new-"+s.field.name))},dependencies:[$i,A,xc,HP,ii,ri,Ci,Sa],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})();function Rye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}let Oye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.values=[]}ngOnInit(){const e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(s=>s.text)}_filter(){const e=this.field.value.toLowerCase();return this.values.filter(s=>s.toLowerCase().includes(e))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(e,s){if(1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-autocomplete",null,0),re(5,Rye,2,2,"mat-option",1),R(),P(6,"input",2),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e){const u=pn(4);N(2),Re(" ",s.field.gui.label," "),N(3),z("ngForOf",s._filter()),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("maxlength",s.field.gui.length||128)("matAutocomplete",u)("autocomplete","new-"+s.field.name)}},dependencies:[mi,$i,A,xc,HP,ii,ri,Ci,Sa,Ni,yZ,v4],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})(),Lye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.default||0)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly))},dependencies:[$i,sv,A,xc,ii,ri,Ci,Sa]}),r})(),Fye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R(),P(4,"button",2),J("click",function(){return s.passwordType="text"===s.passwordType?"password":"text"}),P(5,"i",3),Y(6),R()()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("type",s.passwordType),N(3),En("text"===s.passwordType?"visibility_off":"visibility"))},dependencies:[$i,A,xc,ii,wc,ri,Ci,vS,Sa],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})(),Nye=(()=>{var t;class r{constructor(){this.field={}}ngOnInit(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.default||"")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(e,s){}}),r})(),Vye=(()=>{var t;class r{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModel","placeholder","required","readonly","rows","maxlength","ngModelChange"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"textarea",1),J("ngModelChange",function(m){return s.field.value=m}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!!s.field.gui.required)("readonly",!0===s.field.gui.readonly)("rows",s.field.gui.lines||3)("maxlength",s.field.gui.length||255))},dependencies:[$i,A,xc,HP,ii,ri,Ci,Sa]}),r})();function Bye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}let zye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){const e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",e.length>0&&!e.find(s=>s.id===this.field.value)&&(this.field.value=""),""===this.field.value&&e.length>0&&(this.field.value=e[0].id)}ngOnInit(){this.setValue()}filteredValues(){const e=this.field.gui.choices||[];if(this.setValue(),!this.filter)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"options","placeholderLabel","noEntriesFoundLabel","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("ngModelChange",function(m){return s.field.value=m})("valueChange",function(){return s.changed.emit(s)}),P(4,"uds-cond-select-search",1),J("changed",function(m){return s.filter=m}),R(),re(5,Bye,2,2,"mat-option",2),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(),z("options",s.field.gui.choices)("placeholderLabel",s.placeholderLabel)("noEntriesFoundLabel",s.noEntriesFoundLabel),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,A,xc,ii,ri,Ci,Ya,Ni,Cc]}),r})();function Hye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}let Uye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){const e=this.field.gui.choices||[];if(!this.filter||0===e.length)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}selectTriggerString(){var u,m;const e=this.field.value||[];let s="";0===e.length&&(s=this.field.gui.tooltip||django.gettext("Select"));for(const b of e)""!==s&&(s+=", "),s+=(null==(m=null==(u=this.field.gui.choices)?void 0:u.find(C=>C.id===b))?void 0:m.text)||b;return s}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("ngModelChange",function(m){return s.field.value=m})("valueChange",function(){return s.changed.emit(s)}),P(4,"mat-select-trigger"),Y(5),R(),P(6,"uds-cond-select-search",1),J("changed",function(m){return s.filter=m}),R(),re(7,Hye,2,2,"mat-option",2),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.selectTriggerString())("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(2),Re(" ",s.selectTriggerString()," "),N(),z("options",s.field.gui.choices),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,A,xc,ii,ri,Ci,Ya,une,Ni,Cc]}),r})();function jye(t,r){if(1&t){const l=Oe();P(0,"div",12)(1,"div",13),Y(2),R(),P(3,"div",14),Y(4," \xa0"),P(5,"a",15),J("click",function(){const u=oe(l).index;return le(Z().removeElement(u))}),P(6,"i",16),Y(7,"close"),R()()()()}if(2&t){const l=r.$implicit;N(2),Re(" ",l," ")}}let Gye=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.values=[],this.input="",this.done=new wl,this.data.values.forEach(b=>this.values.push(b))}static launch(e,s,u){const m=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(r,{width:m,data:{title:s,values:u},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){"Enter"===e.code&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"h4",0),Y(1),R(),P(2,"mat-dialog-content")(3,"div",1)(4,"div",2),re(5,jye,8,1,"div",3),R(),P(6,"div",4)(7,"button",5),J("click",function(){return s.removeAll()}),P(8,"uds-translate"),Y(9,"Remove all"),R()()(),P(10,"div",6)(11,"mat-form-field",7)(12,"input",8),J("keyup",function(m){return s.checkKey(m)})("ngModelChange",function(m){return s.input=m}),R(),P(13,"button",9),J("click",function(){return s.addElements()}),P(14,"i",10),Y(15,"add"),R()()()()()(),P(16,"mat-dialog-actions")(17,"button",5),J("click",function(){return s.cancel()}),P(18,"uds-translate"),Y(19,"Cancel"),R()(),P(20,"button",11),J("click",function(){return s.save()}),P(21,"uds-translate"),Y(22,"Ok"),R()()()),2&e&&(N(),Re(" ",s.data.title,"\n"),N(4),z("ngForOf",s.values),N(7),z("ngModel",s.input))},dependencies:[mi,$i,A,ii,Pn,wc,zi,Ai,Hi,ri,vS,Sa,vn],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})(),Wye=(()=>{var t;class r{constructor(e){this.api=e,this.field={},this.changed=new Ce}ngOnInit(){}valueEmpty(){return null==this.field.value||0===this.field.value.length}launch(){var e=this;return Ge(function*(){e.valueEmpty()&&(e.field.value=[]),yield Gye.launch(e.api,e.field.gui.label,e.field.value||e.field.gui.default||[]),e.changed.emit({field:e.field})})()}getValue(){if(this.valueEmpty())return"";let e=this.field.value.filter((s,u,m)=>u<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0),J("click",function(){return s.launch()}),P(1,"mat-label"),Y(2),R(),pe(3,"input",1),R()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("readonly",!0)("value",s.getValue())("placeholder",s.field.gui.tooltip)("disabled",!0===s.field.gui.readonly))},dependencies:[ri,Ci,Sa],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),r})(),$ye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){this.field.value=(t=>""===t||null==t)(this.field.value)?IP(this.field.gui.default):IP(this.field.value)}getValue(){return IP(this.field.value)?django.gettext("Yes"):django.gettext("No")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"mat-slide-toggle",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),Y(2),R()()),2&e&&(N(),z("ngModel",s.field.value)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(),Re(" ",s.field.gui.label," "))},dependencies:[A,xc,ii,vie,ZP]}),r})();function Yye(t,r){if(1&t&&pe(0,"div",5),2&t){const l=Z().$implicit;z("innerHTML",Z().asIcon(l),zr)}}function qye(t,r){if(1&t&&(P(0,"div"),re(1,Yye,1,1,"div",4),R()),2&t){const l=r.$implicit,e=Z();N(),z("ngIf",l.id===e.field.value)}}function Zye(t,r){if(1&t&&(P(0,"mat-option",6),pe(1,"div",5),R()),2&t){const l=r.$implicit,e=Z();z("value",l.id),N(),z("innerHTML",e.asIcon(l),zr)}}let Xye=(()=>{var t;class r{constructor(e){this.api=e,this.field={},this.changed=new Ce,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";const e=this.field.gui.choices||[];""===this.field.value&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon(e.img)+e.text)}filteredValues(){const e=this.field.gui.choices||[];if(!this.filter)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("valueChange",function(){return s.changed.emit(s)})("ngModelChange",function(m){return s.field.value=m}),P(4,"mat-select-trigger"),re(5,qye,2,1,"div",1),R(),P(6,"uds-cond-select-search",2),J("changed",function(m){return s.filter=m}),R(),re(7,Zye,2,2,"mat-option",3),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("placeholder",s.field.gui.tooltip)("ngModel",s.field.value)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(2),z("ngForOf",s.field.gui.choices),N(),z("options",s.field.gui.choices),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,xn,A,xc,ii,ri,Ci,Ya,une,Ni,Cc]}),r})(),Kye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=iv("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"","2000-01-01"===this.field.value?this.field.value=iv("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=iv("%Y-12-31"));const e=this.field.value.split("-");3===e.length&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(e,s){if(1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.date=m}),R(),pe(4,"mat-datepicker-toggle",2)(5,"mat-datepicker",null,3),R()),2&e){const u=pn(6);N(2),Re(" ",s.field.gui.label," "),N(),z("matDatepicker",u)("ngModel",s.date)("placeholder",s.field.gui.tooltip)("disabled",!0===s.field.gui.readonly),N(),z("for",u)}},dependencies:[$i,A,ii,ri,Ci,vS,Sa,Nie,x4,Vie]}),r})();function Qye(t,r){if(1&t){const l=Oe();P(0,"mat-chip-row",5),J("removed",function(){const u=oe(l).$implicit;return le(Z().remove(u))}),Y(1),P(2,"i",6),Y(3,"cancel"),R()()}if(2&t){const l=r.$implicit;z("removable",!0!==Z().field.gui.readonly),N(),Re(" ",l," ")}}let Jye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,s,u)=>{""===e.trim()&&u.splice(s,1)})}add(e){const s=e.input,u=e.value;(u||"").trim()&&this.field.value&&this.field.value.push(u.trim()),s&&(s.value="")}remove(e){if(!this.field.value)return void console.warn("Trying to remove tag from field with no values: "+this.field.name);const s=this.field.value.indexOf(e);s>=0&&this.field.value.splice(s,1)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],[3,"disabled","change"],["chipList",""],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(e,s){if(1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"mat-chip-grid",1,2),J("change",function(){return s.changed.emit(s)}),re(5,Qye,4,2,"mat-chip-row",3),P(6,"input",4),J("matChipInputTokenEnd",function(m){return s.add(m)}),R()()()),2&e){const u=pn(4);N(2),Re(" ",s.field.gui.label," "),N(),z("disabled",!0===s.field.gui.readonly),N(2),z("ngForOf",s.field.value),N(),z("placeholder",s.field.gui.tooltip)("matChipInputFor",u)("matChipInputSeparatorKeyCodes",s.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[mi,ri,Ci,zre,Hre,Nre,sX],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),r})();Dn(396);let ebe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t,bootstrap:[Iye]}),t.\u0275inj=ht({providers:[pt,Lt,{provide:yS,useClass:kye}],imports:[zy,AW,Wge,F_e,yye,zse.forRoot({echarts:()=>Promise.resolve().then(Dn.bind(Dn,707))})]}),r})();(function RF(t,r,l){const e=t.\u0275cmp;e.directiveDefs=l0(r,!1),e.pipeDefs=l0(l,!0)})(Ite,function(){return[_g,gC,qz,Pye,Lye,Fye,Nye,Vye,zye,Uye,Wye,$ye,Xye,Kye,Jye,Oye]},[]),FE().bootstrapModule(ebe).catch(t=>console.log(t))},707:(_p,oa,Dn)=>{"use strict";Dn.r(oa),Dn.d(oa,{Axis:()=>il,ChartView:()=>Rn,ComponentModel:()=>en,ComponentView:()=>li,List:()=>ya,Model:()=>Un,PRIORITY:()=>KL,SeriesModel:()=>Xn,color:()=>Is,connect:()=>ij,dataTool:()=>sj,dependencies:()=>ZU,disConnect:()=>rj,disconnect:()=>oF,dispose:()=>eK,env:()=>tn,extendChartView:()=>pA,extendComponentModel:()=>iK,extendComponentView:()=>ly,extendSeriesModel:()=>jj,format:()=>rr,getCoordinateSystemDimensions:()=>dF,getInstanceByDom:()=>jM,getInstanceById:()=>sF,getMap:()=>oj,graphic:()=>Si,helper:()=>Mt,init:()=>nj,innerDrawElementOnCanvas:()=>lx,matrix:()=>Da,number:()=>Ii,parseGeoJSON:()=>dA,parseGeoJson:()=>dA,registerAction:()=>ys,registerCoordinateSystem:()=>cF,registerLayout:()=>uF,registerLoading:()=>vx,registerLocale:()=>J2,registerMap:()=>fF,registerPostInit:()=>lF,registerPostUpdate:()=>$M,registerPreprocessor:()=>WM,registerProcessor:()=>bf,registerTheme:()=>GM,registerTransform:()=>_x,registerUpdateLifecycle:()=>mx,registerVisual:()=>sc,setCanvasCreator:()=>aj,setPlatformAPI:()=>OS,throttle:()=>ex,time:()=>yr,use:()=>kt,util:()=>pv,vector:()=>ei,version:()=>$L,zrUtil:()=>Po,zrender:()=>Ta});var Po={};Dn.r(Po),Dn.d(Po,{HashMap:()=>HS,RADIAN_TO_DEGREE:()=>yv,assert:()=>be,bind:()=>he,clone:()=>nt,concatArray:()=>wn,createCanvas:()=>X4,createHashMap:()=>Me,createObject:()=>Kb,curry:()=>ct,defaults:()=>Ze,disableUserSelect:()=>US,each:()=>G,eqNaN:()=>Jt,extend:()=>_e,filter:()=>_n,find:()=>hR,guid:()=>VS,hasOwn:()=>Ue,indexOf:()=>Ct,inherits:()=>BS,isArray:()=>ye,isArrayLike:()=>ki,isBuiltInObject:()=>zn,isDom:()=>Pi,isFunction:()=>Xe,isGradientObject:()=>ah,isImagePatternObject:()=>Q4,isNumber:()=>on,isObject:()=>Ee,isPrimitive:()=>Ad,isRegExp:()=>fR,isString:()=>Ae,isStringSafe:()=>Bn,isTypedArray:()=>sa,keys:()=>Wt,logError:()=>wp,map:()=>Se,merge:()=>mt,mergeAll:()=>Xb,mixin:()=>Di,noop:()=>qi,normalizeCssArray:()=>vv,reduce:()=>ln,retrieve:()=>it,retrieve2:()=>gt,retrieve3:()=>Ro,setAsPrimitive:()=>oh,slice:()=>zS,trim:()=>la});var ei={};Dn.r(ei),Dn.d(ei,{add:()=>Jb,applyTransform:()=>ca,clone:()=>Lo,copy:()=>Or,create:()=>Ed,dist:()=>ks,distSquare:()=>kl,distance:()=>Cp,distanceSquare:()=>WS,div:()=>vi,dot:()=>_X,len:()=>lh,lenSquare:()=>Ma,length:()=>mR,lengthSquare:()=>gR,lerp:()=>ch,max:()=>kd,min:()=>Id,mul:()=>vX,negate:()=>rH,normalize:()=>ve,scale:()=>t0,scaleAndAdd:()=>e0,set:()=>Qb,sub:()=>Yt});var Da={};Dn.r(Da),Dn.d(Da,{clone:()=>wR,copy:()=>a0,create:()=>Fo,identity:()=>Tp,invert:()=>dh,mul:()=>Ll,rotate:()=>Rd,scale:()=>Sv,translate:()=>ar});var Is={};Dn.r(Is),Dn.d(Is,{fastLerp:()=>Ep,fastMapToColor:()=>ER,lerp:()=>v0,lift:()=>g0,lum:()=>Ec,mapToColor:()=>fH,modifyAlpha:()=>qn,modifyHSL:()=>Iv,parse:()=>Ea,random:()=>Xa,stringify:()=>No,toHex:()=>zl});var Ta={};Dn.r(Ta),Dn.d(Ta,{dispose:()=>qR,disposeAll:()=>Np,getInstance:()=>Vp,init:()=>k0,registerPainter:()=>wr,version:()=>MH});var Gt={};Dn.r(Gt),Dn.d(Gt,{Arc:()=>aM,BezierCurve:()=>ef,BoundingRect:()=>ce,Circle:()=>ps,CompoundPath:()=>$w,Ellipse:()=>tM,Group:()=>rt,Image:()=>Jr,IncrementalDisplayable:()=>Em,Line:()=>Gr,LinearGradient:()=>Mm,OrientedBoundingRect:()=>du,Path:()=>It,Point:()=>St,Polygon:()=>no,Polyline:()=>io,RadialGradient:()=>oM,Rect:()=>_t,Ring:()=>M_,Sector:()=>jr,Text:()=>Zt,applyTransform:()=>Xs,clipPointsByRect:()=>sM,clipRectByRect:()=>bL,createIcon:()=>Ks,extendPath:()=>_L,extendShape:()=>I_,getShapeClass:()=>Zw,getTransform:()=>rc,groupTransition:()=>Pm,initProps:()=>Nn,isElementRemoved:()=>Hh,lineLineIntersect:()=>Kw,linePolygonIntersect:()=>L_,makeImage:()=>P_,makePath:()=>k_,mergePath:()=>Na,registerShape:()=>gs,removeElement:()=>Hc,removeElementWithFadeOut:()=>lw,resizePath:()=>km,setTooltipConfig:()=>nf,subPixelOptimize:()=>Xw,subPixelOptimizeLine:()=>R_,subPixelOptimizeRect:()=>DU,transformDirection:()=>O_,traverseElements:()=>Kc,updateProps:()=>zt});var Mt={};Dn.r(Mt),Dn.d(Mt,{createDimensions:()=>yF,createList:()=>nK,createScale:()=>lA,createSymbol:()=>ji,createTextStyle:()=>Nj,dataStack:()=>ng,enableHoverEmphasis:()=>Kd,getECData:()=>st,getLayoutRect:()=>Dr,mixinAxisModelCommonMethods:()=>Fj});var Ii={};Dn.r(Ii),Dn.d(Ii,{MAX_SAFE_INTEGER:()=>ZR,asc:()=>Qr,getPercentWithPrecision:()=>Bp,getPixelPrecision:()=>Gv,getPrecision:()=>ka,getPrecisionSafe:()=>wD,isNumeric:()=>Sh,isRadianAroundZero:()=>R0,linearMap:()=>yn,nice:()=>xD,numericToNumber:()=>Gl,parseDate:()=>os,quantile:()=>O0,quantity:()=>kH,quantityExponent:()=>Oc,reformIntervals:()=>sr,remRadian:()=>XR,round:()=>ti});var yr={};Dn.r(yr),Dn.d(yr,{format:()=>Jd,parse:()=>os});var Si={};Dn.r(Si),Dn.d(Si,{Arc:()=>aM,BezierCurve:()=>ef,BoundingRect:()=>ce,Circle:()=>ps,CompoundPath:()=>$w,Ellipse:()=>tM,Group:()=>rt,Image:()=>Jr,IncrementalDisplayable:()=>Em,Line:()=>Gr,LinearGradient:()=>Mm,Polygon:()=>no,Polyline:()=>io,RadialGradient:()=>oM,Rect:()=>_t,Ring:()=>M_,Sector:()=>jr,Text:()=>Zt,clipPointsByRect:()=>sM,clipRectByRect:()=>bL,createIcon:()=>Ks,extendPath:()=>_L,extendShape:()=>I_,getShapeClass:()=>Zw,getTransform:()=>rc,initProps:()=>Nn,makeImage:()=>P_,makePath:()=>k_,mergePath:()=>Na,registerShape:()=>gs,resizePath:()=>km,updateProps:()=>zt});var rr={};Dn.r(rr),Dn.d(rr,{addCommas:()=>rO,capitalFirst:()=>x8,encodeHTML:()=>da,formatTime:()=>oO,formatTpl:()=>vT,getTextRect:()=>zj,getTooltipMarker:()=>xw,normalizeCssArray:()=>jh,toCamelCase:()=>aO,truncateText:()=>bo});var pv={};Dn.r(pv),Dn.d(pv,{bind:()=>he,clone:()=>nt,curry:()=>ct,defaults:()=>Ze,each:()=>G,extend:()=>_e,filter:()=>_n,indexOf:()=>Ct,inherits:()=>BS,isArray:()=>ye,isFunction:()=>Xe,isObject:()=>Ee,isString:()=>Ae,map:()=>Se,merge:()=>mt,reduce:()=>ln});var eh=function(a,i){return(eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])})(a,i)};function de(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=a}eh(a,i),a.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var Y4=function a(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},yp=new function a(){this.browser=new Y4,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(yp.wxa=!0,yp.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yp.worker=!0:typeof navigator>"u"?(yp.node=!0,yp.svgSupported=!0):function q4(a,i){var n=i.browser,o=a.match(/Firefox\/([\d.]+)/),c=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),d=a.match(/Edge?\/([\d.]+)/),h=/micromessenger/i.test(a);o&&(n.firefox=!0,n.version=o[1]),c&&(n.ie=!0,n.version=c[1]),d&&(n.edge=!0,n.version=d[1],n.newEdge=+d[1].split(".")[0]>18),h&&(n.weChat=!0),i.svgSupported=typeof SVGRect<"u",i.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,i.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),i.domSupported=typeof document<"u";var f=document.documentElement.style;i.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),i.transformSupported=i.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,yp);const tn=yp;var a,i,cR=12,PS="sans-serif",Md=cR+"px "+PS,Yb=function RS(a){var i={};if(typeof JSON>"u")return i;for(var n=0;n=0)f=h*n.length;else for(var p=0;p>1)%2;h.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[p]+":0",c[g]+":0",o[1-p]+":auto",c[1-g]+":auto",""].join("!important;"),a.appendChild(h),n.push(h)}return n}(i,d),f=function fe(a,i,n){for(var o=n?"invTrans":"trans",c=i[o],d=i.srcCoords,h=[],f=[],p=!0,g=0;g<4;g++){var v=a[g].getBoundingClientRect(),_=2*g,y=v.left,w=v.top;h.push(y,w),p=p&&d&&y===d[_]&&w===d[_+1],f.push(a[g].offsetLeft,a[g].offsetTop)}return p&&c?c:(i.srcCoords=h,i[o]=n?vR(f,h):vR(h,f))}(h,d,c);if(f)return f(a,n,o),!0}return!1}function ZS(a){return"CANVAS"===a.nodeName.toUpperCase()}var De=/([&<>"'])/g,n0={"&":"&","<":"<",">":">",'"':""","'":"'"};function da(a){return null==a?"":(a+"").replace(De,function(i,n){return n0[n]})}var Cv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,XS=[],lH=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function KS(a,i,n,o){return n=n||{},o?Rl(a,i,n):lH&&null!=i.layerX&&i.layerX!==i.offsetX?(n.zrX=i.layerX,n.zrY=i.layerY):null!=i.offsetX?(n.zrX=i.offsetX,n.zrY=i.offsetY):Rl(a,i,n),n}function Rl(a,i,n){if(tn.domSupported&&a.getBoundingClientRect){var o=i.clientX,c=i.clientY;if(ZS(a)){var d=a.getBoundingClientRect();return n.zrX=o-d.left,void(n.zrY=c-d.top)}if(Pl(XS,a,o,c))return n.zrX=XS[0],void(n.zrY=XS[1])}n.zrX=n.zrY=0}function Sp(a){return a||window.event}function Zi(a,i,n){if(null!=(i=Sp(i)).zrX)return i;var o=i.type;if(o&&o.indexOf("touch")>=0){var h="touchend"!==o?i.targetTouches[0]:i.changedTouches[0];h&&KS(a,h,i,n)}else{KS(a,i,i,n);var d=function Ol(a){var i=a.wheelDelta;if(i)return i;var n=a.deltaX,o=a.deltaY;return null==n||null==o?i:3*Math.abs(0!==o?o:n)*(o>0?-1:o<0?1:n>0?-1:1)}(i);i.zrDelta=d?d/120:-(i.detail||0)/3}var f=i.button;return null==i.which&&void 0!==f&&Cv.test(i.type)&&(i.which=1&f?1:2&f?3:4&f?2:0),i}function Tn(a,i,n,o){a.addEventListener(i,n,o)}function _R(a,i,n,o){a.removeEventListener(i,n,o)}var Ps=function(a){a.preventDefault(),a.stopPropagation(),a.cancelBubble=!0};function QS(a){return 2===a.which||3===a.which}var yR=function(){function a(){this._track=[]}return a.prototype.recognize=function(i,n,o){return this._doTrack(i,n,o),this._recognize(i)},a.prototype.clear=function(){return this._track.length=0,this},a.prototype._doTrack=function(i,n,o){var c=i.touches;if(c){for(var d={points:[],touches:[],target:n,event:i},h=0,f=c.length;h1&&o&&o.length>1){var d=Dp(o)/Dp(c);!isFinite(d)&&(d=1),i.pinchScale=d;var h=function bR(a){return[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]}(o);return i.pinchX=h[0],i.pinchY=h[1],{type:"pinch",target:a[0].target,event:i}}}}};function Fo(){return[1,0,0,1,0,0]}function Tp(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a}function a0(a,i){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a[4]=i[4],a[5]=i[5],a}function Ll(a,i,n){var c=i[1]*n[0]+i[3]*n[1],d=i[0]*n[2]+i[2]*n[3],h=i[1]*n[2]+i[3]*n[3],f=i[0]*n[4]+i[2]*n[5]+i[4],p=i[1]*n[4]+i[3]*n[5]+i[5];return a[0]=i[0]*n[0]+i[2]*n[1],a[1]=c,a[2]=d,a[3]=h,a[4]=f,a[5]=p,a}function ar(a,i,n){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a[4]=i[4]+n[0],a[5]=i[5]+n[1],a}function Rd(a,i,n){var o=i[0],c=i[2],d=i[4],h=i[1],f=i[3],p=i[5],g=Math.sin(n),v=Math.cos(n);return a[0]=o*v+h*g,a[1]=-o*g+h*v,a[2]=c*v+f*g,a[3]=-c*g+v*f,a[4]=v*d+g*p,a[5]=v*p-g*d,a}function Sv(a,i,n){var o=n[0],c=n[1];return a[0]=i[0]*o,a[1]=i[1]*c,a[2]=i[2]*o,a[3]=i[3]*c,a[4]=i[4]*o,a[5]=i[5]*c,a}function dh(a,i){var n=i[0],o=i[2],c=i[4],d=i[1],h=i[3],f=i[5],p=n*h-d*o;return p?(a[0]=h*(p=1/p),a[1]=-d*p,a[2]=-o*p,a[3]=n*p,a[4]=(o*f-h*c)*p,a[5]=(d*c-n*f)*p,a):null}function wR(a){var i=[1,0,0,1,0,0];return a0(i,a),i}var cH=function(){function a(i,n){this.x=i||0,this.y=n||0}return a.prototype.copy=function(i){return this.x=i.x,this.y=i.y,this},a.prototype.clone=function(){return new a(this.x,this.y)},a.prototype.set=function(i,n){return this.x=i,this.y=n,this},a.prototype.equal=function(i){return i.x===this.x&&i.y===this.y},a.prototype.add=function(i){return this.x+=i.x,this.y+=i.y,this},a.prototype.scale=function(i){this.x*=i,this.y*=i},a.prototype.scaleAndAdd=function(i,n){this.x+=i.x*n,this.y+=i.y*n},a.prototype.sub=function(i){return this.x-=i.x,this.y-=i.y,this},a.prototype.dot=function(i){return this.x*i.x+this.y*i.y},a.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},a.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},a.prototype.normalize=function(){var i=this.len();return this.x/=i,this.y/=i,this},a.prototype.distance=function(i){var n=this.x-i.x,o=this.y-i.y;return Math.sqrt(n*n+o*o)},a.prototype.distanceSquare=function(i){var n=this.x-i.x,o=this.y-i.y;return n*n+o*o},a.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},a.prototype.transform=function(i){if(i){var n=this.x,o=this.y;return this.x=i[0]*n+i[2]*o+i[4],this.y=i[1]*n+i[3]*o+i[5],this}},a.prototype.toArray=function(i){return i[0]=this.x,i[1]=this.y,i},a.prototype.fromArray=function(i){this.x=i[0],this.y=i[1]},a.set=function(i,n,o){i.x=n,i.y=o},a.copy=function(i,n){i.x=n.x,i.y=n.y},a.len=function(i){return Math.sqrt(i.x*i.x+i.y*i.y)},a.lenSquare=function(i){return i.x*i.x+i.y*i.y},a.dot=function(i,n){return i.x*n.x+i.y*n.y},a.add=function(i,n,o){i.x=n.x+o.x,i.y=n.y+o.y},a.sub=function(i,n,o){i.x=n.x-o.x,i.y=n.y-o.y},a.scale=function(i,n,o){i.x=n.x*o,i.y=n.y*o},a.scaleAndAdd=function(i,n,o,c){i.x=n.x+o.x*c,i.y=n.y+o.y*c},a.lerp=function(i,n,o,c){var d=1-c;i.x=d*n.x+c*o.x,i.y=d*n.y+c*o.y},a}();const St=cH;var Dv=Math.min,o0=Math.max,uh=new St,hh=new St,xe=new St,fh=new St,Tv=new St,ot=new St,xR=function(){function a(i,n,o,c){o<0&&(i+=o,o=-o),c<0&&(n+=c,c=-c),this.x=i,this.y=n,this.width=o,this.height=c}return a.prototype.union=function(i){var n=Dv(i.x,this.x),o=Dv(i.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?o0(i.x+i.width,this.x+this.width)-n:i.width,this.height=isFinite(this.y)&&isFinite(this.height)?o0(i.y+i.height,this.y+this.height)-o:i.height,this.x=n,this.y=o},a.prototype.applyTransform=function(i){a.applyTransform(this,this,i)},a.prototype.calculateTransform=function(i){var n=this,o=i.width/n.width,c=i.height/n.height,d=[1,0,0,1,0,0];return ar(d,d,[-n.x,-n.y]),Sv(d,d,[o,c]),ar(d,d,[i.x,i.y]),d},a.prototype.intersect=function(i,n){if(!i)return!1;i instanceof a||(i=a.create(i));var o=this,c=o.x,d=o.x+o.width,h=o.y,f=o.y+o.height,p=i.x,g=i.x+i.width,v=i.y,_=i.y+i.height,y=!(dx&&(x=E,St.set(ot,Sx&&(x=k,St.set(ot,0,T=o.x&&i<=o.x+o.width&&n>=o.y&&n<=o.y+o.height},a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.copy=function(i){a.copy(this,i)},a.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},a.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},a.prototype.isZero=function(){return 0===this.width||0===this.height},a.create=function(i){return new a(i.x,i.y,i.width,i.height)},a.copy=function(i,n){i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height},a.applyTransform=function(i,n,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var c=o[0],d=o[3],f=o[5];return i.x=n.x*c+o[4],i.y=n.y*d+f,i.width=n.width*c,i.height=n.height*d,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}uh.x=xe.x=n.x,uh.y=fh.y=n.y,hh.x=fh.x=n.x+n.width,hh.y=xe.y=n.y+n.height,uh.transform(o),fh.transform(o),hh.transform(o),xe.transform(o),i.x=Dv(uh.x,hh.x,xe.x,fh.x),i.y=Dv(uh.y,hh.y,xe.y,fh.y);var p=o0(uh.x,hh.x,xe.x,fh.x),g=o0(uh.y,hh.y,xe.y,fh.y);i.width=p-i.x,i.height=g-i.y}else i!==n&&a.copy(i,n)},a}();const ce=xR;var ua="silent";function Lr(){Ps(this.event)}var ha=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.handler=null,n}return cn(i,a),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Za),ts=function a(i,n){this.x=i,this.y=n},Aa=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],s0=new ce(0,0,0,0),JS=function(a){function i(n,o,c,d,h){var f=a.call(this)||this;return f._hovered=new ts(0,0),f.storage=n,f.painter=o,f.painterRoot=d,f._pointerSize=h,c=c||new ha,f.proxy=null,f.setHandlerProxy(c),f._draggingMgr=new xv(f),f}return cn(i,a),i.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(Aa,function(o){n.on&&n.on(o,this[o],this)},this),n.handler=this),this.proxy=n},i.prototype.mousemove=function(n){var o=n.zrX,c=n.zrY,d=SR(this,o,c),h=this._hovered,f=h.target;f&&!f.__zr&&(f=(h=this.findHover(h.x,h.y)).target);var p=this._hovered=d?new ts(o,c):this.findHover(o,c),g=p.target,v=this.proxy;v.setCursor&&v.setCursor(g?g.cursor:"default"),f&&g!==f&&this.dispatchToElement(h,"mouseout",n),this.dispatchToElement(p,"mousemove",n),g&&g!==f&&this.dispatchToElement(p,"mouseover",n)},i.prototype.mouseout=function(n){var o=n.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",n),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:n})},i.prototype.resize=function(){this._hovered=new ts(0,0)},i.prototype.dispatch=function(n,o){var c=this[n];c&&c.call(this,o)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(n){var o=this.proxy;o.setCursor&&o.setCursor(n)},i.prototype.dispatchToElement=function(n,o,c){var d=(n=n||{}).target;if(!d||!d.silent){for(var h="on"+o,f=function hn(a,i,n){return{type:a,event:n,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Lr}}(o,n,c);d&&(d[h]&&(f.cancelBubble=!!d[h].call(d,f)),d.trigger(o,f),d=d.__hostTarget?d.__hostTarget:d.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(o,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(p){"function"==typeof p[h]&&p[h].call(p,f),p.trigger&&p.trigger(o,f)}))}},i.prototype.findHover=function(n,o,c){var d=this.storage.getDisplayList(),h=new ts(n,o);if(CR(d,h,n,o,c),this._pointerSize&&!h.target){for(var f=[],p=this._pointerSize,g=p/2,v=new ce(n-g,o-g,p,p),_=d.length-1;_>=0;_--){var y=d[_];y!==c&&!y.ignore&&!y.ignoreCoarsePointer&&(!y.parent||!y.parent.ignoreCoarsePointer)&&(s0.copy(y.getBoundingRect()),y.transform&&s0.applyTransform(y.transform),s0.intersect(v)&&f.push(y))}if(f.length)for(var x=Math.PI/12,S=2*Math.PI,D=0;D=0;d--){var h=a[d],f=void 0;if(h!==c&&!h.ignore&&(f=l0(h,n,o))&&(!i.topTarget&&(i.topTarget=h),f!==ua)){i.target=h;break}}}function SR(a,i,n){var o=a.painter;return i<0||i>o.getWidth()||n<0||n>o.getHeight()}G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){JS.prototype[a]=function(i){var d,h,n=i.zrX,o=i.zrY,c=SR(this,n,o);if(("mouseup"!==a||!c)&&(h=(d=this.findHover(n,o)).target),"mousedown"===a)this._downEl=h,this._downPoint=[i.zrX,i.zrY],this._upEl=h;else if("mouseup"===a)this._upEl=h;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||ks(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(d,a,i)}});const Xi=JS;var vt=7;function fa(a,i,n,o){var c=i+1;if(c===n)return 1;if(o(a[c++],a[i])<0){for(;c=0;)c++;return c-i}function ph(a,i,n,o,c){for(o===i&&o++;o>>1])<0?f=p:h=p+1;var g=o-h;switch(g){case 3:a[h+3]=a[h+2];case 2:a[h+2]=a[h+1];case 1:a[h+1]=a[h];break;default:for(;g>0;)a[h+g]=a[h+g-1],g--}a[h]=d}}function oi(a,i,n,o,c,d){var h=0,f=0,p=1;if(d(a,i[n+c])>0){for(f=o-c;p0;)h=p,(p=1+(p<<1))<=0&&(p=f);p>f&&(p=f),h+=c,p+=c}else{for(f=c+1;pf&&(p=f);var g=h;h=c-p,p=c-g}for(h++;h>>1);d(a,i[n+v])>0?h=v+1:p=v}return p}function pa(a,i,n,o,c,d){var h=0,f=0,p=1;if(d(a,i[n+c])<0){for(f=c+1;pf&&(p=f);var g=h;h=c-p,p=c-g}else{for(f=o-c;p=0;)h=p,(p=1+(p<<1))<=0&&(p=f);p>f&&(p=f),h+=c,p+=c}for(h++;h>>1);d(a,i[n+v])<0?p=v:h=v+1}return p}function Ht(a,i,n,o){n||(n=0),o||(o=a.length);var c=o-n;if(!(c<2)){var d=0;if(c<32)return void ph(a,n,o,n+(d=fa(a,n,o,i)),i);var h=function Fl(a,i){var h,f,n=vt,p=0,g=[];function w(D){var T=h[D],A=f[D],E=h[D+1],k=f[D+1];f[D]=A+k,D===p-3&&(h[D+1]=h[D+2],f[D+1]=f[D+2]),p--;var L=pa(a[E],a,T,A,0,i);T+=L,0!=(A-=L)&&0!==(k=oi(a[T+A-1],a,E,k,k-1,i))&&(A<=k?function x(D,T,A,E){var k=0;for(k=0;k=vt||W>=vt);if($)break;U<0&&(U=0),U+=2}if((n=U)<1&&(n=1),1===T){for(k=0;k=0;k--)a[j+k]=a[U+k];if(0===T){K=!0;break}}if(a[B--]=g[O--],1==--E){K=!0;break}if(0!=(X=E-oi(a[L],g,0,E,E-1,i))){for(E-=X,j=1+(B-=X),U=1+(O-=X),k=0;k=vt||X>=vt);if(K)break;W<0&&(W=0),W+=2}if((n=W)<1&&(n=1),1===E){for(j=1+(B-=T),U=1+(L-=T),k=T-1;k>=0;k--)a[j+k]=a[U+k];a[B]=g[O]}else{if(0===E)throw new Error;for(U=B-(E-1),k=0;k=0;k--)a[j+k]=a[U+k];a[B]=g[O]}else for(U=B-(E-1),k=0;k1;){var D=p-2;if(D>=1&&f[D-1]<=f[D]+f[D+1]||D>=2&&f[D-2]<=f[D]+f[D-1])f[D-1]f[D+1])break;w(D)}},forceMergeRuns:function y(){for(;p>1;){var D=p-2;D>0&&f[D-1]=32;)i|=1&a,a>>=1;return a+i}(c);do{if((d=fa(a,n,o,i))f&&(p=f),ph(a,n,n+p,n+d,i),d=p}h.pushRun(n,d),h.mergeRuns(),c-=d,n+=d}while(0!==c);h.forceMergeRuns()}}var ma=1,Ls=4,Ri=!1;function mh(){Ri||(Ri=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gh(a,i){return a.zlevel===i.zlevel?a.z===i.z?a.z2-i.z2:a.z-i.z:a.zlevel-i.zlevel}var Nl=function(){function a(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gh}return a.prototype.traverse=function(i,n){for(var o=0;o0&&(v.__clipPaths=[]),isNaN(v.z)&&(mh(),v.z=0),isNaN(v.z2)&&(mh(),v.z2=0),isNaN(v.zlevel)&&(mh(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var _=i.getDecalElement&&i.getDecalElement();_&&this._updateAndAddDisplayable(_,n,o);var y=i.getTextGuideLine();y&&this._updateAndAddDisplayable(y,n,o);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,n,o)}},a.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},a.prototype.delRoot=function(i){if(i instanceof Array)for(var n=0,o=i.length;n=0&&this._roots.splice(c,1)}},a.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},a.prototype.getRoots=function(){return this._roots},a.prototype.dispose=function(){this._displayList=null,this._roots=null},a}();const Mv=Nl;var eD;eD=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){return setTimeout(a,16)};const Vl=eD;var vh={linear:function(a){return a},quadraticIn:function(a){return a*a},quadraticOut:function(a){return a*(2-a)},quadraticInOut:function(a){return(a*=2)<1?.5*a*a:-.5*(--a*(a-2)-1)},cubicIn:function(a){return a*a*a},cubicOut:function(a){return--a*a*a+1},cubicInOut:function(a){return(a*=2)<1?.5*a*a*a:.5*((a-=2)*a*a+2)},quarticIn:function(a){return a*a*a*a},quarticOut:function(a){return 1- --a*a*a*a},quarticInOut:function(a){return(a*=2)<1?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},quinticIn:function(a){return a*a*a*a*a},quinticOut:function(a){return--a*a*a*a*a+1},quinticInOut:function(a){return(a*=2)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},sinusoidalIn:function(a){return 1-Math.cos(a*Math.PI/2)},sinusoidalOut:function(a){return Math.sin(a*Math.PI/2)},sinusoidalInOut:function(a){return.5*(1-Math.cos(Math.PI*a))},exponentialIn:function(a){return 0===a?0:Math.pow(1024,a-1)},exponentialOut:function(a){return 1===a?1:1-Math.pow(2,-10*a)},exponentialInOut:function(a){return 0===a?0:1===a?1:(a*=2)<1?.5*Math.pow(1024,a-1):.5*(2-Math.pow(2,-10*(a-1)))},circularIn:function(a){return 1-Math.sqrt(1-a*a)},circularOut:function(a){return Math.sqrt(1- --a*a)},circularInOut:function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},elasticIn:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4))},elasticOut:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*a)*Math.sin((a-i)*(2*Math.PI)/.4)+1)},elasticInOut:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),(a*=2)<1?n*Math.pow(2,10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4)*.5+1)},backIn:function(a){var i=1.70158;return a*a*((i+1)*a-i)},backOut:function(a){var i=1.70158;return--a*a*((i+1)*a+i)+1},backInOut:function(a){var i=2.5949095;return(a*=2)<1?a*a*((i+1)*a-i)*.5:.5*((a-=2)*a*((i+1)*a+i)+2)},bounceIn:function(a){return 1-vh.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bounceInOut:function(a){return a<.5?.5*vh.bounceIn(2*a):.5*vh.bounceOut(2*a-1)+.5}};const Od=vh;var Bt=Math.pow,Bl=Math.sqrt,Ld=1e-8,Fs=1e-4,Av=Bl(3),Mc=1/3,Yn=Ed(),po=Ed(),or=Ed();function Ui(a){return a>-Ld&&aLd||a<-Ld}function Ti(a,i,n,o,c){var d=1-c;return d*d*(d*a+3*c*i)+c*c*(c*o+3*d*n)}function Ev(a,i,n,o,c){var d=1-c;return 3*(((i-a)*d+2*(n-i)*c)*d+(o-n)*c*c)}function mo(a,i,n,o,c,d){var h=o+3*(i-n)-a,f=3*(n-2*i+a),p=3*(i-a),g=a-c,v=f*f-3*h*p,_=f*p-9*h*g,y=p*p-3*f*g,w=0;if(Ui(v)&&Ui(_))Ui(f)?d[0]=0:(x=-p/f)>=0&&x<=1&&(d[w++]=x);else{var S=_*_-4*v*y;if(Ui(S)){var D=_/v,T=-D/2;(x=-f/h+D)>=0&&x<=1&&(d[w++]=x),T>=0&&T<=1&&(d[w++]=T)}else if(S>0){var A=Bl(S),E=v*f+1.5*h*(-_+A),k=v*f+1.5*h*(-_-A);(x=(-f-((E=E<0?-Bt(-E,Mc):Bt(E,Mc))+(k=k<0?-Bt(-k,Mc):Bt(k,Mc))))/(3*h))>=0&&x<=1&&(d[w++]=x)}else{var L=(2*v*f-3*h*_)/(2*Bl(v*v*v)),O=Math.acos(L)/3,B=Bl(v),U=Math.cos(O),x=(-f-2*B*U)/(3*h),j=(T=(-f+B*(U+Av*Math.sin(O)))/(3*h),(-f+B*(U-Av*Math.sin(O)))/(3*h));x>=0&&x<=1&&(d[w++]=x),T>=0&&T<=1&&(d[w++]=T),j>=0&&j<=1&&(d[w++]=j)}}return w}function d0(a,i,n,o,c){var d=6*n-12*i+6*a,h=9*i+3*o-3*a-9*n,f=3*i-3*a,p=0;if(Ui(h))c0(d)&&(g=-f/d)>=0&&g<=1&&(c[p++]=g);else{var v=d*d-4*h*f;if(Ui(v))c[0]=-d/(2*h);else if(v>0){var g,_=Bl(v),y=(-d-_)/(2*h);(g=(-d+_)/(2*h))>=0&&g<=1&&(c[p++]=g),y>=0&&y<=1&&(c[p++]=y)}}return p}function Fd(a,i,n,o,c,d){var h=(i-a)*c+a,f=(n-i)*c+i,p=(o-n)*c+n,g=(f-h)*c+h,v=(p-f)*c+f,_=(v-g)*c+g;d[0]=a,d[1]=h,d[2]=g,d[3]=_,d[4]=_,d[5]=v,d[6]=p,d[7]=o}function DR(a,i,n,o,c,d,h,f,p,g,v){var _,x,S,D,T,y=.005,w=1/0;Yn[0]=p,Yn[1]=g;for(var A=0;A<1;A+=.05)po[0]=Ti(a,n,c,h,A),po[1]=Ti(i,o,d,f,A),(D=kl(Yn,po))=0&&D=0&&w<_)g=S,_=w;else{or[0]=Fr(a,n,c,D),or[1]=Fr(i,o,d,D);var T=kl(or,Yn);D<=1&&T<_?(g=D,_=T):v*=.5}}return p&&(p[0]=Fr(a,n,c,g),p[1]=Fr(i,o,d,g)),Bl(_)}function bX(a,i,n,o,c,d,h){for(var f=a,p=i,g=0,v=1/h,_=1;_<=h;_++){var y=_*v,w=Fr(a,n,c,y),x=Fr(i,o,d,y),S=w-f,D=x-p;g+=Math.sqrt(S*S+D*D),f=w,p=x}return g}var wX=/cubic-bezier\(([0-9,\.e ]+)\)/;function TR(a){var i=a&&wX.exec(a);if(i){var n=i[1].split(","),o=+la(n[0]),c=+la(n[1]),d=+la(n[2]),h=+la(n[3]);if(isNaN(o+c+d+h))return;var f=[];return function(p){return p<=0?0:p>=1?1:mo(0,o,d,1,p,f)&&Ti(0,c,h,1,f[0])}}}var xX=function(){function a(i){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=i.loop||!1,this.onframe=i.onframe||qi,this.ondestroy=i.ondestroy||qi,this.onrestart=i.onrestart||qi,i.easing&&this.setEasing(i.easing)}return a.prototype.step=function(i,n){if(this._inited||(this._startTime=i+this._delay,this._inited=!0),!this._paused){var o=this._life,c=i-this._startTime-this._pausedTime,d=c/o;d<0&&(d=0),d=Math.min(d,1);var h=this.easingFunc,f=h?h(d):d;if(this.onframe(f),1===d){if(!this.loop)return!0;this._startTime=i-c%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=n},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused=!1},a.prototype.setEasing=function(i){this.easing=i,this.easingFunc=Xe(i)?i:Od[i]||TR(i)},a}();const CX=xX;var hH=function a(i){this.value=i},SX=function(){function a(){this._len=0}return a.prototype.insert=function(i){var n=new hH(i);return this.insertEntry(n),n},a.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},a.prototype.remove=function(i){var n=i.prev,o=i.next;n?n.next=o:this.head=o,o?o.prev=n:this.tail=n,i.next=i.prev=null,this._len--},a.prototype.len=function(){return this._len},a.prototype.clear=function(){this.head=this.tail=null,this._len=0},a}(),DX=function(){function a(i){this._list=new SX,this._maxSize=10,this._map={},this._maxSize=i}return a.prototype.put=function(i,n){var o=this._list,c=this._map,d=null;if(null==c[i]){var h=o.len(),f=this._lastRemovedEntry;if(h>=this._maxSize&&h>0){var p=o.head;o.remove(p),delete c[p.key],d=p.value,this._lastRemovedEntry=p}f?f.value=n:f=new hH(n),f.key=i,o.insertEntry(f),c[i]=f}return d},a.prototype.get=function(i){var n=this._map[i],o=this._list;if(null!=n)return n!==o.tail&&(o.remove(n),o.insertEntry(n)),n.value},a.prototype.clear=function(){this._list.clear(),this._map={}},a.prototype.len=function(){return this._list.len()},a}();const h0=DX;var rD={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ns(a){return(a=Math.round(a))<0?0:a>255?255:a}function f0(a){return a<0?0:a>1?1:a}function MR(a){var i=a;return i.length&&"%"===i.charAt(i.length-1)?ns(parseFloat(i)/100*255):ns(parseInt(i,10))}function Ap(a){var i=a;return i.length&&"%"===i.charAt(i.length-1)?f0(parseFloat(i)/100):f0(parseFloat(i))}function Ac(a,i,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?a+(i-a)*n*6:2*n<1?i:3*n<2?a+(i-a)*(2/3-n)*6:a}function Nd(a,i,n){return a+(i-a)*n}function nn(a,i,n,o,c){return a[0]=i,a[1]=n,a[2]=o,a[3]=c,a}function p0(a,i){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a}var AR=new h0(20),m0=null;function _h(a,i){m0&&p0(m0,i),m0=AR.put(a,m0||i.slice())}function Ea(a,i){if(a){i=i||[];var n=AR.get(a);if(n)return p0(i,n);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in rD)return p0(i,rD[o]),_h(a,i),i;var d,c=o.length;if("#"===o.charAt(0))return 4===c||5===c?(d=parseInt(o.slice(1,4),16))>=0&&d<=4095?(nn(i,(3840&d)>>4|(3840&d)>>8,240&d|(240&d)>>4,15&d|(15&d)<<4,5===c?parseInt(o.slice(4),16)/15:1),_h(a,i),i):void nn(i,0,0,0,1):7===c||9===c?(d=parseInt(o.slice(1,7),16))>=0&&d<=16777215?(nn(i,(16711680&d)>>16,(65280&d)>>8,255&d,9===c?parseInt(o.slice(7),16)/255:1),_h(a,i),i):void nn(i,0,0,0,1):void 0;var h=o.indexOf("("),f=o.indexOf(")");if(-1!==h&&f+1===c){var p=o.substr(0,h),g=o.substr(h+1,f-(h+1)).split(","),v=1;switch(p){case"rgba":if(4!==g.length)return 3===g.length?nn(i,+g[0],+g[1],+g[2],1):nn(i,0,0,0,1);v=Ap(g.pop());case"rgb":return g.length>=3?(nn(i,MR(g[0]),MR(g[1]),MR(g[2]),3===g.length?v:Ap(g[3])),_h(a,i),i):void nn(i,0,0,0,1);case"hsla":return 4!==g.length?void nn(i,0,0,0,1):(g[3]=Ap(g[3]),aD(g,i),_h(a,i),i);case"hsl":return 3!==g.length?void nn(i,0,0,0,1):(aD(g,i),_h(a,i),i);default:return}}nn(i,0,0,0,1)}}function aD(a,i){var n=(parseFloat(a[0])%360+360)%360/360,o=Ap(a[1]),c=Ap(a[2]),d=c<=.5?c*(o+1):c+o-c*o,h=2*c-d;return nn(i=i||[],ns(255*Ac(h,d,n+1/3)),ns(255*Ac(h,d,n)),ns(255*Ac(h,d,n-1/3)),1),4===a.length&&(i[3]=a[3]),i}function g0(a,i){var n=Ea(a);if(n){for(var o=0;o<3;o++)n[o]=i<0?n[o]*(1-i)|0:(255-n[o])*i+n[o]|0,n[o]>255?n[o]=255:n[o]<0&&(n[o]=0);return No(n,4===n.length?"rgba":"rgb")}}function zl(a){var i=Ea(a);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Ep(a,i,n){if(i&&i.length&&a>=0&&a<=1){n=n||[];var o=a*(i.length-1),c=Math.floor(o),d=Math.ceil(o),h=i[c],f=i[d],p=o-c;return n[0]=ns(Nd(h[0],f[0],p)),n[1]=ns(Nd(h[1],f[1],p)),n[2]=ns(Nd(h[2],f[2],p)),n[3]=f0(Nd(h[3],f[3],p)),n}}var ER=Ep;function v0(a,i,n){if(i&&i.length&&a>=0&&a<=1){var o=a*(i.length-1),c=Math.floor(o),d=Math.ceil(o),h=Ea(i[c]),f=Ea(i[d]),p=o-c,g=No([ns(Nd(h[0],f[0],p)),ns(Nd(h[1],f[1],p)),ns(Nd(h[2],f[2],p)),f0(Nd(h[3],f[3],p))],"rgba");return n?{color:g,leftIndex:c,rightIndex:d,value:o}:g}}var fH=v0;function Iv(a,i,n,o){var c=Ea(a);if(a)return c=function oD(a){if(a){var p,g,i=a[0]/255,n=a[1]/255,o=a[2]/255,c=Math.min(i,n,o),d=Math.max(i,n,o),h=d-c,f=(d+c)/2;if(0===h)p=0,g=0;else{g=f<.5?h/(d+c):h/(2-d-c);var v=((d-i)/6+h/2)/h,_=((d-n)/6+h/2)/h,y=((d-o)/6+h/2)/h;i===d?p=y-_:n===d?p=1/3+v-y:o===d&&(p=2/3+_-v),p<0&&(p+=1),p>1&&(p-=1)}var w=[360*p,g,f];return null!=a[3]&&w.push(a[3]),w}}(c),null!=i&&(c[0]=function TX(a){return(a=Math.round(a))<0?0:a>360?360:a}(i)),null!=n&&(c[1]=Ap(n)),null!=o&&(c[2]=Ap(o)),No(aD(c),"rgba")}function qn(a,i){var n=Ea(a);if(n&&null!=i)return n[3]=f0(i),No(n,"rgba")}function No(a,i){if(a&&a.length){var n=a[0]+","+a[1]+","+a[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(n+=","+a[3]),i+"("+n+")"}}function Ec(a,i){var n=Ea(a);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*i:0}function Xa(){return No([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var kv=Math.round;function Ic(a){var i;if(a&&"transparent"!==a){if("string"==typeof a&&a.indexOf("rgba")>-1){var n=Ea(a);n&&(a="rgb("+n[0]+","+n[1]+","+n[2]+")",i=n[3])}}else a="none";return{color:a,opacity:i??1}}var yh=1e-4;function br(a){return a-yh}function _0(a){return kv(1e3*a)/1e3}function Pv(a){return kv(1e4*a)/1e4}var IR={left:"start",right:"end",center:"middle",middle:"middle"};function Ip(a){return a&&!!a.image}function Rv(a){return Ip(a)||function y0(a){return a&&!!a.svgElement}(a)}function Vd(a){return"linear"===a.type}function Rt(a){return"radial"===a.type}function sD(a){return a&&("linear"===a.type||"radial"===a.type)}function lD(a){return"url(#"+a+")"}function OR(a){var i=a.getGlobalScale(),n=Math.max(i[0],i[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function LR(a){var i=a.x||0,n=a.y||0,o=(a.rotation||0)*yv,c=gt(a.scaleX,1),d=gt(a.scaleY,1),h=a.skewX||0,f=a.skewY||0,p=[];return(i||n)&&p.push("translate("+i+"px,"+n+"px)"),o&&p.push("rotate("+o+")"),(1!==c||1!==d)&&p.push("scale("+c+","+d+")"),(h||f)&&p.push("skew("+kv(h*yv)+"deg, "+kv(f*yv)+"deg)"),p.join(" ")}var mH=tn.hasGlobalWindow&&Xe(window.btoa)?function(a){return window.btoa(unescape(encodeURIComponent(a)))}:typeof Buffer<"u"?function(a){return Buffer.from(a).toString("base64")}:function(a){return null},b0=Array.prototype.slice;function go(a,i,n){return(i-a)*n+a}function cD(a,i,n,o){for(var c=i.length,d=0;do?i:a,d=Math.min(n,o),h=c[d-1]||{color:[0,0,0,0],offset:0},f=d;fh)o.length=h;else for(var p=d;p=1},a.prototype.getAdditiveTrack=function(){return this._additiveTrack},a.prototype.addKeyframe=function(i,n,o){this._needsSort=!0;var c=this.keyframes,d=c.length,h=!1,f=6,p=n;if(ki(n)){var g=function le(a){return ki(a&&a[0])?2:1}(n);f=g,(1===g&&!on(n[0])||2===g&&!on(n[0][0]))&&(h=!0)}else if(on(n)&&!Jt(n))f=0;else if(Ae(n))if(isNaN(+n)){var v=Ea(n);v&&(p=v,f=3)}else f=0;else if(ah(n)){var _=_e({},p);_.colorStops=Se(n.colorStops,function(w){return{offset:w.offset,color:Ea(w.color)}}),Vd(n)?f=4:Rt(n)&&(f=5),p=_}0===d?this.valType=f:(f!==this.valType||6===f)&&(h=!0),this.discrete=this.discrete||h;var y={time:i,value:p,rawValue:n,percent:0};return o&&(y.easing=o,y.easingFunc=Xe(o)?o:Od[o]||TR(o)),c.push(y),y},a.prototype.prepare=function(i,n){var o=this.keyframes;this._needsSort&&o.sort(function(S,D){return S.time-D.time});for(var c=this.valType,d=o.length,h=o[d-1],f=this.discrete,p=Nv(c),g=_H(c),v=0;v=0&&!(h[v].percent<=n);v--);v=y(v,f-2)}else{for(v=_;vn);v++);v=y(v-1,f-2)}x=h[v+1],w=h[v]}if(w&&x){this._lastFr=v,this._lastFrP=n;var D=x.percent-w.percent,T=0===D?1:y((n-w.percent)/D,1);x.easingFunc&&(T=x.easingFunc(T));var A=o?this._additiveValue:g?Nr:i[p];if((Nv(d)||g)&&!A&&(A=this._additiveValue=[]),this.discrete)i[p]=T<1?w.rawValue:x.rawValue;else if(Nv(d))1===d?cD(A,w[c],x[c],T):function gH(a,i,n,o){for(var c=i.length,d=c&&i[0].length,h=0;h0&&p.addKeyframe(0,fn(g),c),this._trackKeys.push(f)}p.addKeyframe(i,fn(n[f]),c)}return this._maxTime=Math.max(this._maxTime,i),this},a.prototype.pause=function(){this._clip.pause(),this._paused=!0},a.prototype.resume=function(){this._clip.resume(),this._paused=!1},a.prototype.isPaused=function(){return!!this._paused},a.prototype.duration=function(i){return this._maxTime=i,this._force=!0,this},a.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var i=this._doneCbs;if(i)for(var n=i.length,o=0;o0)){this._started=1;for(var n=this,o=[],c=this._maxTime||0,d=0;d1){var f=h.pop();d.addKeyframe(f.time,i[c]),d.prepare(this._maxTime,d.getAdditiveTrack())}}}},a}();const is=VR;function _o(){return(new Date).getTime()}var yH=function(a){function i(n){var o=a.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(n=n||{}).stage||{},o}return cn(i,a),i.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},i.prototype.addAnimator=function(n){n.animation=this;var o=n.getClip();o&&this.addClip(o)},i.prototype.removeClip=function(n){if(n.animation){var o=n.prev,c=n.next;o?o.next=c:this._head=c,c?c.prev=o:this._tail=o,n.next=n.prev=n.animation=null}},i.prototype.removeAnimator=function(n){var o=n.getClip();o&&this.removeClip(o),n.animation=null},i.prototype.update=function(n){for(var o=_o()-this._pausedTime,c=o-this._time,d=this._head;d;){var h=d.next;d.step(o,c)&&(d.ondestroy(),this.removeClip(d)),d=h}this._time=o,n||(this.trigger("frame",c),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var n=this;this._running=!0,Vl(function o(){n._running&&(Vl(o),!n._paused&&n.update())})},i.prototype.start=function(){this._running||(this._time=_o(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=_o(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=_o()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var n=this._head;n;){var o=n.next;n.prev=n.next=n.animation=null,n=o}this._head=this._tail=null},i.prototype.isFinished=function(){return null==this._head},i.prototype.animate=function(n,o){o=o||{},this.start();var c=new is(n,o.loop);return this.addAnimator(c),c},i}(Za);const BR=yH;var dD=tn.domSupported,Vv=function(){var a=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:a,touch:["touchstart","touchend","touchmove"],pointer:Se(a,function(c){var d=c.replace("mouse","pointer");return n.hasOwnProperty(d)?d:c})}}(),x0_mouse=["mousemove","mouseup"],x0_pointer=["pointermove","pointerup"],uD=!1;function Bv(a){var i=a.pointerType;return"pen"===i||"touch"===i}function C0(a){a&&(a.zrByTouch=!0)}function fD(a,i){for(var n=i,o=!1;n&&9!==n.nodeType&&!(o=n.domBelongToZr||n!==i&&n===a.painterRoot);)n=n.parentNode;return o}var zR=function a(i,n){this.stopPropagation=qi,this.stopImmediatePropagation=qi,this.preventDefault=qi,this.type=n.type,this.target=this.currentTarget=i.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY},rs={mousedown:function(a){a=Zi(this.dom,a),this.__mayPointerCapture=[a.zrX,a.zrY],this.trigger("mousedown",a)},mousemove:function(a){a=Zi(this.dom,a);var i=this.__mayPointerCapture;i&&(a.zrX!==i[0]||a.zrY!==i[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",a)},mouseup:function(a){a=Zi(this.dom,a),this.__togglePointerCapture(!1),this.trigger("mouseup",a)},mouseout:function(a){fD(this,(a=Zi(this.dom,a)).toElement||a.relatedTarget)||(this.__pointerCapturing&&(a.zrEventControl="no_globalout"),this.trigger("mouseout",a))},wheel:function(a){uD=!0,a=Zi(this.dom,a),this.trigger("mousewheel",a)},mousewheel:function(a){uD||(a=Zi(this.dom,a),this.trigger("mousewheel",a))},touchstart:function(a){C0(a=Zi(this.dom,a)),this.__lastTouchMoment=new Date,this.handler.processGesture(a,"start"),rs.mousemove.call(this,a),rs.mousedown.call(this,a)},touchmove:function(a){C0(a=Zi(this.dom,a)),this.handler.processGesture(a,"change"),rs.mousemove.call(this,a)},touchend:function(a){C0(a=Zi(this.dom,a)),this.handler.processGesture(a,"end"),rs.mouseup.call(this,a),+new Date-+this.__lastTouchMoment<300&&rs.click.call(this,a)},pointerdown:function(a){rs.mousedown.call(this,a)},pointermove:function(a){Bv(a)||rs.mousemove.call(this,a)},pointerup:function(a){rs.mouseup.call(this,a)},pointerout:function(a){Bv(a)||rs.mouseout.call(this,a)}};G(["click","dblclick","contextmenu"],function(a){rs[a]=function(i){i=Zi(this.dom,i),this.trigger(a,i)}});var S0={pointermove:function(a){Bv(a)||S0.mousemove.call(this,a)},pointerup:function(a){S0.mouseup.call(this,a)},mousemove:function(a){this.trigger("mousemove",a)},mouseup:function(a){var i=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",a),i&&(a.zrEventControl="only_globalout",this.trigger("mouseout",a))}};function Vr(a,i,n,o){a.mounted[i]=n,a.listenerOpts[i]=o,Tn(a.domTarget,i,n,o)}function Pc(a){var i=a.mounted;for(var n in i)i.hasOwnProperty(n)&&_R(a.domTarget,n,i[n],a.listenerOpts[n]);a.mounted={}}var _i=function a(i,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=n},Ia=function(a){function i(n,o){var c=a.call(this)||this;return c.__pointerCapturing=!1,c.dom=n,c.painterRoot=o,c._localHandlerScope=new _i(n,rs),dD&&(c._globalHandlerScope=new _i(document,S0)),function pD(a,i){var n=i.domHandlers;tn.pointerEventsSupported?G(Vv.pointer,function(o){Vr(i,o,function(c){n[o].call(a,c)})}):(tn.touchEventsSupported&&G(Vv.touch,function(o){Vr(i,o,function(c){n[o].call(a,c),function wH(a){a.touching=!0,null!=a.touchTimer&&(clearTimeout(a.touchTimer),a.touchTimer=null),a.touchTimer=setTimeout(function(){a.touching=!1,a.touchTimer=null},700)}(i)})}),G(Vv.mouse,function(o){Vr(i,o,function(c){c=Sp(c),i.touching||n[o].call(a,c)})}))}(c,c._localHandlerScope),c}return cn(i,a),i.prototype.dispose=function(){Pc(this._localHandlerScope),dD&&Pc(this._globalHandlerScope)},i.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},i.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,dD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var o=this._globalHandlerScope;n?function xH(a,i){function n(o){Vr(i,o,function c(d){d=Sp(d),fD(a,d.target)||(d=function hD(a,i){return Zi(a.dom,new zR(a,i),!0)}(a,d),i.domHandlers[o].call(a,d))},{capture:!0})}tn.pointerEventsSupported?G(x0_pointer,n):tn.touchEventsSupported||G(x0_mouse,n)}(this,o):Pc(o)}},i}(Za);const CH=Ia;var Bd=1;tn.hasGlobalWindow&&(Bd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zv=Bd,Pp="#333",Ul="#ccc",Hv=Tp;function jl(a){return a>5e-5||a<-5e-5}var Rc=[],bh=[],T0=[1,0,0,1,0,0],mD=Math.abs,Rp=function(){function a(){}return a.prototype.getLocalTransform=function(i){return a.getLocalTransform(this,i)},a.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},a.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},a.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},a.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},a.prototype.needLocalTransform=function(){return jl(this.rotation)||jl(this.x)||jl(this.y)||jl(this.scaleX-1)||jl(this.scaleY-1)||jl(this.skewX)||jl(this.skewY)},a.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,n=this.needLocalTransform(),o=this.transform;n||i?(o=o||[1,0,0,1,0,0],n?this.getLocalTransform(o):Hv(o),i&&(n?Ll(o,i,o):a0(o,i)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&(Hv(o),this.invTransform=null)},a.prototype._resolveGlobalScaleRatio=function(i){var n=this.globalScaleRatio;if(null!=n&&1!==n){this.getGlobalScale(Rc);var o=Rc[0]<0?-1:1,c=Rc[1]<0?-1:1,d=((Rc[0]-o)*n+o)/Rc[0]||0,h=((Rc[1]-c)*n+c)/Rc[1]||0;i[0]*=d,i[1]*=d,i[2]*=h,i[3]*=h}this.invTransform=this.invTransform||[1,0,0,1,0,0],dh(this.invTransform,i)},a.prototype.getComputedTransform=function(){for(var i=this,n=[];i;)n.push(i),i=i.parent;for(;i=n.pop();)i.updateTransform();return this.transform},a.prototype.setLocalTransform=function(i){if(i){var n=i[0]*i[0]+i[1]*i[1],o=i[2]*i[2]+i[3]*i[3],c=Math.atan2(i[1],i[0]),d=Math.PI/2+c-Math.atan2(i[3],i[2]);o=Math.sqrt(o)*Math.cos(d),n=Math.sqrt(n),this.skewX=d,this.skewY=0,this.rotation=-c,this.x=+i[4],this.y=+i[5],this.scaleX=n,this.scaleY=o,this.originX=0,this.originY=0}},a.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,n=this.transform;i&&i.transform&&(Ll(bh,i.invTransform,n),n=bh);var o=this.originX,c=this.originY;(o||c)&&(T0[4]=o,T0[5]=c,Ll(bh,n,T0),bh[4]-=o,bh[5]-=c,n=bh),this.setLocalTransform(n)}},a.prototype.getGlobalScale=function(i){var n=this.transform;return i=i||[],n?(i[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),i[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(i[0]=-i[0]),n[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},a.prototype.transformCoordToLocal=function(i,n){var o=[i,n],c=this.invTransform;return c&&ca(o,o,c),o},a.prototype.transformCoordToGlobal=function(i,n){var o=[i,n],c=this.transform;return c&&ca(o,o,c),o},a.prototype.getLineScale=function(){var i=this.transform;return i&&mD(i[0]-1)>1e-10&&mD(i[3]-1)>1e-10?Math.sqrt(mD(i[0]*i[3]-i[2]*i[1])):1},a.prototype.copyTransform=function(i){HR(this,i)},a.getLocalTransform=function(i,n){n=n||[];var o=i.originX||0,c=i.originY||0,d=i.scaleX,h=i.scaleY,f=i.anchorX,p=i.anchorY,g=i.rotation||0,v=i.x,_=i.y,y=i.skewX?Math.tan(i.skewX):0,w=i.skewY?Math.tan(-i.skewY):0;if(o||c||f||p){var x=o+f,S=c+p;n[4]=-x*d-y*S*h,n[5]=-S*h-w*x*d}else n[4]=n[5]=0;return n[0]=d,n[3]=h,n[1]=w*d,n[2]=y*h,g&&Rd(n,n,g),n[4]+=o+v,n[5]+=c+_,n},a.initDefaultProps=function(){var i=a.prototype;i.scaleX=i.scaleY=i.globalScaleRatio=1,i.x=i.y=i.originX=i.originY=i.skewX=i.skewY=i.rotation=i.anchorX=i.anchorY=0}(),a}(),yo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function HR(a,i){for(var n=0;n=0?parseFloat(a)/100*i:parseFloat(a):a}function Op(a,i,n){var o=i.position||"inside",c=null!=i.distance?i.distance:5,d=n.height,h=n.width,f=d/2,p=n.x,g=n.y,v="left",_="top";if(o instanceof Array)p+=Ka(o[0],n.width),g+=Ka(o[1],n.height),v=null,_=null;else switch(o){case"left":p-=c,g+=f,v="right",_="middle";break;case"right":p+=c+h,g+=f,_="middle";break;case"top":p+=h/2,g-=c,v="center",_="bottom";break;case"bottom":p+=h/2,g+=d+c,v="center";break;case"inside":p+=h/2,g+=f,v="center",_="middle";break;case"insideLeft":p+=c,g+=f,_="middle";break;case"insideRight":p+=h-c,g+=f,v="right",_="middle";break;case"insideTop":p+=h/2,g+=c,v="center";break;case"insideBottom":p+=h/2,g+=d-c,v="center",_="bottom";break;case"insideTopLeft":p+=c,g+=c;break;case"insideTopRight":p+=h-c,g+=c,v="right";break;case"insideBottomLeft":p+=c,g+=d-c,_="bottom";break;case"insideBottomRight":p+=h-c,g+=d-c,v="right",_="bottom"}return(a=a||{}).x=p,a.y=g,a.align=v,a.verticalAlign=_,a}var Lp="__zr_normal__",GR=yo.concat(["ignore"]),WR=ln(yo,function(a,i){return a[i]=!0,a},{ignore:!1}),wh={},DH=new ce(0,0,0,0),as=function(){function a(i){this.id=VS(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return a.prototype._init=function(i){this.attr(i)},a.prototype.drift=function(i,n,o){switch(this.draggable){case"horizontal":n=0;break;case"vertical":i=0}var c=this.transform;c||(c=this.transform=[1,0,0,1,0,0]),c[4]+=i,c[5]+=n,this.decomposeTransform(),this.markRedraw()},a.prototype.beforeUpdate=function(){},a.prototype.afterUpdate=function(){},a.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},a.prototype.updateInnerText=function(i){var n=this._textContent;if(n&&(!n.ignore||i)){this.textConfig||(this.textConfig={});var o=this.textConfig,c=o.local,d=n.innerTransformable,h=void 0,f=void 0,p=!1;d.parent=c?this:null;var g=!1;if(d.copyTransform(n),null!=o.position){var v=DH;v.copy(o.layoutRect?o.layoutRect:this.getBoundingRect()),c||v.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wh,o,v):Op(wh,o,v),d.x=wh.x,d.y=wh.y,h=wh.align,f=wh.verticalAlign;var _=o.origin;if(_&&null!=o.rotation){var y=void 0,w=void 0;"center"===_?(y=.5*v.width,w=.5*v.height):(y=Ka(_[0],v.width),w=Ka(_[1],v.height)),g=!0,d.originX=-d.x+y+(c?0:v.x),d.originY=-d.y+w+(c?0:v.y)}}null!=o.rotation&&(d.rotation=o.rotation);var x=o.offset;x&&(d.x+=x[0],d.y+=x[1],g||(d.originX=-x[0],d.originY=-x[1]));var S=null==o.inside?"string"==typeof o.position&&o.position.indexOf("inside")>=0:o.inside,D=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,A=void 0,E=void 0;S&&this.canBeInsideText()?(A=o.insideStroke,(null==(T=o.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==A||"auto"===A)&&(A=this.getInsideTextStroke(T),E=!0)):(A=o.outsideStroke,(null==(T=o.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==A||"auto"===A)&&(A=this.getOutsideStroke(T),E=!0)),((T=T||"#000")!==D.fill||A!==D.stroke||E!==D.autoStroke||h!==D.align||f!==D.verticalAlign)&&(p=!0,D.fill=T,D.stroke=A,D.autoStroke=E,D.align=h,D.verticalAlign=f,n.setDefaultTextStyle(D)),n.__dirty|=ma,p&&n.dirtyStyle(!0)}},a.prototype.canBeInsideText=function(){return!0},a.prototype.getInsideTextFill=function(){return"#fff"},a.prototype.getInsideTextStroke=function(i){return"#000"},a.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ul:Pp},a.prototype.getOutsideStroke=function(i){var n=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof n&&Ea(n);o||(o=[255,255,255,1]);for(var c=o[3],d=this.__zr.isDarkMode(),h=0;h<3;h++)o[h]=o[h]*c+(d?0:255)*(1-c);return o[3]=1,No(o,"rgba")},a.prototype.traverse=function(i,n){},a.prototype.attrKV=function(i,n){"textConfig"===i?this.setTextConfig(n):"textContent"===i?this.setTextContent(n):"clipPath"===i?this.setClipPath(n):"extra"===i?(this.extra=this.extra||{},_e(this.extra,n)):this[i]=n},a.prototype.hide=function(){this.ignore=!0,this.markRedraw()},a.prototype.show=function(){this.ignore=!1,this.markRedraw()},a.prototype.attr=function(i,n){if("string"==typeof i)this.attrKV(i,n);else if(Ee(i))for(var c=Wt(i),d=0;d0},a.prototype.getState=function(i){return this.states[i]},a.prototype.ensureState=function(i){var n=this.states;return n[i]||(n[i]={}),n[i]},a.prototype.clearStates=function(i){this.useState(Lp,!1,i)},a.prototype.useState=function(i,n,o,c){var d=i===Lp;if(this.hasState()||!d){var f=this.currentStates,p=this.stateTransition;if(!(Ct(f,i)>=0)||!n&&1!==f.length){var g;if(this.stateProxy&&!d&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!d)return void wp("State "+i+" not exists.");d||this.saveCurrentToNormalState(g);var v=!!(g&&g.hoverLayer||c);v&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,n,!o&&!this.__inHover&&p&&p.duration>0,p);var _=this._textContent,y=this._textGuide;return _&&_.useState(i,n,o,v),y&&y.useState(i,n,o,v),d?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ma),g}}},a.prototype.useStates=function(i,n,o){if(i.length){var c=[],d=this.currentStates,h=i.length,f=h===d.length;if(f)for(var p=0;p0,x);var S=this._textContent,D=this._textGuide;S&&S.useStates(i,n,y),D&&D.useStates(i,n,y),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!y&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ma)}else this.clearStates()},a.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var o=this.currentStates.slice();o.splice(n,1),this.useStates(o)}},a.prototype.replaceState=function(i,n,o){var c=this.currentStates.slice(),d=Ct(c,i),h=Ct(c,n)>=0;d>=0?h?c.splice(d,1):c[d]=n:o&&!h&&c.push(n),this.useStates(c)},a.prototype.toggleState=function(i,n){n?this.useState(i,!0):this.removeState(i)},a.prototype._mergeStates=function(i){for(var o,n={},c=0;c=0&&d.splice(h,1)}),this.animators.push(i),o&&o.animation.addAnimator(i),o&&o.wakeUp()},a.prototype.updateDuringAnimation=function(i){this.markRedraw()},a.prototype.stopAnimation=function(i,n){for(var o=this.animators,c=o.length,d=[],h=0;h0&&n.during&&d[0].during(function(x,S){n.during(S)});for(var y=0;y0||c.force&&!h.length){var L,U=void 0,j=void 0,W=void 0;if(f)for(j={},y&&(U={}),k=0;k=0&&(c.splice(d,0,n),this._doAdd(n))}return this},i.prototype.replace=function(n,o){var c=Ct(this._children,n);return c>=0&&this.replaceAt(o,c),this},i.prototype.replaceAt=function(n,o){var c=this._children,d=c[o];if(n&&n!==this&&n.parent!==this&&n!==d){c[o]=n,d.parent=null;var h=this.__zr;h&&d.removeSelfFromZr(h),this._doAdd(n)}return this},i.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var o=this.__zr;o&&o!==n.__zr&&n.addSelfToZr(o),o&&o.refresh()},i.prototype.remove=function(n){var o=this.__zr,c=this._children,d=Ct(c,n);return d<0||(c.splice(d,1),n.parent=null,o&&n.removeSelfFromZr(o),o&&o.refresh()),this},i.prototype.removeAll=function(){for(var n=this._children,o=this.__zr,c=0;c0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},a.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},a.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},a.prototype.refreshHover=function(){this._needsRefreshHover=!0},a.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},a.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},a.prototype.clearAnimation=function(){this.animation.clear()},a.prototype.getWidth=function(){return this.painter.getWidth()},a.prototype.getHeight=function(){return this.painter.getHeight()},a.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},a.prototype.findHover=function(i,n){return this.handler.findHover(i,n)},a.prototype.on=function(i,n,o){return this.handler.on(i,n,o),this},a.prototype.off=function(i,n){this.handler.off(i,n)},a.prototype.trigger=function(i,n){this.handler.trigger(i,n)},a.prototype.clear=function(){for(var i=this.storage.getRoots(),n=0;n0){if(a<=c)return h;if(a>=d)return f}else{if(a>=c)return h;if(a<=d)return f}else{if(a===c)return h;if(a===d)return f}return(a-c)/p*g+h}function Ie(a,i){switch(a){case"center":case"middle":a="50%";break;case"left":case"top":a="0%";break;case"right":case"bottom":a="100%"}return Ae(a)?function AH(a){return a.replace(/^\s+|\s+$/g,"")}(a).match(/%$/)?parseFloat(a)/100*i:parseFloat(a):null==a?NaN:+a}function ti(a,i,n){return null==i&&(i=10),i=Math.min(Math.max(0,i),P0),a=(+a).toFixed(i),n?a:+a}function Qr(a){return a.sort(function(i,n){return i-n}),a}function ka(a){if(a=+a,isNaN(a))return 0;if(a>1e-14)for(var i=1,n=0;n<15;n++,i*=10)if(Math.round(a*i)/i===a)return n;return wD(a)}function wD(a){var i=a.toString().toLowerCase(),n=i.indexOf("e"),o=n>0?+i.slice(n+1):0,c=n>0?n:i.length,d=i.indexOf(".");return Math.max(0,(d<0?0:c-1-d)-o)}function Gv(a,i){var n=Math.log,o=Math.LN10,c=Math.floor(n(a[1]-a[0])/o),d=Math.round(n(Math.abs(i[1]-i[0]))/o),h=Math.min(Math.max(-c+d,0),20);return isFinite(h)?h:20}function Bp(a,i,n){return a[i]&&EH(a,n)[i]||0}function EH(a,i){var n=ln(a,function(w,x){return w+(isNaN(x)?0:x)},0);if(0===n)return[];for(var o=Math.pow(10,i),c=Se(a,function(w){return(isNaN(w)?0:w)/n*o*100}),d=100*o,h=Se(c,function(w){return Math.floor(w)}),f=ln(h,function(w,x){return w+x},0),p=Se(c,function(w,x){return w-h[x]});fg&&(g=p[_],v=_);++h[v],p[v]=0,++f}return Se(h,function(w){return w/o})}function IH(a,i){var n=Math.max(ka(a),ka(i)),o=a+i;return n>P0?o:ti(o,n)}var ZR=9007199254740991;function XR(a){var i=2*Math.PI;return(a%i+i)%i}function R0(a){return a>-rn&&a=10&&i++,i}function xD(a,i){var n=Oc(a),o=Math.pow(10,n),c=a/o;return a=(i?c<1.5?1:c<2.5?2:c<4?3:c<7?5:10:c<1?1:c<2?2:c<3?3:c<5?5:10)*o,n>=-20?+a.toFixed(n<0?-n:0):a}function O0(a,i){var n=(a.length-1)*i+1,o=Math.floor(n),c=+a[o-1],d=n-o;return d?c+d*(a[o]-c):c}function sr(a){a.sort(function(p,g){return f(p,g,0)?-1:1});for(var i=-1/0,n=1,o=0;o=0||d&&Ct(d,p)<0)){var g=o.getShallow(p,i);null!=g&&(h[a[f][0]]=g)}}return h}}var c2=Fc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Mh=function(){function a(){}return a.prototype.getAreaStyle=function(i,n){return c2(this,i,n)},a}(),kD=new h0(50);function PD(a){if("string"==typeof a){var i=kD.get(a);return i&&i.image}return a}function jp(a,i,n,o,c){if(a){if("string"==typeof a){if(i&&i.__zrImageSrc===a||!n)return i;var d=kD.get(a),h={hostEl:n,cb:o,cbPayload:c};return d?!Gp(i=d.image)&&d.pending.push(h):((i=bt.loadImage(a,d2,d2)).__zrImageSrc=a,kD.put(a,i.__cachedImgObj={image:i,pending:[h]})),i}return a}return i}function d2(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=h;p++)f-=h;var g=Vo(n,i);return g>f&&(n="",g=0),f=a-g,c.ellipsis=n,c.ellipsisWidth=g,c.contentWidth=f,c.containerWidth=a,c}function B0(a,i){var n=i.containerWidth,o=i.font,c=i.contentWidth;if(!n)return"";var d=Vo(a,o);if(d<=n)return a;for(var h=0;;h++){if(d<=c||h>=i.maxIterations){a+=i.ellipsis;break}var f=0===h?HH(a,c,i.ascCharWidth,i.cnCharWidth):d>0?Math.floor(a.length*c/d):0;d=Vo(a=a.substr(0,f),o)}return""===a&&(a=i.placeholder),a}function HH(a,i,n,o){for(var c=0,d=0,h=a.length;d0&&x+o.accumWidth>o.width&&(v=i.split("\n"),g=!0),o.accumWidth=x}else{var S=FD(i,p,o.width,o.breakAll,o.accumWidth);o.accumWidth=S.accumWidth+w,_=S.linesWidths,v=S.lines}}else v=i.split("\n");for(var D=0;D=32&&i<=591||i>=880&&i<=4351||i>=4608&&i<=5119||i>=7680&&i<=8303}(a)||!!jd[a]}function FD(a,i,n,o,c){for(var d=[],h=[],f="",p="",g=0,v=0,_=0;_n:c+v+w>n)?v?(f||p)&&(x?(f||(f=p,p="",v=g=0),d.push(f),h.push(v-g),p+=y,f="",v=g+=w):(p&&(f+=p,p="",g=0),d.push(f),h.push(v),f=y,v=w)):x?(d.push(p),h.push(g),p=y,g=w):(d.push(y),h.push(w)):(v+=w,x?(p+=y,g+=w):(p&&(f+=p,p="",g=0),f+=y))}else p&&(f+=p,v+=g),d.push(f),h.push(v),f="",p="",g=0,v=0}return!d.length&&!f&&(f=a,p="",g=0),p&&(f+=p),f&&(d.push(f),h.push(v)),1===d.length&&(v+=c),{accumWidth:v,lines:d,linesWidths:h}}var ND="__zr_style_"+Math.round(10*Math.random()),Ih={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ih[ND]=!0;var h2=["z","z2","invisible"],f2=["invisible"],WH=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype._init=function(n){for(var o=Wt(n),c=0;c1e-4)return f[0]=a-n,f[1]=i-o,p[0]=a+n,void(p[1]=i+o);if(Wd[0]=$p(c)*n+a,Wd[1]=$l(c)*o+i,z0[0]=$p(d)*n+a,z0[1]=$l(d)*o+i,g(f,Wd,z0),v(p,Wd,z0),(c%=Gd)<0&&(c+=Gd),(d%=Gd)<0&&(d+=Gd),c>d&&!h?d+=Gd:cc&&(H0[0]=$p(w)*n+a,H0[1]=$l(w)*o+i,g(f,H0,f),v(p,H0,p))}var ni={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],Bc=[],Yl=[],$d=[],ss=[],Bs=[],U0=Math.min,Yd=Math.max,Br=Math.cos,wo=Math.sin,zs=Math.abs,j0=Math.PI,Ja=2*j0,kh=typeof Float32Array<"u",G0=[];function Zp(a){return Math.round(a/j0*1e8)/1e8%2*j0}function BD(a,i){var n=Zp(a[0]);n<0&&(n+=Ja);var c=a[1];c+=n-a[0],!i&&c-n>=Ja?c=n+Ja:i&&n-c>=Ja?c=n-Ja:!i&&n>c?c=n+(Ja-Zp(n-c)):i&&n0&&(this._ux=zs(o/zv/i)||0,this._uy=zs(o/zv/n)||0)},a.prototype.setDPR=function(i){this.dpr=i},a.prototype.setContext=function(i){this._ctx=i},a.prototype.getContext=function(){return this._ctx},a.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},a.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},a.prototype.moveTo=function(i,n){return this._drawPendingPt(),this.addData(ni.M,i,n),this._ctx&&this._ctx.moveTo(i,n),this._x0=i,this._y0=n,this._xi=i,this._yi=n,this},a.prototype.lineTo=function(i,n){var o=zs(i-this._xi),c=zs(n-this._yi),d=o>this._ux||c>this._uy;if(this.addData(ni.L,i,n),this._ctx&&d&&this._ctx.lineTo(i,n),d)this._xi=i,this._yi=n,this._pendingPtDist=0;else{var h=o*o+c*c;h>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=n,this._pendingPtDist=h)}return this},a.prototype.bezierCurveTo=function(i,n,o,c,d,h){return this._drawPendingPt(),this.addData(ni.C,i,n,o,c,d,h),this._ctx&&this._ctx.bezierCurveTo(i,n,o,c,d,h),this._xi=d,this._yi=h,this},a.prototype.quadraticCurveTo=function(i,n,o,c){return this._drawPendingPt(),this.addData(ni.Q,i,n,o,c),this._ctx&&this._ctx.quadraticCurveTo(i,n,o,c),this._xi=o,this._yi=c,this},a.prototype.arc=function(i,n,o,c,d,h){return this._drawPendingPt(),G0[0]=c,G0[1]=d,BD(G0,h),this.addData(ni.A,i,n,o,o,c=G0[0],(d=G0[1])-c,0,h?0:1),this._ctx&&this._ctx.arc(i,n,o,c,d,h),this._xi=Br(d)*o+i,this._yi=wo(d)*o+n,this},a.prototype.arcTo=function(i,n,o,c,d){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,n,o,c,d),this},a.prototype.rect=function(i,n,o,c){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,n,o,c),this.addData(ni.R,i,n,o,c),this},a.prototype.closePath=function(){this._drawPendingPt(),this.addData(ni.Z);var i=this._ctx,n=this._x0,o=this._y0;return i&&i.closePath(),this._xi=n,this._yi=o,this},a.prototype.fill=function(i){i&&i.fill(),this.toStatic()},a.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},a.prototype.len=function(){return this._len},a.prototype.setData=function(i){var n=i.length;(!this.data||this.data.length!==n)&&kh&&(this.data=new Float32Array(n));for(var o=0;ov.length&&(this._expandData(),v=this.data);for(var _=0;_0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},a.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],n=0;n11&&(this.data=new Float32Array(i)))}},a.prototype.getBoundingRect=function(){Yl[0]=Yl[1]=ss[0]=ss[1]=Number.MAX_VALUE,$d[0]=$d[1]=Bs[0]=Bs[1]=-Number.MAX_VALUE;var h,i=this.data,n=0,o=0,c=0,d=0;for(h=0;ho||zs(E)>c||y===n-1)&&(S=Math.sqrt(A*A+E*E),d=D,h=T);break;case ni.C:var k=i[y++],L=i[y++],T=(D=i[y++],i[y++]),O=i[y++],B=i[y++];S=tD(d,h,k,L,D,T,O,B,10),d=O,h=B;break;case ni.Q:S=bX(d,h,k=i[y++],L=i[y++],D=i[y++],T=i[y++],10),d=D,h=T;break;case ni.A:var U=i[y++],j=i[y++],W=i[y++],$=i[y++],X=i[y++],K=i[y++],ee=K+X;y+=1,y++,x&&(f=Br(X)*W+U,p=wo(X)*$+j),S=Yd(W,$)*U0(Ja,Math.abs(K)),d=Br(ee)*W+U,h=wo(ee)*$+j;break;case ni.R:f=d=i[y++],p=h=i[y++],S=2*i[y++]+2*i[y++];break;case ni.Z:var A=f-d;E=p-h,S=Math.sqrt(A*A+E*E),d=f,h=p}S>=0&&(g[_++]=S,v+=S)}return this._pathLen=v,v},a.prototype.rebuildPath=function(i,n){var f,p,g,v,_,y,x,A,k,L,o=this.data,c=this._ux,d=this._uy,h=this._len,w=n<1,D=0,T=0,E=0;if(!w||(this._pathSegLen||this._calculateLength(),x=this._pathSegLen,A=n*this._pathLen))e:for(var O=0;O0&&(i.lineTo(k,L),E=0),B){case ni.M:f=g=o[O++],p=v=o[O++],i.moveTo(g,v);break;case ni.L:_=o[O++],y=o[O++];var j=zs(_-g),W=zs(y-v);if(j>c||W>d){if(w){if(D+($=x[T++])>A){i.lineTo(g*(1-(X=(A-D)/$))+_*X,v*(1-X)+y*X);break e}D+=$}i.lineTo(_,y),g=_,v=y,E=0}else{var K=j*j+W*W;K>E&&(k=_,L=y,E=K)}break;case ni.C:var ee=o[O++],te=o[O++],ie=o[O++],me=o[O++],ue=o[O++],we=o[O++];if(w){if(D+($=x[T++])>A){Fd(g,ee,ie,ue,X=(A-D)/$,si),Fd(v,te,me,we,X,Bc),i.bezierCurveTo(si[1],Bc[1],si[2],Bc[2],si[3],Bc[3]);break e}D+=$}i.bezierCurveTo(ee,te,ie,me,ue,we),g=ue,v=we;break;case ni.Q:if(ee=o[O++],te=o[O++],ie=o[O++],me=o[O++],w){if(D+($=x[T++])>A){u0(g,ee,ie,X=(A-D)/$,si),u0(v,te,me,X,Bc),i.quadraticCurveTo(si[1],Bc[1],si[2],Bc[2]);break e}D+=$}i.quadraticCurveTo(ee,te,ie,me),g=ie,v=me;break;case ni.A:var Pe=o[O++],Le=o[O++],We=o[O++],Ke=o[O++],Qe=o[O++],At=o[O++],Qt=o[O++],Pt=!o[O++],at=We>Ke?We:Ke,Et=zs(We-Ke)>.001,wt=Qe+At,qe=!1;if(w&&(D+($=x[T++])>A&&(wt=Qe+At*(A-D)/$,qe=!0),D+=$),Et&&i.ellipse?i.ellipse(Pe,Le,We,Ke,Qt,Qe,wt,Pt):i.arc(Pe,Le,at,Qe,wt,Pt),qe)break e;U&&(f=Br(Qe)*We+Pe,p=wo(Qe)*Ke+Le),g=Br(wt)*We+Pe,v=wo(wt)*Ke+Le;break;case ni.R:f=g=o[O],p=v=o[O+1],_=o[O++],y=o[O++];var xt=o[O++],ui=o[O++];if(w){if(D+($=x[T++])>A){var un=A-D;i.moveTo(_,y),i.lineTo(_+U0(un,xt),y),(un-=xt)>0&&i.lineTo(_+xt,y+U0(un,ui)),(un-=ui)>0&&i.lineTo(_+Yd(xt-un,0),y+ui),(un-=xt)>0&&i.lineTo(_,y+Yd(ui-un,0));break e}D+=$}i.rect(_,y,xt,ui);break;case ni.Z:if(w){var $;if(D+($=x[T++])>A){var X;i.lineTo(g*(1-(X=(A-D)/$))+f*X,v*(1-X)+p*X);break e}D+=$}i.closePath(),g=f,v=p}}},a.prototype.clone=function(){var i=new a,n=this.data;return i.data=n.slice?n.slice():Array.prototype.slice.call(n),i._len=this._len,i},a.CMD=ni,a.initDefaultProps=function(){var i=a.prototype;i._saveData=!0,i._ux=0,i._uy=0,i._pendingPtDist=0,i._version=0}(),a}();const Hs=YH;function Ph(a,i,n,o,c,d,h){if(0===c)return!1;var p,f=c;if(h>i+f&&h>o+f||ha+f&&d>n+f||di+_&&v>o+_&&v>d+_&&v>f+_||va+_&&g>n+_&&g>c+_&&g>h+_||gi+g&&p>o+g&&p>d+g||pa+g&&f>n+g&&f>c+g||fn||v+gc&&(c+=Rh);var y=Math.atan2(p,f);return y<0&&(y+=Rh),y>=o&&y<=c||y+Rh>=o&&y+Rh<=c}function qd(a,i,n,o,c,d){if(d>i&&d>o||dc?f:0}var ql=Hs.CMD,Xp=2*Math.PI,xo=[-1,-1,-1],js=[-1,-1];function ZH(){var a=js[0];js[0]=js[1],js[1]=a}function W0(a,i,n,o,c,d,h,f,p,g){if(g>i&&g>o&&g>d&&g>f||g1&&ZH(),w=Ti(i,o,d,f,js[0]),y>1&&(x=Ti(i,o,d,f,js[1]))),_+=2===y?Di&&f>o&&f>d||f=0&&g<=1&&(c[p++]=g);else{var v=h*h-4*d*f;if(Ui(v))(g=-h/(2*d))>=0&&g<=1&&(c[p++]=g);else if(v>0){var g,_=Bl(v),y=(-h-_)/(2*d);(g=(-h+_)/(2*d))>=0&&g<=1&&(c[p++]=g),y>=0&&y<=1&&(c[p++]=y)}}return p}(i,o,d,f,xo);if(0===p)return 0;var g=dH(i,o,d);if(g>=0&&g<=1){for(var v=0,_=Fr(i,o,d,g),y=0;yn||f<-n)return 0;var p=Math.sqrt(n*n-f*f);xo[0]=-p,xo[1]=p;var g=Math.abs(o-c);if(g<1e-4)return 0;if(g>=Xp-1e-4){o=0,c=Xp;var v=d?1:-1;return h>=xo[0]+a&&h<=xo[1]+a?v:0}if(o>c){var _=o;o=c,c=_}o<0&&(o+=Xp,c+=Xp);for(var y=0,w=0;w<2;w++){var x=xo[w];if(x+a>h){var S=Math.atan2(f,x);v=d?1:-1,S<0&&(S=Xp+S),(S>=o&&S<=c||S+Xp>=o&&S+Xp<=c)&&(S>Math.PI/2&&S<1.5*Math.PI&&(v=-v),y+=v)}}return y}function HD(a,i,n,o,c){for(var y,w,d=a.data,h=a.len(),f=0,p=0,g=0,v=0,_=0,x=0;x1&&(n||(f+=qd(p,g,v,_,o,c))),D&&(v=p=d[x],_=g=d[x+1]),S){case ql.M:p=v=d[x++],g=_=d[x++];break;case ql.L:if(n){if(Ph(p,g,d[x],d[x+1],i,o,c))return!0}else f+=qd(p,g,d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.C:if(n){if(_2(p,g,d[x++],d[x++],d[x++],d[x++],d[x],d[x+1],i,o,c))return!0}else f+=W0(p,g,d[x++],d[x++],d[x++],d[x++],d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.Q:if(n){if(qH(p,g,d[x++],d[x++],d[x],d[x+1],i,o,c))return!0}else f+=$0(p,g,d[x++],d[x++],d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.A:var T=d[x++],A=d[x++],E=d[x++],k=d[x++],L=d[x++],O=d[x++];x+=1;var B=!!(1-d[x++]);y=Math.cos(L)*E+T,w=Math.sin(L)*k+A,D?(v=y,_=w):f+=qd(p,g,y,w,o,c);var U=(o-T)*k/E+T;if(n){if(RX(T,A,k,L,L+O,B,i,U,c))return!0}else f+=zD(T,A,k,L,L+O,B,U,c);p=Math.cos(L+O)*E+T,g=Math.sin(L+O)*k+A;break;case ql.R:if(v=p=d[x++],_=g=d[x++],y=v+d[x++],w=_+d[x++],n){if(Ph(v,_,y,_,i,o,c)||Ph(y,_,y,w,i,o,c)||Ph(y,w,v,w,i,o,c)||Ph(v,w,v,_,i,o,c))return!0}else f+=qd(y,_,y,w,o,c),f+=qd(v,w,v,_,o,c);break;case ql.Z:if(n){if(Ph(p,g,v,_,i,o,c))return!0}else f+=qd(p,g,v,_,o,c);p=v,g=_}}return!n&&!function LX(a,i){return Math.abs(a-i)<1e-4}(g,_)&&(f+=qd(p,g,v,_,o,c)||0),0!==f}var Y0=Ze({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ih),w2={style:Ze({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qv.style)},q0=yo.concat(["invisible","culling","z","z2","zlevel","parent"]),Z0=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.update=function(){var n=this;a.prototype.update.call(this);var o=this.style;if(o.decal){var c=this._decalEl=this._decalEl||new i;c.buildPath===i.prototype.buildPath&&(c.buildPath=function(p){n.buildPath(p,n.shape)}),c.silent=!0;var d=c.style;for(var h in o)d[h]!==o[h]&&(d[h]=o[h]);d.fill=o.fill?o.decal:null,d.decal=null,d.shadowColor=null,o.strokeFirst&&(d.stroke=null);for(var f=0;f.5?Pp:o>.2?"#eee":Ul}if(n)return Ul}return Pp},i.prototype.getInsideTextStroke=function(n){var o=this.style.fill;if(Ae(o)){var c=this.__zr;if(!(!c||!c.isDarkMode())==Ec(n,0)<.4)return o}},i.prototype.buildPath=function(n,o,c){},i.prototype.pathUpdated=function(){this.__dirty&=~Ls},i.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},i.prototype.createPathProxy=function(){this.path=new Hs(!1)},i.prototype.hasStroke=function(){var n=this.style,o=n.stroke;return!(null==o||"none"===o||!(n.lineWidth>0))},i.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},i.prototype.getBoundingRect=function(){var n=this._rect,o=this.style,c=!n;if(c){var d=!1;this.path||(d=!0,this.createPathProxy());var h=this.path;(d||this.__dirty&Ls)&&(h.beginPath(),this.buildPath(h,this.shape,!1),this.pathUpdated()),n=h.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var f=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||c){f.copy(n);var p=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;this.hasFill()||(g=Math.max(g,this.strokeContainThreshold??4)),p>1e-10&&(f.width+=g/p,f.height+=g/p,f.x-=g/p/2,f.y-=g/p/2)}return f}return n},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o),d=this.getBoundingRect(),h=this.style;if(d.contain(n=c[0],o=c[1])){var f=this.path;if(this.hasStroke()){var p=h.lineWidth,g=h.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(p=Math.max(p,this.strokeContainThreshold)),function Jv(a,i,n,o){return HD(a,i,!0,n,o)}(f,p/g,n,o)))return!0}if(this.hasFill())return function b2(a,i,n){return HD(a,0,!1,i,n)}(f,n,o)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=Ls,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(n){return this.animate("shape",n)},i.prototype.updateDuringAnimation=function(n){"style"===n?this.dirtyStyle():"shape"===n?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(n,o){"shape"===n?this.setShape(o):a.prototype.attrKV.call(this,n,o)},i.prototype.setShape=function(n,o){var c=this.shape;return c||(c=this.shape={}),"string"==typeof n?c[n]=o:_e(c,n),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&Ls)},i.prototype.createStyle=function(n){return Kb(Y0,n)},i.prototype._innerSaveToNormal=function(n){a.prototype._innerSaveToNormal.call(this,n);var o=this._normalState;n.shape&&!o.shape&&(o.shape=_e({},this.shape))},i.prototype._applyStateObj=function(n,o,c,d,h,f){a.prototype._applyStateObj.call(this,n,o,c,d,h,f);var g,p=!(o&&d);if(o&&o.shape?h?d?g=o.shape:(g=_e({},c.shape),_e(g,o.shape)):(g=_e({},d?this.shape:c.shape),_e(g,o.shape)):p&&(g=c.shape),g)if(h){this.shape=_e({},this.shape);for(var v={},_=Wt(g),y=0;y<_.length;y++){var w=_[y];"object"==typeof g[w]?this.shape[w]=g[w]:v[w]=g[w]}this._transitionState(n,{shape:v},f)}else this.shape=g,this.dirtyShape()},i.prototype._mergeStates=function(n){for(var c,o=a.prototype._mergeStates.call(this,n),d=0;d0},i.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},i.prototype.createStyle=function(n){return Kb(Zd,n)},i.prototype.setBoundingRect=function(n){this._rect=n},i.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var o=n.text;null!=o?o+="":o="";var c=M0(o,n.font,n.textAlign,n.textBaseline);if(c.x+=n.x||0,c.y+=n.y||0,this.hasStroke()){var d=n.lineWidth;c.x-=d/2,c.y-=d/2,c.width+=d,c.height+=d}this._rect=c}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(zo);x2.prototype.type="tspan";const e_=x2;var XH=Ze({x:0,y:0},Ih),C2={style:Ze({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qv.style)},S2=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return cn(i,a),i.prototype.createStyle=function(n){return Kb(XH,n)},i.prototype._getSize=function(n){var o=this.style,c=o[n];if(null!=c)return c;var d=function UD(a){return!!(a&&"string"!=typeof a&&a.width&&a.height)}(o.image)?o.image:this.__image;if(!d)return 0;var h="width"===n?"height":"width",f=o[h];return null==f?d[n]:d[n]/d[h]*f},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return C2},i.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ce(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},i}(zo);S2.prototype.type="image";const Jr=S2;var Oh=Math.round;function D2(a,i,n){if(i){var o=i.x1,c=i.x2,d=i.y1,h=i.y2;a.x1=o,a.x2=c,a.y1=d,a.y2=h;var f=n&&n.lineWidth;return f&&(Oh(2*o)===Oh(2*c)&&(a.x1=a.x2=Cr(o,f,!0)),Oh(2*d)===Oh(2*h)&&(a.y1=a.y2=Cr(d,f,!0))),a}}function T2(a,i,n){if(i){var o=i.x,c=i.y,d=i.width,h=i.height;a.x=o,a.y=c,a.width=d,a.height=h;var f=n&&n.lineWidth;return f&&(a.x=Cr(o,f,!0),a.y=Cr(c,f,!0),a.width=Math.max(Cr(o+d,f,!1)-a.x,0===d?0:1),a.height=Math.max(Cr(c+h,f,!1)-a.y,0===h?0:1)),a}}function Cr(a,i,n){if(!i)return a;var o=Oh(2*a);return(o+Oh(i))%2==0?o/2:(o+(n?1:-1))/2}var jD=function a(){this.x=0,this.y=0,this.width=0,this.height=0},M2={},X0=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new jD},i.prototype.buildPath=function(n,o){var c,d,h,f;if(this.subPixelOptimize){var p=T2(M2,o,this.style);c=p.x,d=p.y,h=p.width,f=p.height,p.r=o.r,o=p}else c=o.x,d=o.y,h=o.width,f=o.height;o.r?function KH(a,i){var f,p,g,v,_,n=i.x,o=i.y,c=i.width,d=i.height,h=i.r;c<0&&(n+=c,c=-c),d<0&&(o+=d,d=-d),"number"==typeof h?f=p=g=v=h:h instanceof Array?1===h.length?f=p=g=v=h[0]:2===h.length?(f=g=h[0],p=v=h[1]):3===h.length?(f=h[0],p=v=h[1],g=h[2]):(f=h[0],p=h[1],g=h[2],v=h[3]):f=p=g=v=0,f+p>c&&(f*=c/(_=f+p),p*=c/_),g+v>c&&(g*=c/(_=g+v),v*=c/_),p+g>d&&(p*=d/(_=p+g),g*=d/_),f+v>d&&(f*=d/(_=f+v),v*=d/_),a.moveTo(n+f,o),a.lineTo(n+c-p,o),0!==p&&a.arc(n+c-p,o+p,p,-Math.PI/2,0),a.lineTo(n+c,o+d-g),0!==g&&a.arc(n+c-g,o+d-g,g,0,Math.PI/2),a.lineTo(n+v,o+d),0!==v&&a.arc(n+v,o+d-v,v,Math.PI/2,Math.PI),a.lineTo(n,o+f),0!==f&&a.arc(n+f,o+f,f,Math.PI,1.5*Math.PI)}(n,o):n.rect(c,d,h,f)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(It);X0.prototype.type="rect";const _t=X0;var Kp={fill:"#000"},A2={style:Ze({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Qv.style)},E2=function(a){function i(n){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=Kp,o.attr(n),o}return cn(i,a),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){a.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;nw&&g){var x=Math.floor(w/f);_=_.slice(0,x)}if(a&&d&&null!=v)for(var S=Ah(v,c,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),D=0;D<_.length;D++)_[D]=B0(_[D],S);var T=w,A=0;for(D=0;D<_.length;D++)A=Math.max(Vo(_[D],c),A);null==v&&(v=A);var E=A;return o&&(T+=o[0]+o[2],E+=o[1]+o[3],v+=o[1]+o[3]),p&&(E=v),{lines:_,height:w,outerWidth:E,outerHeight:T,lineHeight:f,calculatedLineHeight:h,contentWidth:A,contentHeight:y,width:v}}(t_(n),n),f=J0(n),p=!!n.backgroundColor,g=h.outerHeight,v=h.outerWidth,_=h.contentWidth,y=h.lines,w=h.lineHeight,x=this._defaultStyle,S=n.x||0,D=n.y||0,T=n.align||x.align||"left",A=n.verticalAlign||x.verticalAlign||"top",E=S,k=zd(D,h.contentHeight,A);if(f||c){var L=A0(S,v,T),O=zd(D,g,A);f&&this._renderBackground(n,n,L,O,v,g)}k+=w/2,c&&(E=Lh(S,T,c),"top"===A?k+=c[0]:"bottom"===A&&(k-=c[2]));for(var B=0,U=!1,j=(R2("fill"in n?n.fill:(U=!0,x.fill))),W=(Q0("stroke"in n?n.stroke:p||x.autoStroke&&!U?null:(B=2,x.stroke))),$=n.textShadowBlur>0,X=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),K=h.calculatedLineHeight,ee=0;eef&&RD(n,a.substring(f,g),i,h),RD(n,p[2],i,h,p[1]),f=Wp.lastIndex}fc){L>0?(A.tokens=A.tokens.slice(0,L),D(A,k,E),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break e}var X=B.width,K=null==X||"auto"===X;if("string"==typeof X&&"%"===X.charAt(X.length-1))O.percentWidth=X,v.push(O),O.contentWidth=Vo(O.text,W);else{if(K){var ee=B.backgroundColor,te=ee&&ee.image;te&&Gp(te=PD(te))&&(O.width=Math.max(O.width,te.width*$/te.height))}var ie=x&&null!=o?o-k:null;null!=ie&&ie=0&&"right"===(ee=O[K]).align;)this._placeToken(ee,n,U,T,X,"right",E),j-=ee.width,X-=ee.width,K--;for($+=(d-($-D)-(A-X)-j)/2;W<=K;)this._placeToken(ee=O[W],n,U,T,$+ee.width/2,"center",E),$+=ee.width,W++;T+=U}},i.prototype._placeToken=function(n,o,c,d,h,f,p){var g=o.rich[n.styleName]||{};g.text=n.text;var v=n.verticalAlign,_=d+c/2;"top"===v?_=d+n.height/2:"bottom"===v&&(_=d+c-n.height/2),!n.isLineHolder&&J0(g)&&this._renderBackground(g,o,"right"===f?h-n.width:"center"===f?h-n.width/2:h,_-n.height/2,n.width,n.height);var w=!!g.backgroundColor,x=n.textPadding;x&&(h=Lh(h,f,x),_-=n.height/2-x[0]-n.innerHeight/2);var S=this._getOrCreateChild(e_),D=S.createStyle();S.useStyle(D);var T=this._defaultStyle,A=!1,E=0,k=R2("fill"in g?g.fill:"fill"in o?o.fill:(A=!0,T.fill)),L=Q0("stroke"in g?g.stroke:"stroke"in o?o.stroke:w||p||T.autoStroke&&!A?null:(E=2,T.stroke)),O=g.textShadowBlur>0||o.textShadowBlur>0;D.text=n.text,D.x=h,D.y=_,O&&(D.shadowBlur=g.textShadowBlur||o.textShadowBlur||0,D.shadowColor=g.textShadowColor||o.textShadowColor||"transparent",D.shadowOffsetX=g.textShadowOffsetX||o.textShadowOffsetX||0,D.shadowOffsetY=g.textShadowOffsetY||o.textShadowOffsetY||0),D.textAlign=f,D.textBaseline="middle",D.font=n.font||Md,D.opacity=Ro(g.opacity,o.opacity,1),$D(D,g),L&&(D.lineWidth=Ro(g.lineWidth,o.lineWidth,E),D.lineDash=gt(g.lineDash,o.lineDash),D.lineDashOffset=o.lineDashOffset||0,D.stroke=L),k&&(D.fill=k);var B=n.contentWidth,U=n.contentHeight;S.setBoundingRect(new ce(A0(D.x,B,D.textAlign),zd(D.y,U,D.textBaseline),B,U))},i.prototype._renderBackground=function(n,o,c,d,h,f){var S,D,A,p=n.backgroundColor,g=n.borderWidth,v=n.borderColor,_=p&&p.image,y=p&&!_,w=n.borderRadius,x=this;if(y||n.lineHeight||g&&v){(S=this._getOrCreateChild(_t)).useStyle(S.createStyle()),S.style.fill=null;var T=S.shape;T.x=c,T.y=d,T.width=h,T.height=f,T.r=w,S.dirtyShape()}if(y)(A=S.style).fill=p||null,A.fillOpacity=gt(n.fillOpacity,1);else if(_){(D=this._getOrCreateChild(Jr)).onload=function(){x.dirtyStyle()};var E=D.style;E.image=p.image,E.x=c,E.y=d,E.width=h,E.height=f}g&&v&&((A=S.style).lineWidth=g,A.stroke=v,A.strokeOpacity=gt(n.strokeOpacity,1),A.lineDash=n.borderDash,A.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(A.strokeFirst=!0,A.lineWidth*=2));var k=(S||D).style;k.shadowBlur=n.shadowBlur||0,k.shadowColor=n.shadowColor||"transparent",k.shadowOffsetX=n.shadowOffsetX||0,k.shadowOffsetY=n.shadowOffsetY||0,k.opacity=Ro(n.opacity,o.opacity,1)},i.makeFont=function(n){var o="";return P2(n)&&(o=[n.fontStyle,n.fontWeight,k2(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),o&&la(o)||n.textFont||n.font},i}(zo),I2={left:!0,right:1,center:1},QH={top:1,bottom:1,middle:1},WD=["fontStyle","fontWeight","fontSize","fontFamily"];function k2(a){return"string"!=typeof a||-1===a.indexOf("px")&&-1===a.indexOf("rem")&&-1===a.indexOf("em")?isNaN(+a)?cR+"px":a+"px":a}function $D(a,i){for(var n=0;n=0,d=!1;if(a instanceof It){var h=L2(a),f=c&&h.selectFill||h.normalFill,p=c&&h.selectStroke||h.normalStroke;if(tm(f)||tm(p)){var g=(o=o||{}).style||{};"inherit"===g.fill?(d=!0,o=_e({},o),(g=_e({},g)).fill=f):!tm(g.fill)&&tm(f)?(d=!0,o=_e({},o),(g=_e({},g)).fill=r_(f)):!tm(g.stroke)&&tm(p)&&(d||(o=_e({},o),g=_e({},g)),g.stroke=r_(p)),o.style=g}}return o&&null==o.z2&&(d||(o=_e({},o)),o.z2=a.z2+(a.z2EmphasisLift??Jp)),o}(this,0,i,n);if("blur"===a)return function n8(a,i,n){var o=Ct(a.currentStates,i)>=0,c=a.style.opacity,d=o?null:function N2(a,i,n,o){for(var c=a.style,d={},h=0;h0){var p={dataIndex:f,seriesIndex:n.seriesIndex};null!=h&&(p.dataType=h),i.push(p)}})}),i}function Kd(a,i,n){zh(a,!0),Zl(a,Nh),eo(a,i,n)}function Oi(a,i,n,o){o?function a8(a){zh(a,!1)}(a):Kd(a,i,n)}function eo(a,i,n){var o=st(a);null!=i?(o.focus=i,o.blurScope=n):o.focus&&(o.focus=null)}var Ws=["emphasis","blur","select"],o8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ga(a,i,n,o){n=n||"itemStyle";for(var c=0;c0){var x={duration:v.duration,delay:v.delay||0,easing:v.easing,done:d,force:!!d||!!h,setToFinal:!g,scope:a,during:h};f?i.animateFrom(n,x):i.animateTo(n,x)}else i.stopAnimation(),!f&&i.attr(n),h&&h(1),d&&d()}function zt(a,i,n,o,c,d){om("update",a,i,n,o,c,d)}function Nn(a,i,n,o,c,d){om("enter",a,i,n,o,c,d)}function Hh(a){if(!a.__zr)return!0;for(var i=0;i-1?"ZH":Jl;function J2(a,i){a=a.toUpperCase(),d_[a]=new Un(i),um[a]=i}function Uh(a){return d_[a]}J2("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),J2("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var h_=36e5,Co=24*h_,fT=365*Co,f_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},mw="{yyyy}-{MM}-{dd}",g8={year:"{yyyy}",month:"{yyyy}-{MM}",day:mw,hour:mw+" "+f_.hour,minute:mw+" "+f_.minute,second:mw+" "+f_.second,millisecond:f_.none},pT=["year","month","day","hour","minute","second","millisecond"],p_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function va(a,i){return"0000".substr(0,i-(a+="").length)+a}function hm(a){switch(a){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return a}}function eO(a){return a===hm(a)}function Jd(a,i,n,o){var c=os(a),d=c[gw(n)](),h=c[m_(n)]()+1,f=Math.floor((h-1)/3)+1,p=c[vw(n)](),g=c["get"+(n?"UTC":"")+"Day"](),v=c[ls(n)](),_=(v-1)%12+1,y=c[_w(n)](),w=c[Uc(n)](),x=c[je(n)](),D=(o instanceof Un?o:Uh(o||u_)||function m8(){return d_[Jl]}()).getModel("time"),T=D.get("month"),A=D.get("monthAbbr"),E=D.get("dayOfWeek"),k=D.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,d+"").replace(/{yy}/g,va(d%100+"",2)).replace(/{Q}/g,f+"").replace(/{MMMM}/g,T[h-1]).replace(/{MMM}/g,A[h-1]).replace(/{MM}/g,va(h,2)).replace(/{M}/g,h+"").replace(/{dd}/g,va(p,2)).replace(/{d}/g,p+"").replace(/{eeee}/g,E[g]).replace(/{ee}/g,k[g]).replace(/{e}/g,g+"").replace(/{HH}/g,va(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,va(_+"",2)).replace(/{h}/g,_+"").replace(/{mm}/g,va(y,2)).replace(/{m}/g,y+"").replace(/{ss}/g,va(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,va(x,3)).replace(/{S}/g,x+"")}function gT(a,i){var n=os(a),o=n[m_(i)]()+1,c=n[vw(i)](),d=n[ls(i)](),h=n[_w(i)](),f=n[Uc(i)](),g=0===n[je(i)](),v=g&&0===f,_=v&&0===h,y=_&&0===d,w=y&&1===c;return w&&1===o?"year":w?"month":y?"day":_?"hour":v?"minute":g?"second":"millisecond"}function tO(a,i,n){var o=on(a)?os(a):a;switch(i=i||gT(a,n)){case"year":return o[gw(n)]();case"half-year":return o[m_(n)]()>=6?1:0;case"quarter":return Math.floor((o[m_(n)]()+1)/4);case"month":return o[m_(n)]();case"day":return o[vw(n)]();case"half-day":return o[ls(n)]()/24;case"hour":return o[ls(n)]();case"minute":return o[_w(n)]();case"second":return o[Uc(n)]();case"millisecond":return o[je(n)]()}}function gw(a){return a?"getUTCFullYear":"getFullYear"}function m_(a){return a?"getUTCMonth":"getMonth"}function vw(a){return a?"getUTCDate":"getDate"}function ls(a){return a?"getUTCHours":"getHours"}function _w(a){return a?"getUTCMinutes":"getMinutes"}function Uc(a){return a?"getUTCSeconds":"getSeconds"}function je(a){return a?"getUTCMilliseconds":"getMilliseconds"}function _8(a){return a?"setUTCFullYear":"setFullYear"}function yw(a){return a?"setUTCMonth":"setMonth"}function ec(a){return a?"setUTCDate":"setDate"}function nO(a){return a?"setUTCHours":"setHours"}function iO(a){return a?"setUTCMinutes":"setMinutes"}function bw(a){return a?"setUTCSeconds":"setSeconds"}function y8(a){return a?"setUTCMilliseconds":"setMilliseconds"}function rO(a){if(!Sh(a))return Ae(a)?a:"-";var i=(a+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function aO(a,i){return a=(a||"").toLowerCase().replace(/-(.)/g,function(n,o){return o.toUpperCase()}),i&&a&&(a=a.charAt(0).toUpperCase()+a.slice(1)),a}var jh=vv;function ww(a,i,n){function c(v){return v&&la(v)?v:"-"}function d(v){return!(null==v||isNaN(v)||!isFinite(v))}var h="time"===i,f=a instanceof Date;if(h||f){var p=h?os(a):a;if(!isNaN(+p))return Jd(p,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(f)return"-"}if("ordinal"===i)return Bn(a)?c(a):on(a)&&d(a)?a+"":"-";var g=Gl(a);return d(g)?rO(g):Bn(a)?c(a):"boolean"==typeof a?a+"":"-"}var b8=["a","b","c","d","e","f","g"],fm=function(a,i){return"{"+a+(i??"")+"}"};function vT(a,i,n){ye(i)||(i=[i]);var o=i.length;if(!o)return"";for(var c=i[0].$vars||[],d=0;d':'':{renderMode:d,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===c?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function oO(a,i,n){("week"===a||"month"===a||"quarter"===a||"half-year"===a||"year"===a)&&(a="MM-dd\nyyyy");var o=os(i),c=n?"getUTC":"get",d=o[c+"FullYear"](),h=o[c+"Month"]()+1,f=o[c+"Date"](),p=o[c+"Hours"](),g=o[c+"Minutes"](),v=o[c+"Seconds"](),_=o[c+"Milliseconds"]();return a.replace("MM",va(h,2)).replace("M",h).replace("yyyy",d).replace("yy",va(d%100+"",2)).replace("dd",va(f,2)).replace("d",f).replace("hh",va(p,2)).replace("h",p).replace("mm",va(g,2)).replace("m",g).replace("ss",va(v,2)).replace("s",v).replace("SSS",va(_,3))}function x8(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)}function Gh(a,i){return i=i||"transparent",Ae(a)?a:Ee(a)&&a.colorStops&&(a.colorStops[0]||{}).color||i}function Cw(a,i){if("_blank"===i||"blank"===i){var n=window.open();n.opener=null,n.location.href=a}else window.open(a,i)}var Sw=G,_T=["left","right","top","bottom","width","height"],eu=[["width","left","right"],["height","top","bottom"]];function Dw(a,i,n,o,c){var d=0,h=0;null==o&&(o=1/0),null==c&&(c=1/0);var f=0;i.eachChild(function(p,g){var w,x,v=p.getBoundingRect(),_=i.childAt(g+1),y=_&&_.getBoundingRect();if("horizontal"===a){var S=v.width+(y?-y.x+v.x:0);(w=d+S)>o||p.newline?(d=0,w=S,h+=f+n,f=v.height):f=Math.max(f,v.height)}else{var D=v.height+(y?-y.y+v.y:0);(x=h+D)>c||p.newline?(d+=f+n,h=0,x=D,f=v.width):f=Math.max(f,v.width)}p.newline||(p.x=d,p.y=h,p.markRedraw(),"horizontal"===a?d=w+n:h=x+n)})}var Wh=Dw;function Dr(a,i,n){n=jh(n||0);var o=i.width,c=i.height,d=Ie(a.left,o),h=Ie(a.top,c),f=Ie(a.right,o),p=Ie(a.bottom,c),g=Ie(a.width,o),v=Ie(a.height,c),_=n[2]+n[0],y=n[1]+n[3],w=a.aspect;switch(isNaN(g)&&(g=o-f-y-d),isNaN(v)&&(v=c-p-_-h),null!=w&&(isNaN(g)&&isNaN(v)&&(w>o/c?g=.8*o:v=.8*c),isNaN(g)&&(g=w*v),isNaN(v)&&(v=g/w)),isNaN(d)&&(d=o-f-g-y),isNaN(h)&&(h=c-p-v-_),a.left||a.right){case"center":d=o/2-g/2-n[3];break;case"right":d=o-g-y}switch(a.top||a.bottom){case"middle":case"center":h=c/2-v/2-n[0];break;case"bottom":h=c-v-_}d=d||0,h=h||0,isNaN(g)&&(g=o-y-d-(f||0)),isNaN(v)&&(v=c-_-h-(p||0));var x=new ce(d+n[3],h+n[0],g,v);return x.margin=n,x}function g_(a,i,n,o,c,d){var g,h=!c||!c.hv||c.hv[0],f=!c||!c.hv||c.hv[1],p=c&&c.boundingMode||"all";if((d=d||a).x=a.x,d.y=a.y,!h&&!f)return!1;if("raw"===p)g="group"===a.type?new ce(0,0,+i.width||0,+i.height||0):a.getBoundingRect();else if(g=a.getBoundingRect(),a.needLocalTransform()){var v=a.getLocalTransform();(g=g.clone()).applyTransform(v)}var _=Dr(Ze({width:g.width,height:g.height},i),n,o),y=h?_.x-g.x:0,w=f?_.y-g.y:0;return"raw"===p?(d.x=y,d.y=w):(d.x+=y,d.y+=w),d===a&&a.markRedraw(),!0}function v_(a){var i=a.layoutMode||a.constructor.layoutMode;return Ee(i)?i:i?{type:i}:null}function cs(a,i,n){var o=n&&n.ignoreSize;!ye(o)&&(o=[o,o]);var c=h(eu[0],0),d=h(eu[1],1);function h(v,_){var y={},w=0,x={},S=0;if(Sw(v,function(E){x[E]=a[E]}),Sw(v,function(E){f(i,E)&&(y[E]=x[E]=i[E]),p(y,E)&&w++,p(x,E)&&S++}),o[_])return p(i,v[1])?x[v[2]]=null:p(i,v[2])&&(x[v[1]]=null),x;if(2===S||!w)return x;if(w>=2)return y;for(var T=0;T=0;p--)f=mt(f,c[p],!0);o.defaultOption=f}return o.defaultOption},i.prototype.getReferringComponents=function(n,o){var d=n+"Id";return Kv(this.ecModel,n,{index:this.get(n+"Index",!0),id:this.get(d,!0)},o)},i.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(n){this.option.zlevel=n},i.protoInitialize=((n=i.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),i;var n}(Un);ED(pm,Un),V0(pm),function sT(a){var i={};a.registerSubTypeDefaulter=function(n,o){var c=Vs(n);i[c.main]=o},a.determineSubType=function(n,o){var c=o.type;if(!c){var d=Vs(n).main;a.hasSubTypes(n)&&i[d]&&(c=i[d](o))}return c}}(pm),function lT(a,i){function o(d,h){return d[h]||(d[h]={predecessor:[],successor:[]}),d[h]}a.topologicalTravel=function(d,h,f,p){if(d.length){var g=function n(d){var h={},f=[];return G(d,function(p){var g=o(h,p),_=function c(d,h){var f=[];return G(d,function(p){Ct(h,p)>=0&&f.push(p)}),f}(g.originalDeps=i(p),d);g.entryCount=_.length,0===g.entryCount&&f.push(p),G(_,function(y){Ct(g.predecessor,y)<0&&g.predecessor.push(y);var w=o(h,y);Ct(w.successor,y)<0&&w.successor.push(p)})}),{graph:h,noEntryList:f}}(h),v=g.graph,_=g.noEntryList,y={};for(G(d,function(A){y[A]=!0});_.length;){var w=_.pop(),x=v[w],S=!!y[w];S&&(f.call(p,w,x.originalDeps.slice()),delete y[w]),G(x.successor,S?T:D)}G(y,function(){throw new Error("")})}function D(A){v[A].entryCount--,0===v[A].entryCount&&_.push(A)}function T(A){y[A]=!0,D(A)}}}(pm,function D8(a){var i=[];return G(pm.getClassesByMainType(a),function(n){i=i.concat(n.dependencies||n.prototype.dependencies||[])}),i=Se(i,function(n){return Vs(n).main}),"dataset"!==a&&Ct(i,"dataset")<=0&&i.unshift("dataset"),i});const en=pm;var sO="";typeof navigator<"u"&&(sO=navigator.platform||"");var mm="rgba(0, 0, 0, 0.2)";const lO={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sO.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var bT=Me(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Uo="original",_a="arrayRows",$s="objectRows",ds="keyedColumns",Tr="typedArray",wT="unknown",jo="column",Yh="row",ta={Must:1,Might:2,Not:3},cO=qt();function dO(a,i,n){var o={},c=Mw(i);if(!c||!a)return o;var v,_,d=[],h=[],p=cO(i.ecModel).datasetMap,g=c.uid+"_"+n.seriesLayoutBy;G(a=a.slice(),function(S,D){var T=Ee(S)?S:a[D]={name:S};"ordinal"===T.type&&null==v&&(v=D,_=x(T)),o[T.name]=[]});var y=p.get(g)||p.set(g,{categoryWayDim:_,valueWayDim:0});function w(S,D,T){for(var A=0;Ai)return a[o];return a[n-1]}(o,h):n;if((v=v||n)&&v.length){var _=v[p];return c&&(g[c]=_),f.paletteIdx=(p+1)%v.length,_}}var qh,tc,Ew,vm="\0_ec_inner",kw=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.init=function(n,o,c,d,h,f){d=d||{},this.option=null,this._theme=new Un(d),this._locale=new Un(h),this._optionManager=f},i.prototype.setOption=function(n,o,c){var d=_O(o);this._optionManager.setOption(n,c,d),this._resetOption(null,d)},i.prototype.resetOption=function(n,o){return this._resetOption(n,_O(o))},i.prototype._resetOption=function(n,o){var c=!1,d=this._optionManager;if(!n||"recreate"===n){var h=d.mountOption("recreate"===n);this.option&&"recreate"!==n?(this.restoreData(),this._mergeOption(h,o)):Ew(this,h),c=!0}if(("timeline"===n||"media"===n)&&this.restoreData(),!n||"recreate"===n||"timeline"===n){var f=d.getTimelineOption(this);f&&(c=!0,this._mergeOption(f,o))}if(!n||"recreate"===n||"media"===n){var p=d.getMediaOption(this);p.length&&G(p,function(g){c=!0,this._mergeOption(g,o)},this)}return c},i.prototype.mergeOption=function(n){this._mergeOption(n,null)},i.prototype._mergeOption=function(n,o){var c=this.option,d=this._componentsMap,h=this._componentsCount,f=[],p=Me(),g=o&&o.replaceMergeMainTypeMap;(function T8(a){cO(a).datasetMap=Me()})(this),G(n,function(_,y){null!=_&&(en.hasClass(y)?y&&(f.push(y),p.set(y,!0)):c[y]=null==c[y]?nt(_):mt(c[y],_,!0))}),g&&g.each(function(_,y){en.hasClass(y)&&!p.get(y)&&(f.push(y),p.set(y,!0))}),en.topologicalTravel(f,en.getAllClassMainTypes(),function v(_){var y=function pO(a,i,n){var o=hO.get(i);if(!o)return n;var c=o(a);return c?n.concat(c):n}(this,_,Mn(n[_])),w=d.get(_),S=L0(w,y,w?g&&g.get(_)?"replaceMerge":"normalMerge":"replaceAll");(function Wl(a,i,n){G(a,function(o){var c=o.newOption;Ee(c)&&(o.keyInfo.mainType=i,o.keyInfo.subType=function FH(a,i,n,o){return i.type?i.type:n?n.subType:o.determineSubType(a,i)}(i,c,o.existing,n))})})(S,_,en),c[_]=null,d.set(_,null),h.set(_,0);var E,D=[],T=[],A=0;G(S,function(L,O){var B=L.existing,U=L.newOption;if(U){var W=en.getClass(_,L.keyInfo.subType,!("series"===_));if(!W)return;if("tooltip"===_){if(E)return;E=!0}if(B&&B.constructor===W)B.name=L.keyInfo.name,B.mergeOption(U,this),B.optionUpdated(U,!1);else{var K=_e({componentIndex:O},L.keyInfo);_e(B=new W(U,this,this,K),K),L.brandNew&&(B.__requireNewView=!0),B.init(U,this,this),B.optionUpdated(null,!0)}}else B&&(B.mergeOption({},this),B.optionUpdated({},!1));B?(D.push(B.option),T.push(B),A++):(D.push(void 0),T.push(void 0))},this),c[_]=D,d.set(_,T),h.set(_,A),"series"===_&&qh(this)},this),this._seriesIndices||qh(this)},i.prototype.getOption=function(){var n=nt(this.option);return G(n,function(o,c){if(en.hasClass(c)){for(var d=Mn(o),h=d.length,f=!1,p=h-1;p>=0;p--)d[p]&&!Pa(d[p])?f=!0:(d[p]=null,!f&&h--);d.length=h,n[c]=d}}),delete n[vm],n},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(n){this._payload=n},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(n,o){var c=this._componentsMap.get(n);if(c){var d=c[o||0];if(d)return d;if(null==o)for(var h=0;h=i:"max"===n?a<=i:a===i})(o[g],d,p)||(c=!1)}}),c}const V8=F8;var Ys=G,__=Ee,MT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function AT(a){var i=a&&a.itemStyle;if(i)for(var n=0,o=MT.length;n=0;D--){var T=a[D];if(f||(x=T.data.rawIndexOf(T.stackedByDimension,w)),x>=0){var A=T.data.getByRawIndex(T.stackResultDimension,x);if("all"===p||"positive"===p&&A>0||"negative"===p&&A<0||"samesign"===p&&y>=0&&A>0||"samesign"===p&&y<=0&&A<0){y=IH(y,A),S=A;break}}}return o[0]=y,o[1]=S,o})})}var hs=function a(i){this.data=i.data||(i.sourceFormat===ds?{}:[]),this.sourceFormat=i.sourceFormat||wT,this.seriesLayoutBy=i.seriesLayoutBy||jo,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var n=this.dimensionsDefine=i.dimensionsDefine;if(n)for(var o=0;oS&&(S=E)}w[0]=x,w[1]=S}},c=function(){return this._data?this._data.length/this._dimSize:0};function d(h){for(var f=0;f=0&&(S=h.interpolatedValue[D])}return null!=S?S+"":""}):void 0},a.prototype.getRawValue=function(i,n){return bm(this.getData(n),i)},a.prototype.formatTooltip=function(i,n,o){},a}();function kO(a){var i,n;return Ee(a)?a.type&&(n=a):i=a,{text:i,frag:n}}function wm(a){return new Xh(a)}var Xh=function(){function a(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return a.prototype.perform=function(i){var d,n=this._upstream,o=i&&i.skip;if(this._dirty&&n){var c=this.context;c.data=c.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(d=this._plan(this.context));var _,h=v(this._modBy),f=this._modDataCount||0,p=v(i&&i.modBy),g=i&&i.modDataCount||0;function v(A){return!(A>=1)&&(A=1),A}(h!==p||f!==g)&&(d="reset"),(this._dirty||"reset"===d)&&(this._dirty=!1,_=this._doReset(o)),this._modBy=p,this._modDataCount=g;var y=i&&i.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,x=Math.min(null!=y?this._dueIndex+y:1/0,this._dueEnd);if(!o&&(_||w1&&o>0?f:h}};return d;function h(){return i=a?null:pi},gte:function(a,i){return a>=i}},Z8=function(){function a(i,n){on(n)||gn(""),this._opFn=FO[i],this._rvalFloat=Gl(n)}return a.prototype.evaluate=function(i){return on(i)?this._opFn(i,this._rvalFloat):this._opFn(Gl(i),this._rvalFloat)},a}(),ru=function(){function a(i,n){var o="desc"===i;this._resultLT=o?1:-1,null==n&&(n=o?"min":"max"),this._incomparable="min"===n?-1/0:1/0}return a.prototype.evaluate=function(i,n){var o=on(i)?i:Gl(i),c=on(n)?n:Gl(n),d=isNaN(o),h=isNaN(c);if(d&&(o=this._incomparable),h&&(c=this._incomparable),d&&h){var f=Ae(i),p=Ae(n);f&&(o=p?i:0),p&&(c=f?n:0)}return oc?-this._resultLT:0},a}(),NO=function(){function a(i,n){this._rval=n,this._isEQ=i,this._rvalTypeof=typeof n,this._rvalFloat=Gl(n)}return a.prototype.evaluate=function(i){var n=i===this._rval;if(!n){var o=typeof i;o!==this._rvalTypeof&&("number"===o||"number"===this._rvalTypeof)&&(n=Gl(i)===this._rvalFloat)}return this._isEQ?n:!n},a}();function VO(a,i){return"eq"===a||"ne"===a?new NO("eq"===a,i):Ue(FO,a)?new Z8(a,i):null}var X8=function(){function a(){}return a.prototype.getRawData=function(){throw new Error("not supported")},a.prototype.getRawDataItem=function(i){throw new Error("not supported")},a.prototype.cloneRawData=function(){},a.prototype.getDimensionInfo=function(i){},a.prototype.cloneAllDimensionInfo=function(){},a.prototype.count=function(){},a.prototype.retrieveValue=function(i,n){},a.prototype.retrieveValueFromItem=function(i,n){},a.prototype.convertValue=function(i,n){return Wc(i,n)},a}();function zO(a){return Nw(a.sourceFormat)||gn(""),a.data}function HO(a){var i=a.sourceFormat,n=a.data;if(Nw(i)||gn(""),i===_a){for(var c=[],d=0,h=n.length;d65535?J8:eU}function tU(a){var i=a.constructor;return i===Array?a.slice():new i(a)}function WO(a,i,n,o,c){var d=GO[n||"float"];if(c){var h=a[i],f=h&&h.length;if(f!==o){for(var p=new d(o),g=0;gD[1]&&(D[1]=S)}return this._rawCount=this._count=p,{start:f,end:p}},a.prototype._initDataFromProvider=function(i,n,o){for(var c=this._provider,d=this._chunks,h=this._dimensions,f=h.length,p=this._rawExtent,g=Se(h,function(A){return A.property}),v=0;vT[1]&&(T[1]=D)}}!c.persistent&&c.clean&&c.clean(),this._rawCount=this._count=n,this._extent=[]},a.prototype.count=function(){return this._count},a.prototype.get=function(i,n){if(!(n>=0&&n=0&&n=this._rawCount||i<0)return-1;if(!this._indices)return i;var n=this._indices,o=n[i];if(null!=o&&oi))return h;d=h-1}}return-1},a.prototype.indicesOfNearest=function(i,n,o){var d=this._chunks[i],h=[];if(!d)return h;null==o&&(o=1/0);for(var f=1/0,p=-1,g=0,v=0,_=this.count();v<_;v++){var w=n-d[this.getRawIndex(v)],x=Math.abs(w);x<=o&&((x=0&&p<0)&&(f=x,p=w,g=0),w===p&&(h[g++]=v))}return h.length=g,h},a.prototype.getIndices=function(){var i,n=this._indices;if(n){var c=this._count;if((o=n.constructor)===Array){i=new o(c);for(var d=0;d=_&&A<=y||isNaN(A))&&(p[g++]=S),S++;x=!0}else if(2===d){D=w[c[0]];var E=w[c[1]],k=i[c[1]][0],L=i[c[1]][1];for(T=0;T=_&&A<=y||isNaN(A))&&(O>=k&&O<=L||isNaN(O))&&(p[g++]=S),S++}x=!0}}if(!x)if(1===d)for(T=0;T=_&&A<=y||isNaN(A))&&(p[g++]=B)}else for(T=0;Ti[W][1])&&(U=!1)}U&&(p[g++]=n.getRawIndex(T))}return gT[1]&&(T[1]=D)}}},a.prototype.lttbDownSample=function(i,n){var v,_,y,o=this.clone([i],!0),d=o._chunks[i],h=this.count(),f=0,p=Math.floor(1/n),g=this.getRawIndex(0),w=new(C_(this._rawCount))(Math.min(2*(Math.ceil(h/p)+2),h));w[f++]=g;for(var x=1;xv&&(v=_,y=k)}$>0&&$v-x&&(f.length=p=v-x);for(var S=0;S_[1]&&(_[1]=T),y[w++]=A}return d._count=w,d._indices=y,d._updateGetRawIdx(),d},a.prototype.each=function(i,n){if(this._count)for(var o=i.length,c=this._chunks,d=0,h=this.count();dp&&(p=_)}return this._extent[i]=h=[f,p],h},a.prototype.getRawDataItem=function(i){var n=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(n);for(var o=[],c=this._chunks,d=0;d=0?this._indices[i]:-1},a.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},a.internalField=function(){function i(n,o,c,d){return Wc(n[d],this._dimensions[d])}GT={arrayRows:i,objectRows:function(n,o,c,d){return Wc(n[o],this._dimensions[d])},keyedColumns:i,original:function(n,o,c,d){var h=n&&(null==n.value?n:n.value);return Wc(h instanceof Array?h[d]:h,this._dimensions[d])},typedArray:function(n,o,c,d){return n[d]}}}(),a}();const Vw=nU;var ze=function(){function a(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return a.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},a.prototype._setLocalSource=function(i,n){this._sourceList=i,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},a.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},a.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},a.prototype._createSource=function(){this._setLocalSource([],[]);var c,d,i=this._sourceHost,n=this._getUpstreamSourceManagers(),o=!!n.length;if(Kh(i)){var h=i,f=void 0,p=void 0,g=void 0;if(o){var v=n[0];v.prepareSource(),f=(g=v.getSource()).data,p=g.sourceFormat,d=[v._getVersionSign()]}else p=sa(f=h.get("data",!0))?Tr:Uo,d=[];var _=this._getSourceMetaRawOption()||{},y=g&&g.metaRawOption||{},w=gt(_.seriesLayoutBy,y.seriesLayoutBy)||null,x=gt(_.sourceHeader,y.sourceHeader),S=gt(_.dimensions,y.dimensions);c=w!==y.seriesLayoutBy||!!x!=!!y.sourceHeader||S?[y_(f,{seriesLayoutBy:w,sourceHeader:x,dimensions:S},p)]:[]}else{var T=i;if(o){var A=this._applyTransform(n);c=A.sourceList,d=A.upstreamSignList}else c=[y_(T.get("source",!0),this._getSourceMetaRawOption(),null)],d=[]}this._setLocalSource(c,d)},a.prototype._applyTransform=function(i){var n=this._sourceHost,o=n.get("transform",!0),c=n.get("fromTransformResult",!0);null!=c&&1!==i.length&&YO("");var h,f=[],p=[];return G(i,function(g){g.prepareSource();var v=g.getSource(c||0);null!=c&&!v&&YO(""),f.push(v),p.push(g._getVersionSign())}),o?h=function Q8(a,i,n){var o=Mn(a),c=o.length;c||gn("");for(var h=0,f=c;h1||n>0&&!a.noHeader;return G(a.blocks,function(c){var d=YT(c);d>=i&&(i=d+ +(o&&(!d||WT(c)&&!c.noHeader)))}),i}return 0}function aU(a,i,n,o){var c=i.noHeader,d=function na(a){return{html:iU[a],richText:rU[a]}}(YT(i)),h=[],f=i.blocks||[];be(!f||ye(f)),f=f||[];var p=a.orderMode;if(i.sortBlocks&&p){f=f.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(Ue(g,p)){var v=new ru(g[p],null);f.sort(function(x,S){return v.evaluate(x.sortParam,S.sortParam)})}else"seriesDesc"===p&&f.reverse()}G(f,function(x,S){var D=i.valueFormatter,T=$T(x)(D?_e(_e({},a),{valueFormatter:D}):a,x,S>0?d.html:0,o);null!=T&&h.push(T)});var _="richText"===a.renderMode?h.join(d.richText):fs(h.join(""),c?n:d.html);if(c)return _;var y=ww(i.header,"ordinal",a.useUTC),w=ZO(o,a.renderMode).nameStyle;return"richText"===a.renderMode?au(a,y,w)+d.richText+_:fs('
'+da(y)+"
"+_,n)}function YX(a,i,n,o){var c=a.renderMode,d=i.noName,h=i.noValue,f=!i.markerType,p=i.name,g=a.useUTC,v=i.valueFormatter||a.valueFormatter||function(k){return Se(k=ye(k)?k:[k],function(L,O){return ww(L,ye(w)?w[O]:w,g)})};if(!d||!h){var _=f?"":a.markupStyleCreator.makeTooltipMarker(i.markerType,i.markerColor||"#333",c),y=d?"":ww(p,"ordinal",g),w=i.valueType,x=h?[]:v(i.value),S=!f||!d,D=!f&&d,T=ZO(o,c),A=T.nameStyle,E=T.valueStyle;return"richText"===c?(f?"":_)+(d?"":au(a,y,A))+(h?"":function Bw(a,i,n,o,c){var d=[c];return n&&d.push({padding:[0,0,0,o?10:20],align:"right"}),a.markupStyleCreator.wrapRichTextStyle(ye(i)?i.join(" "):i,d)}(a,x,S,D,E)):fs((f?"":_)+(d?"":function S_(a,i,n){return''+da(a)+""}(y,!f,A))+(h?"":function Mr(a,i,n,o){return''+Se(a=ye(a)?a:[a],function(h){return da(h)}).join("  ")+""}(x,S,D,E)),n)}}function qT(a,i,n,o,c,d){if(a)return $T(a)({useUTC:c,renderMode:n,orderMode:o,markupStyleCreator:i,valueFormatter:a.valueFormatter},a,0,d)}function fs(a,i){return'
'+a+'
'}function au(a,i,n){return a.markupStyleCreator.wrapRichTextStyle(i,n)}function Wo(a,i){return Gh(a.getData().getItemVisual(i,"style")[a.visualDrawType])}function $e(a,i){return a.get("padding")??("richText"===i?[8,10]:10)}var ou=function(){function a(){this.richTextStyles={},this._nextStyleNameId=KR()}return a.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},a.prototype.makeTooltipMarker=function(i,n,o){var c="richText"===o?this._generateStyleName():null,d=xw({color:n,type:i,renderMode:o,markerId:c});return Ae(d)?d:(this.richTextStyles[c]=d.style,d.content)},a.prototype.wrapRichTextStyle=function(i,n){var o={};ye(n)?G(n,function(d){return _e(o,d)}):_e(o,n);var c=this._generateStyleName();return this.richTextStyles[c]=o,"{"+c+"|"+i+"}"},a}();function Qh(a){var v,_,y,w,i=a.series,n=a.dataIndex,o=a.multipleSeries,c=i.getData(),d=c.mapDimensionsAll("defaultedTooltip"),h=d.length,f=i.getRawValue(n),p=ye(f),g=Wo(i,n);if(h>1||p&&!h){var x=function Sm(a,i,n,o,c){var d=i.getData(),h=ln(a,function(_,y,w){var x=d.getDimensionInfo(w);return _||x&&!1!==x.tooltip&&null!=x.displayName},!1),f=[],p=[],g=[];function v(_,y){var w=d.getDimensionInfo(y);!w||!1===w.otherDims.tooltip||(h?g.push(Hr("nameValue",{markerType:"subItem",markerColor:c,name:w.displayName,value:_,valueType:w.type})):(f.push(_),p.push(w.type)))}return o.length?G(o,function(_){v(bm(d,n,_),_)}):G(a,v),{inlineValues:f,inlineValueTypes:p,blocks:g}}(f,i,n,d,g);v=x.inlineValues,_=x.inlineValueTypes,y=x.blocks,w=x.inlineValues[0]}else if(h){var S=c.getDimensionInfo(d[0]);w=v=bm(c,n,d[0]),_=S.type}else w=v=p?f[0]:f;var D=TD(i),T=D&&i.name||"",A=c.getName(n),E=o?T:A;return Hr("section",{header:T,noHeader:o||!D,sortParam:w,blocks:[Hr("nameValue",{markerType:"item",markerColor:g,name:E,noName:!la(E),value:v,valueType:_})].concat(y||[])})}var $o=qt();function $c(a,i){return a.getName(i)||a.getId(i)}var Yc="__universalTransitionEnabled",qc=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return de(i,a),i.prototype.init=function(n,o,c){this.seriesIndex=this.componentIndex,this.dataTask=wm({count:XO,reset:KO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,c),($o(this).sourceManager=new ze(this)).prepareSource();var h=this.getInitialData(n,c);ZT(h,this),this.dataTask.context.data=h,$o(this).dataBeforeProcessed=h,Jh(this),this._initSelectedMapFromData(h)},i.prototype.mergeDefaultAndTheme=function(n,o){var c=v_(this),d=c?$h(n):{},h=this.subType;en.hasClass(h)&&(h+="Series"),mt(n,o.getTheme().get(this.subType)),mt(n,this.getDefaultOption()),zp(n,"label",["show"]),this.fillDataTextStyle(n.data),c&&cs(n,d,c)},i.prototype.mergeOption=function(n,o){n=mt(this.option,n,!0),this.fillDataTextStyle(n.data);var c=v_(this);c&&cs(this.option,n,c);var d=$o(this).sourceManager;d.dirty(),d.prepareSource();var h=this.getInitialData(n,o);ZT(h,this),this.dataTask.dirty(),this.dataTask.context.data=h,$o(this).dataBeforeProcessed=h,Jh(this),this._initSelectedMapFromData(h)},i.prototype.fillDataTextStyle=function(n){if(n&&!sa(n))for(var o=["show"],c=0;cthis.getShallow("animationThreshold")&&(o=!1),!!o},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(n,o,c){var d=this.ecModel,h=N.prototype.getColorFromPalette.call(this,n,o,c);return h||(h=d.getColorFromPalette(n,o,c)),h},i.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(n,o){this._innerSelect(this.getData(o),n)},i.prototype.unselect=function(n,o){var c=this.option.selectedMap;if(c){var d=this.option.selectedMode,h=this.getData(o);if("series"===d||"all"===c)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var f=0;f=0&&c.push(h)}return c},i.prototype.isSelected=function(n,o){var c=this.option.selectedMap;if(!c)return!1;var d=this.getData(o);return("all"===c||c[$c(d,n)])&&!d.getItemModel(n).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this[Yc])return!0;var n=this.option.universalTransition;return!!n&&(!0===n||n&&n.enabled)},i.prototype._innerSelect=function(n,o){var c,d,h=this.option,f=h.selectedMode,p=o.length;if(f&&p)if("series"===f)h.selectedMap="all";else if("multiple"===f){Ee(h.selectedMap)||(h.selectedMap={});for(var g=h.selectedMap,v=0;v0&&this._innerSelect(n,o)}},i.registerClass=function(n){return en.registerClass(n)},i.protoInitialize=((n=i.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),i;var n}(en);function Jh(a){var i=a.name;TD(a)||(a.name=function Dm(a){var i=a.getRawData(),n=i.mapDimensionsAll("seriesName"),o=[];return G(n,function(c){var d=i.getDimensionInfo(c);d.displayName&&o.push(d.displayName)}),o.join(" ")}(a)||i)}function XO(a){return a.model.getRawData().count()}function KO(a){var i=a.model;return i.setData(i.getRawData().cloneShallow()),QO}function QO(a,i){i.outputData&&a.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function ZT(a,i){G(wn(a.CHANGABLE_METHODS,a.DOWNSAMPLE_METHODS),function(n){a.wrapMethod(n,ct(JO,i))})}function JO(a,i){var n=zw(a);return n&&n.setOutputEnd((i||this).count()),i}function zw(a){var i=(a.ecModel||{}).scheduler,n=i&&i.getPipeline(a.uid);if(n){var o=n.currentTask;if(o){var c=o.agentStubMap;c&&(o=c.get(a.uid))}return o}}Di(qc,BT),Di(qc,N),ED(qc,en);const Xn=qc;var Hw=function(){function a(){this.group=new rt,this.uid=cm("viewComponent")}return a.prototype.init=function(i,n){},a.prototype.render=function(i,n,o,c){},a.prototype.dispose=function(i,n){},a.prototype.updateView=function(i,n,o,c){},a.prototype.updateLayout=function(i,n,o,c){},a.prototype.updateVisual=function(i,n,o,c){},a.prototype.toggleBlurSeries=function(i,n,o){},a.prototype.eachRendered=function(i){var n=this.group;n&&n.traverse(i)},a}();Up(Hw),V0(Hw);const li=Hw;function Zc(){var a=qt();return function(i){var n=a(i),o=i.pipelineContext,c=!!n.large,d=!!n.progressiveRender,h=n.large=!(!o||!o.large),f=n.progressiveRender=!(!o||!o.progressiveRender);return(c!==h||d!==f)&&"reset"}}var Yo=Hs.CMD,oU=[[],[],[]],eL=Math.sqrt,XT=Math.atan2;function su(a,i){if(i){var c,d,h,f,p,g,n=a.data,o=a.len(),v=Yo.M,_=Yo.C,y=Yo.L,w=Yo.R,x=Yo.A,S=Yo.Q;for(h=0,f=0;h1&&(h*=D_(x),f*=D_(x));var S=(c===d?-1:1)*D_((h*h*(f*f)-h*h*(w*w)-f*f*(y*y))/(h*h*(w*w)+f*f*(y*y)))||0,D=S*h*w/f,T=S*-f*y/h,A=(a+n)/2+Tm(_)*D-Uw(_)*T,E=(i+o)/2+Uw(_)*D+Tm(_)*T,k=tL([1,0],[(y-D)/h,(w-T)/f]),L=[(y-D)/h,(w-T)/f],O=[(-1*y-D)/h,(-1*w-T)/f],B=tL(L,O);if(KT(L,O)<=-1&&(B=jw),KT(L,O)>=1&&(B=0),B<0){var U=Math.round(B/jw*1e6)/1e6;B=2*jw+U%2*jw}v.addData(g,A,E,h,f,k,B,_,d)}var lU=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ur=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,iL=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return cn(i,a),i.prototype.applyTransform=function(n){},i}(It);function rL(a){return null!=a.setData}function JT(a,i){var n=function nL(a){var i=new Hs;if(!a)return i;var h,n=0,o=0,c=n,d=o,f=Hs.CMD,p=a.match(lU);if(!p)return i;for(var g=0;gee*ee+te*te&&(U=W,j=$),{cx:U,cy:j,x0:-v,y0:-_,x1:U*(c/L-1),y1:j*(c/L-1)}}var fU=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Ww=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new fU},i.prototype.buildPath=function(n,o){!function hU(a,i){var n,o=to(i.r,0),c=to(i.r0||0,0),d=o>0;if(d||c>0){if(d||(o=c,c=0),c>o){var f=o;o=c,c=f}var p=i.startAngle,g=i.endAngle;if(!isNaN(p)&&!isNaN(g)){var v=i.cx,_=i.cy,y=!!i.clockwise,w=cu(g-p),x=w>T_&&w%T_;if(x>ms&&(w=x),o>ms)if(w>T_-ms)a.moveTo(v+o*et(p),_+o*cr(p)),a.arc(v,_,o,p,g,!y),c>ms&&(a.moveTo(v+c*et(g),_+c*cr(g)),a.arc(v,_,c,g,p,y));else{var S=void 0,D=void 0,T=void 0,A=void 0,E=void 0,k=void 0,L=void 0,O=void 0,B=void 0,U=void 0,j=void 0,W=void 0,$=void 0,X=void 0,K=void 0,ee=void 0,te=o*et(p),ie=o*cr(p),me=c*et(g),ue=c*cr(g),we=w>ms;if(we){var Pe=i.cornerRadius;Pe&&(n=function uU(a){var i;if(ye(a)){var n=a.length;if(!n)return a;i=1===n?[a[0],a[0],0,0]:2===n?[a[0],a[0],a[1],a[1]]:3===n?a.concat(a[2]):a}else i=[a,a,a,a];return i}(Pe),S=n[0],D=n[1],T=n[2],A=n[3]);var Le=cu(o-c)/2;if(E=Ar(Le,T),k=Ar(Le,A),L=Ar(Le,S),O=Ar(Le,D),j=B=to(E,k),W=U=to(L,O),(B>ms||U>ms)&&($=o*et(g),X=o*cr(g),K=c*et(p),ee=c*cr(p),wms){var Et=Ar(T,j),wt=Ar(A,j),qe=Gw(K,ee,te,ie,o,Et,y),xt=Gw($,X,me,ue,o,wt,y);a.moveTo(v+qe.cx+qe.x0,_+qe.cy+qe.y0),j0&&a.arc(v+qe.cx,_+qe.cy,Et,Fa(qe.y0,qe.x0),Fa(qe.y1,qe.x1),!y),a.arc(v,_,o,Fa(qe.cy+qe.y1,qe.cx+qe.x1),Fa(xt.cy+xt.y1,xt.cx+xt.x1),!y),wt>0&&a.arc(v+xt.cx,_+xt.cy,wt,Fa(xt.y1,xt.x1),Fa(xt.y0,xt.x0),!y))}else a.moveTo(v+te,_+ie),a.arc(v,_,o,p,g,!y);else a.moveTo(v+te,_+ie);c>ms&&we?W>ms?(Et=Ar(S,W),qe=Gw(me,ue,$,X,c,-(wt=Ar(D,W)),y),xt=Gw(te,ie,K,ee,c,-Et,y),a.lineTo(v+qe.cx+qe.x0,_+qe.cy+qe.y0),W0&&a.arc(v+qe.cx,_+qe.cy,wt,Fa(qe.y0,qe.x0),Fa(qe.y1,qe.x1),!y),a.arc(v,_,c,Fa(qe.cy+qe.y1,qe.cx+qe.x1),Fa(xt.cy+xt.y1,xt.cx+xt.x1),y),Et>0&&a.arc(v+xt.cx,_+xt.cy,Et,Fa(xt.y1,xt.x1),Fa(xt.y0,xt.x0),!y))):(a.lineTo(v+me,_+ue),a.arc(v,_,c,g,p,y)):a.lineTo(v+me,_+ue)}else a.moveTo(v,_);a.closePath()}}}(n,o)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(It);Ww.prototype.type="sector";const jr=Ww;var pU=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},nM=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new pU},i.prototype.buildPath=function(n,o){var c=o.cx,d=o.cy,h=2*Math.PI;n.moveTo(c+o.r,d),n.arc(c,d,o.r,0,h,!1),n.moveTo(c+o.r0,d),n.arc(c,d,o.r0,0,h,!0)},i}(It);nM.prototype.type="ring";const M_=nM;function iM(a,i,n){var o=i.smooth,c=i.points;if(c&&c.length>=2){if(o){var d=function mU(a,i,n,o){var p,g,v,_,c=[],d=[],h=[],f=[];if(o){v=[1/0,1/0],_=[-1/0,-1/0];for(var y=0,w=a.length;yZs[1]){if(f=!1,d)return f;var v=Math.abs(Zs[0]-Xc[1]),_=Math.abs(Xc[0]-Zs[1]);Math.min(v,_)>c.len()&&St.scale(c,g,v<_?-v*h:_*h)}else o&&(v=Math.abs(Zs[0]-Xc[1]),_=Math.abs(Xc[0]-Zs[1]),Math.min(v,_)Math.abs(d[1])?d[0]>0?"right":"left":d[1]>0?"bottom":"top"}function yL(a){return!a.isGroup}function Pm(a,i,n){if(a&&i){var d=function o(h){var f={};return h.traverse(function(p){yL(p)&&p.anid&&(f[p.anid]=p)}),f}(a);i.traverse(function(h){if(yL(h)&&h.anid){var f=d[h.anid];if(f){var p=c(h);h.attr(c(f)),zt(h,p,n,st(h).dataIndex)}}})}function c(h){var f={x:h.x,y:h.y,rotation:h.rotation};return function TU(a){return null!=a.shape}(h)&&(f.shape=_e({},h.shape)),f}}function sM(a,i){return Se(a,function(n){var o=n[0];o=E_(o,i.x),o=Yw(o,i.x+i.width);var c=n[1];return c=E_(c,i.y),[o,c=Yw(c,i.y+i.height)]})}function bL(a,i){var n=E_(a.x,i.x),o=Yw(a.x+a.width,i.x+i.width),c=E_(a.y,i.y),d=Yw(a.y+a.height,i.y+i.height);if(o>=n&&d>=c)return{x:n,y:c,width:o-n,height:d-c}}function Ks(a,i,n){var o=_e({rectHover:!0},i),c=o.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},a)return 0===a.indexOf("image://")?(c.image=a.slice(8),Ze(c,n),new Jr(o)):k_(a.replace("path://",""),o,n,"center")}function L_(a,i,n,o,c){for(var d=0,h=c[c.length-1];d=-1e-6}(y))return!1;var w=a-c,x=i-d,S=lM(w,x,p,g)/y;if(S<0||S>1)return!1;var D=lM(w,x,v,_)/y;return!(D<0||D>1)}function lM(a,i,n,o){return a*o-n*i}function nf(a){var i=a.itemTooltipOption,n=a.componentModel,o=a.itemName,c=Ae(i)?{formatter:i}:i,d=n.mainType,h=n.componentIndex,f={componentType:d,name:o,$vars:["name"]};f[d+"Index"]=h;var p=a.formatterParamsExtra;p&&G(Wt(p),function(v){Ue(f,v)||(f[v]=p[v],f.$vars.push(v))});var g=st(a.el);g.componentMainType=d,g.componentIndex=h,g.tooltipConfig={name:o,option:Ze({content:o,formatterParams:f},c)}}function dM(a,i){var n;a.isGroup&&(n=i(a)),n||a.traverse(i)}function Kc(a,i){if(a)if(ye(a))for(var n=0;n=0?_():h=setTimeout(_,-f),c=o};return y.clear=function(){h&&(clearTimeout(h),h=null)},y.debounceNextCall=function(w){v=w},y}function rf(a,i,n,o){var c=a[i];if(c){var d=c[F_]||c;if(c[Jw]!==n||c[uM]!==o){if(null==n||!o)return a[i]=d;(c=a[i]=ex(d,n,"debounce"===o))[F_]=d,c[uM]=o,c[Jw]=n}return c}}function af(a,i){var n=a[i];n&&n[F_]&&(n.clear&&n.clear(),a[i]=n[F_])}var hM=qt(),fM={itemStyle:Fc(p8,!0),lineStyle:Fc(X2,!0)},EU={lineStyle:"stroke",itemStyle:"fill"};function xL(a,i){return a.visualStyleMapper||fM[i]||(console.warn("Unknown style type '"+i+"'."),fM.itemStyle)}function CL(a,i){return a.visualDrawType||EU[i]||(console.warn("Unknown style type '"+i+"'."),"fill")}var IU={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){var n=a.getData(),o=a.visualStyleAccessPath||"itemStyle",c=a.getModel(o),h=xL(a,o)(c),f=c.getShallow("decal");f&&(n.setVisual("decal",f),f.dirty=!0);var p=CL(a,o),g=h[p],v=Xe(g)?g:null;if(!h[p]||v||"auto"===h.fill||"auto"===h.stroke){var y=a.getColorFromPalette(a.name,null,i.getSeriesCount());h[p]||(h[p]=y,n.setVisual("colorFromPalette",!0)),h.fill="auto"===h.fill||Xe(h.fill)?y:h.fill,h.stroke="auto"===h.stroke||Xe(h.stroke)?y:h.stroke}if(n.setVisual("style",h),n.setVisual("drawType",p),!i.isSeriesFiltered(a)&&v)return n.setVisual("colorFromPalette",!1),{dataEach:function(w,x){var S=a.getDataParams(x),D=_e({},h);D[p]=v(S),w.setItemVisual(x,"style",D)}}}},re=new Un,SL={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){if(!a.ignoreStyleOnData&&!i.isSeriesFiltered(a)){var n=a.getData(),o=a.visualStyleAccessPath||"itemStyle",c=xL(a,o),d=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(h,f){var p=h.getRawDataItem(f);if(p&&p[o]){re.option=p[o];var g=c(re);_e(h.ensureUniqueItemVisual(f,"style"),g),re.option.decal&&(h.setItemVisual(f,"decal",re.option.decal),re.option.decal.dirty=!0),d in g&&h.setItemVisual(f,"colorFromPalette",!1)}}:null}}}},DL={performRawSeries:!0,overallReset:function(a){var i=Me();a.eachSeries(function(n){var o=n.getColorBy();if(!n.isColorBySeries()){var c=n.type+"-"+o,d=i.get(c);d||i.set(c,d={}),hM(n).scope=d}}),a.eachSeries(function(n){if(!n.isColorBySeries()&&!a.isSeriesFiltered(n)){var o=n.getRawData(),c={},d=n.getData(),h=hM(n).scope,p=CL(n,n.visualStyleAccessPath||"itemStyle");d.each(function(g){var v=d.getRawIndex(g);c[v]=g}),o.each(function(g){var v=c[g];if(d.getItemVisual(v,"colorFromPalette")){var y=d.ensureUniqueItemVisual(v,"style"),w=o.getName(g)||g+"",x=o.count();y[p]=n.getColorFromPalette(w,h,x)}})}})}},tx=Math.PI,an=function(){function a(i,n,o,c){this._stageTaskMap=Me(),this.ecInstance=i,this.api=n,o=this._dataProcessorHandlers=o.slice(),c=this._visualHandlers=c.slice(),this._allHandlers=o.concat(c)}return a.prototype.restoreData=function(i,n){i.restoreData(n),this._stageTaskMap.each(function(o){var c=o.overallTask;c&&c.dirty()})},a.prototype.getPerformArgs=function(i,n){if(i.__pipeline){var o=this._pipelineMap.get(i.__pipeline.id),c=o.context,h=!n&&o.progressiveEnabled&&(!c||c.progressiveRender)&&i.__idxInPipeline>o.blockIndex?o.step:null,f=c&&c.modDataCount;return{step:h,modBy:null!=f?Math.ceil(f/h):null,modDataCount:f}}},a.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},a.prototype.updateStreamModes=function(i,n){var o=this._pipelineMap.get(i.uid),d=i.getData().count(),h=o.progressiveEnabled&&n.incrementalPrepareRender&&d>=o.threshold,f=i.get("large")&&d>=i.get("largeThreshold"),p="mod"===i.get("progressiveChunkMode")?d:null;i.pipelineContext=o.context={progressiveRender:h,modDataCount:p,large:f}},a.prototype.restorePipelines=function(i){var n=this,o=n._pipelineMap=Me();i.eachSeries(function(c){var d=c.getProgressive(),h=c.uid;o.set(h,{id:h,head:null,tail:null,threshold:c.getProgressiveThreshold(),progressiveEnabled:d&&!(c.preventIncremental&&c.preventIncremental()),blockIndex:-1,step:Math.round(d||700),count:0}),n._pipe(c,c.dataTask)})},a.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,n=this.api.getModel(),o=this.api;G(this._allHandlers,function(c){var d=i.get(c.uid)||i.set(c.uid,{});be(!(c.reset&&c.overallReset),""),c.reset&&this._createSeriesStageTask(c,d,n,o),c.overallReset&&this._createOverallStageTask(c,d,n,o)},this)},a.prototype.prepareView=function(i,n,o,c){var d=i.renderTask,h=d.context;h.model=n,h.ecModel=o,h.api=c,d.__block=!i.incrementalPrepareRender,this._pipe(n,d)},a.prototype.performDataProcessorTasks=function(i,n){this._performStageTasks(this._dataProcessorHandlers,i,n,{block:!0})},a.prototype.performVisualTasks=function(i,n,o){this._performStageTasks(this._visualHandlers,i,n,o)},a.prototype._performStageTasks=function(i,n,o,c){c=c||{};var d=!1,h=this;function f(p,g){return p.setDirty&&(!p.dirtyMap||p.dirtyMap.get(g.__pipeline.id))}G(i,function(p,g){if(!c.visualType||c.visualType===p.visualType){var v=h._stageTaskMap.get(p.uid),_=v.seriesTaskMap,y=v.overallTask;if(y){var w,x=y.agentStubMap;x.each(function(D){f(c,D)&&(D.dirty(),w=!0)}),w&&y.dirty(),h.updatePayload(y,o);var S=h.getPerformArgs(y,c.block);x.each(function(D){D.perform(S)}),y.perform(S)&&(d=!0)}else _&&_.each(function(D,T){f(c,D)&&D.dirty();var A=h.getPerformArgs(D,c.block);A.skip=!p.performRawSeries&&n.isSeriesFiltered(D.context.model),h.updatePayload(D,o),D.perform(A)&&(d=!0)})}}),this.unfinished=d||this.unfinished},a.prototype.performSeriesTasks=function(i){var n;i.eachSeries(function(o){n=o.dataTask.perform()||n}),this.unfinished=n||this.unfinished},a.prototype.plan=function(){this._pipelineMap.each(function(i){var n=i.tail;do{if(n.__block){i.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},a.prototype.updatePayload=function(i,n){"remain"!==n&&(i.context.payload=n)},a.prototype._createSeriesStageTask=function(i,n,o,c){var d=this,h=n.seriesTaskMap,f=n.seriesTaskMap=Me(),p=i.seriesType,g=i.getTargetSeries;function v(_){var y=_.uid,w=f.set(y,h&&h.get(y)||wm({plan:lf,reset:LU,count:FU}));w.context={model:_,ecModel:o,api:c,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:d},d._pipe(_,w)}i.createOnAllSeries?o.eachRawSeries(v):p?o.eachRawSeriesByType(p,v):g&&g(o,c).each(v)},a.prototype._createOverallStageTask=function(i,n,o,c){var d=this,h=n.overallTask=n.overallTask||wm({reset:PU});h.context={ecModel:o,api:c,overallReset:i.overallReset,scheduler:d};var f=h.agentStubMap,p=h.agentStubMap=Me(),g=i.seriesType,v=i.getTargetSeries,_=!0,y=!1;function x(S){var D=S.uid,T=p.set(D,f&&f.get(D)||(y=!0,wm({reset:RU,onDirty:OU})));T.context={model:S,overallProgress:_},T.agent=h,T.__block=_,d._pipe(S,T)}be(!i.createOnAllSeries,""),g?o.eachRawSeriesByType(g,x):v?v(o,c).each(x):(_=!1,G(o.getSeries(),x)),y&&h.dirty()},a.prototype._pipe=function(i,n){var c=this._pipelineMap.get(i.uid);!c.head&&(c.head=n),c.tail&&c.tail.pipe(n),c.tail=n,n.__idxInPipeline=c.count++,n.__pipeline=c},a.wrapStageHandler=function(i,n){return Xe(i)&&(i={overallReset:i,seriesType:NU(i)}),i.uid=cm("stageHandler"),n&&(i.visualType=n),i},a}();function PU(a){a.overallReset(a.ecModel,a.api,a.payload)}function RU(a){return a.overallProgress&&sf}function sf(){this.agent.dirty(),this.getDownstream().dirty()}function OU(){this.agent&&this.agent.dirty()}function lf(a){return a.plan?a.plan(a.model,a.ecModel,a.api,a.payload):null}function LU(a){a.useClearVisual&&a.data.clearAllVisual();var i=a.resetDefines=Mn(a.reset(a.model,a.ecModel,a.api,a.payload));return i.length>1?Se(i,function(n,o){return nx(o)}):cf}var cf=nx(0);function nx(a){return function(i,n){var o=n.data,c=n.resetDefines[a];if(c&&c.dataEach)for(var d=i.start;d0&&w===g.length-y.length){var x=g.slice(0,w);"data"!==x&&(n.mainType=x,n[y.toLowerCase()]=p,v=!0)}}f.hasOwnProperty(g)&&(o[g]=p,v=!0),v||(c[g]=p)})}return{cptQuery:n,dataQuery:o,otherQuery:c}},a.prototype.filter=function(i,n){var o=this.eventInfo;if(!o)return!0;var c=o.targetEl,d=o.packedEvent,h=o.model,f=o.view;if(!h||!f)return!0;var p=n.cptQuery,g=n.dataQuery;return v(p,h,"mainType")&&v(p,h,"subType")&&v(p,h,"index","componentIndex")&&v(p,h,"name")&&v(p,h,"id")&&v(g,d,"name")&&v(g,d,"dataIndex")&&v(g,d,"dataType")&&(!f.filterForExposedEvent||f.filterForExposedEvent(i,n.otherQuery,c,d));function v(_,y,w,x){return null==_[w]||y[x||w]===_[w]}},a.prototype.afterTrigger=function(){this.eventInfo=null},a}(),V_=["symbol","symbolSize","symbolRotate","symbolOffset"],gM=V_.concat(["symbolKeepAspect"]),rx={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){var n=a.getData();if(a.legendIcon&&n.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var o={},c={},d=!1,h=0;h=0&&mf(p)?p:.5,a.createRadialGradient(h,f,0,h,f,p)}(a,i,n):function zm(a,i,n){var o=null==i.x?0:i.x,c=null==i.x2?1:i.x2,d=null==i.y?0:i.y,h=null==i.y2?0:i.y2;return i.global||(o=o*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),o=mf(o)?o:0,c=mf(c)?c:1,d=mf(d)?d:0,h=mf(h)?h:0,a.createLinearGradient(o,d,c,h)}(a,i,n),c=i.colorStops,d=0;d0&&function LL(a,i){return a&&"solid"!==a&&i>0?"dashed"===a?[4*i,2*i]:"dotted"===a?[i]:on(a)?[a]:ye(a)?a:null:null}(i.lineDash,i.lineWidth),o=i.lineDashOffset;if(n){var c=i.strokeNoScale&&a.getLineScale?a.getLineScale():1;c&&1!==c&&(n=Se(n,function(d){return d/c}),o/=c)}return[n,o]}var KX=new Hs(!0);function sx(a){var i=a.stroke;return!(null==i||"none"===i||!(a.lineWidth>0))}function CM(a){return"string"==typeof a&&"none"!==a}function Hm(a){var i=a.fill;return null!=i&&"none"!==i}function FL(a,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var n=a.globalAlpha;a.globalAlpha=i.fillOpacity*i.opacity,a.fill(),a.globalAlpha=n}else a.fill()}function NL(a,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var n=a.globalAlpha;a.globalAlpha=i.strokeOpacity*i.opacity,a.stroke(),a.globalAlpha=n}else a.stroke()}function SM(a,i,n){var o=jp(i.image,i.__image,n);if(Gp(o)){var c=a.createPattern(o,i.repeat||"repeat");if("function"==typeof DOMMatrix&&c&&c.setTransform){var d=new DOMMatrix;d.translateSelf(i.x||0,i.y||0),d.rotateSelf(0,0,(i.rotation||0)*yv),d.scaleSelf(i.scaleX||1,i.scaleY||1),c.setTransform(d)}return c}}var VL=["shadowBlur","shadowOffsetX","shadowOffsetY"],BL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zL(a,i,n,o,c){var d=!1;if(!o&&i===(n=n||{}))return!1;if(o||i.opacity!==n.opacity){ro(a,c),d=!0;var h=Math.max(Math.min(i.opacity,1),0);a.globalAlpha=isNaN(h)?Ih.opacity:h}(o||i.blend!==n.blend)&&(d||(ro(a,c),d=!0),a.globalCompositeOperation=i.blend||Ih.blend);for(var f=0;f0&&n.unfinished);n.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.isSSR=function(){return this._ssr},i.prototype.setOption=function(n,o,c){if(!this[Ha]){if(this._disposed)return;var d,h,f;if(Ee(o)&&(c=o.lazyUpdate,d=o.silent,h=o.replaceMerge,f=o.transition,o=o.notMerge),this[Ha]=!0,!this._model||o){var p=new V8(this._api),g=this._theme,v=this._model=new yO;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,g,this._locale,p)}this._model.setOption(n,{replaceMerge:h},rF);var _={seriesTransition:f,optionChanged:!0};if(c)this[Wr]={silent:d,updateParams:_},this[Ha]=!1,this.getZr().wakeUp();else{try{Gm(this),vs.update.call(this,null,_)}catch(y){throw this[Wr]=null,this[Ha]=!1,y}this._ssr||this._zr.flush(),this[Wr]=null,this[Ha]=!1,gu.call(this,d),Wm.call(this,d)}}},i.prototype.setTheme=function(){},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tn.hasGlobalWindow&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},i.prototype.renderToCanvas=function(n){return this._zr.painter.getRenderedCanvas({backgroundColor:(n=n||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},i.prototype.renderToSVGString=function(n){return this._zr.painter.renderToString({useViewBox:(n=n||{}).useViewBox})},i.prototype.getSvgDataURL=function(){if(tn.svgSupported){var n=this._zr;return G(n.storage.getDisplayList(),function(c){c.stopAnimation(null,!0)}),n.painter.toDataURL()}},i.prototype.getDataURL=function(n){if(!this._disposed){var c=this._model,d=[],h=this;G((n=n||{}).excludeComponents,function(p){c.eachComponent({mainType:p},function(g){var v=h._componentsMap[g.__viewId];v.group.ignore||(d.push(v),v.group.ignore=!0)})});var f="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return G(d,function(p){p.group.ignore=!1}),f}},i.prototype.getConnectedDataURL=function(n){if(!this._disposed){var o="svg"===n.type,c=this.group,d=Math.min,h=Math.max,f=1/0;if(px[c]){var p=f,g=f,v=-f,_=-f,y=[],w=n&&n.pixelRatio||this.getDevicePixelRatio();G(oc,function(E,k){if(E.group===c){var L=o?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(nt(n)),O=E.getDom().getBoundingClientRect();p=d(O.left,p),g=d(O.top,g),v=h(O.right,v),_=h(O.bottom,_),y.push({dom:L,left:O.left,top:O.top})}});var x=(v*=w)-(p*=w),S=(_*=w)-(g*=w),D=bt.createCanvas(),T=k0(D,{renderer:o?"svg":"canvas"});if(T.resize({width:x,height:S}),o){var A="";return G(y,function(E){A+=''+E.dom+""}),T.painter.getSvgRoot().innerHTML=A,n.connectedBackgroundColor&&T.painter.setBackgroundColor(n.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return n.connectedBackgroundColor&&T.add(new _t({shape:{x:0,y:0,width:x,height:S},style:{fill:n.connectedBackgroundColor}})),G(y,function(E){var k=new Jr({style:{x:E.left*w-p,y:E.top*w-g,image:E.dom}});T.add(k)}),T.refreshImmediately(),D.toDataURL("image/"+(n&&n.type||"png"))}return this.getDataURL(n)}},i.prototype.convertToPixel=function(n,o){return LM(this,"convertToPixel",n,o)},i.prototype.convertFromPixel=function(n,o){return LM(this,"convertFromPixel",n,o)},i.prototype.containPixel=function(n,o){var d;if(!this._disposed)return G(Zv(this._model,n),function(f,p){p.indexOf("Models")>=0&&G(f,function(g){var v=g.coordinateSystem;if(v&&v.containPoint)d=d||!!v.containPoint(o);else if("seriesModels"===p){var _=this._chartsMap[g.__viewId];_&&_.containPoint&&(d=d||_.containPoint(o,g))}},this)},this),!!d},i.prototype.getVisual=function(n,o){var d=Zv(this._model,n,{defaultMainType:"series"}),f=d.seriesModel.getData(),p=d.hasOwnProperty("dataIndexInside")?d.dataIndexInside:d.hasOwnProperty("dataIndex")?f.indexOfRawIndex(d.dataIndex):null;return null!=p?vM(f,p,o):Va(f,o)},i.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},i.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},i.prototype._initEvents=function(){var n=this;G(QU,function(o){var c=function(d){var p,h=n.getModel(),f=d.target;if("globalout"===o?p={}:f&&fu(f,function(x){var S=st(x);if(S&&null!=S.dataIndex){var D=S.dataModel||h.getSeriesByIndex(S.seriesIndex);return p=D&&D.getDataParams(S.dataIndex,S.dataType,f)||{},!0}if(S.eventData)return p=_e({},S.eventData),!0},!0),p){var v=p.componentType,_=p.componentIndex;("markLine"===v||"markPoint"===v||"markArea"===v)&&(v="series",_=p.seriesIndex);var y=v&&null!=_&&h.getComponent(v,_),w=y&&n["series"===y.mainType?"_chartsMap":"_componentsMap"][y.__viewId];p.event=d,p.type=o,n._$eventProcessor.eventInfo={targetEl:f,packedEvent:p,model:y,view:w},n.trigger(o,p)}};c.zrEventfulCallAtLast=!0,n._zr.on(o,c,n)}),G(W_,function(o,c){n._messageCenter.on(c,function(d){this.trigger(c,d)},n)}),G(["selectchanged"],function(o){n._messageCenter.on(o,function(c){this.trigger(o,c)},n)}),function IL(a,i,n){a.on("selectchanged",function(o){var c=n.getModel();o.isFromClick?(hu("map","selectchanged",i,c,o),hu("pie","selectchanged",i,c,o)):"select"===o.fromAction?(hu("map","selected",i,c,o),hu("pie","selected",i,c,o)):"unselect"===o.fromAction&&(hu("map","unselected",i,c,o),hu("pie","unselected",i,c,o))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&NH(this.getDom(),yf,"");var o=this,c=o._api,d=o._model;G(o._componentsViews,function(h){h.dispose(d,c)}),G(o._chartsViews,function(h){h.dispose(d,c)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete oc[o.id]}},i.prototype.resize=function(n){if(!this[Ha]){if(this._disposed)return;this._zr.resize(n);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var c=o.resetOption("media"),d=n&&n.silent;this[Wr]&&(null==d&&(d=this[Wr].silent),c=!0,this[Wr]=null),this[Ha]=!0;try{c&&Gm(this),vs.update.call(this,{type:"resize",animation:_e({duration:0},n&&n.animation)})}catch(h){throw this[Ha]=!1,h}this[Ha]=!1,gu.call(this,d),Wm.call(this,d)}}},i.prototype.showLoading=function(n,o){if(!this._disposed&&(Ee(n)&&(o=n,n=""),n=n||"default",this.hideLoading(),fx[n])){var c=fx[n](this._api,o),d=this._zr;this._loadingFX=c,d.add(c)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(n){var o=_e({},n);return o.type=W_[n.type],o},i.prototype.dispatchAction=function(n,o){if(!this._disposed&&(Ee(o)||(o={silent:!!o}),hx[n.type]&&this._model)){if(this[Ha])return void this._pendingActions.push(n);var c=o.silent;NM.call(this,n,c);var d=o.flush;d?this._zr.flush():!1!==d&&tn.browser.weChat&&this._throttledZrFlush(),gu.call(this,c),Wm.call(this,c)}},i.prototype.updateLabelLayout=function(){Js.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(n){if(!this._disposed){var o=n.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function n(_){_.clearColorPalette(),_.eachSeries(function(y){y.clearColorPalette()})}function c(_){for(var y=[],w=_.currentStates,x=0;x0?{duration:S,delay:w.get("delay"),easing:w.get("easing")}:null;y.eachRendered(function(T){if(T.states&&T.states.emphasis){if(Hh(T))return;if(T instanceof It&&function c8(a){var i=L2(a);i.normalFill=a.style.fill,i.normalStroke=a.style.stroke;var n=a.states.select||{};i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null}(T),T.__dirty){var A=T.prevStates;A&&T.useStates(A)}if(x){T.stateTransition=D;var E=T.getTextContent(),k=T.getTextGuideLine();E&&(E.stateTransition=D),k&&(k.stateTransition=D)}T.__dirty&&c(T)}})}Gm=function(_){var y=_._scheduler;y.restorePipelines(_._model),y.prepareStageTasks(),OM(_,!0),OM(_,!1),y.plan()},OM=function(_,y){for(var w=_._model,x=_._scheduler,S=y?_._componentsViews:_._chartsViews,D=y?_._componentsMap:_._chartsMap,T=_._zr,A=_._api,E=0;Ey.get("hoverLayerThreshold")&&!tn.node&&!tn.worker&&y.eachSeries(function(D){if(!D.preventUsingHoverLayer){var T=_._chartsMap[D.__viewId];T.__alive&&T.eachRendered(function(A){A.states.emphasis&&(A.states.emphasis.hoverLayer=!0)})}})}(_,y),Js.trigger("series:afterupdate",y,w,S)},_s=function(_){_[EM]=!0,_.getZr().wakeUp()},HM=function(_){_[EM]&&(_.getZr().storage.traverse(function(y){Hh(y)||c(y)}),_[EM]=!1)},tF=function(_){return new(function(y){function w(){return null!==y&&y.apply(this,arguments)||this}return de(w,y),w.prototype.getCoordinateSystems=function(){return _._coordSysMgr.getCoordinateSystems()},w.prototype.getComponentByElement=function(x){for(;x;){var S=x.__ecComponentInfo;if(null!=S)return _._model.getComponent(S.mainType,S.index);x=x.parent}},w.prototype.enterEmphasis=function(x,S){Xl(x,S),_s(_)},w.prototype.leaveEmphasis=function(x,S){Kl(x,S),_s(_)},w.prototype.enterBlur=function(x){a_(x),_s(_)},w.prototype.leaveBlur=function(x){o_(x),_s(_)},w.prototype.enterSelect=function(x){Vh(x),_s(_)},w.prototype.leaveSelect=function(x){z2(x),_s(_)},w.prototype.getModel=function(){return _.getModel()},w.prototype.getViewOfComponentModel=function(x){return _.getViewOfComponentModel(x)},w.prototype.getViewOfSeriesModel=function(x){return _.getViewOfSeriesModel(x)},w}(DT))(_)},nF=function(_){function y(w,x){for(var S=0;S=0)){hF.push(n);var d=dr.wrapStageHandler(n,c);d.__prio=i,d.__raw=n,a.push(d)}}function vx(a,i){fx[a]=i}function aj(a){OS({createCanvas:a})}function fF(a,i,n){var o=ao("registerMap");o&&o(a,i,n)}function oj(a){var i=ao("getMap");return i&&i(a)}var _x=function jT(a){var i=(a=nt(a)).type;i||gn("");var o=i.split(":");2!==o.length&&gn("");var c=!1;"echarts"===o[0]&&(i=o[1],c=!0),a.__isBuiltIn=c,UO.set(i,a)};sc(2e3,IU),sc(4500,SL),sc(4500,DL),sc(2e3,rx),sc(4500,hf),sc(7e3,function YU(a,i){a.eachRawSeries(function(n){if(!a.isSeriesFiltered(n)){var o=n.getData();o.hasItemVisual()&&o.each(function(h){var f=o.getItemVisual(h,"decal");f&&(o.ensureUniqueItemVisual(h,"style").decal=Qs(f,i))});var c=o.getVisual("decal");c&&(o.getVisual("style").decal=Qs(c,i))}})}),WM(PT),bf(900,function Lw(a){var i=Me();a.eachSeries(function(n){var o=n.get("stack");if(o){var c=i.get(o)||i.set(o,[]),d=n.getData(),h={stackResultDimension:d.getCalculationInfo("stackResultDimension"),stackedOverDimension:d.getCalculationInfo("stackedOverDimension"),stackedDimension:d.getCalculationInfo("stackedDimension"),stackedByDimension:d.getCalculationInfo("stackedByDimension"),isStackedByIndex:d.getCalculationInfo("isStackedByIndex"),data:d,seriesModel:n};if(!h.stackedDimension||!h.isStackedByIndex&&!h.stackedByDimension)return;c.length&&d.setCalculationInfo("stackedOnSeries",c[c.length-1].seriesModel),c.push(h)}}),i.each(RT)}),vx("default",function kU(a,i){Ze(i=i||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new rt,o=new _t({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});n.add(o);var h,c=new Zt({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),d=new _t({style:{fill:"none"},textContent:c,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return n.add(d),i.showSpinner&&((h=new aM({shape:{startAngle:-tx/2,endAngle:-tx/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*tx/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*tx/2}).delay(300).start("circularInOut"),n.add(h)),n.resize=function(){var f=c.getBoundingRect().width,p=i.showSpinner?i.spinnerRadius:0,g=(a.getWidth()-2*p-(i.showSpinner&&f?10:0)-f)/2-(i.showSpinner&&f?0:5+f/2)+(i.showSpinner?0:f/2)+(f?0:p),v=a.getHeight()/2;i.showSpinner&&h.setShape({cx:g,cy:v}),d.setShape({x:g-p,y:v-p,width:2*p,height:2*p}),o.setShape({x:0,y:0,width:a.getWidth(),height:a.getHeight()})},n.resize(),n}),ys({type:zc,event:zc,update:zc},qi),ys({type:n_,event:n_,update:n_},qi),ys({type:Gs,event:Gs,update:Gs},qi),ys({type:i_,event:i_,update:i_},qi),ys({type:em,event:em,update:em},qi),GM("light",Fm),GM("dark",ML);var sj={},YM=[],lj={registerPreprocessor:WM,registerProcessor:bf,registerPostInit:lF,registerPostUpdate:$M,registerUpdateLifecycle:mx,registerAction:ys,registerCoordinateSystem:cF,registerLayout:uF,registerVisual:sc,registerTransform:_x,registerLoading:vx,registerMap:fF,registerImpl:function On(a,i){An[a]=i},PRIORITY:KL,ComponentModel:en,ComponentView:li,SeriesModel:Xn,ChartView:Rn,registerComponentModel:function(a){en.registerClass(a)},registerComponentView:function(a){li.registerClass(a)},registerSeriesModel:function(a){Xn.registerClass(a)},registerChartView:function(a){Rn.registerClass(a)},registerSubTypeDefaulter:function(a,i){en.registerSubTypeDefaulter(a,i)},registerPainter:function(a,i){wr(a,i)}};function kt(a){ye(a)?G(a,function(i){kt(i)}):Ct(YM,a)>=0||(YM.push(a),Xe(a)&&(a={install:a}),a.install(lj))}function $_(a){return null==a?0:a.length||1}function pF(a){return a}var cj=function(){function a(i,n,o,c,d,h){this._old=i,this._new=n,this._oldKeyGetter=o||pF,this._newKeyGetter=c||pF,this.context=d,this._diffModeMultiple="multiple"===h}return a.prototype.add=function(i){return this._add=i,this},a.prototype.update=function(i){return this._update=i,this},a.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},a.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},a.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},a.prototype.remove=function(i){return this._remove=i,this},a.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},a.prototype._executeOneToOne=function(){var i=this._old,n=this._new,o={},c=new Array(i.length),d=new Array(n.length);this._initIndexMap(i,null,c,"_oldKeyGetter"),this._initIndexMap(n,o,d,"_newKeyGetter");for(var h=0;h1){var v=p.shift();1===p.length&&(o[f]=p[0]),this._update&&this._update(v,h)}else 1===g?(o[f]=null,this._update&&this._update(p,h)):this._remove&&this._remove(h)}this._performRestAdd(d,o)},a.prototype._executeMultiple=function(){var n=this._new,o={},c={},d=[],h=[];this._initIndexMap(this._old,o,d,"_oldKeyGetter"),this._initIndexMap(n,c,h,"_newKeyGetter");for(var f=0;f1&&1===y)this._updateManyToOne&&this._updateManyToOne(v,g),c[p]=null;else if(1===_&&y>1)this._updateOneToMany&&this._updateOneToMany(v,g),c[p]=null;else if(1===_&&1===y)this._update&&this._update(v,g),c[p]=null;else if(_>1&&y>1)this._updateManyToMany&&this._updateManyToMany(v,g),c[p]=null;else if(_>1)for(var w=0;w<_;w++)this._remove&&this._remove(g[w]);else this._remove&&this._remove(g)}this._performRestAdd(h,c)},a.prototype._performRestAdd=function(i,n){for(var o=0;o1)for(var f=0;f30}var _u,Zm,Xm,Km,bx,X_,xx,qm=Ee,Jc=Se,gF=typeof Int32Array>"u"?Array:Int32Array,jn=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dt=["_approximateExtent"],_F=function(){function a(i,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,c=!1;qM(i)?(o=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(c=!0,o=i),o=o||["x","y"];for(var d={},h=[],f={},p=!1,g={},v=0;v=n)){var c=this._store.getProvider();this._updateOrdinalMeta();var d=this._nameList,h=this._idList;if(c.getSource().sourceFormat===Uo&&!c.pure)for(var g=[],v=i;v0},a.prototype.ensureUniqueItemVisual=function(i,n){var o=this._itemVisuals,c=o[i];c||(c=o[i]={});var d=c[n];return null==d&&(ye(d=this.getVisual(n))?d=d.slice():qm(d)&&(d=_e({},d)),c[n]=d),d},a.prototype.setItemVisual=function(i,n,o){var c=this._itemVisuals[i]||{};this._itemVisuals[i]=c,qm(n)?_e(c,n):c[n]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(i,n){qm(i)?_e(this._layout,i):this._layout[i]=n},a.prototype.getLayout=function(i){return this._layout[i]},a.prototype.getItemLayout=function(i){return this._itemLayouts[i]},a.prototype.setItemLayout=function(i,n,o){this._itemLayouts[i]=o?_e(this._itemLayouts[i]||{},n):n},a.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},a.prototype.setItemGraphicEl=function(i,n){YD(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,n),this._graphicEls[i]=n},a.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},a.prototype.eachItemGraphicEl=function(i,n){G(this._graphicEls,function(o,c){o&&i&&i.call(n,o,c)})},a.prototype.cloneShallow=function(i){return i||(i=new a(this._schema?this._schema:Jc(this.dimensions,this._getDimInfo,this),this.hostModel)),bx(i,this),i._store=this._store,i},a.prototype.wrapMethod=function(i,n){var o=this[i];Xe(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var c=o.apply(this,arguments);return n.apply(this,[c].concat(zS(arguments)))})},a.internalField=(_u=function(i){var n=i._invertedIndicesMap;G(n,function(o,c){var d=i._dimInfos[c],h=d.ordinalMeta,f=i._store;if(h){o=n[c]=new gF(h.categories.length);for(var p=0;p1&&(p+="__ec__"+v),c[n]=p}})),a}();const ya=_F;function yF(a,i){return Qm(a,i).dimensions}function Qm(a,i){OT(a)||(a=LT(a));var n=(i=i||{}).coordDimensions||[],o=i.dimensionsDefine||a.dimensionsDefine||[],c=Me(),d=[],h=function gj(a,i,n,o){var c=Math.max(a.dimensionsDetectedCount||1,i.length,n.length,o||0);return G(i,function(d){var h;Ee(d)&&(h=d.dimsDef)&&(c=Math.max(c,h.length))}),c}(a,n,o,i.dimensionsCount),f=i.canOmitUnusedDimensions&&mF(h),p=o===a.dimensionsDefine,g=p?Z_(a):J(o),v=i.encodeDefine;!v&&i.encodeDefaulter&&(v=i.encodeDefaulter(a,h));for(var _=Me(v),y=new xm(h),w=0;w0&&(o.name=c+(d-1)),d++,i.set(c,d)}}(d),new Ym({source:a,dimensions:d,fullDimensionCount:h,dimensionOmitted:f})}function vj(a,i,n){if(n||i.hasKey(a)){for(var o=0;i.hasKey(a+o);)o++;a+=o}return i.set(a,!0),a}var _j=function a(i){this.coordSysDims=[],this.axisMap=Me(),this.categoryAxisMap=Me(),this.coordSysName=i},bj={cartesian2d:function(a,i,n,o){var c=a.getReferringComponents("xAxis",yi).models[0],d=a.getReferringComponents("yAxis",yi).models[0];i.coordSysDims=["x","y"],n.set("x",c),n.set("y",d),Jm(c)&&(o.set("x",c),i.firstCategoryDimIndex=0),Jm(d)&&(o.set("y",d),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=1))},singleAxis:function(a,i,n,o){var c=a.getReferringComponents("singleAxis",yi).models[0];i.coordSysDims=["single"],n.set("single",c),Jm(c)&&(o.set("single",c),i.firstCategoryDimIndex=0)},polar:function(a,i,n,o){var c=a.getReferringComponents("polar",yi).models[0],d=c.findAxisModel("radiusAxis"),h=c.findAxisModel("angleAxis");i.coordSysDims=["radius","angle"],n.set("radius",d),n.set("angle",h),Jm(d)&&(o.set("radius",d),i.firstCategoryDimIndex=0),Jm(h)&&(o.set("angle",h),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=1))},geo:function(a,i,n,o){i.coordSysDims=["lng","lat"]},parallel:function(a,i,n,o){var c=a.ecModel,d=c.getComponent("parallel",a.get("parallelIndex")),h=i.coordSysDims=d.dimensions.slice();G(d.parallelAxisIndex,function(f,p){var g=c.getComponent("parallelAxis",f),v=h[p];n.set(v,g),Jm(g)&&(o.set(v,g),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=p))})}};function Jm(a){return"category"===a.get("type")}function bF(a,i,n){var d,h,f,o=(n=n||{}).byIndex,c=n.stackedCoordDimension;!function wj(a){return!qM(a.schema)}(i)?(d=(h=i.schema).dimensions,f=i.store):d=i;var g,v,_,y,p=!(!a||!a.get("stack"));if(G(d,function(A,E){Ae(A)&&(d[E]=A={name:A}),p&&!A.isExtraCoord&&(!o&&!g&&A.ordinalMeta&&(g=A),!v&&"ordinal"!==A.type&&"time"!==A.type&&(!c||c===A.coordDim)&&(v=A))}),v&&!o&&!g&&(o=!0),v){_="__\0ecstackresult_"+a.id,y="__\0ecstackedover_"+a.id,g&&(g.createInvertedIndices=!0);var w=v.coordDim,x=v.type,S=0;G(d,function(A){A.coordDim===w&&S++});var D={name:_,coordDim:w,coordDimIndex:S,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length},T={name:y,coordDim:y,coordDimIndex:S+1,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length+1};h?(f&&(D.storeDimIndex=f.ensureCalculationDimension(y,x),T.storeDimIndex=f.ensureCalculationDimension(_,x)),h.appendCalculationDimension(D),h.appendCalculationDimension(T)):(d.push(D),d.push(T))}return{stackedDimension:v&&v.name,stackedByDimension:g&&g.name,isStackedByIndex:o,stackedOverDimension:y,stackResultDimension:_}}function ed(a,i){return!!i&&i===a.getCalculationInfo("stackedDimension")}function Cx(a,i){return ed(a,i)?a.getCalculationInfo("stackResultDimension"):i}const el=function CF(a,i,n){n=n||{};var c,o=i.getSourceManager(),d=!1;a?(d=!0,c=LT(a)):d=(c=o.getSource()).sourceFormat===Uo;var h=function yj(a){var i=a.get("coordinateSystem"),n=new _j(i),o=bj[i];if(o)return o(a,n,n.axisMap,n.categoryAxisMap),n}(i),f=function wF(a,i){var c,n=a.get("coordinateSystem"),o=_m.get(n);return i&&i.coordSysDims&&(c=Se(i.coordSysDims,function(d){var h={name:d},f=i.axisMap.get(d);if(f){var p=f.get("type");h.type=Y_(p)}return h})),c||(c=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),c}(i,h),p=n.useEncodeDefaulter,g=Xe(p)?p:p?ct(dO,f,i):null,_=Qm(c,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!d}),y=function xF(a,i,n){var o,c;return n&&G(a,function(d,h){var p=n.categoryAxisMap.get(d.coordDim);p&&(null==o&&(o=h),d.ordinalMeta=p.getOrdinalMeta(),i&&(d.createInvertedIndices=!0)),null!=d.otherDims.itemName&&(c=!0)}),!c&&null!=o&&(a[o].otherDims.itemName=0),o}(_.dimensions,n.createInvertedIndices,h),w=d?null:o.getSharedDataStore(_),x=bF(i,{schema:_,store:w}),S=new ya(_,i);S.setCalculationInfo(x);var D=null!=y&&function SF(a){if(a.sourceFormat===Uo){var i=function DF(a){for(var i=0;in[1]&&(n[1]=i[1])},a.prototype.unionExtentFromData=function(i,n){this.unionExtent(i.getApproximateExtent(n))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(i,n){var o=this._extent;isNaN(i)||(o[0]=i),isNaN(n)||(o[1]=n)},a.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(i){this._isBlank=i},a}();V0(ZM);const lc=ZM;var Y=0,TF=function(){function a(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++Y}return a.createByAxisModel=function(i){var n=i.option,o=n.data,c=o&&Se(o,xj);return new a({categories:c,needCollect:!c,deduplication:!1!==n.dedplication})},a.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},a.prototype.parseAndCollect=function(i){var n,o=this._needCollect;if(!Ae(i)&&!o)return i;if(o&&!this._deduplication)return this.categories[n=this.categories.length]=i,n;var c=this._getOrCreateMap();return null==(n=c.get(i))&&(o?(this.categories[n=this.categories.length]=i,c.set(i,n)):n=NaN),n},a.prototype._getOrCreateMap=function(){return this._map||(this._map=Me(this.categories))},a}();function xj(a){return Ee(a)&&null!=a.value?a.value:a+""}const XM=TF;function Re(a){return"interval"===a.type||"log"===a.type}function Sx(a){var i=Math.pow(10,Oc(a)),n=a/i;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ti(n*i)}function KM(a){return ka(a)+2}function QM(a,i,n){a[i]=Math.max(Math.min(a[i],n[1]),n[0])}function K_(a,i){return a>=i[0]&&a<=i[1]}function Q_(a,i){return i[1]===i[0]?.5:(a-i[0])/(i[1]-i[0])}function J_(a,i){return a*(i[1]-i[0])+i[0]}var AF=function(a){function i(n){var o=a.call(this,n)||this;o.type="ordinal";var c=o.getSetting("ordinalMeta");return c||(c=new XM({})),ye(c)&&(c=new XM({categories:Se(c,function(d){return Ee(d)?d.value:d})})),o._ordinalMeta=c,o._extent=o.getSetting("extent")||[0,c.categories.length-1],o}return de(i,a),i.prototype.parse=function(n){return null==n?NaN:Ae(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},i.prototype.contain=function(n){return K_(n=this.parse(n),this._extent)&&null!=this._ordinalMeta.categories[n]},i.prototype.normalize=function(n){return Q_(n=this._getTickNumber(this.parse(n)),this._extent)},i.prototype.scale=function(n){return n=Math.round(J_(n,this._extent)),this.getRawOrdinalNumber(n)},i.prototype.getTicks=function(){for(var n=[],o=this._extent,c=o[0];c<=o[1];)n.push({value:c}),c++;return n},i.prototype.getMinorTicks=function(n){},i.prototype.setSortInfo=function(n){if(null!=n){for(var o=n.ordinalNumbers,c=this._ordinalNumbersByTick=[],d=this._ticksByOrdinalNumber=[],h=0,f=this._ordinalMeta.categories.length,p=Math.min(f,o.length);h=0&&n=0&&n=n},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.calcNiceTicks=function(){},i.prototype.calcNiceExtent=function(){},i.type="ordinal",i}(lc);lc.registerClass(AF);const ey=AF;var td=ti,JM=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return de(i,a),i.prototype.parse=function(n){return n},i.prototype.contain=function(n){return K_(n,this._extent)},i.prototype.normalize=function(n){return Q_(n,this._extent)},i.prototype.scale=function(n){return J_(n,this._extent)},i.prototype.setExtent=function(n,o){var c=this._extent;isNaN(n)||(c[0]=parseFloat(n)),isNaN(o)||(c[1]=parseFloat(o))},i.prototype.unionExtent=function(n){var o=this._extent;n[0]o[1]&&(o[1]=n[1]),this.setExtent(o[0],o[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=KM(n)},i.prototype.getTicks=function(n){var o=this._interval,c=this._extent,d=this._niceExtent,h=this._intervalPrecision,f=[];if(!o)return f;c[0]1e4)return[];var v=f.length?f[f.length-1].value:d[1];return c[1]>v&&f.push(n?{value:td(v+o,h)}:{value:c[1]}),f},i.prototype.getMinorTicks=function(n){for(var o=this.getTicks(!0),c=[],d=this.getExtent(),h=1;hd[0]&&wo&&(h=c.interval=o);var f=c.intervalPrecision=KM(h);return function MF(a,i){!isFinite(a[0])&&(a[0]=i[0]),!isFinite(a[1])&&(a[1]=i[1]),QM(a,0,i),QM(a,1,i),a[0]>a[1]&&(a[0]=a[1])}(c.niceTickExtent=[ti(Math.ceil(a[0]/h)*h,f),ti(Math.floor(a[1]/h)*h,f)],a),c}(d,n,o,c);this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent}},i.prototype.calcNiceExtent=function(n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var c=Math.abs(o[0]);n.fixMax||(o[1]+=c/2),o[0]-=c/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var h=this._interval;n.fixMin||(o[0]=td(Math.floor(o[0]/h)*h)),n.fixMax||(o[1]=td(Math.ceil(o[1]/h)*h))},i.prototype.setNiceExtent=function(n,o){this._niceExtent=[n,o]},i.type="interval",i}(lc);lc.registerClass(JM);const cc=JM;var EF=typeof Float32Array<"u",Cj=EF?Float32Array:Array;function bs(a){return ye(a)?EF?new Float32Array(a):a:new Cj(a)}var eA="__ec_stack_";function Je(a){return a.get("stack")||eA+a.seriesIndex}function nd(a){return a.dim+a.index}function kF(a,i){var n=[];return i.eachSeriesByType(a,function(o){PF(o)&&n.push(o)}),n}function Dx(a){var i=function tK(a){var i={};G(a,function(p){var v=p.coordinateSystem.getBaseAxis();if("time"===v.type||"value"===v.type)for(var _=p.getData(),y=v.dim+"_"+v.index,w=_.getDimensionIndex(_.mapDimension(v.dim)),x=_.getStore(),S=0,D=x.count();S0&&(d=null===d?f:Math.min(d,f))}n[o]=d}}return n}(a),n=[];return G(a,function(o){var f,d=o.coordinateSystem.getBaseAxis(),h=d.getExtent();if("category"===d.type)f=d.getBandWidth();else if("value"===d.type||"time"===d.type){var g=i[d.dim+"_"+d.index],v=Math.abs(h[1]-h[0]),_=d.scale.getExtent(),y=Math.abs(_[1]-_[0]);f=g?v/y*g:v}else{var w=o.getData();f=Math.abs(h[1]-h[0])/w.count()}var x=Ie(o.get("barWidth"),f),S=Ie(o.get("barMaxWidth"),f),D=Ie(o.get("barMinWidth")||(wf(o)?.5:1),f),T=o.get("barGap"),A=o.get("barCategoryGap");n.push({bandWidth:f,barWidth:x,barMaxWidth:S,barMinWidth:D,barGap:T,barCategoryGap:A,axisKey:nd(d),stackId:Je(o)})}),Tx(n)}function Tx(a){var i={};G(a,function(o,c){var d=o.axisKey,h=o.bandWidth,f=i[d]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},p=f.stacks;i[d]=f;var g=o.stackId;p[g]||f.autoWidthCount++,p[g]=p[g]||{width:0,maxWidth:0};var v=o.barWidth;v&&!p[g].width&&(p[g].width=v,v=Math.min(f.remainedWidth,v),f.remainedWidth-=v);var _=o.barMaxWidth;_&&(p[g].maxWidth=_);var y=o.barMinWidth;y&&(p[g].minWidth=y);var w=o.barGap;null!=w&&(f.gap=w);var x=o.barCategoryGap;null!=x&&(f.categoryGap=x)});var n={};return G(i,function(o,c){n[c]={};var d=o.stacks,h=o.bandWidth,f=o.categoryGap;if(null==f){var p=Wt(d).length;f=Math.max(35-4*p,15)+"%"}var g=Ie(f,h),v=Ie(o.gap,1),_=o.remainedWidth,y=o.autoWidthCount,w=(_-g)/(y+(y-1)*v);w=Math.max(w,0),G(d,function(T){var A=T.maxWidth,E=T.minWidth;if(T.width){var k=T.width;A&&(k=Math.min(k,A)),E&&(k=Math.max(k,E)),T.width=k,_-=k+v*k,y--}else k=w,A&&Ak&&(k=E),k!==w&&(T.width=k,_-=k+v*k,y--)}),w=(_-g)/(y+(y-1)*v),w=Math.max(w,0);var S,x=0;G(d,function(T,A){T.width||(T.width=w),S=T,x+=T.width*(1+v)}),S&&(x-=S.width*v);var D=-x/2;G(d,function(T,A){n[c][A]=n[c][A]||{bandWidth:h,offset:D,width:T.width},D+=T.width*(1+v)})}),n}function tA(a,i){var n=kF(a,i),o=Dx(n);G(n,function(c){var d=c.getData(),f=c.coordinateSystem.getBaseAxis(),p=Je(c),g=o[nd(f)][p];d.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function Mx(a){return{seriesType:a,plan:Zc(),reset:function(i){if(PF(i)){var n=i.getData(),o=i.coordinateSystem,c=o.getBaseAxis(),d=o.getOtherAxis(c),h=n.getDimensionIndex(n.mapDimension(d.dim)),f=n.getDimensionIndex(n.mapDimension(c.dim)),p=i.get("showBackground",!0),g=n.mapDimension(d.dim),v=n.getCalculationInfo("stackResultDimension"),_=ed(n,g)&&!!n.getCalculationInfo("stackedOnSeries"),y=d.isHorizontal(),w=function RF(a,i){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}(0,d),x=wf(i),S=i.get("barMinHeight")||0,D=v&&n.getDimensionIndex(v),T=n.getLayout("size"),A=n.getLayout("offset");return{progress:function(E,k){for(var $,L=E.count,O=x&&bs(3*L),B=x&&p&&bs(3*L),U=x&&bs(L),j=o.master.getRect(),W=y?j.width:j.height,X=k.getStore(),K=0;null!=($=E.next());){var ee=X.get(_?D:h,$),te=X.get(f,$),ie=w,me=void 0;_&&(me=+ee-X.get(h,$));var ue=void 0,we=void 0,Pe=void 0,Le=void 0;if(y){var We=o.dataToPoint([ee,te]);_&&(ie=o.dataToPoint([me,te])[0]),ue=ie,we=We[1]+A,Pe=We[0]-ie,Le=T,Math.abs(Pe)0)for(var f=0;f=0;--f)if(p[g]){d=p[g];break}d=d||h.none}if(ye(d)){var _=null==a.level?0:a.level>=0?a.level:d.length+a.level;d=d[_=Math.min(_,d.length-1)]}}return Jd(new Date(a.value),d,c,o)}(n,o,c,this.getSetting("locale"),d)},i.prototype.getTicks=function(){var o=this._extent,c=[];if(!this._interval)return c;c.push({value:o[0],level:0});var d=this.getSetting("useUTC"),h=function Aj(a,i,n,o){var d=p_,h=0;function f(W,$,X,K,ee,te,ie){for(var me=new Date($),ue=$,we=me[K]();ue1&&0===te&&X.unshift({value:X[0].value-ue})}}for(te=0;te=o[0]&&A<=o[1]&&_++)}var E=(o[1]-o[0])/i;if(_>1.5*E&&y>E/1.5||(g.push(D),_>E||a===d[w]))break}v=[]}}var k=_n(Se(g,function(W){return _n(W,function($){return $.value>=o[0]&&$.value<=o[1]&&!$.notAdd})}),function(W){return W.length>0}),L=[],O=k.length-1;for(w=0;wc&&(this._approxInterval=c);var f=ny.length,p=Math.min(function(a,i,n,o){for(;n>>1;a[c][1]16?16:a>7.5?7:a>3.5?4:a>1.5?2:1}function LF(a){return(a/=30*Co)>6?6:a>3?3:a>2?2:1}function FF(a){return(a/=h_)>12?12:a>6?6:a>3.5?4:a>2?2:1}function iA(a,i){return(a/=i?6e4:1e3)>30?30:a>20?20:a>15?15:a>10?10:a>5?5:a>2?2:1}function Tj(a){return xD(a,!0)}function Mj(a,i,n){var o=new Date(a);switch(hm(i)){case"year":case"month":o[yw(n)](0);case"day":o[ec(n)](1);case"hour":o[nO(n)](0);case"minute":o[iO(n)](0);case"second":o[bw(n)](0),o[y8(n)](0)}return o.getTime()}lc.registerClass(ty);const NF=ty;var rA=lc.prototype,Ax=cc.prototype,VF=ti,Ej=Math.floor,Ij=Math.ceil,aA=Math.pow,tl=Math.log,tg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new cc,n._interval=0,n}return de(i,a),i.prototype.getTicks=function(n){var c=this._extent,d=this._originalScale.getExtent();return Se(Ax.getTicks.call(this,n),function(f){var p=f.value,g=ti(aA(this.base,p));return g=p===c[0]&&this._fixMin?oA(g,d[0]):g,{value:g=p===c[1]&&this._fixMax?oA(g,d[1]):g}},this)},i.prototype.setExtent=function(n,o){var c=tl(this.base);n=tl(Math.max(0,n))/c,o=tl(Math.max(0,o))/c,Ax.setExtent.call(this,n,o)},i.prototype.getExtent=function(){var n=this.base,o=rA.getExtent.call(this);o[0]=aA(n,o[0]),o[1]=aA(n,o[1]);var d=this._originalScale.getExtent();return this._fixMin&&(o[0]=oA(o[0],d[0])),this._fixMax&&(o[1]=oA(o[1],d[1])),o},i.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var o=this.base;n[0]=tl(n[0])/tl(o),n[1]=tl(n[1])/tl(o),rA.unionExtent.call(this,n)},i.prototype.unionExtentFromData=function(n,o){this.unionExtent(n.getApproximateExtent(o))},i.prototype.calcNiceTicks=function(n){n=n||10;var o=this._extent,c=o[1]-o[0];if(!(c===1/0||c<=0)){var d=kH(c);for(n/c*d<=.5&&(d*=10);!isNaN(d)&&Math.abs(d)<1&&Math.abs(d)>0;)d*=10;var f=[ti(Ij(o[0]/d)*d),ti(Ej(o[1]/d)*d)];this._interval=d,this._niceExtent=f}},i.prototype.calcNiceExtent=function(n){Ax.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},i.prototype.parse=function(n){return n},i.prototype.contain=function(n){return K_(n=tl(n)/tl(this.base),this._extent)},i.prototype.normalize=function(n){return Q_(n=tl(n)/tl(this.base),this._extent)},i.prototype.scale=function(n){return n=J_(n,this._extent),aA(this.base,n)},i.type="log",i}(lc),kj=tg.prototype;function oA(a,i){return VF(a,ka(i))}kj.getMinorTicks=Ax.getMinorTicks,kj.getLabel=Ax.getLabel,lc.registerClass(tg);const Pj=tg;var Ex=function(){function a(i,n,o){this._prepareParams(i,n,o)}return a.prototype._prepareParams=function(i,n,o){o[1]0&&p>0&&!g&&(f=0),f<0&&p<0&&!v&&(p=0));var y=this._determinedMin,w=this._determinedMax;return null!=y&&(f=y,g=!0),null!=w&&(p=w,v=!0),{min:f,max:p,minFixed:g,maxFixed:v,isBlank:_}},a.prototype.modifyDataMinMax=function(i,n){this[Ix[i]]=n},a.prototype.setDeterminedMinMax=function(i,n){this[dc[i]]=n},a.prototype.freeze=function(){this.frozen=!0},a}(),dc={min:"_determinedMin",max:"_determinedMax"},Ix={min:"_dataMin",max:"_dataMax"};function BF(a,i,n){var o=a.rawExtentInfo;return o||(o=new Ex(a,i,n),a.rawExtentInfo=o,o)}function kx(a,i){return null==i?null:Jt(i)?NaN:a.parse(i)}function zF(a,i){var n=a.type,o=BF(a,i,a.getExtent()).calculate();a.setBlank(o.isBlank);var c=o.min,d=o.max,h=i.ecModel;if(h&&"time"===n){var f=kF("bar",h),p=!1;if(G(f,function(_){p=p||_.getBaseAxis()===i.axis}),p){var g=Dx(f),v=function Rj(a,i,n,o){var c=n.axis.getExtent(),d=c[1]-c[0],h=function Sj(a,i,n){if(a&&i){var o=a[nd(i)];return null!=o&&null!=n?o[Je(n)]:o}}(o,n.axis);if(void 0===h)return{min:a,max:i};var f=1/0;G(h,function(w){f=Math.min(w.offset,f)});var p=-1/0;G(h,function(w){p=Math.max(w.offset+w.width,p)}),f=Math.abs(f),p=Math.abs(p);var g=f+p,v=i-a,y=v/(1-(f+p)/d)-v;return{min:a-=y*(f/g),max:i+=y*(p/g)}}(c,d,i,g);c=v.min,d=v.max}}return{extent:[c,d],fixMin:o.minFixed,fixMax:o.maxFixed}}function xf(a,i){var n=i,o=zF(a,n),c=o.extent,d=n.get("splitNumber");a instanceof Pj&&(a.base=n.get("logBase"));var h=a.type,f=n.get("interval"),p="interval"===h||"time"===h;a.setExtent(c[0],c[1]),a.calcNiceExtent({splitNumber:d,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:p?n.get("minInterval"):null,maxInterval:p?n.get("maxInterval"):null}),null!=f&&a.setInterval&&a.setInterval(f)}function iy(a,i){if(i=i||a.get("type"))switch(i){case"category":return new ey({ordinalMeta:a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),extent:[1/0,-1/0]});case"time":return new NF({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new(lc.getClass(i)||cc)}}function id(a){var o,i=a.getLabelModel().get("formatter"),n="category"===a.type?a.scale.getExtent()[0]:null;return"time"===a.scale.type?(o=i,function(c,d){return a.scale.getFormattedLabel(c,d,o)}):Ae(i)?function(o){return function(c){var d=a.scale.getLabel(c);return o.replace("{value}",d??"")}}(i):Xe(i)?function(o){return function(c,d){return null!=n&&(d=c.value-n),o(Px(a,c),d,null!=c.level?{level:c.level}:null)}}(i):function(o){return a.scale.getLabel(o)}}function Px(a,i){return"category"===a.type?a.scale.getLabel(i):i.value}function UF(a,i){var n=i*Math.PI/180,o=a.width,c=a.height,d=o*Math.abs(Math.cos(n))+Math.abs(c*Math.sin(n)),h=o*Math.abs(Math.sin(n))+Math.abs(c*Math.cos(n));return new ce(a.x,a.y,d,h)}function Rx(a){return a.get("interval")??"auto"}function sA(a){return"category"===a.type&&0===Rx(a.getLabelModel())}function nl(a,i){var n={};return G(a.mapDimensionsAll(i),function(o){n[Cx(a,o)]=!0}),Wt(n)}var ry=function(){function a(){}return a.prototype.getNeedCrossZero=function(){return!this.option.scale},a.prototype.getCoordSysModel=function(){},a}();function nK(a){return el(null,a)}var ng={isDimensionStacked:ed,enableDataStack:bF,getStackedDimension:Cx};function lA(a,i){var n=i;i instanceof Un||(n=new Un(i));var o=iy(n);return o.setExtent(a[0],a[1]),xf(o,n),o}function Fj(a){Di(a,ry)}function Nj(a,i){return Zn(a,null,null,"normal"!==(i=i||{}).state)}var Vj=1e-8;function ig(a,i){return Math.abs(a-i)c&&(o=h,c=p)}if(o)return function Bj(a){for(var i=0,n=0,o=0,c=a.length,d=a[c-1][0],h=a[c-1][1],f=0;f>1^-(1&f),p=p>>1^-(1&p),c=f+=c,d=p+=d,o.push([f/n,p/n])}return o}function dA(a,i){return a=function cA(a){if(!a.UTF8Encoding)return a;var i=a,n=i.UTF8Scale;return null==n&&(n=1024),G(i.features,function(c){var d=c.geometry,h=d.encodeOffsets,f=d.coordinates;if(h)switch(d.type){case"LineString":d.coordinates=$F(f,h,n);break;case"Polygon":case"MultiLineString":oy(f,h,n);break;case"MultiPolygon":G(f,function(p,g){return oy(p,h[g],n)})}}),i.UTF8Encoding=!1,i}(a),Se(_n(a.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var o=n.properties,c=n.geometry,d=[];switch(c.type){case"Polygon":var h=c.coordinates;d.push(new ay(h[0],h.slice(1)));break;case"MultiPolygon":G(c.coordinates,function(p){p[0]&&d.push(new ay(p[0],p.slice(1)))});break;case"LineString":d.push(new Ox([c.coordinates]));break;case"MultiLineString":d.push(new Ox(c.coordinates))}var f=new Lx(o[i||"name"],d,o.cp);return f.properties=o,f})}function zj(a,i,n,o,c,d,h,f){return new Zt({style:{text:a,font:i,align:n,verticalAlign:o,padding:c,rich:d,overflow:h?"truncate":null,lineHeight:f}}).getBoundingRect()}var sy=qt();function ft(a,i){var d,h,n=qF(a,"labels"),o=Rx(i);return hA(n,o)||(Xe(o)?d=KF(a,o):(h="auto"===o?function Hj(a){return sy(a).autoInterval??(sy(a).autoInterval=a.calculateCategoryInterval())}(a):o,d=XF(a,h)),fA(n,o,{labels:d,labelCategoryInterval:h}))}function qF(a,i){return sy(a)[i]||(sy(a)[i]=[])}function hA(a,i){for(var n=0;n1&&v/p>2&&(g=Math.round(Math.ceil(g/p)*p));var _=sA(a),y=h.get("showMinLabel")||_,w=h.get("showMaxLabel")||_;y&&g!==d[0]&&S(d[0]);for(var x=g;x<=d[1];x+=p)S(x);function S(D){var T={value:D};f.push(n?D:{formattedLabel:o(T),rawLabel:c.getLabel(T),tickValue:D})}return w&&x-p!==d[1]&&S(d[1]),f}function KF(a,i,n){var o=a.scale,c=id(a),d=[];return G(o.getTicks(),function(h){var f=o.getLabel(h),p=h.value;i(h.value,f)&&d.push(n?p:{formattedLabel:c(h),rawLabel:f,tickValue:p})}),d}var Ua=[0,1],rg=function(){function a(i,n,o){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=n,this._extent=o||[0,0]}return a.prototype.contain=function(i){var n=this._extent,o=Math.min(n[0],n[1]),c=Math.max(n[0],n[1]);return i>=o&&i<=c},a.prototype.containData=function(i){return this.scale.contain(i)},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.getPixelPrecision=function(i){return Gv(i||this.scale.getExtent(),this._extent)},a.prototype.setExtent=function(i,n){var o=this._extent;o[0]=i,o[1]=n},a.prototype.dataToCoord=function(i,n){var o=this._extent,c=this.scale;return i=c.normalize(i),this.onBand&&"ordinal"===c.type&&QF(o=o.slice(),c.count()),yn(i,Ua,o,n)},a.prototype.coordToData=function(i,n){var o=this._extent,c=this.scale;this.onBand&&"ordinal"===c.type&&QF(o=o.slice(),c.count());var d=yn(i,o,Ua,n);return this.scale.scale(d)},a.prototype.pointToData=function(i,n){},a.prototype.getTicksCoords=function(i){var n=(i=i||{}).tickModel||this.getTickModel(),d=Se(function uA(a,i){return"category"===a.type?function Kt(a,i){var d,h,n=qF(a,"ticks"),o=Rx(i),c=hA(n,o);if(c)return c;if((!i.get("show")||a.scale.isBlank())&&(d=[]),Xe(o))d=KF(a,o,!0);else if("auto"===o){var f=ft(a,a.getLabelModel());h=f.labelCategoryInterval,d=Se(f.labels,function(p){return p.tickValue})}else d=XF(a,h=o,!0);return fA(n,o,{ticks:d,tickCategoryInterval:h})}(a,i):{ticks:Se(a.scale.getTicks(),function(n){return n.value})}}(this,n).ticks,function(f){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(f):f),tickValue:f}},this);return function Uj(a,i,n,o){var c=i.length;if(a.onBand&&!n&&c){var h,d=a.getExtent();if(1===c)i[0].coord=d[0],h=i[1]={coord:d[1]};else{var g=(i[c-1].coord-i[0].coord)/(i[c-1].tickValue-i[0].tickValue);G(i,function(w){w.coord-=g/2});var v=a.scale.getExtent();i.push(h={coord:i[c-1].coord+g*(1+v[1]-i[c-1].tickValue)})}var _=d[0]>d[1];y(i[0].coord,d[0])&&(o?i[0].coord=d[0]:i.shift()),o&&y(d[0],i[0].coord)&&i.unshift({coord:d[0]}),y(d[1],h.coord)&&(o?h.coord=d[1]:i.pop()),o&&y(h.coord,d[1])&&i.push({coord:d[1]})}function y(w,x){return w=ti(w),x=ti(x),_?w>x:w0&&n<100||(n=5),Se(this.scale.getMinorTicks(n),function(d){return Se(d,function(h){return{coord:this.dataToCoord(h),tickValue:h}},this)},this)},a.prototype.getViewLabels=function(){return function YF(a){return"category"===a.type?function Ne(a){var i=a.getLabelModel(),n=ft(a,i);return!i.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(a):function Ve(a){var i=a.scale.getTicks(),n=id(a);return{labels:Se(i,function(o,c){return{level:o.level,formattedLabel:n(o,c),rawLabel:a.scale.getLabel(o),tickValue:o.value}})}}(a)}(this).labels},a.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},a.prototype.getTickModel=function(){return this.model.getModel("axisTick")},a.prototype.getBandWidth=function(){var i=this._extent,n=this.scale.getExtent(),o=n[1]-n[0]+(this.onBand?1:0);0===o&&(o=1);var c=Math.abs(i[1]-i[0]);return Math.abs(c)/o},a.prototype.calculateCategoryInterval=function(){return function ZF(a){var i=function so(a){var i=a.getLabelModel();return{axisRotate:a.getRotate?a.getRotate():a.isHorizontal&&!a.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(a),n=id(a),o=(i.axisRotate-i.labelRotate)/180*Math.PI,c=a.scale,d=c.getExtent(),h=c.count();if(d[1]-d[0]<1)return 0;var f=1;h>40&&(f=Math.max(1,Math.floor(h/40)));for(var p=d[0],g=a.dataToCoord(p+1)-a.dataToCoord(p),v=Math.abs(g*Math.cos(o)),_=Math.abs(g*Math.sin(o)),y=0,w=0;p<=d[1];p+=f){var S,D=M0(n({value:p}),i.font,"center","top");S=1.3*D.height,y=Math.max(y,1.3*D.width,7),w=Math.max(w,S,7)}var T=y/v,A=w/_;isNaN(T)&&(T=1/0),isNaN(A)&&(A=1/0);var E=Math.max(0,Math.floor(Math.min(T,A))),k=sy(a.model),L=a.getExtent(),O=k.lastAutoInterval,B=k.lastTickCount;return null!=O&&null!=B&&Math.abs(O-E)<=1&&Math.abs(B-h)<=1&&O>E&&k.axisExtent0===L[0]&&k.axisExtent1===L[1]?E=O:(k.lastTickCount=h,k.lastAutoInterval=E,k.axisExtent0=L[0],k.axisExtent1=L[1]),E}(this)},a}();function QF(a,i){var c=(a[1]-a[0])/i/2;a[0]+=c,a[1]-=c}const il=rg;function iK(a){var i=en.extend(a);return en.registerClass(i),i}function ly(a){var i=li.extend(a);return li.registerClass(i),i}function jj(a){var i=Xn.extend(a);return Xn.registerClass(i),i}function pA(a){var i=Rn.extend(a);return Rn.registerClass(i),i}var cy=2*Math.PI,bu=Hs.CMD,Gj=["top","right","bottom","left"];function Wj(a,i,n,o,c){var d=n.width,h=n.height;switch(a){case"top":o.set(n.x+d/2,n.y-i),c.set(0,-1);break;case"bottom":o.set(n.x+d/2,n.y+h+i),c.set(0,1);break;case"left":o.set(n.x-i,n.y+h/2),c.set(-1,0);break;case"right":o.set(n.x+d+i,n.y+h/2),c.set(1,0)}}function $j(a,i,n,o,c,d,h,f,p){h-=a,f-=i;var g=Math.sqrt(h*h+f*f),v=(h/=g)*n+a,_=(f/=g)*n+i;if(Math.abs(o-c)%cy<1e-4)return p[0]=v,p[1]=_,g-n;if(d){var y=o;o=Us(c),c=Us(y)}else o=Us(o),c=Us(c);o>c&&(c+=cy);var w=Math.atan2(f,h);if(w<0&&(w+=cy),w>=o&&w<=c||w+cy>=o&&w+cy<=c)return p[0]=v,p[1]=_,g-n;var x=n*Math.cos(o)+a,S=n*Math.sin(o)+i,D=n*Math.cos(c)+a,T=n*Math.sin(c)+i,A=(x-h)*(x-h)+(S-f)*(S-f),E=(D-h)*(D-h)+(T-f)*(T-f);return A0){i=i/180*Math.PI,uc.fromArray(a[0]),Qn.fromArray(a[1]),er.fromArray(a[2]),St.sub(al,uc,Qn),St.sub(lo,er,Qn);var n=al.len(),o=lo.len();if(!(n<.001||o<.001)){al.scale(1/n),lo.scale(1/o);var c=al.dot(lo);if(Math.cos(i)1&&St.copy(ba,er),ba.toArray(a[1])}}}}function qj(a,i,n){if(n<=180&&n>0){n=n/180*Math.PI,uc.fromArray(a[0]),Qn.fromArray(a[1]),er.fromArray(a[2]),St.sub(al,Qn,uc),St.sub(lo,er,Qn);var o=al.len(),c=lo.len();if(!(o<.001||c<.001)&&(al.scale(1/o),lo.scale(1/c),al.dot(i)=p)St.copy(ba,er);else{ba.scaleAndAdd(lo,f/Math.tan(Math.PI/2-v));var _=er.x!==Qn.x?(ba.x-Qn.x)/(er.x-Qn.x):(ba.y-Qn.y)/(er.y-Qn.y);if(isNaN(_))return;_<0?St.copy(ba,Qn):_>1&&St.copy(ba,er)}ba.toArray(a[1])}}}function eN(a,i,n,o){var c="normal"===n,d=c?a:a.ensureState(n);d.ignore=i;var h=o.get("smooth");h&&!0===h&&(h=.3),d.shape=d.shape||{},h>0&&(d.shape.smooth=h);var f=o.getModel("lineStyle").getLineStyle();c?a.useStyle(f):d.style=f}function Zj(a,i){var n=i.smooth,o=i.points;if(o)if(a.moveTo(o[0][0],o[0][1]),n>0&&o.length>=3){var c=ks(o[0],o[1]),d=ks(o[1],o[2]);if(!c||!d)return a.lineTo(o[1][0],o[1][1]),void a.lineTo(o[2][0],o[2][1]);var h=Math.min(c,d)*n,f=ch([],o[1],o[0],h/c),p=ch([],o[1],o[2],h/d),g=ch([],f,p,.5);a.bezierCurveTo(f[0],f[1],f[0],f[1],g[0],g[1]),a.bezierCurveTo(p[0],p[1],p[0],p[1],o[2][0],o[2][1])}else for(var v=1;v0&&d&&O(-_/h,0,h);var A,E,D=a[0],T=a[h-1];return k(),A<0&&B(-A,.8),E<0&&B(E,.8),k(),L(A,E,1),L(E,A,-1),k(),A<0&&U(-A),E<0&&U(E),g}function k(){A=D.rect[i]-o,E=c-T.rect[i]-T.rect[n]}function L(j,W,$){if(j<0){var X=Math.min(W,-j);if(X>0){O(X*$,0,h);var K=X+j;K<0&&B(-K*$,1)}else B(-j*$,1)}}function O(j,W,$){0!==j&&(g=!0);for(var X=W;X<$;X++){var K=a[X];K.rect[i]+=j,K.label[i]+=j}}function B(j,W){for(var $=[],X=0,K=1;K0)for(K=0;K0;K--)O(-$[K-1]*ie,K,h)}}function U(j){var W=j<0?-1:1;j=Math.abs(j);for(var $=Math.ceil(j/(h-1)),X=0;X0?O($,0,X+1):O(-$,h-X-1,h),(j-=$)<=0)return}}function iN(a,i,n,o){return vA(a,"y","height",i,n,o)}function rN(a){var i=[];a.sort(function(S,D){return D.priority-S.priority});var n=new ce(0,0,0,0);function o(S){if(!S.ignore){var D=S.ensureState("emphasis");null==D.ignore&&(D.ignore=!1)}S.ignore=!0}for(var c=0;c=0&&o.attr(d.oldLayoutSelect),Ct(y,"emphasis")>=0&&o.attr(d.oldLayoutEmphasis)),zt(o,g,n,p)}else if(o.attr(g),!Qi(o).valueAnimation){var _=gt(o.style.opacity,1);o.style.opacity=0,Nn(o,{style:{opacity:_}},n,p)}if(d.oldLayout=g,o.states.select){var w=d.oldLayoutSelect={};zx(w,g,Hx),zx(w,o.states.select,Hx)}if(o.states.emphasis){var x=d.oldLayoutEmphasis={};zx(x,g,Hx),zx(x,o.states.emphasis,Hx)}Z2(o,p,v,n,n)}if(c&&!c.ignore&&!c.invisible){var d=oN(c),S={points:c.shape.points};(h=d.oldLayout)?(c.attr({shape:h}),zt(c,{shape:S},n)):(c.setShape(S),c.style.strokePercent=0,Nn(c,{style:{strokePercent:1}},n)),d.oldLayout=S}},a}();const sN=rK;var lN=qt();function Kj(a){a.registerUpdateLifecycle("series:beforeupdate",function(i,n,o){var c=lN(n).labelManager;c||(c=lN(n).labelManager=new sN),c.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(i,n,o){var c=lN(n).labelManager;o.updatedSeries.forEach(function(d){c.addLabelsOfSeries(n.getViewOfSeriesModel(d))}),c.updateLayoutConfig(n),c.layout(n),c.processLabelsOverall()})}function Qj(a,i,n){var o=bt.createCanvas(),c=i.getWidth(),d=i.getHeight(),h=o.style;return h&&(h.position="absolute",h.left="0",h.top="0",h.width=c+"px",h.height=d+"px",o.setAttribute("data-zr-dom-id",a)),o.width=c*n,o.height=d*n,o}kt(Kj);var aK=function(a){function i(n,o,c){var h,d=a.call(this)||this;d.motionBlur=!1,d.lastFrameAlpha=.7,d.dpr=1,d.virtual=!1,d.config={},d.incremental=!1,d.zlevel=0,d.maxRepaintRectCount=5,d.__dirty=!0,d.__firstTimePaint=!0,d.__used=!1,d.__drawIndex=0,d.__startIndex=0,d.__endIndex=0,d.__prevStartIndex=null,d.__prevEndIndex=null,c=c||zv,"string"==typeof n?h=Qj(n,o,c):Ee(n)&&(n=(h=n).id),d.id=n,d.dom=h;var f=h.style;return f&&(US(h),h.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),d.painter=o,d.dpr=c,d}return cn(i,a),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=Qj("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),1!==n&&this.ctxBack.scale(n,n)},i.prototype.createRepaintRects=function(n,o,c,d){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var D,h=[],f=this.maxRepaintRectCount,p=!1,g=new ce(0,0,0,0);function v(A){if(A.isFinite()&&!A.isZero())if(0===h.length)(E=new ce(0,0,0,0)).copy(A),h.push(E);else{for(var k=!1,L=1/0,O=0,B=0;B=f)}}for(var _=this.__startIndex;_15)break}ee.prevElClipPaths&&T.restore()};if(A)if(0===A.length)U=D.__endIndex;else for(var W=w.dpr,$=0;$0&&i>c[0]){for(p=0;pi);p++);f=o[c[p]]}if(c.splice(p+1,0,i),o[i]=n,!n.virtual)if(f){var g=f.dom;g.nextSibling?h.insertBefore(n.dom,g.nextSibling):h.appendChild(n.dom)}else h.firstChild?h.insertBefore(n.dom,h.firstChild):h.appendChild(n.dom);n.__painter=this}},a.prototype.eachLayer=function(i,n){for(var o=this._zlevelList,c=0;c0?.01:0),this._needsManuallyCompositing),v.__builtin__||wp("ZLevel "+g+" has been used by unkown layer "+v.id),v!==d&&(v.__used=!0,v.__startIndex!==p&&(v.__dirty=!0),v.__startIndex=p,v.__drawIndex=v.incremental?-1:p,n(p),d=v),c.__dirty&ma&&!c.__inHover&&(v.__dirty=!0,v.incremental&&v.__drawIndex<0&&(v.__drawIndex=p))}n(p),this.eachBuiltinLayer(function(_,y){!_.__used&&_.getElementCount()>0&&(_.__dirty=!0,_.__startIndex=_.__endIndex=_.__drawIndex=0),_.__dirty&&_.__drawIndex<0&&(_.__drawIndex=_.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(i){i.clear()},a.prototype.setBackgroundColor=function(i){this._backgroundColor=i,G(this._layers,function(n){n.setUnpainted()})},a.prototype.configLayer=function(i,n){if(n){var o=this._layerConfig;o[i]?mt(o[i],n,!0):o[i]=n;for(var c=0;c=Tf:-g>=Tf),w=g>0?g%Tf:g%Tf+Tf;x=!!y||!br(_)&&w>=Df==!!v;var S=i+o*hN(h),D=n+c*bA(h);this._start&&this._add("M",S,D);var T=Math.round(d*uy);if(y){var A=1/this._p,E=(v?1:-1)*(Tf-A);this._add("A",o,c,T,1,+v,i+o*hN(h+E),n+c*bA(h+E)),A>.01&&this._add("A",o,c,T,0,+v,S,D)}else{var k=i+o*hN(f),L=n+c*bA(f);this._add("A",o,c,T,+x,+v,k,L)}},a.prototype.rect=function(i,n,o,c){this._add("M",i,n),this._add("l",o,0),this._add("l",0,c),this._add("l",-o,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(i,n,o,c,d,h,f,p,g){for(var v=[],_=this._p,y=1;y"}(h,c.attrs)+("style"!==h?da(p):p||"")+(d?""+n+Se(d,function(g){return o(g)}).join(n)+n:"")+function lG(a){return""}(h)}(a)}function CA(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _N(a,i,n,o){return $r("svg","root",{width:a,height:i,xmlns:mN,"xmlns:xlink":gN,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+i},n)}var yN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wu="transform-origin";function SA(a,i,n){var o=_e({},a.shape);_e(o,i),a.buildPath(n,o);var c=new fN;return c.reset(OR(a)),n.rebuildPath(c,1),c.generateStr(),c.getStr()}function dG(a,i){var n=i.originX,o=i.originY;(n||o)&&(a[wu]=n+"px "+o+"px")}var uG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DA(a,i){var n=i.zrId+"-ani-"+i.cssAnimIdx++;return i.cssAnims[n]=a,n}function TA(a){return Ae(a)?yN[a]?"cubic-bezier("+yN[a]+")":TR(a)?a:"":""}function MA(a,i,n,o){var c=a.animators,d=c.length,h=[];if(a instanceof $w){var f=function hG(a,i,n){var d,h,c={};if(G(a.shape.paths,function(p){var g=CA(n.zrId);g.animation=!0,MA(p,{},g,!0);var v=g.cssAnims,_=g.cssNodes,y=Wt(v),w=y.length;if(w){var x=v[h=y[w-1]];for(var S in x){var D=x[S];c[S]=c[S]||{d:""},c[S].d+=D.d||""}for(var T in _){var A=_[T].animation;A.indexOf(h)>=0&&(d=A)}}}),d){i.d=!1;var f=DA(c,n);return d.replace(h,f)}}(a,i,n);if(f)h.push(f);else if(!d)return}else if(!d)return;for(var p={},g=0;g0}).length)return DA(B,n)+" "+A[0]+" both"}for(var D in p)(f=S(p[D]))&&h.push(f);if(h.length){var T=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+T]={animation:h.join(",")},i.class=T}}var fy=Math.round;function AA(a){return a&&Ae(a.src)}function py(a){return a&&Xe(a.toDataURL)}function my(a,i,n,o){(function pN(a,i,n,o){var c=null==i.opacity?1:i.opacity;if(n instanceof Jr)a("opacity",c);else{if(function nG(a){var i=a.fill;return null!=i&&i!==hy}(i)){var d=Ic(i.fill);a("fill",d.color);var h=null!=i.fillOpacity?i.fillOpacity*d.opacity*c:d.opacity*c;(o||h<1)&&a("fill-opacity",h)}else a("fill",hy);if(function iG(a){var i=a.stroke;return null!=i&&i!==hy}(i)){var f=Ic(i.stroke);a("stroke",f.color);var p=i.strokeNoScale?n.getLineScale():1,g=p?(i.lineWidth||0)/p:0,v=null!=i.strokeOpacity?i.strokeOpacity*f.opacity*c:f.opacity*c,_=i.strokeFirst;if((o||1!==g)&&a("stroke-width",g),(o||_)&&a("paint-order",_?"stroke":"fill"),(o||v<1)&&a("stroke-opacity",v),i.lineDash){var y=xM(n),w=y[0],x=y[1];w&&(x=tG(x||0),a("stroke-dasharray",w.join(",")),(x||o)&&a("stroke-dashoffset",x))}else o&&a("stroke-dasharray",hy);for(var S=0;S"u"){var D="Image width/height must been given explictly in svg-ssr renderer.";be(y,D),be(w,D)}else if(null==y||null==w){var T=function(W,$){if(W){var X=W.elm,K=y||$.width,ee=w||$.height;"pattern"===W.tag&&(g?(ee=1,K/=d.width):v&&(K=1,ee/=d.height)),W.attrs.width=K,W.attrs.height=ee,X&&(X.setAttribute("width",K),X.setAttribute("height",ee))}},A=jp(x,null,a,function(W){p||T(O,W),T(_,W)});A&&A.width&&A.height&&(y=y||A.width,w=w||A.height)}_=$r("image","img",{href:x,width:y,height:w}),h.width=y,h.height=w}else c.svgElement&&(_=nt(c.svgElement),h.width=c.svgWidth,h.height=c.svgHeight);if(_){var E,k;p?E=k=1:g?(k=1,E=h.width/d.width):v?(E=1,k=h.height/d.height):h.patternUnits="userSpaceOnUse",null!=E&&!isNaN(E)&&(h.width=E),null!=k&&!isNaN(k)&&(h.height=k);var L=LR(c);L&&(h.patternTransform=L);var O=$r("pattern","",h,[_]),B=xA(O),U=o.patternCache,j=U[B];j||(j=o.zrId+"-p"+o.patternIdx++,U[B]=j,h.id=j,O=o.defs[j]=$r("pattern",j,h,[_])),i[n]=lD(j)}}function wN(a,i,n){var o=n.clipPathCache,c=n.defs,d=o[a.id];if(!d){var h={id:d=n.zrId+"-c"+n.clipPathIdx++};o[a.id]=d,c[d]=$r("clipPath",d,h,[IA(a,n)])}i["clip-path"]=lD(d)}function Af(a){return document.createTextNode(a)}function Ef(a,i,n){a.insertBefore(i,n)}function gG(a,i){a.removeChild(i)}function PA(a,i){a.appendChild(i)}function xN(a){return a.parentNode}function CN(a){return a.nextSibling}function RA(a,i){a.textContent=i}var _G=58,yG=120,OA=$r("","");function $x(a){return void 0===a}function Yr(a){return void 0!==a}function SN(a,i,n){for(var o={},c=i;c<=n;++c){var d=a[c].key;void 0!==d&&(o[d]=c)}return o}function vy(a,i){return a.tag===i.tag&&a.key===i.key}function sg(a){var i,n=a.children,o=a.tag;if(Yr(o)){var c=a.elm=vN(o);if(_y(OA,a),ye(n))for(i=0;id?LA(a,null==n[p+1]?null:n[p+1].elm,n,c,p):Yx(a,i,o,d))}(n,o,c):Yr(c)?(Yr(a.text)&&RA(n,""),LA(n,null,c,0,c.length-1)):Yr(o)?Yx(n,o,0,o.length-1):Yr(a.text)&&RA(n,""):a.text!==i.text&&(Yr(o)&&Yx(n,o,0,o.length-1),RA(n,i.text)))}var pK=0,mK=function(){function a(i,n,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=n,this._opts=o=_e({},o),this.root=i,this._id="zr"+pK++,this._oldVNode=_N(o.width,o.height),i&&!o.ssr){var c=this._viewport=document.createElement("div");c.style.cssText="position:relative;overflow:hidden";var d=this._svgDom=this._oldVNode.elm=vN("svg");_y(null,this._oldVNode),c.appendChild(d),i.appendChild(c)}this.resize(o.width,o.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var i=this.renderToVNode({willUpdate:!0});i.attrs.style="position:absolute;left:0;top:0;user-select:none",function DN(a,i){if(vy(a,i))lg(a,i);else{var n=a.elm,o=xN(n);sg(i),null!==o&&(Ef(o,i.elm,CN(n)),Yx(o,[a],0,0))}}(this._oldVNode,i),this._oldVNode=i}},a.prototype.renderOneToVNode=function(i){return kA(i,CA(this._id))},a.prototype.renderToVNode=function(i){i=i||{};var n=this.storage.getDisplayList(!0),o=this._width,c=this._height,d=CA(this._id);d.animation=i.animation,d.willUpdate=i.willUpdate,d.compress=i.compress;var h=[],f=this._bgVNode=function gK(a,i,n,o){var c;if(n&&"none"!==n)if(c=$r("rect","bg",{width:a,height:i,x:"0",y:"0",id:"0"}),sD(n))ol({fill:n},c.attrs,"fill",o);else if(Rv(n))gy({style:{fill:n},dirty:qi,getBoundingRect:function(){return{width:a,height:i}}},c.attrs,"fill",o);else{var d=Ic(n),f=d.opacity;c.attrs.fill=d.color,f<1&&(c.attrs["fill-opacity"]=f)}return c}(o,c,this._backgroundColor,d);f&&h.push(f);var p=i.compress?null:this._mainVNode=$r("g","main",{},[]);this._paintList(n,d,p?p.children:h),p&&h.push(p);var g=Se(Wt(d.defs),function(y){return d.defs[y]});if(g.length&&h.push($r("defs","defs",{},g)),i.animation){var v=function cG(a,i,n){var o=(n=n||{}).newline?"\n":"",c=" {"+o,d=o+"}",h=Se(Wt(a),function(p){return p+c+Se(Wt(a[p]),function(g){return g+":"+a[p][g]+";"}).join(o)+d}).join(o),f=Se(Wt(i),function(p){return"@keyframes "+p+c+Se(Wt(i[p]),function(g){return g+c+Se(Wt(i[p][g]),function(v){var _=i[p][g][v];return"d"===v&&(_='path("'+_+'")'),v+":"+_+";"}).join(o)+d}).join(o)+d}).join(o);return h||f?[""].join(o):""}(d.cssNodes,d.cssAnims,{newline:!0});if(v){var _=$r("style","stl",{},[],v);h.push(_)}}return _N(o,c,h,i.useViewBox)},a.prototype.renderToString=function(i){return xA(this.renderToVNode({animation:gt((i=i||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:gt(i.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(i){this._backgroundColor=i},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(i,n,o){for(var f,p,c=i.length,d=[],h=0,g=0,v=0;v=0&&(!y||!p||y[S]!==p[S]);S--);for(var D=x-1;D>S;D--)f=d[--h-1];for(var T=S+1;T-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),o},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},i}(Xn);const yK=_K;function yy(a,i){var n=a.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o){var c=bm(a,i,n[0]);return null!=c?c+"":null}if(o){for(var d=[],h=0;h=0&&o.push(i[d])}return o.join(" ")}var xG=function(a){function i(n,o,c,d){var h=a.call(this)||this;return h.updateData(n,o,c,d),h}return de(i,a),i.prototype._createSymbol=function(n,o,c,d,h){this.removeAll();var f=ji(n,-1,-1,2,2,null,h);f.attr({z2:100,culling:!0,scaleX:d[0]/2,scaleY:d[1]/2}),f.drift=qx,this._symbolType=n,this.add(f)},i.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Xl(this.childAt(0))},i.prototype.downplay=function(){Kl(this.childAt(0))},i.prototype.setZ=function(n,o){var c=this.childAt(0);c.zlevel=n,c.z=o},i.prototype.setDraggable=function(n,o){var c=this.childAt(0);c.draggable=n,c.cursor=!o&&n?"move":c.cursor},i.prototype.updateData=function(n,o,c,d){this.silent=!1;var h=n.getItemVisual(o,"symbol")||"circle",f=n.hostModel,p=i.getSymbolSize(n,o),g=h!==this._symbolType,v=d&&d.disableAnimation;if(g){var _=n.getItemVisual(o,"symbolKeepAspect");this._createSymbol(h,n,o,p,_)}else{(y=this.childAt(0)).silent=!1;var w={scaleX:p[0]/2,scaleY:p[1]/2};v?y.attr(w):zt(y,w,f,o),Ql(y)}if(this._updateCommon(n,o,p,c,d),g){var y=this.childAt(0);v||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:y.style.opacity}},y.scaleX=y.scaleY=0,y.style.opacity=0,Nn(y,w,f,o))}v&&this.childAt(0).stopAnimation("leave")},i.prototype._updateCommon=function(n,o,c,d,h){var g,v,_,y,w,x,S,D,T,f=this.childAt(0),p=n.hostModel;if(d&&(g=d.emphasisItemStyle,v=d.blurItemStyle,_=d.selectItemStyle,y=d.focus,w=d.blurScope,S=d.labelStatesModels,D=d.hoverScale,T=d.cursorStyle,x=d.emphasisDisabled),!d||n.hasItemOption){var A=d&&d.itemModel?d.itemModel:n.getItemModel(o),E=A.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),_=A.getModel(["select","itemStyle"]).getItemStyle(),v=A.getModel(["blur","itemStyle"]).getItemStyle(),y=E.get("focus"),w=E.get("blurScope"),x=E.get("disabled"),S=Sr(A),D=E.getShallow("scale"),T=A.getShallow("cursor")}var k=n.getItemVisual(o,"symbolRotate");f.attr("rotation",(k||0)*Math.PI/180||0);var L=pf(n.getItemVisual(o,"symbolOffset"),c);L&&(f.x=L[0],f.y=L[1]),T&&f.attr("cursor",T);var O=n.getItemVisual(o,"style"),B=O.fill;if(f instanceof Jr){var U=f.style;f.useStyle(_e({image:U.image,x:U.x,y:U.y,width:U.width,height:U.height},O))}else f.useStyle(f.__isEmptyBrush?_e({},O):O),f.style.decal=null,f.setColor(B,h&&h.symbolInnerColor),f.style.strokeNoScale=!0;var j=n.getItemVisual(o,"liftZ"),W=this._z2;null!=j?null==W&&(this._z2=f.z2,f.z2+=j):null!=W&&(f.z2=W,this._z2=null);var $=h&&h.useNameLabel;Oa(f,S,{labelFetcher:p,labelDataIndex:o,defaultText:function X(te){return $?n.getName(te):yy(n,te)},inheritColor:B,defaultOpacity:O.opacity}),this._sizeX=c[0]/2,this._sizeY=c[1]/2;var K=f.ensureState("emphasis");K.style=g,f.ensureState("select").style=_,f.ensureState("blur").style=v;var ee=null==D||!0===D?Math.max(1.1,3/this._sizeY):isFinite(D)&&D>0?+D:1;K.scaleX=this._sizeX*ee,K.scaleY=this._sizeY*ee,this.setSymbolScale(1),Oi(this,y,w,x)},i.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},i.prototype.fadeOut=function(n,o,c){var d=this.childAt(0),h=st(this).dataIndex,f=c&&c.animation;if(this.silent=d.silent=!0,c&&c.fadeLabel){var p=d.getTextContent();p&&Hc(p,{style:{opacity:0}},o,{dataIndex:h,removeOpt:f,cb:function(){d.removeTextContent()}})}else d.removeTextContent();Hc(d,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:h,cb:n,removeOpt:f})},i.getSymbolSize=function(n,o){return ff(n.getItemVisual(o,"symbolSize"))},i}(rt);function qx(a,i){this.parent.drift(a,i)}const by=xG;function FA(a,i,n,o){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(o.isIgnore&&o.isIgnore(n))&&!(o.clipShape&&!o.clipShape.contain(i[0],i[1]))&&"none"!==a.getItemVisual(n,"symbol")}function NA(a){return null!=a&&!Ee(a)&&(a={isIgnore:a}),a||{}}function xu(a){var i=a.hostModel,n=i.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Sr(i),cursorStyle:i.get("cursor")}}var MN=function(){function a(i){this.group=new rt,this._SymbolCtor=i||by}return a.prototype.updateData=function(i,n){this._progressiveEls=null,n=NA(n);var o=this.group,c=i.hostModel,d=this._data,h=this._SymbolCtor,f=n.disableAnimation,p=xu(i),g={disableAnimation:f},v=n.getSymbolPoint||function(_){return i.getItemLayout(_)};d||o.removeAll(),i.diff(d).add(function(_){var y=v(_);if(FA(i,y,_,n)){var w=new h(i,_,p,g);w.setPosition(y),i.setItemGraphicEl(_,w),o.add(w)}}).update(function(_,y){var w=d.getItemGraphicEl(y),x=v(_);if(FA(i,x,_,n)){var S=i.getItemVisual(_,"symbol")||"circle",D=w&&w.getSymbolType&&w.getSymbolType();if(!w||D&&D!==S)o.remove(w),(w=new h(i,_,p,g)).setPosition(x);else{w.updateData(i,_,p,g);var T={x:x[0],y:x[1]};f?w.attr(T):zt(w,T,c)}o.add(w),i.setItemGraphicEl(_,w)}else o.remove(w)}).remove(function(_){var y=d.getItemGraphicEl(_);y&&y.fadeOut(function(){o.remove(y)},c)}).execute(),this._getSymbolPoint=v,this._data=i},a.prototype.updateLayout=function(){var i=this,n=this._data;n&&n.eachItemGraphicEl(function(o,c){var d=i._getSymbolPoint(c);o.setPosition(d),o.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=xu(i),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(i,n,o){function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=NA(o);for(var d=i.start;d0?n=o[0]:o[1]<0&&(n=o[1]),n}(c,n),h=o.dim,f=c.dim,p=i.mapDimension(f),g=i.mapDimension(h),v="x"===f||"radius"===f?1:0,_=Se(a.dimensions,function(x){return i.mapDimension(x)}),y=!1,w=i.getCalculationInfo("stackResultDimension");return ed(i,_[0])&&(y=!0,_[0]=w),ed(i,_[1])&&(y=!0,_[1]=w),{dataDimsForPoint:_,valueStart:d,valueAxisDim:f,baseAxisDim:h,stacked:!!y,valueDim:p,baseDim:g,baseDataOffset:v,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function Xx(a,i,n,o){var c=NaN;a.stacked&&(c=n.get(n.getCalculationInfo("stackedOverDimension"),o)),isNaN(c)&&(c=a.valueStart);var d=a.baseDataOffset,h=[];return h[d]=n.get(a.baseDim,o),h[1-d]=c,i.dataToPoint(h)}var kf=Math.min,Pf=Math.max;function cg(a,i){return isNaN(a)||isNaN(i)}function BA(a,i,n,o,c,d,h,f,p){for(var g,v,_,y,w,x,S=n,D=0;D=c||S<0)break;if(cg(T,A)){if(p){S+=d;continue}break}if(S===n)a[d>0?"moveTo":"lineTo"](T,A),_=T,y=A;else{var E=T-g,k=A-v;if(E*E+k*k<.5){S+=d;continue}if(h>0){for(var L=S+d,O=i[2*L],B=i[2*L+1];O===T&&B===A&&D=o||cg(O,B))w=T,x=A;else{W=O-g,$=B-v;var ee=T-g,te=O-T,ie=A-v,me=B-A,ue=void 0,we=void 0;if("x"===f){var Pe=W>0?1:-1;w=T-Pe*(ue=Math.abs(ee))*h,x=A,X=T+Pe*(we=Math.abs(te))*h,K=A}else if("y"===f){var Le=$>0?1:-1;w=T,x=A-Le*(ue=Math.abs(ie))*h,X=T,K=A+Le*(we=Math.abs(me))*h}else ue=Math.sqrt(ee*ee+ie*ie),w=T-W*h*(1-(j=(we=Math.sqrt(te*te+me*me))/(we+ue))),x=A-$*h*(1-j),K=A+$*h*j,X=kf(X=T+W*h*j,Pf(O,T)),K=kf(K,Pf(B,A)),X=Pf(X,kf(O,T)),x=A-($=(K=Pf(K,kf(B,A)))-A)*ue/we,w=kf(w=T-(W=X-T)*ue/we,Pf(g,T)),x=kf(x,Pf(v,A)),X=T+(W=T-(w=Pf(w,kf(g,T))))*we/ue,K=A+($=A-(x=Pf(x,kf(v,A))))*we/ue}a.bezierCurveTo(_,y,w,x,T,A),_=X,y=K}else a.lineTo(T,A)}g=T,v=A,S+=d}return D}var AN=function a(){this.smooth=0,this.smoothConstraint=!0},bK=function(a){function i(n){var o=a.call(this,n)||this;return o.type="ec-polyline",o}return de(i,a),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new AN},i.prototype.buildPath=function(n,o){var c=o.points,d=0,h=c.length/2;if(o.connectNulls){for(;h>0&&cg(c[2*h-2],c[2*h-1]);h--);for(;d=0){var k=g?(x-p)*E+p:(w-f)*E+f;return g?[n,k]:[k,n]}f=w,p=x;break;case h.C:w=d[_++],x=d[_++],S=d[_++],D=d[_++],T=d[_++],A=d[_++];var L=g?mo(f,w,S,T,n,v):mo(p,x,D,A,n,v);if(L>0)for(var O=0;O=0)return k=g?Ti(p,x,D,A,B):Ti(f,w,S,T,B),g?[n,k]:[k,n]}f=T,p=A}}},i}(It),ur=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i}(AN),dg=function(a){function i(n){var o=a.call(this,n)||this;return o.type="ec-polygon",o}return de(i,a),i.prototype.getDefaultShape=function(){return new ur},i.prototype.buildPath=function(n,o){var c=o.points,d=o.stackedOnPoints,h=0,f=c.length/2,p=o.smoothMonotone;if(o.connectNulls){for(;f>0&&cg(c[2*f-2],c[2*f-1]);f--);for(;ho)return!1;return!0}(d,i))){var h=i.mapDimension(d.dim),f={};return G(d.getViewLabels(),function(p){var g=d.scale.getRawOrdinalNumber(p.tickValue);f[g]=1}),function(p){return!f.hasOwnProperty(i.get(h,p))}}}}(n,p,h),W=this._data;W&&W.eachItemGraphicEl(function(Qt,Pt){Qt.__temp&&(f.remove(Qt),W.setItemGraphicEl(Pt,null))}),B||x.remove(),f.add(T);var X,$=!y&&n.get("step");h&&h.getArea&&n.get("clip",!0)&&(null!=(X=h.getArea()).width?(X.x-=.1,X.y-=.1,X.width+=.2,X.height+=.2):X.r0&&(X.r0-=.5,X.r+=.5)),this._clipShapeForSymbol=X;var K=function zA(a,i,n){var o=a.getVisual("visualMeta");if(o&&o.length&&a.count()&&"cartesian2d"===i.type){for(var c,d,h=o.length-1;h>=0;h--){var f=a.getDimensionInfo(o[h].dimension);if("x"===(c=f&&f.coordDim)||"y"===c){d=o[h];break}}if(d){var p=i.getAxis(c),g=Se(d.stops,function(E){return{coord:p.toGlobalCoord(p.dataToCoord(E.value)),color:E.color}}),v=g.length,_=d.outerColors.slice();v&&g[0].coord>g[v-1].coord&&(g.reverse(),_.reverse());var y=function IN(a,i){var c,d,n=[],o=a.length;function h(v,_,y){var w=v.coord;return{coord:y,color:v0((y-w)/(_.coord-w),[v.color,_.color])}}for(var f=0;fi){d?n.push(h(d,p,i)):c&&n.push(h(c,p,0),h(c,p,i));break}c&&(n.push(h(c,p,0)),c=null),n.push(p),d=p}}return n}(g,"x"===c?n.getWidth():n.getHeight()),w=y.length;if(!w&&v)return g[0].coord<0?_[1]?_[1]:g[v-1].color:_[0]?_[0]:g[0].color;var S=y[0].coord-10,D=y[w-1].coord+10,T=D-S;if(T<.001)return"transparent";G(y,function(E){E.offset=(E.coord-S)/T}),y.push({offset:w?y[w-1].offset:.5,color:_[1]||"transparent"}),y.unshift({offset:w?y[0].offset:.5,color:_[0]||"transparent"});var A=new Mm(0,0,0,0,y,!0);return A[c]=S,A[c+"2"]=D,A}}}(p,h,c)||p.getVisual("style")[p.getVisual("drawType")];if(S&&w.type===h.type&&$===this._step){E&&!D?D=this._newPolygon(_,O):D&&!E&&(T.remove(D),D=this._polygon=null),y||this._initOrUpdateEndLabel(n,h,Gh(K));var ee=T.getClipPath();ee?Nn(ee,{shape:Rf(this,h,!1,n).shape},n):T.setClipPath(Rf(this,h,!0,n)),B&&x.updateData(p,{isIgnore:j,clipShape:X,disableAnimation:!0,getSymbolPoint:function(Qt){return[_[2*Qt],_[2*Qt+1]]}}),(!EN(this._stackedOnPoints,O)||!EN(this._points,_))&&(A?this._doUpdateAnimation(p,O,h,c,$,k,U):($&&(_=ad(_,h,$,U),O&&(O=ad(O,h,$,U))),S.setShape({points:_}),D&&D.setShape({points:_,stackedOnPoints:O})))}else B&&x.updateData(p,{isIgnore:j,clipShape:X,disableAnimation:!0,getSymbolPoint:function(Qt){return[_[2*Qt],_[2*Qt+1]]}}),A&&this._initSymbolLabelAnimation(p,h,X),$&&(_=ad(_,h,$,U),O&&(O=ad(O,h,$,U))),S=this._newPolyline(_),E?D=this._newPolygon(_,O):D&&(T.remove(D),D=this._polygon=null),y||this._initOrUpdateEndLabel(n,h,Gh(K)),T.setClipPath(Rf(this,h,!0,n));var ie=n.getModel("emphasis"),me=ie.get("focus"),ue=ie.get("blurScope"),we=ie.get("disabled");S.useStyle(Ze(g.getLineStyle(),{fill:"none",stroke:K,lineJoin:"bevel"})),ga(S,n,"lineStyle"),S.style.lineWidth>0&&"bolder"===n.get(["emphasis","lineStyle","width"])&&(S.getState("emphasis").style.lineWidth=+S.style.lineWidth+1),st(S).seriesIndex=n.seriesIndex,Oi(S,me,ue,we);var Le=Qx(n.get("smooth")),We=n.get("smoothMonotone");if(S.setShape({smooth:Le,smoothMonotone:We,connectNulls:U}),D){var Ke=p.getCalculationInfo("stackedOnSeries"),Qe=0;D.useStyle(Ze(v.getAreaStyle(),{fill:K,opacity:.7,lineJoin:"bevel",decal:p.getVisual("style").decal})),Ke&&(Qe=Qx(Ke.get("smooth"))),D.setShape({smooth:Le,stackedOnSmooth:Qe,smoothMonotone:We,connectNulls:U}),ga(D,n,"areaStyle"),st(D).seriesIndex=n.seriesIndex,Oi(D,me,ue,we)}var At=function(Qt){d._changePolyState(Qt)};p.eachItemGraphicEl(function(Qt){Qt&&(Qt.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=p,this._coordSys=h,this._stackedOnPoints=O,this._points=_,this._step=$,this._valueOrigin=k,n.get("triggerLineEvent")&&(this.packEventData(n,S),D&&this.packEventData(n,D))},i.prototype.packEventData=function(n,o){st(o).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},i.prototype.highlight=function(n,o,c,d){var h=n.getData(),f=Lc(h,d);if(this._changePolyState("emphasis"),!(f instanceof Array)&&null!=f&&f>=0){var p=h.getLayout("points"),g=h.getItemGraphicEl(f);if(!g){var v=p[2*f],_=p[2*f+1];if(isNaN(v)||isNaN(_)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,_))return;var y=n.get("zlevel")||0,w=n.get("z")||0;(g=new by(h,f)).x=v,g.y=_,g.setZ(y,w);var x=g.getSymbolPath().getTextContent();x&&(x.zlevel=y,x.z=w,x.z2=this._polyline.z2+1),g.__temp=!0,h.setItemGraphicEl(f,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Rn.prototype.highlight.call(this,n,o,c,d)},i.prototype.downplay=function(n,o,c,d){var h=n.getData(),f=Lc(h,d);if(this._changePolyState("normal"),null!=f&&f>=0){var p=h.getItemGraphicEl(f);p&&(p.__temp?(h.setItemGraphicEl(f,null),this.group.remove(p)):p.downplay())}else Rn.prototype.downplay.call(this,n,o,c,d)},i.prototype._changePolyState=function(n){var o=this._polygon;im(this._polyline,n),o&&im(o,n)},i.prototype._newPolyline=function(n){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new bK({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},i.prototype._newPolygon=function(n,o){var c=this._polygon;return c&&this._lineGroup.remove(c),c=new dg({shape:{points:n,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(c),this._polygon=c,c},i.prototype._initSymbolLabelAnimation=function(n,o,c){var d,h,f=o.getBaseAxis(),p=f.inverse;"cartesian2d"===o.type?(d=f.isHorizontal(),h=!1):"polar"===o.type&&(d="angle"===f.dim,h=!0);var g=n.hostModel,v=g.get("animationDuration");Xe(v)&&(v=v(null));var _=g.get("animationDelay")||0,y=Xe(_)?_(null):_;n.eachItemGraphicEl(function(w,x){var S=w;if(S){var T=void 0,A=void 0,E=void 0;if(c)if(h){var k=c,L=o.pointToCoord([w.x,w.y]);d?(T=k.startAngle,A=k.endAngle,E=-L[1]/180*Math.PI):(T=k.r0,A=k.r,E=L[0])}else d?(T=c.x,A=c.x+c.width,E=w.x):(T=c.y+c.height,A=c.y,E=w.y);var B=A===T?0:(E-T)/(A-T);p&&(B=1-B);var U=Xe(_)?_(x):v*B+y,j=S.getSymbolPath(),W=j.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:U}),W&&W.animateFrom({style:{opacity:0}},{duration:300,delay:U}),j.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(n,o,c){var d=n.getModel("endLabel");if(Sy(n)){var h=n.getData(),f=this._polyline,p=h.getLayout("points");if(!p)return f.removeTextContent(),void(this._endLabel=null);var g=this._endLabel;g||((g=this._endLabel=new Zt({z2:200})).ignoreClip=!0,f.setTextContent(this._endLabel),f.disableLabelAnimation=!0);var v=function PN(a){for(var i=a.length/2;i>0&&AG(a[2*i-2],a[2*i-1]);i--);return i-1}(p);v>=0&&(Oa(f,Sr(n,"endLabel"),{inheritColor:c,labelFetcher:n,labelDataIndex:v,defaultText:function(_,y,w){return null!=w?wG(h,w):yy(h,_)},enableTextSetter:!0},function hg(a,i){var n=i.getBaseAxis(),o=n.isHorizontal(),c=n.inverse,d=o?c?"right":"left":"center",h=o?"middle":c?"top":"bottom";return{normal:{align:a.get("align")||d,verticalAlign:a.get("verticalAlign")||h}}}(d,o)),f.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(n,o,c,d,h,f,p){var g=this._endLabel,v=this._polyline;if(g){n<1&&null==d.originalX&&(d.originalX=g.x,d.originalY=g.y);var _=c.getLayout("points"),y=c.hostModel,w=y.get("connectNulls"),x=f.get("precision"),S=f.get("distance")||0,D=p.getBaseAxis(),T=D.isHorizontal(),A=D.inverse,E=o.shape,k=A?T?E.x:E.y+E.height:T?E.x+E.width:E.y,L=(T?S:0)*(A?-1:1),O=(T?0:-S)*(A?-1:1),B=T?"x":"y",U=function ON(a,i,n){for(var d,h,o=a.length/2,c="x"===n?0:1,f=0,p=-1,g=0;g=i||d>=i&&h<=i){p=g;break}f=g,d=h}return{range:[f,p],t:(i-d)/(h-d)}}(_,k,B),j=U.range,W=j[1]-j[0],$=void 0;if(W>=1){if(W>1&&!w){var X=RN(_,j[0]);g.attr({x:X[0]+L,y:X[1]+O}),h&&($=y.getRawValue(j[0]))}else{(X=v.getPointOn(k,B))&&g.attr({x:X[0]+L,y:X[1]+O});var K=y.getRawValue(j[0]),ee=y.getRawValue(j[1]);h&&($=o2(c,x,K,ee,U.t))}d.lastFrameIndex=j[0]}else{var te=1===n||d.lastFrameIndex>0?j[0]:0;X=RN(_,te),h&&($=y.getRawValue(te)),g.attr({x:X[0]+L,y:X[1]+O})}if(h){var ie=Qi(g);"function"==typeof ie.setLabelText&&ie.setLabelText($)}}},i.prototype._doUpdateAnimation=function(n,o,c,d,h,f,p){var g=this._polyline,v=this._polygon,_=n.hostModel,y=function Kx(a,i,n,o,c,d,h,f){for(var p=function VA(a,i){var n=[];return i.diff(a).add(function(o){n.push({cmd:"+",idx:o})}).update(function(o,c){n.push({cmd:"=",idx:c,idx1:o})}).remove(function(o){n.push({cmd:"-",idx:o})}).execute(),n}(a,i),g=[],v=[],_=[],y=[],w=[],x=[],S=[],D=Zx(c,i,h),T=a.getLayout("points")||[],A=i.getLayout("points")||[],E=0;E3e3||v&&DG(x,D)>3e3)return g.stopAnimation(),g.setShape({points:S}),void(v&&(v.stopAnimation(),v.setShape({points:S,stackedOnPoints:D})));g.shape.__points=y.current,g.shape.points=w;var T={shape:{points:S}};y.current!==w&&(T.shape.__points=y.next),g.stopAnimation(),zt(g,T,_),v&&(v.setShape({points:w,stackedOnPoints:x}),v.stopAnimation(),zt(v,{shape:{stackedOnPoints:D}},_),g.shape.points!==v.shape.points&&(v.shape.points=g.shape.points));for(var A=[],E=y.status,k=0;ki&&(i=a[n]);return isFinite(i)?i:NaN},min:function(a){for(var i=1/0,n=0;n10&&"cartesian2d"===h.type&&d){var p=h.getBaseAxis(),g=h.getOtherAxis(p),v=p.getExtent(),_=o.getDevicePixelRatio(),y=Math.abs(v[1]-v[0])*(_||1),w=Math.round(f/y);if(isFinite(w)&&w>1){"lttb"===d&&i.setData(c.lttbDownSample(c.mapDimension(g.dim),1/w));var x=void 0;Ae(d)?x=xK[d]:Xe(d)&&(x=d),x&&i.setData(c.downSample(c.mapDimension(g.dim),1/w,x,EG))}}}}}var HA=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.getInitialData=function(n,o){return el(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(n,o,c){var d=this.coordinateSystem;if(d&&d.clampData){var h=d.clampData(n),f=d.dataToPoint(h);if(c)G(d.getAxes(),function(y,w){if("category"===y.type&&null!=o){var x=y.getTicksCoords(),S=h[w],D="x1"===o[w]||"y1"===o[w];if(D&&(S+=1),x.length<2)return;if(2===x.length)return void(f[w]=y.toGlobalCoord(y.getExtent()[D?1:0]));for(var T=void 0,A=void 0,E=1,k=0;kS){A=(L+T)/2;break}1===k&&(E=O-x[0].tickValue)}null==A&&(T?T&&(A=x[x.length-1].coord):A=x[0].coord),f[w]=y.toGlobalCoord(A)}});else{var p=this.getData(),g=p.getLayout("offset"),v=p.getLayout("size"),_=d.getBaseAxis().isHorizontal()?0:1;f[_]+=g+v/2}return f}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(Xn);Xn.registerClass(HA);const fg=HA;var SK=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.getInitialData=function(){return el(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>n&&(n=o),n},i.prototype.brushSelector=function(n,o,c){return c.rect(o.getItemLayout(n))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=Ho(fg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),i}(fg);const Dy=SK;var DK=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},TK=function(a){function i(n){var o=a.call(this,n)||this;return o.type="sausage",o}return de(i,a),i.prototype.getDefaultShape=function(){return new DK},i.prototype.buildPath=function(n,o){var c=o.cx,d=o.cy,h=Math.max(o.r0||0,0),f=Math.max(o.r,0),p=.5*(f-h),g=h+p,v=o.startAngle,_=o.endAngle,y=o.clockwise,w=2*Math.PI,x=y?_-vf)return!0;f=_}return!1},i.prototype._isOrderDifferentInView=function(n,o){for(var c=o.scale,d=c.getExtent(),h=Math.max(0,d[0]),f=Math.min(d[1],c.getOrdinalMeta().categories.length-1);h<=f;++h)if(n.ordinalNumbers[h]!==c.getRawOrdinalNumber(h))return!0},i.prototype._updateSortWithinSameData=function(n,o,c,d){if(this._isOrderChangedWithinSameData(n,o,c)){var h=this._dataSort(n,c,o);this._isOrderDifferentInView(h,c)&&(this._removeOnRenderedListener(d),d.dispatchAction({type:"changeAxisOrder",componentType:c.dim+"Axis",axisId:c.index,sortInfo:h}))}},i.prototype._dispatchInitSort=function(n,o,c){var d=o.baseAxis,h=this._dataSort(n,d,function(f){return n.get(n.mapDimension(o.otherAxis.dim),f)});c.dispatchAction({type:"changeAxisOrder",componentType:d.dim+"Axis",isInitSort:!0,axisId:d.index,sortInfo:h})},i.prototype.remove=function(n,o){this._clear(this._model),this._removeOnRenderedListener(o)},i.prototype.dispose=function(n,o){this._removeOnRenderedListener(o)},i.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(n){var o=this.group,c=this._data;n&&n.isAnimationEnabled()&&c&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],c.eachItemGraphicEl(function(d){lw(d,n,st(d).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Rn),VN={cartesian2d:function(a,i){var n=i.width<0?-1:1,o=i.height<0?-1:1;n<0&&(i.x+=i.width,i.width=-i.width),o<0&&(i.y+=i.height,i.height=-i.height);var c=a.x+a.width,d=a.y+a.height,h=NN(i.x,a.x),f=tC(i.x+i.width,c),p=NN(i.y,a.y),g=tC(i.y+i.height,d),v=fc?f:h,i.y=_&&p>d?g:p,i.width=v?0:f-h,i.height=_?0:g-p,n<0&&(i.x+=i.width,i.width=-i.width),o<0&&(i.y+=i.height,i.height=-i.height),v||_},polar:function(a,i){var n=i.r0<=i.r?1:-1;if(n<0){var o=i.r;i.r=i.r0,i.r0=o}var c=tC(i.r,a.r),d=NN(i.r0,a.r0);i.r=c,i.r0=d;var h=c-d<0;return n<0&&(o=i.r,i.r=i.r0,i.r0=o),h}},GA={cartesian2d:function(a,i,n,o,c,d,h,f,p){var g=new _t({shape:_e({},o),z2:1});return g.__dataIndex=n,g.name="item",d&&(g.shape[c?"height":"width"]=0),g},polar:function(a,i,n,o,c,d,h,f,p){var g=!c&&p?UA:jr,v=new g({shape:o,z2:1});v.name="item";var _=HN(c);if(v.calculateTextPosition=function IG(a,i){var n=(i=i||{}).isRoundCap;return function(o,c,d){var h=c.position;if(!h||h instanceof Array)return Op(o,c,d);var f=a(h),p=null!=c.distance?c.distance:5,g=this.shape,v=g.cx,_=g.cy,y=g.r,w=g.r0,x=(y+w)/2,S=g.startAngle,D=g.endAngle,T=(S+D)/2,A=n?Math.abs(y-w)/2:0,E=Math.cos,k=Math.sin,L=v+y*E(S),O=_+y*k(S),B="left",U="top";switch(f){case"startArc":L=v+(w-p)*E(T),O=_+(w-p)*k(T),B="center",U="top";break;case"insideStartArc":L=v+(w+p)*E(T),O=_+(w+p)*k(T),B="center",U="bottom";break;case"startAngle":L=v+x*E(S)+jA(S,p+A,!1),O=_+x*k(S)+eC(S,p+A,!1),B="right",U="middle";break;case"insideStartAngle":L=v+x*E(S)+jA(S,-p+A,!1),O=_+x*k(S)+eC(S,-p+A,!1),B="left",U="middle";break;case"middle":L=v+x*E(T),O=_+x*k(T),B="center",U="middle";break;case"endArc":L=v+(y+p)*E(T),O=_+(y+p)*k(T),B="center",U="bottom";break;case"insideEndArc":L=v+(y-p)*E(T),O=_+(y-p)*k(T),B="center",U="top";break;case"endAngle":L=v+x*E(D)+jA(D,p+A,!0),O=_+x*k(D)+eC(D,p+A,!0),B="left",U="middle";break;case"insideEndAngle":L=v+x*E(D)+jA(D,-p+A,!0),O=_+x*k(D)+eC(D,-p+A,!0),B="right",U="middle";break;default:return Op(o,c,d)}return(o=o||{}).x=L,o.y=O,o.align=B,o.verticalAlign=U,o}}(_,{isRoundCap:g===UA}),d){var w=c?"r":"endAngle",x={};v.shape[w]=c?o.r0:o.startAngle,x[w]=o[w],(f?zt:Nn)(v,{shape:x},d)}return v}};function BN(a,i,n,o,c,d,h,f){var p,g;d?(g={x:o.x,width:o.width},p={y:o.y,height:o.height}):(g={y:o.y,height:o.height},p={x:o.x,width:o.width}),f||(h?zt:Nn)(n,{shape:p},i,c,null),(h?zt:Nn)(n,{shape:g},i?a.baseAxis.model:null,c)}function zN(a,i){for(var n=0;n0?1:-1,h=o.height>0?1:-1;return{x:o.x+d*c/2,y:o.y+h*c/2,width:o.width-d*c,height:o.height-h*c}},polar:function(a,i,n){var o=a.getItemLayout(i);return{cx:o.cx,cy:o.cy,r0:o.r0,r:o.r,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}};function HN(a){return function(i){var n=i?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+n;default:return o}}}(a)}function WA(a,i,n,o,c,d,h,f){var p=i.getItemVisual(n,"style");if(f){if(!d.get("roundCap")){var v=a.shape;_e(v,Cu(o.getModel("itemStyle"),v,!0)),a.setShape(v)}}else{var g=o.get(["itemStyle","borderRadius"])||0;a.setShape("r",g)}a.useStyle(p);var y=o.getShallow("cursor");y&&a.attr("cursor",y);var w=f?h?c.r>=c.r0?"endArc":"startArc":c.endAngle>=c.startAngle?"endAngle":"startAngle":h?c.height>=0?"bottom":"top":c.width>=0?"right":"left",x=Sr(o);Oa(a,x,{labelFetcher:d,labelDataIndex:n,defaultText:yy(d.getData(),n),inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:w});var S=a.getTextContent();if(f&&S){var D=o.get(["label","position"]);a.textConfig.inside="middle"===D||null,function MK(a,i,n,o){if(on(o))a.setTextConfig({rotation:o});else if(ye(i))a.setTextConfig({rotation:0});else{var p,c=a.shape,d=c.clockwise?c.startAngle:c.endAngle,h=c.clockwise?c.endAngle:c.startAngle,f=(d+h)/2,g=n(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":p=f;break;case"startAngle":case"insideStartAngle":p=d;break;case"endAngle":case"insideEndAngle":p=h;break;default:return void a.setTextConfig({rotation:0})}var v=1.5*Math.PI-p;"middle"===g&&v>Math.PI/2&&v<1.5*Math.PI&&(v-=Math.PI),a.setTextConfig({rotation:v})}}(a,"outside"===D?w:D,HN(h),o.get(["label","rotate"]))}zr(S,x,d.getRawValue(n),function(A){return wG(i,A)});var T=o.getModel(["emphasis"]);Oi(a,T.get("focus"),T.get("blurScope"),T.get("disabled")),ga(a,o),function OG(a){return null!=a.startAngle&&null!=a.endAngle&&a.startAngle===a.endAngle}(c)&&(a.style.fill="none",a.style.stroke="none",G(a.states,function(A){A.style&&(A.style.fill=A.style.stroke="none")}))}var LG=function a(){},$A=function(a){function i(n){var o=a.call(this,n)||this;return o.type="largeBar",o}return de(i,a),i.prototype.getDefaultShape=function(){return new LG},i.prototype.buildPath=function(n,o){for(var c=o.points,d=this.baseDimIdx,h=1-this.baseDimIdx,f=[],p=[],g=this.barWidth,v=0;v=f[0]&&i<=f[0]+p[0]&&n>=f[1]&&n<=f[1]+p[1])return h[v]}return-1}(this,a.offsetX,a.offsetY);st(this).dataIndex=n>=0?n:null},30,!1);function My(a,i,n){if(ug(n,"cartesian2d")){var o=i,c=n.getArea();return{x:a?o.x:c.x,y:a?c.y:o.y,width:a?o.width:c.width,height:a?c.height:o.height}}return{cx:(c=n.getArea()).cx,cy:c.cy,r0:a?c.r0:i.r0,r:a?c.r:i.r,startAngle:a?i.startAngle:0,endAngle:a?i.endAngle:2*Math.PI}}const GN=AK;var nC=2*Math.PI,Ay=Math.PI/180;function WN(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function $N(a,i){var n=WN(a,i),o=a.get("center"),c=a.get("radius");ye(c)||(c=[0,c]);var v,_,d=Ie(n.width,i.getWidth()),h=Ie(n.height,i.getHeight()),f=Math.min(d,h),p=Ie(c[0],f/2),g=Ie(c[1],f/2),y=a.coordinateSystem;if(y){var w=y.dataToPoint(o);v=w[0]||0,_=w[1]||0}else ye(o)||(o=[o,o]),v=Ie(o[0],d)+n.x,_=Ie(o[1],h)+n.y;return{cx:v,cy:_,r0:p,r:g}}function YN(a,i,n){i.eachSeriesByType(a,function(o){var c=o.getData(),d=c.mapDimension("value"),h=WN(o,n),f=$N(o,n),p=f.cx,g=f.cy,v=f.r,_=f.r0,y=-o.get("startAngle")*Ay,w=o.get("minAngle")*Ay,x=0;c.each(d,function(W){!isNaN(W)&&x++});var S=c.getSum(d),D=Math.PI/(S||x)*2,T=o.get("clockwise"),A=o.get("roseType"),E=o.get("stillShowZeroSum"),k=c.getDataExtent(d);k[0]=0;var L=nC,O=0,B=y,U=T?1:-1;if(c.setLayout({viewRect:h,r:v}),c.each(d,function(W,$){var X;if(isNaN(W))c.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:p,cy:g,r0:_,r:A?NaN:v});else{(X="area"!==A?0===S&&E?D:W*D:nC/x)n?T:D,L=Math.abs(E.label.y-n);if(L>=k.maxY){var O=E.label.x-i-E.len2*c,B=o+E.len,U=Math.abs(O)a.unconstrainedWidth?null:w:null)}var S=o.getBoundingRect();d.width=S.width,d.height=S.height+((o.style.margin||0)+2.1),d.y-=(d.height-_)/2}}}function qN(a){return"center"===a.position}var jt=function(a){function i(n,o,c){var d=a.call(this)||this;d.z2=2;var h=new Zt;return d.setTextContent(h),d.updateData(n,o,c,!0),d}return de(i,a),i.prototype.updateData=function(n,o,c,d){var h=this,f=n.hostModel,p=n.getItemModel(o),g=p.getModel("emphasis"),v=n.getItemLayout(o),_=_e(Cu(p.getModel("itemStyle"),v,!0),v);if(isNaN(_.startAngle))h.setShape(_);else{if(d){h.setShape(_);var y=f.getShallow("animationType");f.ecModel.ssr?(Nn(h,{scaleX:0,scaleY:0},f,{dataIndex:o,isFrom:!0}),h.originX=_.cx,h.originY=_.cy):"scale"===y?(h.shape.r=v.r0,Nn(h,{shape:{r:v.r}},f,o)):null!=c?(h.setShape({startAngle:c,endAngle:c}),Nn(h,{shape:{startAngle:v.startAngle,endAngle:v.endAngle}},f,o)):(h.shape.endAngle=v.startAngle,zt(h,{shape:{endAngle:v.endAngle}},f,o))}else Ql(h),zt(h,{shape:_},f,o);h.useStyle(n.getItemVisual(o,"style")),ga(h,p);var w=(v.startAngle+v.endAngle)/2,x=f.get("selectedOffset"),S=Math.cos(w)*x,D=Math.sin(w)*x,T=p.getShallow("cursor");T&&h.attr("cursor",T),this._updateLabel(f,n,o),h.ensureState("emphasis").shape=_e({r:v.r+(g.get("scale")&&g.get("scaleSize")||0)},Cu(g.getModel("itemStyle"),v)),_e(h.ensureState("select"),{x:S,y:D,shape:Cu(p.getModel(["select","itemStyle"]),v)}),_e(h.ensureState("blur"),{shape:Cu(p.getModel(["blur","itemStyle"]),v)});var A=h.getTextGuideLine(),E=h.getTextContent();A&&_e(A.ensureState("select"),{x:S,y:D}),_e(E.ensureState("select"),{x:S,y:D}),Oi(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))}},i.prototype._updateLabel=function(n,o,c){var d=this,h=o.getItemModel(c),f=h.getModel("labelLine"),p=o.getItemVisual(c,"style"),g=p&&p.fill,v=p&&p.opacity;Oa(d,Sr(h),{labelFetcher:o.hostModel,labelDataIndex:c,inheritColor:g,defaultOpacity:v,defaultText:n.getFormattedLabel(c,"normal")||o.getName(c)});var _=d.getTextContent();d.setTextConfig({position:null,rotation:null}),_.attr({z2:10});var y=n.get(["label","position"]);if("outside"!==y&&"outer"!==y)d.removeTextGuideLine();else{var w=this.getTextGuideLine();w||(w=new io,this.setTextGuideLine(w)),Nx(this,Vx(h),{stroke:g,opacity:Ro(f.get(["lineStyle","opacity"]),v,1)})}},i}(jr),qA=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return de(i,a),i.prototype.render=function(n,o,c,d){var g,h=n.getData(),f=this._data,p=this.group;if(!f&&h.count()>0){for(var v=h.getItemLayout(0),_=1;isNaN(v&&v.startAngle)&&_0?"right":"left":We>0?"left":"right"}var ir=Math.PI,Yi=0,Wa=X.get("rotate");if(on(Wa))Yi=Wa*(ir/180);else if("center"===K)Yi=0;else if("radial"===Wa||!0===Wa)Yi=We<0?-Le+ir:-Le;else if("tangential"===Wa&&"outside"!==K&&"outer"!==K){var Rr=Math.atan2(We,Ke);Rr<0&&(Rr=2*ir+Rr),Ke>0&&(Rr=ir+Rr),Yi=Rr-ir}if(d=!!Yi,j.x=Qe,j.y=At,j.rotation=Yi,j.setStyle({verticalAlign:"middle"}),at){j.setStyle({align:Pt});var av=j.states.select;av&&(av.x+=j.x,av.y+=j.y)}else{var xl=j.getBoundingRect().clone();xl.applyTransform(j.getComputedTransform());var rv=(j.style.margin||0)+2.1;xl.y-=rv/2,xl.height+=rv,n.push({label:j,labelLine:W,position:K,len:we,len2:Pe,minTurnAngle:ue.get("minTurnAngle"),maxSurfaceAngle:ue.get("maxSurfaceAngle"),surfaceNormal:new St(We,Ke),linePoints:Qt,textAlign:Pt,labelDistance:ee,labelAlignTo:te,edgeDistance:ie,bleedMargin:me,rect:xl,unconstrainedWidth:xl.width,labelStyleWidth:j.style.width})}B.setTextConfig({inside:at})}}),!d&&a.get("avoidLabelOverlap")&&function HG(a,i,n,o,c,d,h,f){for(var p=[],g=[],v=Number.MAX_VALUE,_=-Number.MAX_VALUE,y=0;y=d.r0}},i.type="pie",i}(Rn);const kK=qA;function Ey(a,i,n){i=ye(i)&&{coordDimensions:i}||_e({encodeDefine:a.getEncode()},i);var o=a.getSource(),c=Qm(o,i).dimensions,d=new ya(c,a);return d.initData(o,n),d}var PK=function(){function a(i,n){this._getDataWithEncodedVisual=i,this._getRawData=n}return a.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},a.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},a.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},a.prototype.getItemVisual=function(i,n){return this._getDataWithEncodedVisual().getItemVisual(i,n)},a}();const rC=PK;var GG=qt(),RK=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new rC(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(n)},i.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return Ey(this,{coordDimensions:["value"],encodeDefaulter:ct(xT,this)})},i.prototype.getDataParams=function(n){var o=this.getData(),c=GG(o),d=c.seats;if(!d){var h=[];o.each(o.mapDimension("value"),function(p){h.push(p)}),d=c.seats=EH(h,o.hostModel.get("percentPrecision"))}var f=a.prototype.getDataParams.call(this,n);return f.percent=d[n]||0,f.$vars.push("percent"),f},i.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var o=n.labelLine,c=n.emphasis.labelLine;o.show=o.show&&n.label.show,c.show=c.show&&n.emphasis.label.show},i.type="series.pie",i.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(Xn);const OK=RK;var NK=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){return el(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},i.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},i.prototype.brushSelector=function(n,o,c){return c.point(o.getItemLayout(n))},i.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},i}(Xn);const WG=NK;var ZA=function a(){},Su=function(a){function i(n){var o=a.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(i,a),i.prototype.getDefaultShape=function(){return new ZA},i.prototype.reset=function(){this.notClear=!1,this._off=0},i.prototype.buildPath=function(n,o){var _,c=o.points,d=o.size,h=this.symbolProxy,f=h.shape,p=n.getContext?n.getContext():n,v=this.softClipShape;if(p&&d[0]<4)this._ctx=p;else{for(this._ctx=null,_=this._off;_=0;g--){var v=2*g,_=d[v]-f/2,y=d[v+1]-p/2;if(n>=_&&o>=y&&n<=_+f&&o<=y+p)return g}return-1},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o);return this.getBoundingRect().contain(n=c[0],o=c[1])?(this.hoverDataIdx=this.findDataIndex(n,o))>=0:(this.hoverDataIdx=-1,!1)},i.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var o=this.shape,c=o.points,d=o.size,h=d[0],f=d[1],p=1/0,g=1/0,v=-1/0,_=-1/0,y=0;y=0&&(g.dataIndex=_+(i.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const qG=YG;var yt=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData();this._updateSymbolDraw(d,n).updateData(d,{clipShape:this._getClipShape(n)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(n,o,c){var d=n.getData();this._updateSymbolDraw(d,n).incrementalPrepareUpdate(d),this._finished=!1},i.prototype.incrementalRender=function(n,o,c){this._symbolDraw.incrementalUpdate(n,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=n.end===o.getData().count()},i.prototype.updateTransform=function(n,o,c){var d=n.getData();if(this.group.dirty(),!this._finished||d.count()>1e4)return{update:!0};var h=Jx("").reset(n,o,c);h.progress&&h.progress({start:0,end:d.count(),count:d.count()},d),this._symbolDraw.updateLayout(d)},i.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},i.prototype._getClipShape=function(n){var o=n.coordinateSystem,c=o&&o.getArea&&o.getArea();return n.get("clip",!0)?c:null},i.prototype._updateSymbolDraw=function(n,o){var c=this._symbolDraw,h=o.pipelineContext.large;return(!c||h!==this._isLargeDraw)&&(c&&c.remove(),c=this._symbolDraw=h?new qG:new If,this._isLargeDraw=h,this.group.removeAll()),this.group.add(c.group),c},i.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Rn);const XA=yt;var ZG=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(en);const XG=ZG;var Iy=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yi).models[0]},i.type="cartesian2dAxis",i}(en);Di(Iy,ry);var hc={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Of=mt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hc),aC=mt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hc);const Du={category:Of,value:aC,time:mt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},aC),log:Ze({logBase:10},aC)};var JG={value:1,category:1,time:1,log:1};function pg(a,i,n,o){G(JG,function(c,d){var h=mt(mt({},Du[d],!0),o,!0),f=function(p){function g(){var v=null!==p&&p.apply(this,arguments)||this;return v.type=i+"Axis."+d,v}return de(g,p),g.prototype.mergeDefaultAndTheme=function(v,_){var y=v_(this),w=y?$h(v):{};mt(v,_.getTheme().get(d+"Axis")),mt(v,this.getDefaultOption()),v.type=KA(v),y&&cs(v,w,y)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=XM.createByAxisModel(this))},g.prototype.getCategories=function(v){var _=this.option;if("category"===_.type)return v?_.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+d,g.defaultOption=h,g}(n);a.registerComponentModel(f)}),a.registerSubTypeDefaulter(i+"Axis",KA)}function KA(a){return a.type||(a.data?"category":"value")}var e6=function(){function a(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return a.prototype.getAxis=function(i){return this._axes[i]},a.prototype.getAxes=function(){return Se(this._dimList,function(i){return this._axes[i]},this)},a.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),_n(this.getAxes(),function(n){return n.scale.type===i})},a.prototype.addAxis=function(i){var n=i.dim;this._axes[n]=i,this._dimList.push(n)},a}(),mg=["x","y"];function Lf(a){return"interval"===a.type||"time"===a.type}var co=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=mg,n}return de(i,a),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,o=this.getAxis("y").scale;if(Lf(n)&&Lf(o)){var c=n.getExtent(),d=o.getExtent(),h=this.dataToPoint([c[0],d[0]]),f=this.dataToPoint([c[1],d[1]]),p=c[1]-c[0],g=d[1]-d[0];if(p&&g){var v=(f[0]-h[0])/p,_=(f[1]-h[1])/g,x=this._transform=[v,0,0,_,h[0]-c[0]*v,h[1]-d[0]*_];this._invTransform=dh([],x)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(n){var o=this.getAxis("x"),c=this.getAxis("y");return o.contain(o.toLocalCoord(n[0]))&&c.contain(c.toLocalCoord(n[1]))},i.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},i.prototype.containZone=function(n,o){var c=this.dataToPoint(n),d=this.dataToPoint(o),h=this.getArea(),f=new ce(c[0],c[1],d[0]-c[0],d[1]-c[1]);return h.intersect(f)},i.prototype.dataToPoint=function(n,o,c){c=c||[];var d=n[0],h=n[1];if(this._transform&&null!=d&&isFinite(d)&&null!=h&&isFinite(h))return ca(c,n,this._transform);var f=this.getAxis("x"),p=this.getAxis("y");return c[0]=f.toGlobalCoord(f.dataToCoord(d,o)),c[1]=p.toGlobalCoord(p.dataToCoord(h,o)),c},i.prototype.clampData=function(n,o){var c=this.getAxis("x").scale,d=this.getAxis("y").scale,h=c.getExtent(),f=d.getExtent(),p=c.parse(n[0]),g=d.parse(n[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(h[0],h[1]),p),Math.max(h[0],h[1])),o[1]=Math.min(Math.max(Math.min(f[0],f[1]),g),Math.max(f[0],f[1])),o},i.prototype.pointToData=function(n,o){var c=[];if(this._invTransform)return ca(c,n,this._invTransform);var d=this.getAxis("x"),h=this.getAxis("y");return c[0]=d.coordToData(d.toLocalCoord(n[0]),o),c[1]=h.coordToData(h.toLocalCoord(n[1]),o),c},i.prototype.getOtherAxis=function(n){return this.getAxis("x"===n.dim?"y":"x")},i.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),c=Math.min(n[0],n[1]),d=Math.min(o[0],o[1]),h=Math.max(n[0],n[1])-c,f=Math.max(o[0],o[1])-d;return new ce(c,d,h,f)},i}(e6);const pi=co;var qo=function(a){function i(n,o,c,d,h){var f=a.call(this,n,o,c)||this;return f.index=0,f.type=d||"value",f.position=h||"bottom",f}return de(i,a),i.prototype.isHorizontal=function(){var n=this.position;return"top"===n||"bottom"===n},i.prototype.getGlobalExtent=function(n){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),n&&o[0]>o[1]&&o.reverse(),o},i.prototype.pointToData=function(n,o){return this.coordToData(this.toLocalCoord(n["x"===this.dim?0:1]),o)},i.prototype.setCategorySortInfo=function(n){if("category"!==this.type)return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},i}(il);const hr=qo;function QA(a,i,n){n=n||{};var o=a.coordinateSystem,c=i.axis,d={},h=c.getAxesOnZeroOf()[0],f=c.position,p=h?"onZero":f,g=c.dim,v=o.getRect(),_=[v.x,v.x+v.width,v.y,v.y+v.height],y={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,x="x"===g?[_[2]-w,_[3]+w]:[_[0]-w,_[1]+w];if(h){var S=h.toGlobalCoord(h.dataToCoord(0));x[y.onZero]=Math.max(Math.min(S,x[1]),x[0])}d.position=["y"===g?x[y[p]]:_[0],"x"===g?x[y[p]]:_[3]],d.rotation=Math.PI/2*("x"===g?0:1),d.labelDirection=d.tickDirection=d.nameDirection={top:-1,bottom:1,left:-1,right:1}[f],d.labelOffset=h?x[y[f]]-x[y.onZero]:0,i.get(["axisTick","inside"])&&(d.tickDirection=-d.tickDirection),it(n.labelInside,i.get(["axisLabel","inside"]))&&(d.labelDirection=-d.labelDirection);var T=i.get(["axisLabel","rotate"]);return d.labelRotate="top"===p?-T:T,d.z2=1,d}function KN(a){return"cartesian2d"===a.get("coordinateSystem")}function QN(a){var i={xAxisModel:null,yAxisModel:null};return G(i,function(n,o){var c=o.replace(/Model$/,""),d=a.getReferringComponents(c,yi).models[0];i[o]=d}),i}var JA=Math.log;function JN(a,i,n){var o=cc.prototype,c=o.getTicks.call(n),d=o.getTicks.call(n,!0),h=c.length-1,f=o.getInterval.call(n),p=zF(a,i),g=p.extent,v=p.fixMin,_=p.fixMax;if("log"===a.type){var y=JA(a.base);g=[JA(g[0])/y,JA(g[1])/y]}a.setExtent(g[0],g[1]),a.calcNiceExtent({splitNumber:h,fixMin:v,fixMax:_});var w=o.getExtent.call(a);v&&(g[0]=w[0]),_&&(g[1]=w[1]);var x=o.getInterval.call(a),S=g[0],D=g[1];if(v&&_)x=(D-S)/h;else if(v)for(D=g[0]+x*h;Dg[0]&&isFinite(S)&&isFinite(g[0]);)x=Sx(x),S=g[1]-x*h;else{a.getTicks().length-1>h&&(x=Sx(x));var A=x*h;(S=ti((D=Math.ceil(g[1]/x)*x)-A))<0&&g[0]>=0?(S=0,D=ti(A)):D>0&&g[1]<=0&&(D=0,S=-ti(A))}var E=(c[0].value-d[0].value)/f,k=(c[h].value-d[h].value)/f;o.setExtent.call(a,S+x*E,D+x*k),o.setInterval.call(a,x),(E||k)&&o.setNiceExtent.call(a,S+x,D-x)}var t6=function(){function a(i,n,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mg,this._initCartesian(i,n,o),this.model=i}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(i,n){var o=this._axesMap;function c(h){var f,p=Wt(h),g=p.length;if(g){for(var v=[],_=g-1;_>=0;_--){var w=h[+p[_]],x=w.model,S=w.scale;Re(S)&&x.get("alignTicks")&&null==x.get("interval")?v.push(w):(xf(S,x),Re(S)&&(f=w))}v.length&&(f||xf((f=v.pop()).scale,f.model),G(v,function(D){JN(D.scale,D.model,f.scale)}))}}this._updateScale(i,this.model),c(o.x),c(o.y);var d={};G(o.x,function(h){n6(o,"y",h,d)}),G(o.y,function(h){n6(o,"x",h,d)}),this.resize(this.model,n)},a.prototype.resize=function(i,n,o){var c=i.getBoxLayoutParams(),d=!o&&i.get("containLabel"),h=Dr(c,{width:n.getWidth(),height:n.getHeight()});this._rect=h;var f=this._axesList;function p(){G(f,function(g){var v=g.isHorizontal(),_=v?[0,h.width]:[0,h.height],y=g.inverse?1:0;g.setExtent(_[y],_[1-y]),function oC(a,i){var n=a.getExtent(),o=n[0]+n[1];a.toGlobalCoord="x"===a.dim?function(c){return c+i}:function(c){return o-c+i},a.toLocalCoord="x"===a.dim?function(c){return c-i}:function(c){return o-c+i}}(g,v?h.x:h.y)})}p(),d&&(G(f,function(g){if(!g.model.get(["axisLabel","inside"])){var v=function HF(a){var n=a.scale;if(a.model.get(["axisLabel","show"])&&!n.isBlank()){var o,c,d=n.getExtent();c=n instanceof ey?n.count():(o=n.getTicks()).length;var p,h=a.getLabelModel(),f=id(a),g=1;c>40&&(g=Math.ceil(c/40));for(var v=0;v0&&o>0||n<0&&o<0)}(a)}const sC=t6;var qr=Math.PI,od=function(){function a(i,n){this.group=new rt,this.opt=n,this.axisModel=i,Ze(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new rt({x:n.position[0],y:n.position[1],rotation:n.rotation});o.updateTransform(),this._transformGroup=o}return a.prototype.hasBuilder=function(i){return!!r6[i]},a.prototype.add=function(i){r6[i](this.opt,this.axisModel,this.group,this._transformGroup)},a.prototype.getGroup=function(){return this.group},a.innerTextLayout=function(i,n,o){var d,h,c=XR(n-i);return R0(c)?(h=o>0?"top":"bottom",d="center"):R0(c-qr)?(h=o>0?"bottom":"top",d="center"):(h="middle",d=c>0&&c0?"right":"left":o>0?"left":"right"),{rotation:c,textAlign:d,textVerticalAlign:h}},a.makeAxisEventDataBase=function(i){var n={componentType:i.mainType,componentIndex:i.componentIndex};return n[i.mainType+"Index"]=i.componentIndex,n},a.isLabelSilent=function(i){var n=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||n&&n.show)},a}(),r6={axisLine:function(a,i,n,o){var c=i.get(["axisLine","show"]);if("auto"===c&&a.handleAutoShown&&(c=a.handleAutoShown("axisLine")),c){var d=i.axis.getExtent(),h=o.transform,f=[d[0],0],p=[d[1],0],g=f[0]>p[0];h&&(ca(f,f,h),ca(p,p,h));var v=_e({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),_=new Gr({shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:v,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1});R_(_.shape,_.style.lineWidth),_.anid="line",n.add(_);var y=i.get(["axisLine","symbol"]);if(null!=y){var w=i.get(["axisLine","symbolSize"]);Ae(y)&&(y=[y,y]),(Ae(w)||on(w))&&(w=[w,w]);var x=pf(i.get(["axisLine","symbolOffset"])||0,w),S=w[0],D=w[1];G([{rotate:a.rotation+Math.PI/2,offset:x[0],r:0},{rotate:a.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-p[0])*(f[0]-p[0])+(f[1]-p[1])*(f[1]-p[1]))}],function(T,A){if("none"!==y[A]&&null!=y[A]){var E=ji(y[A],-S/2,-D/2,S,D,v.stroke,!0),k=T.r+T.offset,L=g?p:f;E.attr({rotation:T.rotate,x:L[0]+k*Math.cos(a.rotation),y:L[1]-k*Math.sin(a.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(a,i,n,o){var c=function a6(a,i,n,o){var c=n.axis,d=n.getModel("axisTick"),h=d.get("show");if("auto"===h&&o.handleAutoShown&&(h=o.handleAutoShown("axisTick")),h&&!c.scale.isBlank()){for(var f=d.getModel("lineStyle"),p=o.tickDirection*d.get("length"),v=nV(c.getTicksCoords(),i.transform,p,Ze(f.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),_=0;_g[1]?-1:1,_=["start"===d?g[0]-v*p:"end"===d?g[1]+v*p:(g[0]+g[1])/2,eE(d)?a.labelOffset+h*p:0],w=i.get("nameRotate");null!=w&&(w=w*qr/180),eE(d)?y=od.innerTextLayout(a.rotation,w??a.rotation,h):(y=function VK(a,i,n,o){var d,h,c=XR(n-a),f=o[0]>o[1],p="start"===i&&!f||"start"!==i&&f;return R0(c-qr/2)?(h=p?"bottom":"top",d="center"):R0(c-1.5*qr)?(h=p?"top":"bottom",d="center"):(h="middle",d=c<1.5*qr&&c>qr/2?p?"left":"right":p?"right":"left"),{rotation:c,textAlign:d,textVerticalAlign:h}}(a.rotation,d,w||0,g),null!=(x=a.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(y.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),D=i.get("nameTruncate",!0)||{},T=D.ellipsis,A=it(a.nameTruncateMaxWidth,D.maxWidth,x),E=new Zt({x:_[0],y:_[1],rotation:y.rotation,silent:od.isLabelSilent(i),style:Zn(f,{text:c,font:S,overflow:"truncate",width:A,ellipsis:T,fill:f.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:f.get("align")||y.textAlign,verticalAlign:f.get("verticalAlign")||y.textVerticalAlign}),z2:1});if(nf({el:E,componentModel:i,itemName:c}),E.__fullText=c,E.anid="name",i.get("triggerEvent")){var k=od.makeAxisEventDataBase(i);k.targetType="axisName",k.name=c,st(E).eventData=k}o.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function ws(a){a&&(a.ignore=!0)}function tV(a,i){var n=a&&a.getBoundingRect().clone(),o=i&&i.getBoundingRect().clone();if(n&&o){var c=Tp([]);return Rd(c,c,-a.rotation),n.applyTransform(Ll([],c,a.getLocalTransform())),o.applyTransform(Ll([],c,i.getLocalTransform())),n.intersect(o)}}function eE(a){return"middle"===a||"center"===a}function nV(a,i,n,o,c){for(var d=[],h=[],f=[],p=0;p=0||a===i}function Ln(a){var i=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return i&&i.axesInfo[Tu(a)]}function nE(a){return!!a.get(["handle","show"])}function Tu(a){return a.type+"||"+a.id}var fc={},lC=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){this.axisPointerClass&&function sd(a){var i=Ln(a);if(i){var n=i.axisPointerModel,o=i.axis.scale,c=n.option,d=n.get("status"),h=n.get("value");null!=h&&(h=o.parse(h));var f=nE(n);null==d&&(c.status=f?"show":"hide");var p=o.getExtent().slice();p[0]>p[1]&&p.reverse(),(null==h||h>p[1])&&(h=p[1]),h0&&!x.min?x.min=0:null!=x.min&&x.min<0&&!x.max&&(x.max=0);var S=p;null!=x.color&&(S=Ze({color:x.color},p));var D=mt(nt(x),{boundaryGap:n,splitNumber:o,scale:c,axisLine:d,axisTick:h,axisLabel:f,name:x.text,showName:g,nameLocation:"end",nameGap:_,nameTextStyle:S,triggerEvent:y},!1);Ae(v)?D.name=v.replace("{value}",D.name??""):Xe(v)&&(D.name=v(D.name,D));var A=new Un(D,null,this.ecModel);return Di(A,ry.prototype),A.mainType="radar",A.componentIndex=this.componentIndex,A},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:"#bbb"}},Mu.axisLine),axisLabel:Au(Mu.axisLabel,!1),axisTick:Au(Mu.axisTick,!1),splitLine:Au(Mu.splitLine,!0),splitArea:Au(Mu.splitArea,!0),indicator:[]},i}(en);const y6=_6;var aE=["axisLine","axisTickLabel","axisName"],cV=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},i.prototype._buildAxes=function(n){var o=n.coordinateSystem;G(Se(o.getIndicatorAxes(),function(h){var f=h.model.get("showName")?h.name:"";return new sl(h.model,{axisName:f,position:[o.cx,o.cy],rotation:h.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(h){G(aE,h.add,h),this.group.add(h.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(n){var o=n.coordinateSystem,c=o.getIndicatorAxes();if(c.length){var d=n.get("shape"),h=n.getModel("splitLine"),f=n.getModel("splitArea"),p=h.getModel("lineStyle"),g=f.getModel("areaStyle"),v=h.get("show"),_=f.get("show"),y=p.get("color"),w=g.get("color"),x=ye(y)?y:[y],S=ye(w)?w:[w],D=[],T=[];if("circle"===d)for(var E=c[0].getTicksCoords(),k=o.cx,L=o.cy,O=0;O3?1.4:h>1?1.2:1.1;uV(this,"zoom","zoomOnMouseWheel",n,{scale:d>0?g:1/g,originX:f,originY:p,isAvailableBehavior:null})}if(c){var _=Math.abs(d);uV(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:(d>0?1:-1)*(_>3?.4:_>1?.15:.05),originX:f,originY:p,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(n){dC(this._zr,"globalPan")||uV(this,"zoom",null,n,{scale:n.pinchScale>1?1.1:1/1.1,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})},i}(Za);function uV(a,i,n,o,c){a.pointerChecker&&a.pointerChecker(o,c.originX,c.originY)&&(Ps(o.event),cE(a,i,n,o,c))}function cE(a,i,n,o,c){c.isAvailableBehavior=he(gg,null,n,o),a.trigger(i,c)}function gg(a,i,n){var o=n[a];return!a||o&&(!Ae(o)||i.event[o+"Key"])}const vg=T6;function To(a,i,n){var o=a.target;o.x+=i,o.y+=n,o.dirty()}function dE(a,i,n,o){var c=a.target,d=a.zoomLimit,h=a.zoom=a.zoom||1;if(h*=i,d){var f=d.min||0;h=Math.max(Math.min(d.max||1/0,h),f)}var g=h/a.zoom;a.zoom=h,c.x-=(n-c.x)*(g-1),c.y-=(o-c.y)*(g-1),c.scaleX*=g,c.scaleY*=g,c.dirty()}var hV={axisPointer:1,tooltip:1,brush:1};function hC(a,i,n){var o=i.getComponentByElement(a.topTarget),c=o&&o.coordinateSystem;return o&&o!==n&&!hV.hasOwnProperty(o.mainType)&&c&&c.model!==n}function mi(a){Ae(a)&&(a=(new DOMParser).parseFromString(a,"text/xml"));var n=a;for(9===n.nodeType&&(n=n.firstChild);"svg"!==n.nodeName.toLowerCase()||1!==n.nodeType;)n=n.nextSibling;return n}var fC,uE={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},xn=Wt(uE),pC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},hE=Wt(pC),M6=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(i,n){n=n||{};var o=mi(i);this._defsUsePending=[];var c=new rt;this._root=c;var v,_,d=[],h=o.getAttribute("viewBox")||"",f=parseFloat(o.getAttribute("width")||n.width),p=parseFloat(o.getAttribute("height")||n.height);isNaN(f)&&(f=null),isNaN(p)&&(p=null),Cs(o,c,null,!0,!1);for(var g=o.firstChild;g;)this._parseNode(g,c,d,null,!1,!1),g=g.nextSibling;if(function pE(a,i){for(var n=0;n=4&&(v={x:parseFloat(y[0]||0),y:parseFloat(y[1]||0),width:parseFloat(y[2]),height:parseFloat(y[3])})}if(v&&null!=f&&null!=p&&(_=mV(v,{x:0,y:0,width:f,height:p}),!n.ignoreViewBox)){var w=c;(c=new rt).add(w),w.scaleX=w.scaleY=_.scale,w.x=_.x,w.y=_.y}return!n.ignoreRootClip&&null!=f&&null!=p&&c.setClipPath(new _t({shape:{x:0,y:0,width:f,height:p}})),{root:c,width:f,height:p,viewBoxRect:v,viewBoxTransform:_,named:d}},a.prototype._parseNode=function(i,n,o,c,d,h){var p,f=i.nodeName.toLowerCase(),g=c;if("defs"===f&&(d=!0),"text"===f&&(h=!0),"defs"===f||"switch"===f)p=n;else{if(!d){var v=fC[f];if(v&&Ue(fC,f)){p=v.call(this,i,n);var _=i.getAttribute("name");if(_){var y={name:_,namedFrom:null,svgNodeTagLower:f,el:p};o.push(y),"g"===f&&(g=y)}else c&&o.push({name:c.name,namedFrom:c,svgNodeTagLower:f,el:p});n.add(p)}}var w=mC[f];if(w&&Ue(mC,f)){var x=w.call(this,i),S=i.getAttribute("id");S&&(this._defs[S]=x)}}if(p&&p.isGroup)for(var D=i.firstChild;D;)1===D.nodeType?this._parseNode(D,p,o,g,d,h):3===D.nodeType&&h&&this._parseText(D,p),D=D.nextSibling},a.prototype._parseText=function(i,n){var o=new e_({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),function fV(a,i){var n=i.__selfStyle;if(n){var o=n.textBaseline,c=o;o&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?c="top":"after-edge"===o||"text-after-edge"===o?c="bottom":("central"===o||"mathematical"===o)&&(c="middle"):c="alphabetic",a.style.textBaseline=c}var d=i.__inheritedStyle;if(d){var h=d.textAlign,f=h;h&&("middle"===h&&(f="center"),a.style.textAlign=f)}}(o,n);var c=o.style,d=c.fontSize;d&&d<9&&(c.fontSize=9,o.scaleX*=d/9,o.scaleY*=d/9);var h=(c.fontSize||c.fontFamily)&&[c.fontStyle,c.fontWeight,(c.fontSize||12)+"px",c.fontFamily||"sans-serif"].join(" ");c.font=h;var f=o.getBoundingRect();return this._textX+=f.width,n.add(o),o},a.internalField=void(fC={g:function(i,n){var o=new rt;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o},rect:function(i,n){var o=new _t;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({x:parseFloat(i.getAttribute("x")||"0"),y:parseFloat(i.getAttribute("y")||"0"),width:parseFloat(i.getAttribute("width")||"0"),height:parseFloat(i.getAttribute("height")||"0")}),o.silent=!0,o},circle:function(i,n){var o=new ps;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(i.getAttribute("cx")||"0"),cy:parseFloat(i.getAttribute("cy")||"0"),r:parseFloat(i.getAttribute("r")||"0")}),o.silent=!0,o},line:function(i,n){var o=new Gr;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({x1:parseFloat(i.getAttribute("x1")||"0"),y1:parseFloat(i.getAttribute("y1")||"0"),x2:parseFloat(i.getAttribute("x2")||"0"),y2:parseFloat(i.getAttribute("y2")||"0")}),o.silent=!0,o},ellipse:function(i,n){var o=new tM;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(i.getAttribute("cx")||"0"),cy:parseFloat(i.getAttribute("cy")||"0"),rx:parseFloat(i.getAttribute("rx")||"0"),ry:parseFloat(i.getAttribute("ry")||"0")}),o.silent=!0,o},polygon:function(i,n){var c,o=i.getAttribute("points");o&&(c=A6(o));var d=new no({shape:{points:c||[]},silent:!0});return Zo(n,d),Cs(i,d,this._defsUsePending,!1,!1),d},polyline:function(i,n){var c,o=i.getAttribute("points");o&&(c=A6(o));var d=new io({shape:{points:c||[]},silent:!0});return Zo(n,d),Cs(i,d,this._defsUsePending,!1,!1),d},image:function(i,n){var o=new Jr;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setStyle({image:i.getAttribute("xlink:href")||i.getAttribute("href"),x:+i.getAttribute("x"),y:+i.getAttribute("y"),width:+i.getAttribute("width"),height:+i.getAttribute("height")}),o.silent=!0,o},text:function(i,n){var o=i.getAttribute("x")||"0",c=i.getAttribute("y")||"0",d=i.getAttribute("dx")||"0",h=i.getAttribute("dy")||"0";this._textX=parseFloat(o)+parseFloat(d),this._textY=parseFloat(c)+parseFloat(h);var f=new rt;return Zo(n,f),Cs(i,f,this._defsUsePending,!1,!0),f},tspan:function(i,n){var o=i.getAttribute("x"),c=i.getAttribute("y");null!=o&&(this._textX=parseFloat(o)),null!=c&&(this._textY=parseFloat(c));var d=i.getAttribute("dx")||"0",h=i.getAttribute("dy")||"0",f=new rt;return Zo(n,f),Cs(i,f,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),f},path:function(i,n){var c=aL(i.getAttribute("d")||"");return Zo(n,c),Cs(i,c,this._defsUsePending,!1,!1),c.silent=!0,c}}),a}(),mC={lineargradient:function(a){var i=parseInt(a.getAttribute("x1")||"0",10),n=parseInt(a.getAttribute("y1")||"0",10),o=parseInt(a.getAttribute("x2")||"10",10),c=parseInt(a.getAttribute("y2")||"0",10),d=new Mm(i,n,o,c);return _g(a,d),gC(a,d),d},radialgradient:function(a){var i=parseInt(a.getAttribute("cx")||"0",10),n=parseInt(a.getAttribute("cy")||"0",10),o=parseInt(a.getAttribute("r")||"0",10),c=new oM(i,n,o);return _g(a,c),gC(a,c),c}};function _g(a,i){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(i.global=!0)}function gC(a,i){for(var n=a.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var c,o=n.getAttribute("offset");c=o&&o.indexOf("%")>0?parseInt(o,10)/100:o?parseFloat(o):0;var d={};gE(n,d,d);var h=d.stopColor||n.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:c,color:h})}n=n.nextSibling}}function Zo(a,i){a&&a.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),Ze(i.__inheritedStyle,a.__inheritedStyle))}function A6(a){for(var i=Mo(a),n=[],o=0;o0;d-=2){var f=o[d-1],p=Mo(o[d]);switch(c=c||[1,0,0,1,0,0],f){case"translate":ar(c,c,[parseFloat(p[0]),parseFloat(p[1]||"0")]);break;case"scale":Sv(c,c,[parseFloat(p[0]),parseFloat(p[1]||p[0])]);break;case"rotate":Rd(c,c,-parseFloat(p[0])*mE);break;case"skewX":Ll(c,[1,0,Math.tan(parseFloat(p[0])*mE),1,0,0],c);break;case"skewY":Ll(c,[1,Math.tan(parseFloat(p[0])*mE),0,1,0,0],c);break;case"matrix":c[0]=parseFloat(p[0]),c[1]=parseFloat(p[1]),c[2]=parseFloat(p[2]),c[3]=parseFloat(p[3]),c[4]=parseFloat(p[4]),c[5]=parseFloat(p[5])}}i.setLocalTransform(c)}}(a,i),gE(a,h,f),o||function P6(a,i,n){for(var o=0;o0,D={api:o,geo:p,mapOrGeoModel:i,data:f,isVisualEncodedByVisualMap:S,isGeo:h,transformInfoRaw:y};"geoJSON"===p.resourceType?this._buildGeoJSON(D):"geoSVG"===p.resourceType&&this._buildSVG(D),this._updateController(i,n,o),this._updateMapSelectHandler(i,g,o,c)},a.prototype._buildGeoJSON=function(i){var n=this._regionsGroupByName=Me(),o=Me(),c=this._regionsGroup,d=i.transformInfoRaw,h=i.mapOrGeoModel,f=i.data,p=i.geo.projection,g=p&&p.stream;function v(w,x){return x&&(w=x(w)),w&&[w[0]*d.scaleX+d.x,w[1]*d.scaleY+d.y]}function _(w){for(var x=[],S=!g&&p&&p.project,D=0;D=0)&&(y=c);var w=h?{normal:{align:"center",verticalAlign:"middle"}}:null;Oa(i,Sr(o),{labelFetcher:y,labelDataIndex:_,defaultText:n},w);var x=i.getTextContent();if(x&&(bE(x).ignore=x.ignore,i.textConfig&&h)){var S=i.getBoundingRect().clone();i.textConfig.layoutRect=S,i.textConfig.position=[(h[0]-S.x)/S.width*100+"%",(h[1]-S.y)/S.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function bV(a,i,n,o,c,d){a.data?a.data.setItemGraphicEl(d,i):st(i).eventData={componentType:"geo",componentIndex:c.componentIndex,geoIndex:c.componentIndex,name:n,region:o&&o.option||{}}}function wV(a,i,n,o,c){a.data||nf({el:i,componentModel:c,itemName:n,itemTooltipOption:o.get("tooltip")})}function xV(a,i,n,o,c){i.highDownSilentOnTouch=!!c.get("selectedMode");var d=o.getModel("emphasis"),h=d.get("focus");return Oi(i,h,d.get("blurScope"),d.get("disabled")),a.isGeo&&function s8(a,i,n){var o=st(a);o.componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=n}(i,c,n),h}function wE(a,i,n){var c,o=[];function d(){c=[]}function h(){c.length&&(o.push(c),c=[])}var f=i({polygonStart:d,polygonEnd:h,lineStart:d,lineEnd:h,point:function(p,g){isFinite(p)&&isFinite(g)&&c.push([p,g])},sphere:function(){}});return!n&&f.polygonStart(),G(a,function(p){f.lineStart();for(var g=0;g-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),c},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},i}(Xn);const Z6=q6;function yC(a){var i={};a.eachSeriesByType("map",function(n){var o=n.getHostGeoModel(),c=o?"o"+o.id:"i"+n.getMapType();(i[c]=i[c]||[]).push(n)}),G(i,function(n,o){for(var c=function X6(a,i){var n={};return G(a,function(o){o.each(o.mapDimension("value"),function(c,d){var h="ec-"+o.getName(d);n[h]=n[h]||[],isNaN(c)||n[h].push(c)})}),a[0].map(a[0].mapDimension("value"),function(o,c){for(var d="ec-"+a[0].getName(c),h=0,f=1/0,p=-1/0,g=n[d].length,v=0;v1?(k.width=E,k.height=E/D):(k.height=E,k.width=E*D),k.y=A[1]-k.height/2,k.x=A[0]-k.width/2;else{var L=a.getBoxLayoutParams();L.aspect=D,k=Dr(L,{width:x,height:S})}this.setViewRect(k.x,k.y,k.width,k.height),this.setCenter(a.get("center"),i),this.setZoom(a.get("zoom"))}var i7=function(){function a(){this.dimensions=SV}return a.prototype.create=function(i,n){var o=[];function c(h){return{nameProperty:h.get("nameProperty"),aspectScale:h.get("aspectScale"),projection:h.get("projection")}}i.eachComponent("geo",function(h,f){var p=h.get("map"),g=new e7(p+f,p,_e({nameMap:h.get("nameMap")},c(h)));g.zoomLimit=h.get("scaleLimit"),o.push(g),h.coordinateSystem=g,g.model=h,g.resize=t7,g.resize(h,n)}),i.eachSeries(function(h){if("geo"===h.get("coordinateSystem")){var p=h.get("geoIndex")||0;h.coordinateSystem=o[p]}});var d={};return i.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var f=h.getMapType();d[f]=d[f]||[],d[f].push(h)}}),G(d,function(h,f){var p=Se(h,function(v){return v.get("nameMap")}),g=new e7(f,f,_e({nameMap:Xb(p)},c(h[0])));g.zoomLimit=it.apply(null,Se(h,function(v){return v.get("scaleLimit")})),o.push(g),g.resize=t7,g.resize(h[0],n),G(h,function(v){v.coordinateSystem=g,function n7(a,i){G(i.get("geoCoord"),function(n,o){a.addGeoCoord(o,n)})}(g,v)})}),o},a.prototype.getFilledRegions=function(i,n,o,c){for(var d=(i||[]).slice(),h=Me(),f=0;f=0;){var d=i[n];d.hierNode.prelim+=o,d.hierNode.modifier+=o,o+=d.hierNode.shift+(c+=d.hierNode.change)}}(a);var d=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;c?(a.hierNode.prelim=c.hierNode.prelim+i(a,c),a.hierNode.modifier=a.hierNode.prelim-d):a.hierNode.prelim=d}else c&&(a.hierNode.prelim=c.hierNode.prelim+i(a,c));a.parentNode.hierNode.defaultAncestor=function eQ(a,i,n,o){if(i){for(var c=a,d=a,h=d.parentNode.children[0],f=i,p=c.hierNode.modifier,g=d.hierNode.modifier,v=h.hierNode.modifier,_=f.hierNode.modifier;f=AV(f),d=xC(d),f&&d;){c=AV(c),h=xC(h),c.hierNode.ancestor=a;var y=f.hierNode.prelim+_-d.hierNode.prelim-g+o(f,d);y>0&&(u7(d7(f,a,n),a,y),g+=y,p+=y),_+=f.hierNode.modifier,g+=d.hierNode.modifier,p+=c.hierNode.modifier,v+=h.hierNode.modifier}f&&!AV(c)&&(c.hierNode.thread=f,c.hierNode.modifier+=_-p),d&&!xC(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=g-v,n=a)}return n}(a,c,a.parentNode.hierNode.defaultAncestor||o[0],i)}function QK(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function l7(a){return arguments.length?a:SE}function wC(a,i){return a-=Math.PI/2,{x:i*Math.cos(a),y:i*Math.sin(a)}}function AV(a){var i=a.children;return i.length&&a.isExpand?i[i.length-1]:a.hierNode.thread}function xC(a){var i=a.children;return i.length&&a.isExpand?i[0]:a.hierNode.thread}function d7(a,i,n){return a.hierNode.ancestor.parentNode===i.parentNode?a.hierNode.ancestor:n}function u7(a,i,n){var o=n/(i.hierNode.i-a.hierNode.i);i.hierNode.change-=o,i.hierNode.shift+=n,i.hierNode.modifier+=n,i.hierNode.prelim+=n,a.hierNode.change+=o}function SE(a,i){return a.parentNode===i.parentNode?1:2}var Ny=function a(){this.parentPoint=[],this.childPoints=[]},tQ=function(a){function i(n){return a.call(this,n)||this}return de(i,a),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Ny},i.prototype.buildPath=function(n,o){var c=o.childPoints,d=c.length,h=o.parentPoint,f=c[0],p=c[d-1];if(1===d)return n.moveTo(h[0],h[1]),void n.lineTo(f[0],f[1]);var g=o.orient,v="TB"===g||"BT"===g?0:1,_=1-v,y=Ie(o.forkPosition,1),w=[];w[v]=h[v],w[_]=h[_]+(p[_]-h[_])*y,n.moveTo(h[0],h[1]),n.lineTo(w[0],w[1]),n.moveTo(f[0],f[1]),w[v]=f[v],n.lineTo(w[0],w[1]),w[v]=p[v],n.lineTo(w[0],w[1]),n.lineTo(p[0],p[1]);for(var x=1;xA.x)||(k-=Math.PI);var B=L?"left":"right",U=f.getModel("label"),j=U.get("rotate"),W=j*(Math.PI/180),$=D.getTextContent();$&&(D.setTextConfig({position:U.get("position")||B,rotation:null==j?-k:W,origin:"center"}),$.setStyle("verticalAlign","middle"))}var X=f.get(["emphasis","focus"]),K="relative"===X?wn(h.getAncestorsIndices(),h.getDescendantIndices()):"ancestor"===X?h.getAncestorsIndices():"descendant"===X?h.getDescendantIndices():null;K&&(st(n).focus=K),function iQ(a,i,n,o,c,d,h,f){var p=i.getModel(),g=a.get("edgeShape"),v=a.get("layout"),_=a.getOrient(),y=a.get(["lineStyle","curveness"]),w=a.get("edgeForkPosition"),x=p.getModel("lineStyle").getLineStyle(),S=o.__edge;if("curve"===g)i.parentNode&&i.parentNode!==n&&(S||(S=o.__edge=new ef({shape:IV(v,_,y,c,c)})),zt(S,{shape:IV(v,_,y,d,h)},a));else if("polyline"===g&&"orthogonal"===v&&i!==n&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var D=i.children,T=[],A=0;An&&(n=c.height)}this.height=n+1},a.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var n=0,o=this.children,c=o.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,n)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(i,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,n)},a.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,n=0;n=0){var o=n.getData().tree.root,c=a.targetNode;if(Ae(c)&&(c=o.getNodeById(c)),c&&o.contains(c))return{node:c};var d=a.targetNodeId;if(null!=d&&(c=o.getNodeById(d)))return{node:c}}}function y7(a){for(var i=[];a;)(a=a.parentNode)&&i.push(a);return i.reverse()}function RV(a,i){return Ct(y7(a),i)>=0}function Vf(a,i){for(var n=[];a;){var o=a.dataIndex;n.push({name:a.name,dataIndex:o,value:i.getRawValue(o)}),a=a.parentNode}return n.reverse(),n}var hQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return de(i,a),i.prototype.getInitialData=function(n){var o={name:n.name,children:n.data},d=new Un(n.leaves||{},this,this.ecModel),h=PV.createTree(o,this,function f(_){_.wrapMethod("getItemModel",function(y,w){var x=h.getNodeByDataIndex(w);return x&&x.children.length&&x.isExpand||(y.parentModel=d),y})}),p=0;h.eachNode("preorder",function(_){_.depth>p&&(p=_.depth)});var v=n.expandAndCollapse&&n.initialTreeDepth>=0?n.initialTreeDepth:p;return h.root.eachNode("preorder",function(_){var y=_.hostTree.data.getRawDataItem(_.dataIndex);_.isExpand=y&&null!=y.collapsed?!y.collapsed:_.depth<=v}),h.data},i.prototype.getOrient=function(){var n=this.get("orient");return"horizontal"===n?n="LR":"vertical"===n&&(n="TB"),n},i.prototype.setZoom=function(n){this.option.zoom=n},i.prototype.setCenter=function(n){this.option.center=n},i.prototype.formatTooltip=function(n,o,c){for(var d=this.getData().tree,h=d.root.children[0],f=d.getNodeByDataIndex(n),p=f.getValue(),g=f.name;f&&f!==h;)g=f.parentNode.name+"."+g,f=f.parentNode;return Hr("nameValue",{name:g,value:p,noValue:isNaN(p)||null==p})},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=Vf(c,this),o.collapsed=!c.isExpand,o},i.type="series.tree",i.layoutMode="box",i.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},i}(Xn);const b7=hQ;function ld(a,i){for(var o,n=[a];o=n.pop();)if(i(o),o.isExpand){var c=o.children;if(c.length)for(var d=c.length-1;d>=0;d--)n.push(c[d])}}function w7(a,i){a.eachSeriesByType("tree",function(n){!function x7(a,i){var n=function c7(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(a,i);a.layoutInfo=n;var o=a.get("layout"),c=0,d=0,h=null;"radial"===o?(c=2*Math.PI,d=Math.min(n.height,n.width)/2,h=l7(function(E,k){return(E.parentNode===k.parentNode?1:2)/E.depth})):(c=n.width,d=n.height,h=l7());var f=a.getData().tree.root,p=f.children[0];if(p){(function XK(a){var i=a;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o,c,n=[i];o=n.pop();)if(c=o.children,o.isExpand&&c.length)for(var h=c.length-1;h>=0;h--){var f=c[h];f.hierNode={defaultAncestor:null,ancestor:f,prelim:0,modifier:0,change:0,shift:0,i:h,thread:null},n.push(f)}})(f),function ME(a,i,n){for(var d,o=[a],c=[];d=o.pop();)if(c.push(d),d.isExpand){var h=d.children;if(h.length)for(var f=0;fv.getLayout().x&&(v=E),E.depth>_.depth&&(_=E)});var y=g===v?1:h(g,v)/2,w=y-g.getLayout().x,x=0,S=0,D=0,T=0;if("radial"===o)x=c/(v.getLayout().x+y+w),S=d/(_.depth-1||1),ld(p,function(E){var k=wC(D=(E.getLayout().x+w)*x,T=(E.depth-1)*S);E.setLayout({x:k.x,y:k.y,rawX:D,rawY:T},!0)});else{var A=a.getOrient();"RL"===A||"LR"===A?(S=d/(v.getLayout().x+y+w),x=c/(_.depth-1||1),ld(p,function(E){T=(E.getLayout().x+w)*S,E.setLayout({x:D="LR"===A?(E.depth-1)*x:c-(E.depth-1)*x,y:T},!0)})):("TB"===A||"BT"===A)&&(x=c/(v.getLayout().x+y+w),S=d/(_.depth-1||1),ld(p,function(E){D=(E.getLayout().x+w)*x,E.setLayout({x:D,y:T="TB"===A?(E.depth-1)*S:d-(E.depth-1)*S},!0)}))}}}(n,i)})}function C7(a){a.eachSeriesByType("tree",function(i){var n=i.getData();n.tree.eachNode(function(c){var h=c.getModel().getModel("itemStyle").getItemStyle();_e(n.ensureUniqueItemVisual(c.dataIndex,"style"),h)})})}var EE=["treemapZoomToNode","treemapRender","treemapMove"];function SC(a){var i=a.getData(),o={};i.tree.eachNode(function(c){for(var d=c;d&&d.depth>1;)d=d.parentNode;var h=Aw(a.ecModel,d.name||d.dataIndex+"",o);c.setVisual("decal",h)})}var LV=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.preventUsingHoverLayer=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){var c={name:n.name,children:n.data};DC(c);var d=n.levels||[],h=this.designatedVisualItemStyle={},f=new Un({itemStyle:h},this,o);d=n.levels=function IE(a,i){var n=Mn(i.get("color")),o=Mn(i.get(["aria","decal","decals"]));if(n){var c,d;G(a=a||[],function(f){var p=new Un(f),g=p.get("color"),v=p.get("decal");(p.get(["itemStyle","color"])||g&&"none"!==g)&&(c=!0),(p.get(["itemStyle","decal"])||v&&"none"!==v)&&(d=!0)});var h=a[0]||(a[0]={});return c||(h.color=n.slice()),!d&&o&&(h.decal=o.slice()),a}}(d,o);var p=Se(d||[],function(_){return new Un(_,f,o)},this),g=PV.createTree(c,this,function v(_){_.wrapMethod("getItemModel",function(y,w){var x=g.getNodeByDataIndex(w);return y.parentModel=(x?p[x.depth]:null)||f,y})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(n,o,c){var d=this.getData(),h=this.getRawValue(n);return Hr("nameValue",{name:d.getName(n),value:h})},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=Vf(c,this),o.treePathInfo=o.treeAncestors,o},i.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},_e(this.layoutInfo,n)},i.prototype.mapIdToIndex=function(n){var o=this._idIndexMap;o||(o=this._idIndexMap=Me(),this._idIndexMapCount=0);var c=o.get(n);return null==c&&o.set(n,c=this._idIndexMapCount++),c},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},i.prototype.enableAriaDecal=function(){SC(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(Xn);function DC(a){var i=0;G(a.children,function(o){DC(o);var c=o.value;ye(c)&&(c=c[0]),i+=c});var n=a.value;ye(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=i),n<0&&(n=0),ye(a.value)?a.value[0]=n:a.value=n}const FV=LV;var T7=function(){function a(i){this.group=new rt,i.add(this.group)}return a.prototype.render=function(i,n,o,c){var d=i.getModel("breadcrumb"),h=this.group;if(h.removeAll(),d.get("show")&&o){var f=d.getModel("itemStyle"),p=d.getModel("emphasis"),g=f.getModel("textStyle"),v=p.getModel(["itemStyle","textStyle"]),_={pos:{left:d.get("left"),right:d.get("right"),top:d.get("top"),bottom:d.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:d.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,_,g),this._renderContent(i,_,f,p,g,v,c),g_(h,_.pos,_.box)}},a.prototype._prepare=function(i,n,o){for(var c=i;c;c=c.parentNode){var d=xr(c.getModel().get("name"),""),h=o.getTextRect(d),f=Math.max(h.width+16,n.emptyItemWidth);n.totalWidth+=f+8,n.renderList.push({node:c,text:d,width:f})}},a.prototype._renderContent=function(i,n,o,c,d,h,f){for(var p=0,g=n.emptyItemWidth,v=i.get(["breadcrumb","height"]),_=function tu(a,i,n){var o=i.width,c=i.height,d=Ie(a.left,o),h=Ie(a.top,c),f=Ie(a.right,o),p=Ie(a.bottom,c);return(isNaN(d)||isNaN(parseFloat(a.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(a.right)))&&(f=o),(isNaN(h)||isNaN(parseFloat(a.top)))&&(h=0),(isNaN(p)||isNaN(parseFloat(a.bottom)))&&(p=c),n=jh(n||0),{width:Math.max(f-d-n[1]-n[3],0),height:Math.max(p-h-n[0]-n[2],0)}}(n.pos,n.box),y=n.totalWidth,w=n.renderList,x=c.getModel("itemStyle").getItemStyle(),S=w.length-1;S>=0;S--){var D=w[S],T=D.node,A=D.width,E=D.text;y>_.width&&(y-=A-g,A=g,E=null);var k=new no({shape:{points:M7(p,0,A,v,S===w.length-1,0===S)},style:Ze(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new Zt({style:Zn(d,{text:E})}),textConfig:{position:"inside"},z2:1e4*Jp,onclick:ct(f,T)});k.disableLabelAnimation=!0,k.getTextContent().ensureState("emphasis").style=Zn(h,{text:E}),k.ensureState("emphasis").style=x,Oi(k,c.get("focus"),c.get("blurScope"),c.get("disabled")),this.group.add(k),A7(k,i,T),p+=A+8}},a.prototype.remove=function(){this.group.removeAll()},a}();function M7(a,i,n,o,c,d){var h=[[c?a:a-5,i],[a+n,i],[a+n,i+o],[c?a:a-5,i+o]];return!d&&h.splice(2,0,[a+n+5,i+o/2]),!c&&h.push([a,i+o/2]),h}function A7(a,i,n){st(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.seriesIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Vf(n,i)}}const VV=T7;var PE=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(i,n,o,c,d){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:n,duration:o,delay:c,easing:d}),!0)},a.prototype.finished=function(i){return this._finishedCallback=i,this},a.prototype.start=function(){for(var i=this,n=this._storage.length,o=function(){--n<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},c=0,d=this._storage.length;c3||Math.abs(n.dy)>3)){var o=this.seriesModel.getData().tree.root;if(!o)return;var c=o.getLayout();if(!c)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:c.x+n.dx,y:c.y+n.dy,width:c.width,height:c.height}})}},i.prototype._onZoom=function(n){var o=n.originX,c=n.originY;if("animating"!==this._state){var d=this.seriesModel.getData().tree.root;if(!d)return;var h=d.getLayout();if(!h)return;var f=new ce(h.x,h.y,h.width,h.height),p=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];ar(g,g,[-(o-=p.x),-(c-=p.y)]),Sv(g,g,[n.scale,n.scale]),ar(g,g,[o,c]),f.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:f.x,y:f.y,width:f.width,height:f.height}})}},i.prototype._initEvents=function(n){var o=this;n.on("click",function(c){if("ready"===o._state){var d=o.seriesModel.get("nodeClick",!0);if(d){var h=o.findTarget(c.offsetX,c.offsetY);if(h){var f=h.node;if(f.getLayout().isLeafRoot)o._rootToNode(h);else if("zoomToNode"===d)o._zoomToNode(h);else if("link"===d){var p=f.hostTree.data.getItemModel(f.dataIndex),g=p.get("link",!0),v=p.get("target",!0)||"blank";g&&Cw(g,v)}}}}},this)},i.prototype._renderBreadcrumb=function(n,o,c){var d=this;c||(c=null!=n.get("leafDepth",!0)?{node:n.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2))||(c={node:n.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new VV(this.group))).render(n,o,c.node,function(h){"animating"!==d._state&&(RV(n.getViewRoot(),h)?d._rootToNode({node:h}):d._zoomToNode({node:h}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},i.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},i.prototype.findTarget=function(n,o){var c;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(h){var f=this._storage.background[h.getRawIndex()];if(f){var p=f.transformCoordToLocal(n,o),g=f.shape;if(!(g.x<=p[0]&&p[0]<=g.x+g.width&&g.y<=p[1]&&p[1]<=g.y+g.height))return!1;c={node:h,offsetX:p[0],offsetY:p[1]}}},this),c},i.type="treemap",i}(Rn);const k7=fQ;var Vy=G,P7=Ee,By=-1,FE=function(){function a(i){var n=i.mappingMethod,o=i.type,c=this.option=nt(i);this.type=o,this.mappingMethod=n,this._normalizeData=L7[n];var d=a.visualHandlers[o];this.applyVisual=d.applyVisual,this.getColorMapper=d.getColorMapper,this._normalizedToVisual=d._normalizedToVisual[n],"piecewise"===n?(EC(c),function R7(a){var i=a.pieceList;a.hasSpecialVisual=!1,G(i,function(n,o){n.originIndex=o,null!=n.visual&&(a.hasSpecialVisual=!0)})}(c)):"category"===n?c.categories?function GV(a){var i=a.categories,n=a.categoryMap={},o=a.visual;if(Vy(i,function(h,f){n[h]=f}),!ye(o)){var c=[];Ee(o)?Vy(o,function(h,f){c[n[f]??By]=h}):c[By]=o,o=cd(a,c)}for(var d=i.length-1;d>=0;d--)null==o[d]&&(delete n[i[d]],i.pop())}(c):EC(c,!0):(be("linear"!==n||c.dataExtent),EC(c))}return a.prototype.mapValueToVisual=function(i){var n=this._normalizeData(i);return this._normalizedToVisual(n,i)},a.prototype.getNormalizer=function(){return he(this._normalizeData,this)},a.listVisualTypes=function(){return Wt(a.visualHandlers)},a.isValidType=function(i){return a.visualHandlers.hasOwnProperty(i)},a.eachVisual=function(i,n,o){Ee(i)?G(i,n,o):n.call(o,i)},a.mapVisual=function(i,n,o){var c,d=ye(i)?[]:Ee(i)?{}:(c=!0,null);return a.eachVisual(i,function(h,f){var p=n.call(o,h,f);c?d=p:d[f]=p}),d},a.retrieveVisuals=function(i){var o,n={};return i&&Vy(a.visualHandlers,function(c,d){i.hasOwnProperty(d)&&(n[d]=i[d],o=!0)}),o?n:null},a.prepareVisualTypes=function(i){if(ye(i))i=i.slice();else{if(!P7(i))return[];var n=[];Vy(i,function(o,c){n.push(c)}),i=n}return i.sort(function(o,c){return"color"===c&&"color"!==o&&0===o.indexOf("color")?1:-1}),i},a.dependsOn=function(i,n){return"color"===n?!(!i||0!==i.indexOf(n)):i===n},a.findPieceIndex=function(i,n,o){for(var c,d=1/0,h=0,f=n.length;hg[1]&&(g[1]=p);var v=i.get("colorMappingBy"),_={type:h.name,dataExtent:g,visual:h.range};"color"!==_.type||"index"!==v&&"id"!==v?_.mappingMethod="linear":(_.mappingMethod="category",_.loop=!0);var y=new Zr(_);return F7(y).drColorMappingBy=v,y}}}(0,c,d,0,p,w);G(w,function(S,D){if(S.depth>=n.length||S===n[S.depth]){var T=function _Q(a,i,n,o,c,d){var h=_e({},i);if(c){var f=c.type,p="color"===f&&F7(c).drColorMappingBy,g="index"===p?o:"id"===p?d.mapIdToIndex(n.getId()):n.getValue(a.get("visualDimension"));h[f]=c.mapValueToVisual(g)}return h}(c,p,S,D,x,o);N7(S,T,n,o)}})}else y=B7(p),g.fill=y}}function B7(a){var i=$V(a,"color");if(i){var n=$V(a,"colorAlpha"),o=$V(a,"colorSaturation");return o&&(i=Iv(i,null,null,o)),n&&(i=qn(i,n)),i}}function $V(a,i){var n=a[i];if(null!=n&&"none"!==n)return n}function YV(a,i){var n=a.get(i);return ye(n)&&n.length?{name:i,range:n}:null}var dd=Math.max,OC=Math.min,NE=it,LC=G,z7=["itemStyle","borderWidth"],yQ=["itemStyle","gapWidth"],bQ=["upperLabel","show"],wQ=["upperLabel","height"];const xQ={seriesType:"treemap",reset:function(a,i,n,o){var c=n.getWidth(),d=n.getHeight(),h=a.option,f=Dr(a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),p=h.size||[],g=Ie(NE(f.width,p[0]),c),v=Ie(NE(f.height,p[1]),d),_=o&&o.type,w=CC(o,["treemapZoomToNode","treemapRootToNode"],a),x="treemapRender"===_||"treemapMove"===_?o.rootRect:null,S=a.getViewRoot(),D=y7(S);if("treemapMove"!==_){var T="treemapZoomToNode"===_?function Uy(a,i,n,o,c){var d=(i||{}).node,h=[o,c];if(!d||d===n)return h;for(var f,p=o*c,g=p*a.option.zoomToNodeRatio;f=d.parentNode;){for(var v=0,_=f.children,y=0,w=_.length;yZR&&(g=ZR),d=f}gf[1]&&(f[1]=g)})):f=[NaN,NaN],{sum:o,dataExtent:f}}(i,h,f);if(0===g.sum)return a.viewChildren=[];if(g.sum=function qV(a,i,n,o,c){if(!o)return n;for(var d=a.get("visibleMin"),h=c.length,f=h,p=h-1;p>=0;p--){var g=c["asc"===o?h-p-1:p].getValue();g/n*io&&(o=h));var p=a.area*a.area,g=i*i*n;return p?dd(g*o/p,p/(g*c)):1/0}function BE(a,i,n,o,c){var d=i===n.width?0:1,h=1-d,f=["x","y"],p=["width","height"],g=n[f[d]],v=i?a.area/i:0;(c||v>n[p[h]])&&(v=n[p[h]]);for(var _=0,y=a.length;_o&&(o=i);var d=o%2?o+2:o+3;c=[];for(var h=0;h0&&(L[0]=-L[0],L[1]=-L[1]);var B=k[0]<0?-1:1;if("start"!==d.__position&&"end"!==d.__position){var U=-Math.atan2(k[1],k[0]);_[0].8?"left":y[0]<-.8?"right":"center",S=y[1]>.8?"top":y[1]<-.8?"bottom":"middle";break;case"start":d.x=-y[0]*T+v[0],d.y=-y[1]*A+v[1],x=y[0]>.8?"right":y[0]<-.8?"left":"center",S=y[1]>.8?"bottom":y[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":d.x=T*B+v[0],d.y=v[1]+j,x=k[0]<0?"right":"left",d.originX=-T*B,d.originY=-j;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":d.x=O[0],d.y=O[1]+j,x="center",d.originY=-j;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":d.x=-T*B+_[0],d.y=_[1]+j,x=k[0]>=0?"right":"left",d.originX=T*B,d.originY=-j}d.scaleX=d.scaleY=h,d.setStyle({verticalAlign:d.__verticalAlign||S,align:d.__align||x})}}}function w(W,$){var X=W.__specifiedRotation;if(null==X){var K=p.tangentAt($);W.attr("rotation",(1===$?-1:1)*Math.PI/2-Math.atan2(K[1],K[0]))}else W.attr("rotation",X)}},i}(rt);const nI=nW;var iW=function(){function a(i){this.group=new rt,this._LineCtor=i||nI}return a.prototype.updateData=function(i){var n=this;this._progressiveEls=null;var o=this,c=o.group,d=o._lineData;o._lineData=i,d||c.removeAll();var h=r3(i);i.diff(d).add(function(f){n._doAdd(i,f,h)}).update(function(f,p){n._doUpdate(d,i,p,f,h)}).remove(function(f){c.remove(d.getItemGraphicEl(f))}).execute()},a.prototype.updateLayout=function(){var i=this._lineData;i&&i.eachItemGraphicEl(function(n,o){n.updateLayout(i,o)},this)},a.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=r3(i),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(i,n){function o(f){!f.isGroup&&!function n3(a){return a.animators&&a.animators.length>0}(f)&&(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var c=i.start;c=0?f+=g:f-=g:x>=0?f-=g:f+=g}return f}function sI(a,i){var n=[],o=u0,c=[[],[],[]],d=[[],[]],h=[];i/=2,a.eachEdge(function(f,p){var g=f.getLayout(),v=f.getVisual("fromSymbol"),_=f.getVisual("toSymbol");g.__original||(g.__original=[Lo(g[0]),Lo(g[1])],g[2]&&g.__original.push(Lo(g[2])));var y=g.__original;if(null!=g[2]){if(Or(c[0],y[0]),Or(c[1],y[2]),Or(c[2],y[1]),v&&"none"!==v){var w=Gy(f.node1),x=o3(c,y[0],w*i);o(c[0][0],c[1][0],c[2][0],x,n),c[0][0]=n[3],c[1][0]=n[4],o(c[0][1],c[1][1],c[2][1],x,n),c[0][1]=n[3],c[1][1]=n[4]}_&&"none"!==_&&(w=Gy(f.node2),x=o3(c,y[1],w*i),o(c[0][0],c[1][0],c[2][0],x,n),c[1][0]=n[1],c[2][0]=n[2],o(c[0][1],c[1][1],c[2][1],x,n),c[1][1]=n[1],c[2][1]=n[2]),Or(g[0],c[0]),Or(g[1],c[2]),Or(g[2],c[1])}else Or(d[0],y[0]),Or(d[1],y[1]),Yt(h,d[1],d[0]),ve(h,h),v&&"none"!==v&&(w=Gy(f.node1),e0(d[0],d[0],h,w*i)),_&&"none"!==_&&(w=Gy(f.node2),e0(d[1],d[1],h,-w*i)),Or(g[0],d[0]),Or(g[1],d[1])})}function nr(a){return"view"===a.type}var tt=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){var c=new If,d=new zC,h=this.group;this._controller=new vg(o.getZr()),this._controllerHost={target:h},h.add(c.group),h.add(d.group),this._symbolDraw=c,this._lineDraw=d,this._firstRender=!0},i.prototype.render=function(n,o,c){var d=this,h=n.coordinateSystem;this._model=n;var f=this._symbolDraw,p=this._lineDraw,g=this.group;if(nr(h)){var v={x:h.x,y:h.y,scaleX:h.scaleX,scaleY:h.scaleY};this._firstRender?g.attr(v):zt(g,v,n)}sI(n.getGraph(),bg(n));var _=n.getData();f.updateData(_);var y=n.getEdgeData();p.updateData(y),this._updateNodeAndLinkScale(),this._updateController(n,o,c),clearTimeout(this._layoutTimeout);var w=n.forceLayout,x=n.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,x);var S=n.get("layout");_.graph.eachNode(function(E){var k=E.dataIndex,L=E.getGraphicEl(),O=E.getModel();if(L){L.off("drag").off("dragend");var B=O.get("draggable");B&&L.on("drag",function(j){switch(S){case"force":w.warmUp(),!d._layouting&&d._startForceLayoutIteration(w,x),w.setFixed(k),_.setItemLayout(k,[L.x,L.y]);break;case"circular":_.setItemLayout(k,[L.x,L.y]),E.setLayout({fixed:!0},!0),XE(n,"symbolSize",E,[j.offsetX,j.offsetY]),d.updateLayout(n);break;default:_.setItemLayout(k,[L.x,L.y]),YE(n.getGraph(),n),d.updateLayout(n)}}).on("dragend",function(){w&&w.setUnfixed(k)}),L.setDraggable(B,!!O.get("cursor")),"adjacency"===O.get(["emphasis","focus"])&&(st(L).focus=E.getAdjacentDataIndices())}}),_.graph.eachEdge(function(E){var k=E.getGraphicEl(),L=E.getModel().get(["emphasis","focus"]);k&&"adjacency"===L&&(st(k).focus={edge:[E.dataIndex],node:[E.node1.dataIndex,E.node2.dataIndex]})});var D="circular"===n.get("layout")&&n.get(["circular","rotateLabel"]),T=_.getLayout("cx"),A=_.getLayout("cy");_.graph.eachNode(function(E){e3(E,D,T,A)}),this._firstRender=!1},i.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},i.prototype._startForceLayoutIteration=function(n,o){var c=this;!function d(){n.step(function(h){c.updateLayout(c._model),(c._layouting=!h)&&(o?c._layoutTimeout=setTimeout(d,16):d())})}()},i.prototype._updateController=function(n,o,c){var d=this,h=this._controller,f=this._controllerHost,p=this.group;h.setPointerChecker(function(g,v,_){var y=p.getBoundingRect();return y.applyTransform(p.transform),y.contain(v,_)&&!hC(g,c,n)}),nr(n.coordinateSystem)?(h.enable(n.get("roam")),f.zoomLimit=n.get("scaleLimit"),f.zoom=n.coordinateSystem.getZoom(),h.off("pan").off("zoom").on("pan",function(g){To(f,g.dx,g.dy),c.dispatchAction({seriesId:n.id,type:"graphRoam",dx:g.dx,dy:g.dy})}).on("zoom",function(g){dE(f,g.scale,g.originX,g.originY),c.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:g.scale,originX:g.originX,originY:g.originY}),d._updateNodeAndLinkScale(),sI(n.getGraph(),bg(n)),d._lineDraw.updateLayout(),c.updateLabelLayout()})):h.disable()},i.prototype._updateNodeAndLinkScale=function(){var n=this._model,o=n.getData(),c=bg(n);o.eachItemGraphicEl(function(d,h){d&&d.setSymbolScale(c)})},i.prototype.updateLayout=function(n){sI(n.getGraph(),bg(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},i.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},i.type="graph",i}(Rn);const rW=tt;function Gi(a){return"_EC_"+a}var Cg=function(){function a(i){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=i||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(i,n){var o=this._nodesMap;if(!o[Gi(i=null==i?""+n:""+i)]){var c=new bn(i,n);return c.hostGraph=this,this.nodes.push(c),o[Gi(i)]=c,c}},a.prototype.getNodeByIndex=function(i){var n=this.data.getRawIndex(i);return this.nodes[n]},a.prototype.getNodeById=function(i){return this._nodesMap[Gi(i)]},a.prototype.addEdge=function(i,n,o){var c=this._nodesMap,d=this._edgesMap;if(on(i)&&(i=this.nodes[i]),on(n)&&(n=this.nodes[n]),i instanceof bn||(i=c[Gi(i)]),n instanceof bn||(n=c[Gi(n)]),i&&n){var h=i.id+"-"+n.id,f=new Hf(i,n,o);return f.hostGraph=this,this._directed&&(i.outEdges.push(f),n.inEdges.push(f)),i.edges.push(f),i!==n&&n.edges.push(f),this.edges.push(f),d[h]=f,f}},a.prototype.getEdgeByIndex=function(i){var n=this.edgeData.getRawIndex(i);return this.edges[n]},a.prototype.getEdge=function(i,n){i instanceof bn&&(i=i.id),n instanceof bn&&(n=n.id);var o=this._edgesMap;return this._directed?o[i+"-"+n]:o[i+"-"+n]||o[n+"-"+i]},a.prototype.eachNode=function(i,n){for(var o=this.nodes,c=o.length,d=0;d=0&&i.call(n,o[d],d)},a.prototype.eachEdge=function(i,n){for(var o=this.edges,c=o.length,d=0;d=0&&o[d].node1.dataIndex>=0&&o[d].node2.dataIndex>=0&&i.call(n,o[d],d)},a.prototype.breadthFirstTraverse=function(i,n,o,c){if(n instanceof bn||(n=this._nodesMap[Gi(n)]),n){for(var d="out"===o?"outEdges":"in"===o?"inEdges":"edges",h=0;h=0&&p.node2.dataIndex>=0}),d=0,h=c.length;d=0&&this[a][i].setItemVisual(this.dataIndex,n,o)},getVisual:function(n){return this[a][i].getItemVisual(this.dataIndex,n)},setLayout:function(n,o){this.dataIndex>=0&&this[a][i].setItemLayout(this.dataIndex,n,o)},getLayout:function(){return this[a][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][i].getRawIndex(this.dataIndex)}}}Di(bn,Li("hostGraph","data")),Di(Hf,Li("hostGraph","edgeData"));const UC=Cg;function $y(a,i,n,o,c){for(var d=new UC(o),h=0;h "+y)),g++)}var x,w=n.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)x=el(a,n);else{var S=_m.get(w),D=S&&S.dimensions||[];Ct(D,"value")<0&&D.concat(["value"]);var T=Qm(a,{coordDimensions:D,encodeDefine:n.getEncode()}).dimensions;(x=new ya(T,n)).initData(a)}var A=new ya(["value"],n);return A.initData(p,f),c&&c(x,A),_7({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:A},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}var Xo=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments);var o=this;function c(){return o._categoriesData}this.legendVisualProvider=new rC(c,c),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(n){a.prototype.mergeDefaultAndTheme.apply(this,arguments),zp(n,"edgeLabel",["show"])},i.prototype.getInitialData=function(n,o){var c=n.edges||n.links||[],d=n.data||n.nodes||[],h=this;if(d&&c){!function WE(a){HE(a)&&(a.__curvenessList=[],a.__edgeMap={},W7(a))}(this);var f=$y(d,c,this,!0,function p(g,v){g.wrapMethod("getItemModel",function(x){var T=h._categoriesModels[x.getShallow("category")];return T&&(T.parentModel=x.parentModel,x.parentModel=T),x});var _=Un.prototype.getModel;function y(x,S){var D=_.call(this,x,S);return D.resolveParentPath=w,D}function w(x){if(x&&("label"===x[0]||"label"===x[1])){var S=x.slice();return"label"===x[0]?S[0]="edgeLabel":"label"===x[1]&&(S[1]="edgeLabel"),S}return x}v.wrapMethod("getItemModel",function(x){return x.resolveParentPath=w,x.getModel=y,x})});return G(f.edges,function(g){!function QV(a,i,n,o){if(HE(n)){var c=jy(a,i,n),d=n.__edgeMap,h=d[UE(c)];d[c]&&!h?d[c].isForward=!0:h&&d[c]&&(h.isForward=!0,d[c].isForward=!1),d[c]=d[c]||[],d[c].push(o)}}(g.node1,g.node2,this,g.dataIndex)},this),f.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(n,o,c){if("edge"===c){var d=this.getData(),h=this.getDataParams(n,c),f=d.graph.getEdgeByIndex(n),p=d.getName(f.node1.dataIndex),g=d.getName(f.node2.dataIndex),v=[];return null!=p&&v.push(p),null!=g&&v.push(g),Hr("nameValue",{name:v.join(" > "),value:h.value,noValue:null==h.value})}return Qh({series:this,dataIndex:n,multipleSeries:o})},i.prototype._updateCategoriesData=function(){var n=Se(this.option.categories||[],function(c){return null!=c.value?c:_e({value:0},c)}),o=new ya(["value"],this);o.initData(n),this._categoriesData=o,this._categoriesModels=o.mapArray(function(c){return o.getItemModel(c)})},i.prototype.setZoom=function(n){this.option.zoom=n},i.prototype.setCenter=function(n){this.option.center=n},i.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(Xn);const DQ=Xo;var aW={type:"graphRoam",event:"graphRoam",update:"none"},sW=function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},lW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="pointer",o}return de(i,a),i.prototype.getDefaultShape=function(){return new sW},i.prototype.buildPath=function(n,o){var c=Math.cos,d=Math.sin,h=o.r,f=o.width,p=o.angle,g=o.x-c(p)*f*(f>=h/3?1:2),v=o.y-d(p)*f*(f>=h/3?1:2);p=o.angle-Math.PI/2,n.moveTo(g,v),n.lineTo(o.x+c(p)*f,o.y+d(p)*f),n.lineTo(o.x+c(o.angle)*h,o.y+d(o.angle)*h),n.lineTo(o.x-c(p)*f,o.y-d(p)*f),n.lineTo(g,v)},i}(It);const s3=lW;function cl(a,i){var n=null==a?"":a+"";return i&&(Ae(i)?n=i.replace("{value}",n):Xe(i)&&(n=i(a))),n}var TQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeAll();var d=n.get(["axisLine","lineStyle","color"]),h=function jC(a,i){var n=a.get("center"),o=i.getWidth(),c=i.getHeight(),d=Math.min(o,c);return{cx:Ie(n[0],i.getWidth()),cy:Ie(n[1],i.getHeight()),r:Ie(a.get("radius"),d/2)}}(n,c);this._renderMain(n,o,c,d,h),this._data=n.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(n,o,c,d,h){var f=this.group,p=n.get("clockwise"),g=-n.get("startAngle")/180*Math.PI,v=-n.get("endAngle")/180*Math.PI,_=n.getModel("axisLine"),w=_.get("roundCap")?UA:jr,x=_.get("show"),S=_.getModel("lineStyle"),D=S.get("width"),T=[g,v];BD(T,!p);for(var A=(v=T[1])-(g=T[0]),E=g,k=[],L=0;x&&L=j&&(0===W?0:d[W-1][0])Math.PI/2&&(Qe+=Math.PI):"tangential"===Ke?Qe=-U-Math.PI/2:on(Ke)&&(Qe=Ke*Math.PI/180),_.add(new Zt(0===Qe?{style:Zn(E,{text:we,x:Le,y:We,verticalAlign:te<-.8?"top":te>.8?"bottom":"middle",align:ee<-.4?"left":ee>.4?"right":"center"},{inheritColor:Pe}),silent:!0}:{style:Zn(E,{text:we,x:Le,y:We,verticalAlign:"middle",align:"center"},{inheritColor:Pe}),silent:!0,originX:Le,originY:We,rotation:Qe}))}if(A.get("show")&&ie!==k){me=(me=A.get("distance"))?me+v:v;for(var At=0;At<=L;At++){ee=Math.cos(U),te=Math.sin(U);var Qt=new Gr({shape:{x1:ee*(x-me)+y,y1:te*(x-me)+w,x2:ee*(x-B-me)+y,y2:te*(x-B-me)+w},silent:!0,style:X});"auto"===X.stroke&&Qt.setStyle({stroke:d((ie+At/L)/k)}),_.add(Qt),U+=W}U-=W}else U+=j}},i.prototype._renderPointer=function(n,o,c,d,h,f,p,g,v){var _=this.group,y=this._data,w=this._progressEls,x=[],S=n.get(["pointer","show"]),D=n.getModel("progress"),T=D.get("show"),A=n.getData(),E=A.mapDimension("value"),k=+n.get("min"),L=+n.get("max"),O=[k,L],B=[f,p];function U(W,$){var Le,K=A.getItemModel(W).getModel("pointer"),ee=Ie(K.get("width"),h.r),te=Ie(K.get("length"),h.r),ie=n.get(["pointer","icon"]),me=K.get("offsetCenter"),ue=Ie(me[0],h.r),we=Ie(me[1],h.r),Pe=K.get("keepAspect");return(Le=ie?ji(ie,ue-ee/2,we-te,ee,te,null,Pe):new s3({shape:{angle:-Math.PI/2,width:ee,r:te,x:ue,y:we}})).rotation=-($+Math.PI/2),Le.x=h.cx,Le.y=h.cy,Le}function j(W,$){var K=D.get("roundCap")?UA:jr,ee=D.get("overlap"),te=ee?D.get("width"):v/A.count(),ue=new K({shape:{startAngle:f,endAngle:$,cx:h.cx,cy:h.cy,clockwise:g,r0:ee?h.r-te:h.r-(W+1)*te,r:ee?h.r:h.r-W*te}});return ee&&(ue.z2=L-A.get(E,W)%L),ue}(T||S)&&(A.diff(y).add(function(W){var $=A.get(E,W);if(S){var X=U(W,f);Nn(X,{rotation:-((isNaN(+$)?B[0]:yn($,O,B,!0))+Math.PI/2)},n),_.add(X),A.setItemGraphicEl(W,X)}if(T){var K=j(W,f),ee=D.get("clip");Nn(K,{shape:{endAngle:yn($,O,B,ee)}},n),_.add(K),YD(n.seriesIndex,A.dataType,W,K),x[W]=K}}).update(function(W,$){var X=A.get(E,W);if(S){var K=y.getItemGraphicEl($),ee=K?K.rotation:f,te=U(W,ee);te.rotation=ee,zt(te,{rotation:-((isNaN(+X)?B[0]:yn(X,O,B,!0))+Math.PI/2)},n),_.add(te),A.setItemGraphicEl(W,te)}if(T){var ie=w[$],ue=j(W,ie?ie.shape.endAngle:f),we=D.get("clip");zt(ue,{shape:{endAngle:yn(X,O,B,we)}},n),_.add(ue),YD(n.seriesIndex,A.dataType,W,ue),x[W]=ue}}).execute(),A.each(function(W){var $=A.getItemModel(W),X=$.getModel("emphasis"),K=X.get("focus"),ee=X.get("blurScope"),te=X.get("disabled");if(S){var ie=A.getItemGraphicEl(W),me=A.getItemVisual(W,"style"),ue=me.fill;if(ie instanceof Jr){var we=ie.style;ie.useStyle(_e({image:we.image,x:we.x,y:we.y,width:we.width,height:we.height},me))}else ie.useStyle(me),"pointer"!==ie.type&&ie.setColor(ue);ie.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ie.style.fill&&ie.setStyle("fill",d(yn(A.get(E,W),O,[0,1],!0))),ie.z2EmphasisLift=0,ga(ie,$),Oi(ie,K,ee,te)}if(T){var Pe=x[W];Pe.useStyle(A.getItemVisual(W,"style")),Pe.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),Pe.z2EmphasisLift=0,ga(Pe,$),Oi(Pe,K,ee,te)}}),this._progressEls=x)},i.prototype._renderAnchor=function(n,o){var c=n.getModel("anchor");if(c.get("show")){var h=c.get("size"),f=c.get("icon"),p=c.get("offsetCenter"),g=c.get("keepAspect"),v=ji(f,o.cx-h/2+Ie(p[0],o.r),o.cy-h/2+Ie(p[1],o.r),h,h,null,g);v.z2=c.get("showAbove")?1:0,v.setStyle(c.getModel("itemStyle").getItemStyle()),this.group.add(v)}},i.prototype._renderTitleAndDetail=function(n,o,c,d,h){var f=this,p=n.getData(),g=p.mapDimension("value"),v=+n.get("min"),_=+n.get("max"),y=new rt,w=[],x=[],S=n.isAnimationEnabled(),D=n.get(["pointer","showAbove"]);p.diff(this._data).add(function(T){w[T]=new Zt({silent:!0}),x[T]=new Zt({silent:!0})}).update(function(T,A){w[T]=f._titleEls[A],x[T]=f._detailEls[A]}).execute(),p.each(function(T){var A=p.getItemModel(T),E=p.get(g,T),k=new rt,L=d(yn(E,[v,_],[0,1],!0)),O=A.getModel("title");if(O.get("show")){var B=O.get("offsetCenter"),U=h.cx+Ie(B[0],h.r),j=h.cy+Ie(B[1],h.r);(W=w[T]).attr({z2:D?0:2,style:Zn(O,{x:U,y:j,text:p.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:L})}),k.add(W)}var $=A.getModel("detail");if($.get("show")){var X=$.get("offsetCenter"),K=h.cx+Ie(X[0],h.r),ee=h.cy+Ie(X[1],h.r),te=Ie($.get("width"),h.r),ie=Ie($.get("height"),h.r),me=n.get(["progress","show"])?p.getItemVisual(T,"style").fill:L,W=x[T],ue=$.get("formatter");W.attr({z2:D?0:2,style:Zn($,{x:K,y:ee,text:cl(E,ue),width:isNaN(te)?null:te,height:isNaN(ie)?null:ie,align:"center",verticalAlign:"middle"},{inheritColor:me})}),zr(W,{normal:$},E,function(Pe){return cl(Pe,ue)}),S&&Z2(W,T,p,n,{getFormattedLabel:function(Pe,Le,We,Ke,Qe,At){return cl(At?At.interpolatedValue:E,ue)}}),k.add(W)}y.add(k)}),this.group.add(y),this._titleEls=w,this._detailEls=x},i.type="gauge",i}(Rn);const cW=TQ;var dW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.visualStyleAccessPath="itemStyle",n}return de(i,a),i.prototype.getInitialData=function(n,o){return Ey(this,["value"])},i.type="series.gauge",i.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},i}(Xn);const l3=dW;var d3=["itemStyle","opacity"],uW=function(a){function i(n,o){var c=a.call(this)||this,d=c,h=new io,f=new Zt;return d.setTextContent(f),c.setTextGuideLine(h),c.updateData(n,o,!0),c}return de(i,a),i.prototype.updateData=function(n,o,c){var d=this,h=n.hostModel,f=n.getItemModel(o),p=n.getItemLayout(o),g=f.getModel("emphasis"),v=f.get(d3);v=v??1,c||Ql(d),d.useStyle(n.getItemVisual(o,"style")),d.style.lineJoin="round",c?(d.setShape({points:p.points}),d.style.opacity=0,Nn(d,{style:{opacity:v}},h,o)):zt(d,{style:{opacity:v},shape:{points:p.points}},h,o),ga(d,f),this._updateLabel(n,o),Oi(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))},i.prototype._updateLabel=function(n,o){var c=this,d=this.getTextGuideLine(),h=c.getTextContent(),f=n.hostModel,p=n.getItemModel(o),v=n.getItemLayout(o).label,_=n.getItemVisual(o,"style"),y=_.fill;Oa(h,Sr(p),{labelFetcher:n.hostModel,labelDataIndex:o,defaultOpacity:_.opacity,defaultText:n.getName(o)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),c.setTextConfig({local:!0,inside:!!v.inside,insideStroke:y,outsideFill:y});var w=v.linePoints;d.setShape({points:w}),c.textGuideLineConfig={anchor:w?new St(w[0][0],w[0][1]):null},zt(h,{style:{x:v.x,y:v.y}},f,o),h.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),Nx(c,Vx(p),{stroke:y})},i}(no),Yy=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.ignoreLabelLineUpdate=!0,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this._data,f=this.group;d.diff(h).add(function(p){var g=new uW(d,p);d.setItemGraphicEl(p,g),f.add(g)}).update(function(p,g){var v=h.getItemGraphicEl(g);v.updateData(d,p),f.add(v),d.setItemGraphicEl(p,v)}).remove(function(p){lw(h.getItemGraphicEl(p),n,p)}).execute(),this._data=d},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Rn);const Iu=Yy;var lI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new rC(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(n)},i.prototype.getInitialData=function(n,o){return Ey(this,{coordDimensions:["value"],encodeDefaulter:ct(xT,this)})},i.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var o=n.labelLine,c=n.emphasis.labelLine;o.show=o.show&&n.label.show,c.show=c.show&&n.emphasis.label.show},i.prototype.getDataParams=function(n){var o=this.getData(),c=a.prototype.getDataParams.call(this,n),d=o.mapDimension("value"),h=o.getSum(d);return c.percent=h?+(o.get(d,n)/h*100).toFixed(2):0,c.$vars.push("percent"),c},i.type="series.funnel",i.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(Xn);const GC=lI;function WC(a,i){a.eachSeriesByType("funnel",function(n){var o=n.getData(),c=o.mapDimension("value"),d=n.get("sort"),h=function Uf(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(n,i),f=n.get("orient"),p=h.width,g=h.height,v=function Sg(a,i){for(var n=a.mapDimension("value"),o=a.mapArray(n,function(p){return p}),c=[],d="ascending"===i,h=0,f=a.count();h5)return;var c=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);"none"!==c.behavior&&this._dispatchExpand({axisExpandWindow:c.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!this._mouseDownPoint&&v3(this,"mousemove")){var i=this._model,n=i.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),o=n.behavior;"jump"===o&&this._throttledDispatchExpand.debounceNextCall(i.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===o?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===o?null:{duration:0}})}}};function v3(a,i){var n=a._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===i}const yW=kQ;var bW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(n){n&&mt(this.option,n,!0),this._initDimensions()},i.prototype.contains=function(n,o){var c=n.get("parallelIndex");return null!=c&&o.getComponent("parallel",c)===this},i.prototype.setAxisExpand=function(n){G(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){n.hasOwnProperty(o)&&(this.option[o]=n[o])},this)},i.prototype._initDimensions=function(){var n=this.dimensions=[],o=this.parallelAxisIndex=[];G(_n(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this),function(d){n.push("dim"+d.get("dim")),o.push(d.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},i}(en);const _3=bW;var wW=function(a){function i(n,o,c,d,h){var f=a.call(this,n,o,c)||this;return f.type=d||"value",f.axisIndex=h,f}return de(i,a),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(il);const RQ=wW;function jf(a,i,n,o,c,d){a=a||0;var h=n[1]-n[0];if(null!=c&&(c=Gf(c,[0,h])),null!=d&&(d=Math.max(d,c??0)),"all"===o){var f=Math.abs(i[1]-i[0]);f=Gf(f,[0,h]),c=d=Gf(f,[c,d]),o=0}i[0]=Gf(i[0],n),i[1]=Gf(i[1],n);var p=uI(i,o);i[o]+=a;var _,g=c||0,v=n.slice();return p.sign<0?v[0]+=g:v[1]-=g,i[o]=Gf(i[o],v),_=uI(i,o),null!=c&&(_.sign!==p.sign||_.spand&&(i[1-o]=i[o]+_.sign*d),i}function uI(a,i){var n=a[i]-a[1-i];return{span:Math.abs(n),sign:n>0?-1:n<0?1:i?-1:1}}function Gf(a,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,a))}var Zy=G,y3=Math.min,hI=Math.max,b3=Math.floor,w3=Math.ceil,fI=ti,xW=Math.PI,CW=function(){function a(i,n,o){this.type="parallel",this._axesMap=Me(),this._axesLayout={},this.dimensions=i.dimensions,this._model=i,this._init(i,n,o)}return a.prototype._init=function(i,n,o){var d=i.parallelAxisIndex;Zy(i.dimensions,function(h,f){var p=d[f],g=n.getComponent("parallelAxis",p),v=this._axesMap.set(h,new RQ(h,iy(g),[0,0],g.get("type"),p));v.onBand="category"===v.type&&g.get("boundaryGap"),v.inverse=g.get("inverse"),g.axis=v,v.model=g,v.coordinateSystem=g.coordinateSystem=this},this)},a.prototype.update=function(i,n){this._updateAxesFromSeries(this._model,i)},a.prototype.containPoint=function(i){var n=this._makeLayoutInfo(),o=n.axisBase,c=n.layoutBase,d=n.pixelDimIndex,h=i[1-d],f=i[d];return h>=o&&h<=o+n.axisLength&&f>=c&&f<=c+n.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(i,n){n.eachSeries(function(o){if(i.contains(o,n)){var c=o.getData();Zy(this.dimensions,function(d){var h=this._axesMap.get(d);h.scale.unionExtentFromData(c,c.mapDimension(d)),xf(h.scale,h.model)},this)}},this)},a.prototype.resize=function(i,n){this._rect=Dr(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var x,i=this._model,n=this._rect,o=["x","y"],c=["width","height"],d=i.get("layout"),h="horizontal"===d?0:1,f=n[c[h]],p=[0,f],g=this.dimensions.length,v=pI(i.get("axisExpandWidth"),p),_=pI(i.get("axisExpandCount")||0,[0,g]),y=i.get("axisExpandable")&&g>3&&g>_&&_>1&&v>0&&f>0,w=i.get("axisExpandWindow");w?(x=pI(w[1]-w[0],p),w[1]=w[0]+x):(x=pI(v*(_-1),p),(w=[v*(i.get("axisExpandCenter")||b3(g/2))-x/2])[1]=w[0]+x);var D=(f-x)/(g-_);D<3&&(D=0);var T=[b3(fI(w[0]/v,1))+1,w3(fI(w[1]/v,1))-1];return{layout:d,pixelDimIndex:h,layoutBase:n[o[h]],layoutLength:f,axisBase:n[o[1-h]],axisLength:n[c[1-h]],axisExpandable:y,axisExpandWidth:v,axisCollapseWidth:D,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:D/v*w[0]}},a.prototype._layoutAxes=function(){var i=this._rect,n=this._axesMap,o=this.dimensions,c=this._makeLayoutInfo(),d=c.layout;n.each(function(h){var f=[0,c.axisLength],p=h.inverse?1:0;h.setExtent(f[p],f[1-p])}),Zy(o,function(h,f){var p=(c.axisExpandable?Wf:ku)(f,c),g={horizontal:{x:p.position,y:c.axisLength},vertical:{x:0,y:p.position}},_=[g[d].x+i.x,g[d].y+i.y],y={horizontal:xW/2,vertical:0}[d],w=[1,0,0,1,0,0];Rd(w,w,y),ar(w,w,_),this._axesLayout[h]={position:_,rotation:y,transform:w,axisNameAvailableWidth:p.axisNameAvailableWidth,axisLabelShow:p.axisLabelShow,nameTruncateMaxWidth:p.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(i){return this._axesMap.get(i)},a.prototype.dataToPoint=function(i,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(i),n)},a.prototype.eachActiveState=function(i,n,o,c){null==o&&(o=0),null==c&&(c=i.count());var d=this._axesMap,h=this.dimensions,f=[],p=[];G(h,function(D){f.push(i.mapDimension(D)),p.push(d.get(D).model)});for(var g=this.hasAxisBrushed(),v=o;vd*(1-_[0])?(g="jump",p=f-d*(1-_[2])):(p=f-d*_[1])>=0&&(p=f-d*(1-_[1]))<=0&&(p=0),(p*=n.axisExpandWidth/v)?jf(p,c,h,"all"):g="none";else{var w=c[1]-c[0];(c=[hI(0,h[1]*f/w-w/2)])[1]=y3(h[1],c[0]+w),c[0]=c[1]-w}return{axisExpandWindow:c,behavior:g}},a}();function pI(a,i){return y3(hI(a,i[0]),i[1])}function ku(a,i){var n=i.layoutLength/(i.axisCount-1);return{position:n*a,axisNameAvailableWidth:n,axisLabelShow:!0}}function Wf(a,i){var f,v,o=i.axisExpandWidth,d=i.axisCollapseWidth,h=i.winInnerIndices,p=d,g=!1;return a=0;c--)Qr(o[c])},i.prototype.getActiveState=function(n){var o=this.activeIntervals;if(!o.length)return"normal";if(null==n||isNaN(+n))return"inactive";if(1===o.length){var c=o[0];if(c[0]<=n&&n<=c[1])return"active"}else for(var d=0,h=o.length;dFQ}(a)||c){if(d&&!c){"single"===h.brushMode&&yI(a);var p=nt(h);p.brushType=XC(p.brushType,d),p.panelId=d===Dg?null:d.panelId,c=a._creatingCover=M3(a,p),a._covers.push(c)}if(c){var g=qf[XC(a._brushType,d)];c.__brushOption.range=g.getCreatingRange(Yf(a,c,a._track)),o&&(A3(a,c),g.updateCommon(a,c)),E3(a,c),f={isEnd:o}}}else o&&"single"===h.brushMode&&h.removeOnClick&&P3(a,i,n)&&yI(a)&&(f={isEnd:o,removeOnClick:!0});return f}function XC(a,i){return"auto"===a?i.defaultBrushType:a}var SI={mousedown:function(a){if(this._dragging)In(this,a);else if(!a.target||!a.target.draggable){Ao(a);var i=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null,(this._creatingPanel=P3(this,a,i))&&(this._dragging=!0,this._track=[i.slice()])}},mousemove:function(a){var o=this.group.transformCoordToLocal(a.offsetX,a.offsetY);if(function Eg(a,i,n){if(a._brushType&&!function pr(a,i,n){var o=a._zr;return i<0||i>o.getWidth()||n<0||n>o.getHeight()}(a,i.offsetX,i.offsetY)){var o=a._zr,c=a._covers,d=P3(a,i,n);if(!a._dragging)for(var h=0;h=0&&(f[h[p].depth]=new Un(h[p],this,o));if(d&&c)return $y(d,c,this,!0,function v(_,y){_.wrapMethod("getItemModel",function(w,x){var S=w.parentModel,D=S.getData().getItemLayout(x);if(D){var A=S.levelModels[D.depth];A&&(w.parentModel=A)}return w}),y.wrapMethod("getItemModel",function(w,x){var S=w.parentModel,T=S.getGraph().getEdgeByIndex(x).node1.getLayout();if(T){var E=S.levelModels[T.depth];E&&(w.parentModel=E)}return w})}).data},i.prototype.setNodePosition=function(n,o){var d=(this.option.data||this.option.nodes)[n];d.localX=o[0],d.localY=o[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(n,o,c){function d(w){return isNaN(w)||null==w}if("edge"===c){var h=this.getDataParams(n,c),f=h.data,p=h.value;return Hr("nameValue",{name:f.source+" -- "+f.target,value:p,noValue:d(p)})}var _=this.getGraph().getNodeByIndex(n).getLayout().value,y=this.getDataParams(n,c).data.name;return Hr("nameValue",{name:null!=y?y+"":null,value:_,noValue:d(_)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(n,o){var c=a.prototype.getDataParams.call(this,n,o);if(null==c.value&&"node"===o){var h=this.getGraph().getNodeByIndex(n).getLayout().value;c.value=h}return c},i.type="series.sankey",i.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},i}(Xn);const LW=j3;function G3(a,i){a.eachSeriesByType("sankey",function(n){var o=n.get("nodeWidth"),c=n.get("nodeGap"),d=function FW(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(n,i);n.layoutInfo=d;var h=d.width,f=d.height,p=n.getGraph(),g=p.nodes,v=p.edges;!function $3(a){G(a,function(i){var n=dl(i.outEdges,Pg),o=dl(i.inEdges,Pg),c=i.getValue()||0,d=Math.max(n,o,c);i.setLayout({value:d},!0)})}(g),function W3(a,i,n,o,c,d,h,f,p){(function KC(a,i,n,o,c,d,h){for(var f=[],p=[],g=[],v=[],_=0,y=0;y=0;T&&D.depth>w&&(w=D.depth),S.setLayout({depth:T?D.depth:_},!0),S.setLayout("vertical"===d?{dy:n}:{dx:n},!0);for(var A=0;A_-1?w:_-1;h&&"left"!==h&&function ci(a,i,n,o){if("right"===i){for(var c=[],d=a,h=0;d.length;){for(var f=0;f0;d--)BW(f,p*=.99,h),eb(f,c,n,o,h),q3(f,p,h),eb(f,c,n,o,h)}(a,i,d,c,o,h,f),function Z3(a,i){var n="vertical"===i?"x":"y";G(a,function(o){o.outEdges.sort(function(c,d){return c.node2.getLayout()[n]-d.node2.getLayout()[n]}),o.inEdges.sort(function(c,d){return c.node1.getLayout()[n]-d.node1.getLayout()[n]})}),G(a,function(o){var c=0,d=0;G(o.outEdges,function(h){h.setLayout({sy:c},!0),c+=h.getLayout().dy}),G(o.inEdges,function(h){h.setLayout({ty:d},!0),d+=h.getLayout().dy})})}(a,f)}(g,v,o,c,h,f,0!==_n(g,function(S){return 0===S.getLayout().value}).length?0:n.get("layoutIterations"),n.get("orient"),n.get("nodeAlign"))})}function Zf(a){var i=a.hostGraph.data.getRawDataItem(a.dataIndex);return null!=i.depth&&i.depth>=0}function eb(a,i,n,o,c){var d="vertical"===c?"x":"y";G(a,function(h){h.sort(function(S,D){return S.getLayout()[d]-D.getLayout()[d]});for(var f,p,g,v=0,_=h.length,y="vertical"===c?"dx":"dy",w=0;w<_;w++)(g=v-(p=h[w]).getLayout()[d])>0&&(f=p.getLayout()[d]+g,p.setLayout("vertical"===c?{x:f}:{y:f},!0)),v=p.getLayout()[d]+p.getLayout()[y]+i;if((g=v-i-("vertical"===c?o:n))>0)for(f=p.getLayout()[d]-g,p.setLayout("vertical"===c?{x:f}:{y:f},!0),v=f,w=_-2;w>=0;--w)(g=(p=h[w]).getLayout()[d]+p.getLayout()[y]+i-v)>0&&(f=p.getLayout()[d]-g,p.setLayout("vertical"===c?{x:f}:{y:f},!0)),v=p.getLayout()[d]})}function BW(a,i,n){G(a.slice().reverse(),function(o){G(o,function(c){if(c.outEdges.length){var d=dl(c.outEdges,QC,n)/dl(c.outEdges,Pg);if(isNaN(d)){var h=c.outEdges.length;d=h?dl(c.outEdges,tb,n)/h:0}if("vertical"===n){var f=c.getLayout().x+(d-Ou(c,n))*i;c.setLayout({x:f},!0)}else{var p=c.getLayout().y+(d-Ou(c,n))*i;c.setLayout({y:p},!0)}}})})}function QC(a,i){return Ou(a.node2,i)*a.getValue()}function tb(a,i){return Ou(a.node2,i)}function Y3(a,i){return Ou(a.node1,i)*a.getValue()}function JC(a,i){return Ou(a.node1,i)}function Ou(a,i){return"vertical"===i?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function Pg(a){return a.getValue()}function dl(a,i,n){for(var o=0,c=a.length,d=-1;++dh&&(h=p)}),G(o,function(f){var g=new Zr({type:"color",mappingMethod:"linear",dataExtent:[d,h],visual:i.get("color")}).mapValueToVisual(f.getLayout().value),v=f.getModel().get(["itemStyle","color"]);null!=v?(f.setVisual("color",v),f.setVisual("style",{fill:v})):(f.setVisual("color",g),f.setVisual("style",{fill:g}))})}c.length&&G(c,function(f){var p=f.getModel().get("lineStyle");f.setVisual("style",p)})})}var X3=function(){function a(){}return a.prototype.getInitialData=function(i,n){var o,p,c=n.getComponent("xAxis",this.get("xAxisIndex")),d=n.getComponent("yAxis",this.get("yAxisIndex")),h=c.get("type"),f=d.get("type");"category"===h?(i.layout="horizontal",o=c.getOrdinalMeta(),p=!0):"category"===f?(i.layout="vertical",o=d.getOrdinalMeta(),p=!0):i.layout=i.layout||"horizontal";var g=["x","y"],v="horizontal"===i.layout?0:1,_=this._baseAxisDim=g[v],y=g[1-v],w=[c,d],x=w[v].get("type"),S=w[1-v].get("type"),D=i.data;if(D&&p){var T=[];G(D,function(k,L){var O;ye(k)?(O=k.slice(),k.unshift(L)):ye(k.value)?((O=_e({},k)).value=O.value.slice(),k.value.unshift(L)):O=k,T.push(O)}),i.data=T}var A=this.defaultValueDimensions,E=[{name:_,type:Y_(x),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:y,type:Y_(S),dimsDef:A.slice()}];return Ey(this,{coordDimensions:E,dimensionsCount:A.length+1,encodeDefaulter:ct(dO,E,this)})},a.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},a}(),e1=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return de(i,a),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},i}(Xn);Di(e1,X3,!0);const UW=e1;var jW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this.group,f=this._data;this._data||h.removeAll();var p="horizontal"===n.get("layout")?1:0;d.diff(f).add(function(g){if(d.hasValue(g)){var _=K3(d.getItemLayout(g),d,g,p,!0);d.setItemGraphicEl(g,_),h.add(_)}}).update(function(g,v){var _=f.getItemGraphicEl(v);if(d.hasValue(g)){var y=d.getItemLayout(g);_?(Ql(_),Q3(y,_,d,g)):_=K3(y,d,g,p),h.add(_),d.setItemGraphicEl(g,_)}else h.remove(_)}).remove(function(g){var v=f.getItemGraphicEl(g);v&&h.remove(v)}).execute(),this._data=d},i.prototype.remove=function(n){var o=this.group,c=this._data;this._data=null,c&&c.eachItemGraphicEl(function(d){d&&o.remove(d)})},i.type="boxplot",i}(Rn),GW=function a(){},WW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="boxplotBoxPath",o}return de(i,a),i.prototype.getDefaultShape=function(){return new GW},i.prototype.buildPath=function(n,o){var c=o.points,d=0;for(n.moveTo(c[d][0],c[d][1]),d++;d<4;d++)n.lineTo(c[d][0],c[d][1]);for(n.closePath();dS)&&o.push([T,E])}}return{boxData:n,outliers:o}}(n.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:c.boxData},{data:c.outliers}]}},II=["color","borderColor"],nB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},i.prototype.incrementalPrepareRender=function(n,o,c){this._clear(),this._updateDrawMode(n)},i.prototype.incrementalRender=function(n,o,c,d){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,o):this._incrementalRenderNormal(n,o)},i.prototype.eachRendered=function(n){Kc(this._progressiveEls||this.group,n)},i.prototype._updateDrawMode=function(n){var o=n.pipelineContext.large;(null==this._isLargeDraw||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},i.prototype._renderNormal=function(n){var o=n.getData(),c=this._data,d=this.group,h=o.getLayout("isSimpleBox"),f=n.get("clip",!0),p=n.coordinateSystem,g=p.getArea&&p.getArea();this._data||d.removeAll(),o.diff(c).add(function(v){if(o.hasValue(v)){var _=o.getItemLayout(v);if(f&&rB(g,_))return;var y=Og(_,0,!0);Nn(y,{shape:{points:_.ends}},n,v),kI(y,o,v,h),d.add(y),o.setItemGraphicEl(v,y)}}).update(function(v,_){var y=c.getItemGraphicEl(_);if(o.hasValue(v)){var w=o.getItemLayout(v);f&&rB(g,w)?d.remove(y):(y?(zt(y,{shape:{points:w.ends}},n,v),Ql(y)):y=Og(w),kI(y,o,v,h),d.add(y),o.setItemGraphicEl(v,y))}else d.remove(y)}).remove(function(v){var _=c.getItemGraphicEl(v);_&&d.remove(_)}).execute(),this._data=o},i.prototype._renderLarge=function(n){this._clear(),oB(n,this.group);var o=n.get("clip",!0)?Cy(n.coordinateSystem,!1,n):null;o?this.group.setClipPath(o):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(n,o){for(var h,c=o.getData(),d=c.getLayout("isSimpleBox");null!=(h=n.next());){var p=Og(c.getItemLayout(h));kI(p,c,h,d),p.incremental=!0,this.group.add(p),this._progressiveEls.push(p)}},i.prototype._incrementalRenderLarge=function(n,o){oB(o,this.group,this._progressiveEls,!0)},i.prototype.remove=function(n){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Rn),iB=function a(){},ZW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="normalCandlestickBox",o}return de(i,a),i.prototype.getDefaultShape=function(){return new iB},i.prototype.buildPath=function(n,o){var c=o.points;this.__simpleBox?(n.moveTo(c[4][0],c[4][1]),n.lineTo(c[6][0],c[6][1])):(n.moveTo(c[0][0],c[0][1]),n.lineTo(c[1][0],c[1][1]),n.lineTo(c[2][0],c[2][1]),n.lineTo(c[3][0],c[3][1]),n.closePath(),n.moveTo(c[4][0],c[4][1]),n.lineTo(c[5][0],c[5][1]),n.moveTo(c[6][0],c[6][1]),n.lineTo(c[7][0],c[7][1]))},i}(It);function Og(a,i,n){var o=a.ends;return new ZW({shape:{points:n?XW(o,a):o},z2:100})}function rB(a,i){for(var n=!0,o=0;o0?"borderColor":"borderColor0"])||n.get(["itemStyle",a>0?"color":"color0"]);0===a&&(c=n.get(["itemStyle","borderColorDoji"]));var d=n.getModel("itemStyle").getItemStyle(II);i.useStyle(d),i.style.fill=null,i.style.stroke=c}const KW=nB;var PI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return de(i,a),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(n,o,c){var d=o.getItemLayout(n);return d&&c.rect(d.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},i}(Xn);Di(PI,X3,!0);const sB=PI;function rb(a){!a||!ye(a.series)||G(a.series,function(i){Ee(i)&&"k"===i.type&&(i.type="candlestick")})}var mc=["itemStyle","borderColor"],n1=["itemStyle","borderColor0"],fd=["itemStyle","borderColorDoji"],Lg=["itemStyle","color"],Fg=["itemStyle","color0"],r1={seriesType:"candlestick",plan:Zc(),performRawSeries:!0,reset:function(a,i){function n(d,h){return h.get(d>0?Lg:Fg)}function o(d,h){return h.get(0===d?fd:d>0?mc:n1)}if(!i.isSeriesFiltered(a))return!a.pipelineContext.large&&{progress:function(d,h){for(var f;null!=(f=d.next());){var p=h.getItemModel(f),g=h.getItemLayout(f).sign,v=p.getItemStyle();v.fill=n(g,p),v.stroke=o(g,p)||v.fill,_e(h.ensureUniqueItemVisual(f,"style"),v)}}}}};const lB=r1;var QW={seriesType:"candlestick",plan:Zc(),reset:function(a){var i=a.coordinateSystem,n=a.getData(),o=function JW(a,i){var o,n=a.getBaseAxis(),c="category"===n.type?n.getBandWidth():(o=n.getExtent(),Math.abs(o[1]-o[0])/i.count()),d=Ie(gt(a.get("barMaxWidth"),c),c),h=Ie(gt(a.get("barMinWidth"),1),c),f=a.get("barWidth");return null!=f?Ie(f,c):Math.max(Math.min(c/2,d),h)}(a,n),h=["x","y"],f=n.getDimensionIndex(n.mapDimension(h[0])),p=Se(n.mapDimensionsAll(h[1]),n.getDimensionIndex,n),g=p[0],v=p[1],_=p[2],y=p[3];if(n.setLayout({candleWidth:o,isSimpleBox:o<=1.3}),!(f<0||p.length<4))return{progress:a.pipelineContext.large?function x(S,D){for(var E,O,T=bs(4*S.count),A=0,k=[],L=[],B=D.getStore(),U=!!a.get(["itemStyle","borderColorDoji"]);null!=(O=S.next());){var j=B.get(f,O),W=B.get(g,O),$=B.get(v,O),X=B.get(_,O),K=B.get(y,O);isNaN(j)||isNaN(X)||isNaN(K)?(T[A++]=NaN,A+=3):(T[A++]=cB(B,O,W,$,v,U),k[0]=j,k[1]=X,E=i.dataToPoint(k,null,L),T[A++]=E?E[0]:NaN,T[A++]=E?E[1]:NaN,k[1]=K,E=i.dataToPoint(k,null,L),T[A++]=E?E[1]:NaN)}D.setLayout("largePoints",T)}:function w(S,D){for(var T,A=D.getStore();null!=(T=S.next());){var E=A.get(f,T),k=A.get(g,T),L=A.get(v,T),O=A.get(_,T),B=A.get(y,T),U=Math.min(k,L),j=Math.max(k,L),W=me(U,E),$=me(j,E),X=me(O,E),K=me(B,E),ee=[];ue(ee,$,0),ue(ee,W,1),ee.push(Pe(K),Pe($),Pe(X),Pe(W));var ie=!!D.getItemModel(T).get(["itemStyle","borderColorDoji"]);D.setItemLayout(T,{sign:cB(A,T,k,L,v,ie),initBaseline:k>L?$[1]:W[1],ends:ee,brushRect:(Le=O,We=B,Ke=E,Qe=void 0,At=void 0,Qe=me(Le,Ke),At=me(We,Ke),Qe[0]-=o/2,At[0]-=o/2,{x:Qe[0],y:Qe[1],width:o,height:At[1]-Qe[1]})})}var Le,We,Ke,Qe,At;function me(Le,We){var Ke=[];return Ke[0]=We,Ke[1]=Le,isNaN(We)||isNaN(Le)?[NaN,NaN]:i.dataToPoint(Ke)}function ue(Le,We,Ke){var Qe=We.slice(),At=We.slice();Qe[0]=Xw(Qe[0]+o/2,1,!1),At[0]=Xw(At[0]-o/2,1,!0),Ke?Le.push(Qe,At):Le.push(At,Qe)}function Pe(Le){return Le[0]=Xw(Le[0],1),Le}}}}};function cB(a,i,n,o,c,d){return n>o?-1:n0?a.get(c,i-1)<=o?1:-1:1}const e9=QW;function dB(a,i){var n=i.rippleEffectColor||i.color;a.eachChild(function(o){o.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?n:null,fill:"fill"===i.brushType?n:null}})})}var n9=function(a){function i(n,o){var c=a.call(this)||this,d=new by(n,o),h=new rt;return c.add(d),c.add(h),c.updateData(n,o),c}return de(i,a),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(n){for(var o=n.symbolType,c=n.color,d=n.rippleNumber,h=this.childAt(1),f=0;f0&&(f=this._getLineLength(d)/v*1e3),f!==this._period||p!==this._loop||g!==this._roundTrip){d.stopAnimation();var y=void 0;y=Xe(_)?_(c):_,d.__t>0&&(y=-f*d.__t),this._animateSymbol(d,f,y,p,g)}this._period=f,this._loop=p,this._roundTrip=g}},i.prototype._animateSymbol=function(n,o,c,d,h){if(o>0){n.__t=0;var f=this,p=n.animate("",d).when(h?2*o:o,{__t:h?2:1}).delay(c).during(function(){f._updateSymbolPosition(n)});d||p.done(function(){f.remove(n)}),p.start()}},i.prototype._getLineLength=function(n){return ks(n.__p1,n.__cp1)+ks(n.__cp1,n.__p2)},i.prototype._updateAnimationPoints=function(n,o){n.__p1=o[0],n.__p2=o[1],n.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},i.prototype.updateData=function(n,o,c){this.childAt(0).updateData(n,o,c),this._updateEffectSymbol(n,o)},i.prototype._updateSymbolPosition=function(n){var o=n.__p1,c=n.__p2,d=n.__cp1,h=n.__t<1?n.__t:2-n.__t,f=[n.x,n.y],p=f.slice(),g=Fr,v=nD;f[0]=g(o[0],d[0],c[0],h),f[1]=g(o[1],d[1],c[1],h);var _=n.__t<1?v(o[0],d[0],c[0],h):v(c[0],d[0],o[0],1-h),y=n.__t<1?v(o[1],d[1],c[1],h):v(c[1],d[1],o[1],1-h);n.rotation=-Math.atan2(y,_)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==n.__lastT&&n.__lastT=0&&!(d[p]<=o);p--);p=Math.min(p,h-2)}else{for(p=f;po);p++);p=Math.min(p-1,h-2)}var v=(o-d[p])/(d[p+1]-d[p]),_=c[p],y=c[p+1];n.x=_[0]*(1-v)+v*y[0],n.y=_[1]*(1-v)+v*y[1],n.rotation=-Math.atan2(n.__t<1?y[1]-_[1]:_[1]-y[1],n.__t<1?y[0]-_[0]:_[0]-y[0])-Math.PI/2,this._lastFrame=p,this._lastFramePercent=o,n.ignore=!1}},i}(hB);const NI=FI;var ul=function a(){this.polyline=!1,this.curveness=0,this.segs=[]},Ng=function(a){function i(n){var o=a.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(i,a),i.prototype.reset=function(){this.notClear=!1,this._off=0},i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ul},i.prototype.buildPath=function(n,o){var h,c=o.segs,d=o.curveness;if(o.polyline)for(h=this._off;h0){n.moveTo(c[h++],c[h++]);for(var p=1;p0?n.quadraticCurveTo((g+_)/2-(v-y)*d,(v+y)/2-(_-g)*d,_,y):n.lineTo(_,y)}this.incremental&&(this._off=h,this.notClear=!0)},i.prototype.findDataIndex=function(n,o){var c=this.shape,d=c.segs,h=c.curveness,f=this.style.lineWidth;if(c.polyline)for(var p=0,g=0;g0)for(var _=d[g++],y=d[g++],w=1;w0){if(qH(_,y,(_+x)/2-(y-S)*h,(y+S)/2-(x-_)*h,x,S,f,n,o))return p}else if(Ph(_,y,x,S,f,n,o))return p;p++}return-1},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o);return this.getBoundingRect().contain(n=c[0],o=c[1])?(this.hoverDataIdx=this.findDataIndex(n,o))>=0:(this.hoverDataIdx=-1,!1)},i.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var c=this.shape.segs,d=1/0,h=1/0,f=-1/0,p=-1/0,g=0;g0&&(h.dataIndex=p+i.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const pB=fB;var o9={seriesType:"lines",plan:Zc(),reset:function(a){var i=a.coordinateSystem;if(i){var n=a.get("polyline"),o=a.pipelineContext.large;return{progress:function(c,d){var h=[];if(o){var f=void 0,p=c.end-c.start;if(n){for(var g=0,v=c.start;v0&&(v||g.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),h.updateData(d);var _=n.get("clip",!0)&&Cy(n.coordinateSystem,!1,n);_?this.group.setClipPath(_):this.group.removeClipPath(),this._lastZlevel=f,this._finished=!0},i.prototype.incrementalPrepareRender=function(n,o,c){var d=n.getData();this._updateLineDraw(d,n).incrementalPrepareUpdate(d),this._clearLayer(c),this._finished=!1},i.prototype.incrementalRender=function(n,o,c){this._lineDraw.incrementalUpdate(n,o.getData()),this._finished=n.end===o.getData().count()},i.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},i.prototype.updateTransform=function(n,o,c){var d=n.getData(),h=n.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var f=Wn.reset(n,o,c);f.progress&&f.progress({start:0,end:d.count(),count:d.count()},d),this._lineDraw.updateLayout(),this._clearLayer(c)},i.prototype._updateLineDraw=function(n,o){var c=this._lineDraw,d=this._showEffect(o),h=!!o.get("polyline"),p=o.pipelineContext.large;return(!c||d!==this._hasEffet||h!==this._isPolyline||p!==this._isLargeDraw)&&(c&&c.remove(),c=this._lineDraw=p?new pB:new zC(h?d?NI:LI:d?hB:nI),this._hasEffet=d,this._isPolyline=h,this._isLargeDraw=p),this.group.add(c.group),c},i.prototype._showEffect=function(n){return!!n.get(["effect","show"])},i.prototype._clearLayer=function(n){var o=n.getZr();"svg"!==o.painter.getType()&&null!=this._lastZlevel&&o.painter.getLayer(this._lastZlevel).clear(!0)},i.prototype.remove=function(n,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},i.prototype.dispose=function(n,o){this.remove(n,o)},i.type="lines",i}(Rn);const BI=VI;var mB=typeof Uint32Array>"u"?Array:Uint32Array,zI=typeof Float64Array>"u"?Array:Float64Array;function HI(a){var i=a.data;i&&i[0]&&i[0][0]&&i[0][0].coord&&(a.data=Se(i,function(n){var c={coords:[n[0].coord,n[1].coord]};return n[0].name&&(c.fromName=n[0].name),n[1].name&&(c.toName=n[1].name),Xb([c,n[0],n[1]])}))}var UI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return de(i,a),i.prototype.init=function(n){n.data=n.data||[],HI(n);var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count)),a.prototype.init.apply(this,arguments)},i.prototype.mergeOption=function(n){if(HI(n),n.data){var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count))}a.prototype.mergeOption.apply(this,arguments)},i.prototype.appendData=function(n){var o=this._processFlatCoordsArray(n.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=wn(this._flatCoords,o.flatCoords),this._flatCoordsOffset=wn(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),n.data=new Float32Array(o.count)),this.getRawData().appendData(n.data)},i.prototype._getCoordsFromItemModel=function(n){var o=this.getData().getItemModel(n);return o.option instanceof Array?o.option:o.getShallow("coords")},i.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[2*n+1]:this._getCoordsFromItemModel(n).length},i.prototype.getLineCoords=function(n,o){if(this._flatCoordsOffset){for(var c=this._flatCoordsOffset[2*n],d=this._flatCoordsOffset[2*n+1],h=0;h ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get("progressive"))},i.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get("progressiveThreshold"))},i.prototype.getZLevelKey=function(){var n=this.getModel("effect"),o=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&o>0?o+"":""},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},i}(Xn);const jI=UI;function ob(a){return a instanceof Array||(a=[a,a]),a}var GI={seriesType:"lines",reset:function(a){var i=ob(a.get("symbol")),n=ob(a.get("symbolSize")),o=a.getData();return o.setVisual("fromSymbol",i&&i[0]),o.setVisual("toSymbol",i&&i[1]),o.setVisual("fromSymbolSize",n&&n[0]),o.setVisual("toSymbolSize",n&&n[1]),{dataEach:o.hasItemOption?function c(d,h){var f=d.getItemModel(h),p=ob(f.getShallow("symbol",!0)),g=ob(f.getShallow("symbolSize",!0));p[0]&&d.setItemVisual(h,"fromSymbol",p[0]),p[1]&&d.setItemVisual(h,"toSymbol",p[1]),g[0]&&d.setItemVisual(h,"fromSymbolSize",g[0]),g[1]&&d.setItemVisual(h,"toSymbolSize",g[1])}:null}}};const s9=GI;var l9=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=bt.createCanvas();this.canvas=i}return a.prototype.update=function(i,n,o,c,d,h){var f=this._getBrush(),p=this._getGradient(d,"inRange"),g=this._getGradient(d,"outOfRange"),v=this.pointSize+this.blurSize,_=this.canvas,y=_.getContext("2d"),w=i.length;_.width=n,_.height=o;for(var x=0;x0){var X=h(E)?p:g;E>0&&(E=E*W+U),L[O++]=X[$],L[O++]=X[$+1],L[O++]=X[$+2],L[O++]=X[$+3]*E*256}else O+=4}return y.putImageData(k,0,0),_},a.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=bt.createCanvas()),n=this.pointSize+this.blurSize,o=2*n;i.width=o,i.height=o;var c=i.getContext("2d");return c.clearRect(0,0,o,o),c.shadowOffsetX=o,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-n,n,this.pointSize,0,2*Math.PI,!0),c.closePath(),c.fill(),i},a.prototype._getGradient=function(i,n){for(var o=this._gradientPixels,c=o[n]||(o[n]=new Uint8ClampedArray(1024)),d=[0,0,0,0],h=0,f=0;f<256;f++)i[n](f/255,!0,d),c[h++]=d[0],c[h++]=d[1],c[h++]=d[2],c[h++]=d[3];return c},a}();const sb=l9;function o1(a){var i=a.dimensions;return"lng"===i[0]&&"lat"===i[1]}var vB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d;o.eachComponent("visualMap",function(f){f.eachTargetSeries(function(p){p===n&&(d=f)})}),this._progressiveEls=null,this.group.removeAll();var h=n.coordinateSystem;"cartesian2d"===h.type||"calendar"===h.type?this._renderOnCartesianAndCalendar(n,c,0,n.getData().count()):o1(h)&&this._renderOnGeo(h,n,d,c)},i.prototype.incrementalPrepareRender=function(n,o,c){this.group.removeAll()},i.prototype.incrementalRender=function(n,o,c,d){var h=o.coordinateSystem;h&&(o1(h)?this.render(o,c,d):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,d,n.start,n.end,!0)))},i.prototype.eachRendered=function(n){Kc(this._progressiveEls||this.group,n)},i.prototype._renderOnCartesianAndCalendar=function(n,o,c,d,h){var g,v,_,y,f=n.coordinateSystem,p=ug(f,"cartesian2d");if(p){var w=f.getAxis("x"),x=f.getAxis("y");g=w.getBandWidth()+.5,v=x.getBandWidth()+.5,_=w.scale.getExtent(),y=x.scale.getExtent()}for(var S=this.group,D=n.getData(),T=n.getModel(["emphasis","itemStyle"]).getItemStyle(),A=n.getModel(["blur","itemStyle"]).getItemStyle(),E=n.getModel(["select","itemStyle"]).getItemStyle(),k=n.get(["itemStyle","borderRadius"]),L=Sr(n),O=n.getModel("emphasis"),B=O.get("focus"),U=O.get("blurScope"),j=O.get("disabled"),W=p?[D.mapDimension("x"),D.mapDimension("y"),D.mapDimension("value")]:[D.mapDimension("time"),D.mapDimension("value")],$=c;$_[1]||tey[1])continue;var ie=f.dataToPoint([ee,te]);X=new _t({shape:{x:ie[0]-g/2,y:ie[1]-v/2,width:g,height:v},style:K})}else{if(isNaN(D.get(W[1],$)))continue;X=new _t({z2:1,shape:f.dataToRect([D.get(W[0],$)]).contentShape,style:K})}if(D.hasItemOption){var me=D.getItemModel($),ue=me.getModel("emphasis");T=ue.getModel("itemStyle").getItemStyle(),A=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),k=me.get(["itemStyle","borderRadius"]),B=ue.get("focus"),U=ue.get("blurScope"),j=ue.get("disabled"),L=Sr(me)}X.shape.r=k;var we=n.getRawValue($),Pe="-";we&&null!=we[2]&&(Pe=we[2]+""),Oa(X,L,{labelFetcher:n,labelDataIndex:$,defaultOpacity:K.opacity,defaultText:Pe}),X.ensureState("emphasis").style=T,X.ensureState("blur").style=A,X.ensureState("select").style=E,Oi(X,B,U,j),X.incremental=h,h&&(X.states.emphasis.hoverLayer=!0),S.add(X),D.setItemGraphicEl($,X),this._progressiveEls&&this._progressiveEls.push(X)}},i.prototype._renderOnGeo=function(n,o,c,d){var h=c.targetVisuals.inRange,f=c.targetVisuals.outOfRange,p=o.getData(),g=this._hmLayer||this._hmLayer||new sb;g.blurSize=o.get("blurSize"),g.pointSize=o.get("pointSize"),g.minOpacity=o.get("minOpacity"),g.maxOpacity=o.get("maxOpacity");var v=n.getViewRect().clone(),_=n.getRoamTransform();v.applyTransform(_);var y=Math.max(v.x,0),w=Math.max(v.y,0),x=Math.min(v.width+v.x,d.getWidth()),S=Math.min(v.height+v.y,d.getHeight()),D=x-y,T=S-w,A=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],E=p.mapArray(A,function(B,U,j){var W=n.dataToPoint([B,U]);return W[0]-=y,W[1]-=w,W.push(j),W}),k=c.getExtent(),L="visualMap.continuous"===c.type?function d9(a,i){var n=a[1]-a[0];return i=[(i[0]-a[0])/n,(i[1]-a[0])/n],function(o){return o>=i[0]&&o<=i[1]}}(k,c.option.range):function c9(a,i,n){var o=a[1]-a[0],c=(i=Se(i,function(h){return{interval:[(h.interval[0]-a[0])/o,(h.interval[1]-a[0])/o]}})).length,d=0;return function(h){var f;for(f=d;f=0;f--){var p;if((p=i[f].interval)[0]<=h&&h<=p[1]){d=f;break}}return f>=0&&f0?1:-1})(n,d,c,o,y),function g9(a,i,n,o,c,d,h,f,p,g){var x,v=p.valueDim,_=p.categoryDim,y=Math.abs(n[_.wh]),w=a.getItemVisual(i,"symbolSize");(x=ye(w)?w.slice():null==w?["100%","100%"]:[w,w])[_.index]=Ie(x[_.index],y),x[v.index]=Ie(x[v.index],o?y:Math.abs(d)),g.symbolSize=x,(g.symbolScale=[x[0]/f,x[1]/f])[v.index]*=(p.isHorizontal?-1:1)*h}(a,i,c,d,0,y.boundingLength,y.pxSign,v,o,y),function v9(a,i,n,o,c){var d=a.get(h9)||0;d&&(wB.attr({scaleX:i[0],scaleY:i[1],rotation:n}),wB.updateTransform(),d/=wB.getLineScale(),d*=i[o.valueDim.index]),c.valueLineWidth=d||0}(n,y.symbolScale,g,o,y);var w=y.symbolSize,x=pf(n.get("symbolOffset"),w);return function WI(a,i,n,o,c,d,h,f,p,g,v,_){var y=v.categoryDim,w=v.valueDim,x=_.pxSign,S=Math.max(i[w.index]+f,0),D=S;if(o){var T=Math.abs(p),A=it(a.get("symbolMargin"),"15%")+"",E=!1;A.lastIndexOf("!")===A.length-1&&(E=!0,A=A.slice(0,A.length-1));var k=Ie(A,i[w.index]),L=Math.max(S+2*k,0),O=E?0:2*k,B=Sh(o),U=B?o:Ug((T+O)/L);L=S+2*(k=(T-U*S)/2/(E?U:Math.max(U-1,1))),O=E?0:2*k,!B&&"fixed"!==o&&(U=g?Ug((Math.abs(g)+O)/L):0),D=U*L-O,_.repeatTimes=U,_.symbolMargin=k}var W=x*(D/2),$=_.pathPosition=[];$[y.index]=n[y.wh]/2,$[w.index]="start"===h?W:"end"===h?p-W:p/2,d&&($[0]+=d[0],$[1]+=d[1]);var X=_.bundlePosition=[];X[y.index]=n[y.xy],X[w.index]=n[w.xy];var K=_.barRectShape=_e({},n);K[w.wh]=x*Math.max(Math.abs(n[w.wh]),Math.abs($[w.index]+W)),K[y.wh]=n[y.wh];var ee=_.clipShape={};ee[y.xy]=-n[y.xy],ee[y.wh]=v.ecSize[y.wh],ee[w.xy]=0,ee[w.wh]=n[w.wh]}(n,w,c,d,0,x,f,y.valueLineWidth,y.boundingLength,y.repeatCutLength,o,y),y}function xB(a,i){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(i)))}function hl(a){var i=a.symbolPatternSize,n=ji(a.symbolType,-i/2,-i/2,i,i);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function CB(a,i,n,o){var c=a.__pictorialBundle,f=n.pathPosition,p=i.valueDim,g=n.repeatTimes||0,v=0,_=n.symbolSize[i.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for($I(a,function(S){S.__pictorialAnimationIndex=v,S.__pictorialRepeatTimes=g,v0:T<0)&&(A=g-1-S),D[p.index]=_*(A-g/2+.5)+f[p.index],{x:D[0],y:D[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Vg(a,i,n,o){var c=a.__pictorialBundle,d=a.__pictorialMainPath;d?zg(d,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,o):(d=a.__pictorialMainPath=hl(n),c.add(d),zg(d,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,o))}function _9(a,i,n){var o=_e({},i.barRectShape),c=a.__pictorialBarRect;c?zg(c,null,{shape:o},i,n):((c=a.__pictorialBarRect=new _t({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,a.add(c))}function SB(a,i,n,o){if(n.symbolClip){var c=a.__pictorialClipPath,d=_e({},n.clipShape),h=i.valueDim,f=n.animationModel,p=n.dataIndex;if(c)zt(c,{shape:d},f,p);else{d[h.wh]=0,c=new _t({shape:d}),a.__pictorialBundle.setClipPath(c),a.__pictorialClipPath=c;var g={};g[h.wh]=n.clipShape[h.wh],Gt[o?"updateProps":"initProps"](c,{shape:g},f,p)}}}function DB(a,i){var n=a.getItemModel(i);return n.getAnimationDelayParams=TB,n.isAnimationEnabled=s1,n}function TB(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function s1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function MB(a,i,n,o){var c=new rt,d=new rt;return c.add(d),c.__pictorialBundle=d,d.x=n.bundlePosition[0],d.y=n.bundlePosition[1],n.symbolRepeat?CB(c,i,n):Vg(c,0,n),_9(c,n,o),SB(c,i,n,o),c.__pictorialShapeStr=Bg(a,n),c.__pictorialSymbolMeta=n,c}function Jf(a,i,n,o){var c=o.__pictorialBarRect;c&&c.removeTextContent();var d=[];$I(o,function(h){d.push(h)}),o.__pictorialMainPath&&d.push(o.__pictorialMainPath),o.__pictorialClipPath&&(n=null),G(d,function(h){Hc(h,{scaleX:0,scaleY:0},n,i,function(){o.parent&&o.parent.remove(o)})}),a.setItemGraphicEl(i,null)}function Bg(a,i){return[a.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function $I(a,i,n){G(a.__pictorialBundle.children(),function(o){o!==a.__pictorialBarRect&&i.call(n,o)})}function zg(a,i,n,o,c,d){i&&a.attr(i),o.symbolClip&&!c?n&&a.attr(n):n&&Gt[c?"updateProps":"initProps"](a,n,o.animationModel,o.dataIndex,d)}function Hg(a,i,n){var o=n.dataIndex,c=n.itemModel,d=c.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle(),f=c.getModel(["blur","itemStyle"]).getItemStyle(),p=c.getModel(["select","itemStyle"]).getItemStyle(),g=c.getShallow("cursor"),v=d.get("focus"),_=d.get("blurScope"),y=d.get("scale");$I(a,function(S){if(S instanceof Jr){var D=S.style;S.useStyle(_e({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},n.style))}else S.useStyle(n.style);var T=S.ensureState("emphasis");T.style=h,y&&(T.scaleX=1.1*S.scaleX,T.scaleY=1.1*S.scaleY),S.ensureState("blur").style=f,S.ensureState("select").style=p,g&&(S.cursor=g),S.z2=n.z2});var w=i.valueDim.posDesc[+(n.boundingLength>0)];Oa(a.__pictorialBarRect,Sr(c),{labelFetcher:i.seriesModel,labelDataIndex:o,defaultText:yy(i.seriesModel.getData(),o),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:w}),Oi(a,v,_,d.get("disabled"))}function Ug(a){var i=Math.round(a);return Math.abs(a-i)<1e-4?i:Math.ceil(a)}const b9=VQ;var w9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return de(i,a),i.prototype.getInitialData=function(n){return n.stack=null,a.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=Ho(fg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(fg);const x9=w9;var S9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._layers=[],n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this,f=this.group,p=n.getLayerSeries(),g=d.getLayout("layoutInfo"),v=g.rect,_=g.boundaryGap;function y(D){return D.name}f.x=0,f.y=v.y+_[0];var w=new Qc(this._layersSeries||[],p,y,y),x=[];function S(D,T,A){var E=h._layers;if("remove"!==D){for(var O,k=[],L=[],B=p[T].indices,U=0;Ud&&(d=f),o.push(f)}for(var g=0;gd&&(d=_)}return{y0:c,max:d}}(f),g=p.y0,v=n/p.max,_=c.length,y=c[0].indices.length,x=0;xMath.PI/2?"right":"left"):X&&"center"!==X?"left"===X?(W=h.r0+$,p>Math.PI/2&&(X="right")):"right"===X&&(W=h.r-$,p>Math.PI/2&&(X="left")):(W=f===2*Math.PI&&0===h.r0?0:(h.r+h.r0)/2,X="center"),k.style.align=X,k.style.verticalAlign=D(A,"verticalAlign")||"middle",k.x=W*g+h.cx,k.y=W*v+h.cy;var K=D(A,"rotate"),ee=0;"radial"===K?(ee=Us(-p))>Math.PI/2&&ee<1.5*Math.PI&&(ee+=Math.PI):"tangential"===K?(ee=Math.PI/2-p)>Math.PI/2?ee-=Math.PI:ee<-Math.PI/2&&(ee+=Math.PI):on(K)&&(ee=K*Math.PI/180),k.rotation=Us(ee)}),y.dirtyStyle()},i}(jr);const IB=I9;var qI="sunburstRootToNode",kB="sunburstHighlight",ZI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this;this.seriesModel=n,this.api=c,this.ecModel=o;var f=n.getData(),p=f.tree.root,g=n.getViewRoot(),v=this.group,_=n.get("renderLabelForZeroData"),y=[];g.eachNode(function(A){y.push(A)}),function x(A,E){function k(O){return O.getId()}function L(O,B){!function S(A,E){if(!_&&A&&!A.getValue()&&(A=null),A!==p&&E!==p)if(E&&E.piece)A?(E.piece.updateData(!1,A,n,o,c),f.setItemGraphicEl(A.dataIndex,E.piece)):function D(A){A&&A.piece&&(v.remove(A.piece),A.piece=null)}(E);else if(A){var k=new IB(A,n,o,c);v.add(k),f.setItemGraphicEl(A.dataIndex,k)}}(null==O?null:A[O],null==B?null:E[B])}0===A.length&&0===E.length||new Qc(E,A,k,k).add(L).update(L).remove(ct(L,null)).execute()}(y,this._oldChildren||[]),function T(A,E){E.depth>0?(h.virtualPiece?h.virtualPiece.updateData(!1,A,n,o,c):(h.virtualPiece=new IB(A,n,o,c),v.add(h.virtualPiece)),E.piece.off("click"),h.virtualPiece.on("click",function(k){h._rootToNode(E.parentNode)})):h.virtualPiece&&(v.remove(h.virtualPiece),h.virtualPiece=null)}(p,g),this._initEvents(),this._oldChildren=y},i.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(o){var c=!1;n.seriesModel.getViewRoot().eachNode(function(h){if(!c&&h.piece&&h.piece===o.target){var f=h.getModel().get("nodeClick");if("rootToNode"===f)n._rootToNode(h);else if("link"===f){var p=h.getModel(),g=p.get("link");g&&Cw(g,p.get("target",!0)||"_blank")}c=!0}})})},i.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:qI,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},i.prototype.containPoint=function(n,o){var d=o.getData().getItemLayout(0);if(d){var h=n[0]-d.cx,f=n[1]-d.cy,p=Math.sqrt(h*h+f*f);return p<=d.r&&p>=d.r0}},i.type="sunburst",i}(Rn);const XI=ZI;var Gg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.ignoreStyleOnData=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){var c={name:n.name,children:n.data};P9(c);var d=this._levelModels=Se(n.levels||[],function(p){return new Un(p,this,o)},this),h=PV.createTree(c,this,function f(p){p.wrapMethod("getItemModel",function(g,v){var _=h.getNodeByDataIndex(v),y=d[_.depth];return y&&(g.parentModel=y),g})});return h.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treePathInfo=Vf(c,this),o},i.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},i.prototype.enableAriaDecal=function(){SC(this)},i.type="series.sunburst",i.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},i}(Xn);function P9(a){var i=0;G(a.children,function(o){P9(o);var c=o.value;ye(c)&&(c=c[0]),i+=c});var n=a.value;ye(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=i),n<0&&(n=0),ye(a.value)?a.value[0]=n:a.value=n}const R9=Gg;var RB=Math.PI/180;function O9(a,i,n){i.eachSeriesByType(a,function(o){var c=o.get("center"),d=o.get("radius");ye(d)||(d=[0,d]),ye(c)||(c=[c,c]);var h=n.getWidth(),f=n.getHeight(),p=Math.min(h,f),g=Ie(c[0],h),v=Ie(c[1],f),_=Ie(d[0],p/2),y=Ie(d[1],p/2),w=-o.get("startAngle")*RB,x=o.get("minAngle")*RB,S=o.getData().tree.root,D=o.getViewRoot(),T=D.depth,A=o.get("sort");null!=A&&c1(D,A);var E=0;G(D.children,function(ie){!isNaN(ie.getValue())&&E++});var k=D.getValue(),L=Math.PI/(k||E)*2,O=D.depth>0,U=(y-_)/(D.height-(O?-1:1)||1),j=o.get("clockwise"),W=o.get("stillShowZeroSum"),$=j?1:-1,X=function(ie,me){if(ie){var ue=me;if(ie!==S){var we=ie.getValue(),Pe=0===k&&W?L:we*L;Pe1;)h=h.parentNode;var f=c.getColorFromPalette(h.name||h.dataIndex+"",i);return o.depth>1&&Ae(f)&&(f=g0(f,(o.depth-1)/(d-1)*.5)),f}(h,o,d.root.height)),_e(c.ensureUniqueItemVisual(h.dataIndex,"style"),p)})})}var QI={color:"fill",borderColor:"stroke"},N9={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},pd=qt(),V9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(n,o){return el(null,this)},i.prototype.getDataParams=function(n,o,c){var d=a.prototype.getDataParams.call(this,n,o);return c&&(d.info=pd(c).info),d},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},i}(Xn);const B9=V9;function d1(a,i){return i=i||[0,0],Se(["x","y"],function(n,o){var c=this.getAxis(n),d=i[o],h=a[o]/2;return"category"===c.type?c.getBandWidth():Math.abs(c.dataToCoord(d-h)-c.dataToCoord(d+h))},this)}function H9(a,i){return i=i||[0,0],Se([0,1],function(n){var o=i[n],c=a[n]/2,d=[],h=[];return d[n]=o-c,h[n]=o+c,d[1-n]=h[1-n]=i[1-n],Math.abs(this.dataToPoint(d)[n]-this.dataToPoint(h)[n])},this)}function j9(a,i){var n=this.getAxis(),o=i instanceof Array?i[0]:i,c=(a instanceof Array?a[0]:a)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(o-c)-n.dataToCoord(o+c))}function W9(a,i){return i=i||[0,0],Se(["Radius","Angle"],function(n,o){var d=this["get"+n+"Axis"](),h=i[o],f=a[o]/2,p="category"===d.type?d.getBandWidth():Math.abs(d.dataToCoord(h-f)-d.dataToCoord(h+f));return"Angle"===n&&(p=p*Math.PI/180),p},this)}function Z9(a,i,n,o){return a&&(a.legacy||!1!==a.legacy&&!n&&!o&&"tspan"!==i&&("text"===i||Ue(a,"text")))}function OB(a,i,n){var c,d,h,o=a;if("text"===i)h=o;else{h={},Ue(o,"text")&&(h.text=o.text),Ue(o,"rich")&&(h.rich=o.rich),Ue(o,"textFill")&&(h.fill=o.textFill),Ue(o,"textStroke")&&(h.stroke=o.textStroke),Ue(o,"fontFamily")&&(h.fontFamily=o.fontFamily),Ue(o,"fontSize")&&(h.fontSize=o.fontSize),Ue(o,"fontStyle")&&(h.fontStyle=o.fontStyle),Ue(o,"fontWeight")&&(h.fontWeight=o.fontWeight),d={type:"text",style:h,silent:!0},c={};var f=Ue(o,"textPosition");n?c.position=f?o.textPosition:"inside":f&&(c.position=o.textPosition),Ue(o,"textPosition")&&(c.position=o.textPosition),Ue(o,"textOffset")&&(c.offset=o.textOffset),Ue(o,"textRotation")&&(c.rotation=o.textRotation),Ue(o,"textDistance")&&(c.distance=o.textDistance)}return LB(h,a),G(h.rich,function(p){LB(p,p)}),{textConfig:c,textContent:d}}function LB(a,i){i&&(i.font=i.textFont||i.font,Ue(i,"textStrokeWidth")&&(a.lineWidth=i.textStrokeWidth),Ue(i,"textAlign")&&(a.align=i.textAlign),Ue(i,"textVerticalAlign")&&(a.verticalAlign=i.textVerticalAlign),Ue(i,"textLineHeight")&&(a.lineHeight=i.textLineHeight),Ue(i,"textWidth")&&(a.width=i.textWidth),Ue(i,"textHeight")&&(a.height=i.textHeight),Ue(i,"textBackgroundColor")&&(a.backgroundColor=i.textBackgroundColor),Ue(i,"textPadding")&&(a.padding=i.textPadding),Ue(i,"textBorderColor")&&(a.borderColor=i.textBorderColor),Ue(i,"textBorderWidth")&&(a.borderWidth=i.textBorderWidth),Ue(i,"textBorderRadius")&&(a.borderRadius=i.textBorderRadius),Ue(i,"textBoxShadowColor")&&(a.shadowColor=i.textBoxShadowColor),Ue(i,"textBoxShadowBlur")&&(a.shadowBlur=i.textBoxShadowBlur),Ue(i,"textBoxShadowOffsetX")&&(a.shadowOffsetX=i.textBoxShadowOffsetX),Ue(i,"textBoxShadowOffsetY")&&(a.shadowOffsetY=i.textBoxShadowOffsetY))}function FB(a,i,n){var o=a;o.textPosition=o.textPosition||n.position||"inside",null!=n.offset&&(o.textOffset=n.offset),null!=n.rotation&&(o.textRotation=n.rotation),null!=n.distance&&(o.textDistance=n.distance);var c=o.textPosition.indexOf("inside")>=0,d=a.fill||"#000";NB(o,i);var h=null==o.textFill;return c?h&&(o.textFill=n.insideFill||"#fff",!o.textStroke&&n.insideStroke&&(o.textStroke=n.insideStroke),!o.textStroke&&(o.textStroke=d),null==o.textStrokeWidth&&(o.textStrokeWidth=2)):(h&&(o.textFill=a.fill||n.outsideFill||"#000"),!o.textStroke&&n.outsideStroke&&(o.textStroke=n.outsideStroke)),o.text=i.text,o.rich=i.rich,G(i.rich,function(f){NB(f,f)}),o}function NB(a,i){i&&(Ue(i,"fill")&&(a.textFill=i.fill),Ue(i,"stroke")&&(a.textStroke=i.fill),Ue(i,"lineWidth")&&(a.textStrokeWidth=i.lineWidth),Ue(i,"font")&&(a.font=i.font),Ue(i,"fontStyle")&&(a.fontStyle=i.fontStyle),Ue(i,"fontWeight")&&(a.fontWeight=i.fontWeight),Ue(i,"fontSize")&&(a.fontSize=i.fontSize),Ue(i,"fontFamily")&&(a.fontFamily=i.fontFamily),Ue(i,"align")&&(a.textAlign=i.align),Ue(i,"verticalAlign")&&(a.textVerticalAlign=i.verticalAlign),Ue(i,"lineHeight")&&(a.textLineHeight=i.lineHeight),Ue(i,"width")&&(a.textWidth=i.width),Ue(i,"height")&&(a.textHeight=i.height),Ue(i,"backgroundColor")&&(a.textBackgroundColor=i.backgroundColor),Ue(i,"padding")&&(a.textPadding=i.padding),Ue(i,"borderColor")&&(a.textBorderColor=i.borderColor),Ue(i,"borderWidth")&&(a.textBorderWidth=i.borderWidth),Ue(i,"borderRadius")&&(a.textBorderRadius=i.borderRadius),Ue(i,"shadowColor")&&(a.textBoxShadowColor=i.shadowColor),Ue(i,"shadowBlur")&&(a.textBoxShadowBlur=i.shadowBlur),Ue(i,"shadowOffsetX")&&(a.textBoxShadowOffsetX=i.shadowOffsetX),Ue(i,"shadowOffsetY")&&(a.textBoxShadowOffsetY=i.shadowOffsetY),Ue(i,"textShadowColor")&&(a.textShadowColor=i.textShadowColor),Ue(i,"textShadowBlur")&&(a.textShadowBlur=i.textShadowBlur),Ue(i,"textShadowOffsetX")&&(a.textShadowOffsetX=i.textShadowOffsetX),Ue(i,"textShadowOffsetY")&&(a.textShadowOffsetY=i.textShadowOffsetY))}var VB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},BB=Wt(VB),lb=(ln(yo,function(a,i){return a[i]=1,a},{}),yo.join(", "),["","style","shape","extra"]),Wg=qt();function Lu(a,i,n,o,c){var d=a+"Animation",h=am(a,o,c)||{},f=Wg(i).userDuring;return h.duration>0&&(h.during=f?he(Q9,{el:i,userDuring:f}):null,h.setToFinal=!0,h.scope=a),_e(h,n[d]),h}function md(a,i,n,o){var c=(o=o||{}).dataIndex,d=o.isInit,h=o.clearStyle,f=n.isAnimationEnabled(),p=Wg(a),g=i.style;p.userDuring=i.during;var v={},_={};if(function e$(a,i,n){for(var o=0;o=0)){var y=a.getAnimationStyleProps(),w=y?y.style:null;if(w){!d&&(d=o.style={});var x=Wt(n);for(g=0;g0&&a.animateFrom(y,w)}else!function JI(a,i,n,o,c){if(c){var d=Lu("update",a,i,o,n);d.duration>0&&a.animateFrom(c,d)}}(a,i,c||0,n,v);u1(a,i),g?a.dirty():a.markRedraw()}function u1(a,i){for(var n=Wg(a).leaveToProps,o=0;o=0){!h&&(h=o[a]={});var w=Wt(d);for(v=0;vo[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:function(c){var d=i.dataToRadius(c[0]),h=n.dataToAngle(c[1]),f=a.coordToPoint([d,h]);return f.push(d,h*Math.PI/180),f},size:he(W9,a)}}},calendar:function Y9(a){var i=a.getRect(),n=a.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(o,c){return a.dataToPoint(o,c)}}}}};function db(a){return a instanceof It}function p1(a){return a instanceof zo}var qB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){this._progressiveEls=null;var h=this._data,f=n.getData(),p=this.group,g=ak(n,f,o,c);h||p.removeAll(),f.diff(h).add(function(_){sk(c,null,_,g(_,d),n,p,f)}).remove(function(_){var y=h.getItemGraphicEl(_);y&&h1(y,pd(y).option,n)}).update(function(_,y){var w=h.getItemGraphicEl(y);sk(c,w,_,g(_,d),n,p,f)}).execute();var v=n.get("clip",!0)?Cy(n.coordinateSystem,!1,n):null;v?p.setClipPath(v):p.removeClipPath(),this._data=f},i.prototype.incrementalPrepareRender=function(n,o,c){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(n,o,c,d,h){var f=o.getData(),p=ak(o,f,c,d),g=this._progressiveEls=[];function v(w){w.isGroup||(w.incremental=!0,w.ensureState("emphasis").hoverLayer=!0)}for(var _=n.start;_=0?i.getStore().get(me,te):void 0}var ue=i.get(ie.name,te),we=ie&&ie.ordinalMeta;return we?we.categories[ue]:ue},styleEmphasis:function B(ee,te){null==te&&(te=g);var ie=A(te,gd).getItemStyle(),me=E(te,gd),ue=Zn(me,null,null,!0,!0);ue.text=me.getShallow("show")?Ro(a.getFormattedLabel(te,gd),a.getFormattedLabel(te,Xr),yy(i,te)):null;var we=dw(me,null,!0);return j(ee,ie),ie=FB(ie,ue,we),ee&&U(ie,ee),ie.legacy=!0,ie},visual:function W(ee,te){if(null==te&&(te=g),Ue(QI,ee)){var ie=i.getItemVisual(te,"style");return ie?ie[QI[ee]]:null}if(Ue(N9,ee))return i.getItemVisual(te,ee)},barLayout:function $(ee){if("cartesian2d"===d.type)return function IF(a){var i=[],n=a.axis,o="axis0";if("category"===n.type){for(var c=n.getBandWidth(),d=0;d=v;w--){var x=i.childAt(w);l$(i,x,c)}}}(a,g,n,o,c),h>=0?d.replaceAt(g,h):d.add(g),g}function r$(a,i,n){var o=pd(a),c=i.type,d=i.shape,h=i.style;return n.isUniversalTransitionEnabled()||null!=c&&c!==o.customGraphicType||"path"===c&&function c$(a){return a&&(Ue(a,"pathData")||Ue(a,"d"))}(d)&&t5(d)!==o.customPathData||"image"===c&&Ue(h,"image")&&h.image!==o.customImagePath}function o$(a,i,n){var o=i?ck(a,i):a,c=i?QB(a,o,gd):a.style,d=a.type,h=o?o.textConfig:null,f=a.textContent,p=f?i?ck(f,i):f:null;if(c&&(n.isLegacy||Z9(c,d,!!h,!!p))){n.isLegacy=!0;var g=OB(c,d,!i);!h&&g.textConfig&&(h=g.textConfig),!p&&g.textContent&&(p=g.textContent)}!i&&p&&!p.type&&(p.type="text");var _=i?n[i]:n.normal;_.cfg=h,_.conOpt=p}function ck(a,i){return i?a?a[i]:null:a}function QB(a,i,n){var o=i&&i.style;return null==o&&n===gd&&a&&(o=a.styleEmphasis),o}function l$(a,i,n){i&&h1(i,pd(a).option,n)}function dk(a,i){return(a&&a.name)??jQ+i}function JB(a,i){var n=this.context;lk(n.api,null!=i?n.oldChildren[i]:null,n.dataIndex,null!=a?n.newChildren[a]:null,n.seriesModel,n.group)}function e5(a){var i=this.context,n=i.oldChildren[a];n&&h1(n,pd(n).option,i.seriesModel)}function t5(a){return a&&(a.pathData||a.d)}var tp=qt(),n5=nt,m1=he,u$=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(i,n,o,c){var d=n.get("value"),h=n.get("status");if(this._axisModel=i,this._axisPointerModel=n,this._api=o,c||this._lastValue!==d||this._lastStatus!==h){this._lastValue=d,this._lastStatus=h;var f=this._group,p=this._handle;if(!h||"hide"===h)return f&&f.hide(),void(p&&p.hide());f&&f.show(),p&&p.show();var g={};this.makeElOption(g,d,i,n,o);var v=g.graphicKey;v!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=v;var _=this._moveAnimation=this.determineAnimation(i,n);if(f){var y=ct(h$,n,_);this.updatePointerEl(f,g,y),this.updateLabelEl(f,g,y,n)}else f=this._group=new rt,this.createPointerEl(f,g,i,n),this.createLabelEl(f,g,i,n),o.getZr().add(f);m$(f,n,!0),this._renderHandle(d)}},a.prototype.remove=function(i){this.clear(i)},a.prototype.dispose=function(i){this.clear(i)},a.prototype.determineAnimation=function(i,n){var o=n.get("animation"),c=i.axis,d="category"===c.type,h=n.get("snap");if(!h&&!d)return!1;if("auto"===o||null==o){var f=this.animationThreshold;if(d&&c.getBandWidth()>f)return!0;if(h){var p=Ln(i).seriesDataCount,g=c.getExtent();return Math.abs(g[0]-g[1])/p>f}return!1}return!0===o},a.prototype.makeElOption=function(i,n,o,c,d){},a.prototype.createPointerEl=function(i,n,o,c){var d=n.pointer;if(d){var h=tp(i).pointerEl=new Gt[d.type](n5(n.pointer));i.add(h)}},a.prototype.createLabelEl=function(i,n,o,c){if(n.label){var d=tp(i).labelEl=new Zt(n5(n.label));i.add(d),p$(d,c)}},a.prototype.updatePointerEl=function(i,n,o){var c=tp(i).pointerEl;c&&n.pointer&&(c.setStyle(n.pointer.style),o(c,{shape:n.pointer.shape}))},a.prototype.updateLabelEl=function(i,n,o,c){var d=tp(i).labelEl;d&&(d.setStyle(n.label.style),o(d,{x:n.label.x,y:n.label.y}),p$(d,c))},a.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var f,n=this._axisPointerModel,o=this._api.getZr(),c=this._handle,d=n.getModel("handle"),h=n.get("status");if(!d.get("show")||!h||"hide"===h)return c&&o.remove(c),void(this._handle=null);this._handle||(f=!0,c=this._handle=Ks(d.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(g){Ps(g.event)},onmousedown:m1(this._onHandleDragMove,this,0,0),drift:m1(this._onHandleDragMove,this),ondragend:m1(this._onHandleDragEnd,this)}),o.add(c)),m$(c,n,!1),c.setStyle(d.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var p=d.get("size");ye(p)||(p=[p,p]),c.scaleX=p[0]/2,c.scaleY=p[1]/2,rf(this,"_doDispatchAxisPointer",d.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,f)}},a.prototype._moveHandleToValue=function(i,n){h$(this._axisPointerModel,!n&&this._moveAnimation,this._handle,r5(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(i,n){var o=this._handle;if(o){this._dragging=!0;var c=this.updateHandleTransform(r5(o),[i,n],this._axisModel,this._axisPointerModel);this._payloadInfo=c,o.stopAnimation(),o.attr(r5(c)),tp(o).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){if(this._handle){var n=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var n=i.getZr(),o=this._group,c=this._handle;n&&o&&(this._lastGraphicKey=null,o&&n.remove(o),c&&n.remove(c),this._group=null,this._handle=null,this._payloadInfo=null),af(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(i,n,o){return{x:i[o=o||0],y:i[1-o],width:n[o],height:n[1-o]}},a}();function h$(a,i,n,o){f$(tp(n).lastProp,o)||(tp(n).lastProp=o,i?zt(n,o,a):(n.stopAnimation(),n.attr(o)))}function f$(a,i){if(Ee(a)&&Ee(i)){var n=!0;return G(i,function(o,c){n=n&&f$(a[c],o)}),!!n}return a===i}function p$(a,i){a[i.get(["label","show"])?"show":"hide"]()}function r5(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function m$(a,i,n){var o=i.get("z"),c=i.get("zlevel");a&&a.traverse(function(d){"group"!==d.type&&(null!=o&&(d.z=o),null!=c&&(d.zlevel=c),d.silent=n)})}const a5=u$;function uk(a){var o,i=a.get("type"),n=a.getModel(i+"Style");return"line"===i?(o=n.getLineStyle()).fill=null:"shadow"===i&&((o=n.getAreaStyle()).stroke=null),o}function Ot(a,i,n,o,c){var h=hk(n.get("value"),i.axis,i.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),f=n.getModel("label"),p=jh(f.get("padding")||0),g=f.getFont(),v=M0(h,g),_=c.position,y=v.width+p[1]+p[3],w=v.height+p[0]+p[2],x=c.align;"right"===x&&(_[0]-=y),"center"===x&&(_[0]-=y/2);var S=c.verticalAlign;"bottom"===S&&(_[1]-=w),"middle"===S&&(_[1]-=w/2),function xa(a,i,n,o){var c=o.getWidth(),d=o.getHeight();a[0]=Math.min(a[0]+i,c)-i,a[1]=Math.min(a[1]+n,d)-n,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}(_,y,w,o);var D=f.get("backgroundColor");(!D||"auto"===D)&&(D=i.get(["axisLine","lineStyle","color"])),a.label={x:_[0],y:_[1],style:Zn(f,{text:h,font:g,fill:f.getTextColor(),padding:p,backgroundColor:D}),z2:10}}function hk(a,i,n,o,c){a=i.scale.parse(a);var d=i.scale.getLabel({value:a},{precision:c.precision}),h=c.formatter;if(h){var f={value:Px(i,{value:a}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};G(o,function(p){var g=n.getSeriesByIndex(p.seriesIndex),_=g&&g.getDataParams(p.dataIndexInside);_&&f.seriesData.push(_)}),Ae(h)?d=h.replace("{value}",d):Xe(h)&&(d=h(f))}return d}function Yg(a,i,n){var o=[1,0,0,1,0,0];return Rd(o,o,n.rotation),ar(o,o,n.position),Xs([a.dataToCoord(i),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],o)}function gr(a,i,n,o,c,d){var h=sl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=c.get(["label","margin"]),Ot(i,o,c,d,{position:Yg(o.axis,a,n),align:h.textAlign,verticalAlign:h.textVerticalAlign})}function ml(a,i,n){return{x1:a[n=n||0],y1:a[1-n],x2:i[n],y2:i[1-n]}}function fk(a,i,n){return{x:a[n=n||0],y:a[1-n],width:i[n],height:i[1-n]}}function o5(a,i,n,o,c,d){return{cx:a,cy:i,r0:n,r:o,startAngle:c,endAngle:d,clockwise:!0}}var g$=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.makeElOption=function(n,o,c,d,h){var f=c.axis,p=f.grid,g=d.get("type"),v=s5(p,f).getOtherAxis(f).getGlobalExtent(),_=f.toGlobalCoord(f.dataToCoord(o,!0));if(g&&"none"!==g){var y=uk(d),w=vd[g](f,_,v);w.style=y,n.graphicKey=w.type,n.pointer=w}gr(o,n,QA(p.model,c),c,d,h)},i.prototype.getHandleTransform=function(n,o,c){var d=QA(o.axis.grid.model,o,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var h=Yg(o.axis,n,d);return{x:h[0],y:h[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(n,o,c,d){var h=c.axis,f=h.grid,p=h.getGlobalExtent(!0),g=s5(f,h).getOtherAxis(h).getGlobalExtent(),v="x"===h.dim?0:1,_=[n.x,n.y];_[v]+=o[v],_[v]=Math.min(p[1],_[v]),_[v]=Math.max(p[0],_[v]);var y=(g[1]+g[0])/2,w=[y,y];return w[v]=_[v],{x:_[0],y:_[1],rotation:n.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][v]}},i}(a5);function s5(a,i){var n={};return n[i.dim+"AxisIndex"]=i.index,a.getCartesian(n)}var vd={line:function(a,i,n){return{type:"Line",subPixelOptimize:!0,shape:ml([i,n[0]],[i,n[1]],pk(a))}},shadow:function(a,i,n){var o=Math.max(1,a.getBandWidth());return{type:"Rect",shape:fk([i-o/2,n[0]],[o,n[1]-n[0]],pk(a))}}};function pk(a){return"x"===a.dim?0:1}const v$=g$;var _$=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="axisPointer",i.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(en);const y$=_$;var _d=qt(),g1=G;function v1(a,i,n){if(!tn.node){var o=i.getZr();_d(o).records||(_d(o).records={}),function ub(a,i){function n(o,c){a.on(o,function(d){var h=function gk(a){var i={showTip:[],hideTip:[]},n=function(o){var c=i[o.type];c?c.push(o):(o.dispatchAction=n,a.dispatchAction(o))};return{dispatchAction:n,pendings:i}}(i);g1(_d(a).records,function(f){f&&c(f,d,h.dispatchAction)}),function b$(a,i){var c,n=a.showTip.length,o=a.hideTip.length;n?c=a.showTip[n-1]:o&&(c=a.hideTip[o-1]),c&&(c.dispatchAction=null,i.dispatchAction(c))}(h.pendings,i)})}_d(a).initialized||(_d(a).initialized=!0,n("click",ct(qg,"click")),n("mousemove",ct(qg,"mousemove")),n("globalout",mk))}(o,i),(_d(o).records[a]||(_d(o).records[a]={})).handler=n}}function mk(a,i,n){a.handler("leave",null,n)}function qg(a,i,n,o){i.handler(a,n,o)}function vk(a,i){if(!tn.node){var n=i.getZr();(_d(n).records||{})[a]&&(_d(n).records[a]=null)}}var w$=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=o.getComponent("tooltip"),h=n.get("triggerOn")||d&&d.get("triggerOn")||"mousemove|click";v1("axisPointer",c,function(f,p,g){"none"!==h&&("leave"===f||h.indexOf(f)>=0)&&g({type:"updateAxisPointer",currTrigger:f,x:p&&p.offsetX,y:p&&p.offsetY})})},i.prototype.remove=function(n,o){vk("axisPointer",o)},i.prototype.dispose=function(n,o){vk("axisPointer",o)},i.type="axisPointer",i}(li);const YQ=w$;function l5(a,i){var c,n=[],o=a.seriesIndex;if(null==o||!(c=i.getSeriesByIndex(o)))return{point:[]};var d=c.getData(),h=Lc(d,a);if(null==h||h<0||ye(h))return{point:[]};var f=d.getItemGraphicEl(h),p=c.coordinateSystem;if(c.getTooltipPosition)n=c.getTooltipPosition(h)||[];else if(p&&p.dataToPoint)if(a.isStacked){var g=p.getBaseAxis(),_=p.getOtherAxis(g).dim,w="x"===_||"radius"===_?1:0,x=d.mapDimension(g.dim),S=[];S[w]=d.get(x,h),S[1-w]=d.get(d.getCalculationInfo("stackResultDimension"),h),n=p.dataToPoint(S)||[]}else n=p.dataToPoint(d.getValues(Se(p.dimensions,function(T){return d.mapDimension(T)}),h))||[];else if(f){var D=f.getBoundingRect().clone();D.applyTransform(f.transform),n=[D.x+D.width/2,D.y+D.height/2]}return{point:n,el:f}}var _1=qt();function y1(a,i,n){var o=a.currTrigger,c=[a.x,a.y],d=a,h=a.dispatchAction||he(n.dispatchAction,n),f=i.getComponent("axisPointer").coordSysAxesInfo;if(f){yk(c)&&(c=l5({seriesIndex:d.seriesIndex,dataIndex:d.dataIndex},i).point);var p=yk(c),g=d.axesInfo,v=f.axesInfo,_="leave"===o||yk(c),y={},w={},x={list:[],map:{}},S={showPointer:ct(qQ,w),showTooltip:ct(C$,x)};G(f.coordSysMap,function(T,A){var E=p||T.containPoint(c);G(f.coordSysAxesInfo[A],function(k,L){var O=k.axis,B=function T$(a,i){for(var n=0;n<(a||[]).length;n++){var o=a[n];if(i.axis.dim===o.axisDim&&i.axis.model.componentIndex===o.axisIndex)return o}}(g,k);if(!_&&E&&(!g||B)){var U=B&&B.value;null==U&&!p&&(U=O.pointToData(c)),null!=U&&_k(k,U,S,!1,y)}})});var D={};return G(v,function(T,A){var E=T.linkGroup;E&&!w[A]&&G(E.axesInfo,function(k,L){var O=w[L];if(k!==T&&O){var B=O.value;E.mapper&&(B=T.axis.scale.parse(E.mapper(B,w1(k),w1(T)))),D[T.key]=B}})}),G(D,function(T,A){_k(v[A],T,S,!0,y)}),function S$(a,i,n){var o=n.axesInfo=[];G(i,function(c,d){var h=c.axisPointerModel.option,f=a[d];f?(!c.useHandle&&(h.status="show"),h.value=f.value,h.seriesDataIndices=(f.payloadBatch||[]).slice()):!c.useHandle&&(h.status="hide"),"show"===h.status&&o.push({axisDim:c.axis.dim,axisIndex:c.axis.model.componentIndex,value:h.value})})}(w,v,y),function b1(a,i,n,o){if(!yk(i)&&a.list.length){var c=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:c.dataIndexInside,dataIndex:c.dataIndex,seriesIndex:c.seriesIndex,dataByCoordSys:a.list})}else o({type:"hideTip"})}(x,c,a,h),function D$(a,i,n){var o=n.getZr(),c="axisPointerLastHighlights",d=_1(o)[c]||{},h=_1(o)[c]={};G(a,function(g,v){var _=g.axisPointerModel.option;"show"===_.status&&g.triggerEmphasis&&G(_.seriesDataIndices,function(y){h[y.seriesIndex+" | "+y.dataIndex]=y})});var f=[],p=[];G(d,function(g,v){!h[v]&&p.push(g)}),G(h,function(g,v){!d[v]&&f.push(g)}),p.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:p}),f.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f})}(v,0,n),y}}function _k(a,i,n,o,c){var d=a.axis;if(!d.scale.isBlank()&&d.containData(i)){if(!a.involveSeries)return void n.showPointer(a,i);var h=function x$(a,i){var n=i.axis,o=n.dim,c=a,d=[],h=Number.MAX_VALUE,f=-1;return G(i.seriesModels,function(p,g){var _,y,v=p.getData().mapDimensionsAll(o);if(p.getAxisTooltipData){var w=p.getAxisTooltipData(v,a,n);y=w.dataIndices,_=w.nestestValue}else{if(!(y=p.getData().indicesOfNearest(v[0],a,"category"===n.type?.5:null)).length)return;_=p.getData().get(v[0],y[0])}if(null!=_&&isFinite(_)){var x=a-_,S=Math.abs(x);S<=h&&((S=0&&f<0)&&(h=S,f=x,c=_,d.length=0),G(y,function(D){d.push({seriesIndex:p.seriesIndex,dataIndexInside:D,dataIndex:p.getData().getRawIndex(D)})}))}}),{payloadBatch:d,snapToValue:c}}(i,a),f=h.payloadBatch,p=h.snapToValue;f[0]&&null==c.seriesIndex&&_e(c,f[0]),!o&&a.snap&&d.containData(p)&&null!=p&&(i=p),n.showPointer(a,i,f),n.showTooltip(a,h,p)}}function qQ(a,i,n,o){a[i.key]={value:n,payloadBatch:o}}function C$(a,i,n,o){var c=n.payloadBatch,d=i.axis,h=d.model,f=i.axisPointerModel;if(i.triggerTooltip&&c.length){var p=i.coordSys.model,g=Tu(p),v=a.map[g];v||(v=a.map[g]={coordSysId:p.id,coordSysIndex:p.componentIndex,coordSysType:p.type,coordSysMainType:p.mainType,dataByAxis:[]},a.list.push(v)),v.dataByAxis.push({axisDim:d.dim,axisIndex:h.componentIndex,axisType:h.type,axisId:h.id,value:o,valueLabelOpt:{precision:f.get(["label","precision"]),formatter:f.get(["label","formatter"])},seriesDataIndices:c.slice()})}}function w1(a){var i=a.axis.model,n={},o=n.axisDim=a.axis.dim;return n.axisIndex=n[o+"AxisIndex"]=i.componentIndex,n.axisName=n[o+"AxisName"]=i.name,n.axisId=n[o+"AxisId"]=i.id,n}function yk(a){return!a||null==a[0]||isNaN(a[0])||null==a[1]||isNaN(a[1])}function Ds(a){wa.registerAxisPointerClass("CartesianAxisPointer",v$),a.registerComponentModel(y$),a.registerComponentView(YQ),a.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var n=i.axisPointer.link;n&&!ye(n)&&(i.axisPointer.link=[n])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(i,n){i.getComponent("axisPointer").coordSysAxesInfo=function o6(a,i){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function s6(a,i,n){var o=i.getComponent("tooltip"),c=i.getComponent("axisPointer"),d=c.get("link",!0)||[],h=[];G(n.getCoordinateSystems(),function(f){if(f.axisPointerEnabled){var p=Tu(f.model),g=a.coordSysAxesInfo[p]={};a.coordSysMap[p]=f;var _=f.model.getModel("tooltip",o);if(G(f.getAxes(),ct(S,!1,null)),f.getTooltipAxes&&o&&_.get("show")){var y="axis"===_.get("trigger"),w="cross"===_.get(["axisPointer","type"]),x=f.getTooltipAxes(_.get(["axisPointer","axis"]));(y||w)&&G(x.baseAxes,ct(S,!w||"cross",y)),w&&G(x.otherAxes,ct(S,"cross",!1))}}function S(D,T,A){var E=A.model.getModel("axisPointer",c),k=E.get("show");if(k&&("auto"!==k||D||nE(E))){null==T&&(T=E.get("triggerTooltip")),E=D?function l6(a,i,n,o,c,d){var h=i.getModel("axisPointer"),p={};G(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(y){p[y]=nt(h.get(y))}),p.snap="category"!==a.type&&!!d,"cross"===h.get("type")&&(p.type="line");var g=p.label||(p.label={});if(null==g.show&&(g.show=!1),"cross"===c){var v=h.get(["label","show"]);if(g.show=v??!0,!d){var _=p.lineStyle=h.get("crossStyle");_&&Ze(g,_.textStyle)}}return a.model.getModel("axisPointer",new Un(p,n,o))}(A,_,c,i,D,T):E;var L=E.get("snap"),O=E.get("triggerEmphasis"),B=Tu(A.model),U=T||L||"category"===A.type,j=a.axesInfo[B]={key:B,axis:A,coordSys:f,axisPointerModel:E,triggerTooltip:T,triggerEmphasis:O,involveSeries:U,snap:L,useHandle:nE(E),seriesModels:[],linkGroup:null};g[B]=j,a.seriesInvolved=a.seriesInvolved||U;var W=function Py(a,i){for(var n=i.model,o=i.dim,c=0;cD?"left":"right",_=Math.abs(g[1]-T)/S<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:v,verticalAlign:_}}(o,c,0,p,d.get(["label","margin"]));Ot(n,c,d,h,D)},i}(a5),hb={line:function(a,i,n,o){return"angle"===a.dim?{type:"Line",shape:ml(i.coordToPoint([o[0],n]),i.coordToPoint([o[1],n]))}:{type:"Circle",shape:{cx:i.cx,cy:i.cy,r:n}}},shadow:function(a,i,n,o){var c=Math.max(1,a.getBandWidth()),d=Math.PI/180;return"angle"===a.dim?{type:"Sector",shape:o5(i.cx,i.cy,o[0],o[1],(-n-c/2)*d,(c/2-n)*d)}:{type:"Sector",shape:o5(i.cx,i.cy,n-c/2,n+c/2,0,2*Math.PI)}}};const d5=A$;var bk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.findAxisModel=function(n){var o;return this.ecModel.eachComponent(n,function(d){d.getCoordSysModel()===this&&(o=d)},this),o},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={z:0,center:["50%","50%"],radius:"80%"},i}(en);const Jn=bk;var u5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",yi).models[0]},i.type="polarAxis",i}(en);Di(u5,ry);var Zg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="angleAxis",i}(u5),h5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="radiusAxis",i}(u5),x1=function(a){function i(n,o){return a.call(this,"radius",n,o)||this}return de(i,a),i.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)["radius"===this.dim?0:1]},i}(il);x1.prototype.dataToRadius=il.prototype.dataToCoord,x1.prototype.radiusToData=il.prototype.coordToData;const fb=x1;var E$=qt(),Ko=function(a){function i(n,o){return a.call(this,"angle",n,o||[0,360])||this}return de(i,a),i.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var n=this,o=n.getLabelModel(),c=n.scale,d=c.getExtent(),h=c.count();if(d[1]-d[0]<1)return 0;var f=d[0],p=n.dataToCoord(f+1)-n.dataToCoord(f),g=Math.abs(p),v=M0(null==f?"":f+"",o.getFont(),"center","top"),y=Math.max(v.height,7)/g;isNaN(y)&&(y=1/0);var w=Math.max(0,Math.floor(y)),x=E$(n.model),S=x.lastAutoInterval,D=x.lastTickCount;return null!=S&&null!=D&&Math.abs(S-w)<=1&&Math.abs(D-h)<=1&&S>w?w=S:(x.lastTickCount=h,x.lastAutoInterval=w),w},i}(il);Ko.prototype.dataToAngle=il.prototype.dataToCoord,Ko.prototype.angleToData=il.prototype.coordToData;const C1=Ko;var Fu=["radius","angle"],I$=function(){function a(i){this.dimensions=Fu,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fb,this._angleAxis=new C1,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(i){var n=this.pointToCoord(i);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},a.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},a.prototype.getAxis=function(i){return this["_"+i+"Axis"]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(i){var n=[],o=this._angleAxis,c=this._radiusAxis;return o.scale.type===i&&n.push(o),c.scale.type===i&&n.push(c),n},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(i){var n=this._angleAxis;return i===n?this._radiusAxis:n},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(i){var n=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},a.prototype.dataToPoint=function(i,n){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],n),this._angleAxis.dataToAngle(i[1],n)])},a.prototype.pointToData=function(i,n){var o=this.pointToCoord(i);return[this._radiusAxis.radiusToData(o[0],n),this._angleAxis.angleToData(o[1],n)]},a.prototype.pointToCoord=function(i){var n=i[0]-this.cx,o=i[1]-this.cy,c=this.getAngleAxis(),d=c.getExtent(),h=Math.min(d[0],d[1]),f=Math.max(d[0],d[1]);c.inverse?h=f-360:f=h+360;var p=Math.sqrt(n*n+o*o);n/=p,o/=p;for(var g=Math.atan2(-o,n)/Math.PI*180,v=gf;)g+=360*v;return[p,g]},a.prototype.coordToPoint=function(i){var n=i[0],o=i[1]/180*Math.PI;return[Math.cos(o)*n+this.cx,-Math.sin(o)*n+this.cy]},a.prototype.getArea=function(){var i=this.getAngleAxis(),o=this.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var c=i.getExtent(),d=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-c[0]*d,endAngle:-c[1]*d,clockwise:i.inverse,contain:function(h,f){var p=h-this.cx,g=f-this.cy,v=p*p+g*g-1e-4,_=this.r,y=this.r0;return v<=_*_&&v>=y*y}}},a.prototype.convertToPixel=function(i,n,o){return k$(n)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(i,n,o){return k$(n)===this?this.pointToData(o):null},a}();function k$(a){var i=a.seriesModel,n=a.polarModel;return n&&n.coordinateSystem||i&&i.coordinateSystem}const wk=I$;function R$(a,i){var n=this,o=n.getAngleAxis(),c=n.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),a.eachSeries(function(f){if(f.coordinateSystem===n){var p=f.getData();G(nl(p,"radius"),function(g){c.scale.unionExtentFromData(p,g)}),G(nl(p,"angle"),function(g){o.scale.unionExtentFromData(p,g)})}}),xf(o.scale,o.model),xf(c.scale,c.model),"category"===o.type&&!o.onBand){var d=o.getExtent(),h=360/o.scale.count();o.inverse?d[1]+=h:d[1]-=h,o.setExtent(d[0],d[1])}}function vc(a,i){if(a.type=i.get("type"),a.scale=iy(i),a.onBand=i.get("boundaryGap")&&"category"===a.type,a.inverse=i.get("inverse"),function pb(a){return"angleAxis"===a.mainType}(i)){a.inverse=a.inverse!==i.get("clockwise");var n=i.get("startAngle");a.setExtent(n,n+(a.inverse?-360:360))}i.axis=a,a.model=i}var xk={dimensions:Fu,create:function(a,i){var n=[];return a.eachComponent("polar",function(o,c){var d=new wk(c+"");d.update=R$;var h=d.getRadiusAxis(),f=d.getAngleAxis(),p=o.findAxisModel("radiusAxis"),g=o.findAxisModel("angleAxis");vc(h,p),vc(f,g),function P$(a,i,n){var o=i.get("center"),c=n.getWidth(),d=n.getHeight();a.cx=Ie(o[0],c),a.cy=Ie(o[1],d);var h=a.getRadiusAxis(),f=Math.min(c,d)/2,p=i.get("radius");null==p?p=[0,"100%"]:ye(p)||(p=[0,p]);var g=[Ie(p[0],f),Ie(p[1],f)];h.inverse?h.setExtent(g[1],g[0]):h.setExtent(g[0],g[1])}(d,o,i),n.push(d),o.coordinateSystem=d,d.model=o}),a.eachSeries(function(o){if("polar"===o.get("coordinateSystem")){var c=o.getReferringComponents("polar",yi).models[0];o.coordinateSystem=c.coordinateSystem}}),n}};const O$=xk;var L$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function S1(a,i,n){i[1]>i[0]&&(i=i.slice().reverse());var o=a.coordToPoint([i[0],n]),c=a.coordToPoint([i[1],n]);return{x1:o[0],y1:o[1],x2:c[0],y2:c[1]}}function D1(a){return a.getRadiusAxis().inverse?0:1}function Ir(a){var i=a[0],n=a[a.length-1];i&&n&&Math.abs(Math.abs(i.coord-n.coord)-360)<1e-4&&a.pop()}var ZQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.axisPointerClass="PolarAxisPointer",n}return de(i,a),i.prototype.render=function(n,o){if(this.group.removeAll(),n.get("show")){var c=n.axis,d=c.polar,h=d.getRadiusAxis().getExtent(),f=c.getTicksCoords(),p=c.getMinorTicksCoords(),g=Se(c.getViewLabels(),function(v){v=nt(v);var _=c.scale,y="ordinal"===_.type?_.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=c.dataToCoord(y),v});Ir(g),Ir(f),G(L$,function(v){n.get([v,"show"])&&(!c.scale.isBlank()||"axisLine"===v)&&mb[v](this.group,n,d,f,p,h,g)},this)}},i.type="angleAxis",i}(wa),mb={axisLine:function(a,i,n,o,c,d){var g,h=i.getModel(["axisLine","lineStyle"]),f=D1(n),p=f?0:1;(g=0===d[p]?new ps({shape:{cx:n.cx,cy:n.cy,r:d[f]},style:h.getLineStyle(),z2:1,silent:!0}):new M_({shape:{cx:n.cx,cy:n.cy,r:d[f],r0:d[p]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,a.add(g)},axisTick:function(a,i,n,o,c,d){var h=i.getModel("axisTick"),f=(h.get("inside")?-1:1)*h.get("length"),p=d[D1(n)],g=Se(o,function(v){return new Gr({shape:S1(n,[p,p+f],v.coord)})});a.add(Na(g,{style:Ze(h.getModel("lineStyle").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,i,n,o,c,d){if(c.length){for(var h=i.getModel("axisTick"),f=i.getModel("minorTick"),p=(h.get("inside")?-1:1)*f.get("length"),g=d[D1(n)],v=[],_=0;_T?"left":"right",k=Math.abs(D[1]-A)/S<.3?"middle":D[1]>A?"top":"bottom";if(f&&f[x]){var L=f[x];Ee(L)&&L.textStyle&&(w=new Un(L.textStyle,p,p.ecModel))}var O=new Zt({silent:sl.isLabelSilent(i),style:Zn(w,{x:D[0],y:D[1],fill:w.getTextColor()||i.get(["axisLine","lineStyle","color"]),text:_.formattedLabel,align:E,verticalAlign:k})});if(a.add(O),v){var B=sl.makeAxisEventDataBase(i);B.targetType="axisLabel",B.value=_.rawLabel,st(O).eventData=B}},this)},splitLine:function(a,i,n,o,c,d){var f=i.getModel("splitLine").getModel("lineStyle"),p=f.get("color"),g=0;p=p instanceof Array?p:[p];for(var v=[],_=0;_=0?"p":"n",K=B;L&&(o[v][$]||(o[v][$]={p:B,n:B}),K=o[v][$][X]);var ee=void 0,te=void 0,ie=void 0,me=void 0;if("radius"===x.dim){var ue=x.dataToCoord(W)-B,we=p.dataToCoord($);Math.abs(ue)=me})}}})};var iJ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rJ={splitNumber:5},aJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="polar",i}(li);function f5(a,i){i=i||{};var o=a.axis,c={},d=o.position,h=o.orient,f=a.coordinateSystem.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],g={horizontal:{top:p[2],bottom:p[3]},vertical:{left:p[0],right:p[1]}};c.position=["vertical"===h?g.vertical[d]:p[0],"horizontal"===h?g.horizontal[d]:p[3]],c.rotation=Math.PI/2*{horizontal:0,vertical:1}[h],c.labelDirection=c.tickDirection=c.nameDirection={top:-1,bottom:1,right:1,left:-1}[d],a.get(["axisTick","inside"])&&(c.tickDirection=-c.tickDirection),it(i.labelInside,a.get(["axisLabel","inside"]))&&(c.labelDirection=-c.labelDirection);var y=i.rotate;return null==y&&(y=a.get(["axisLabel","rotate"])),c.labelRotation="top"===d?-y:y,c.z2=1,c}var sJ=["axisLine","axisTickLabel","axisName"],lJ=["splitArea","splitLine"],cJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.axisPointerClass="SingleAxisPointer",n}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this.group;h.removeAll();var f=this._axisGroup;this._axisGroup=new rt;var p=f5(n),g=new sl(n,p);G(sJ,g.add,g),h.add(this._axisGroup),h.add(g.getGroup()),G(lJ,function(v){n.get([v,"show"])&&np[v](this,this.group,this._axisGroup,n)},this),Pm(f,this._axisGroup,n),a.prototype.render.call(this,n,o,c,d)},i.prototype.remove=function(){iV(this)},i.type="singleAxis",i}(wa),np={splitLine:function(a,i,n,o){var c=o.axis;if(!c.scale.isBlank()){var d=o.getModel("splitLine"),h=d.getModel("lineStyle"),f=h.get("color");f=f instanceof Array?f:[f];for(var p=h.get("width"),g=o.coordinateSystem.getRect(),v=c.isHorizontal(),_=[],y=0,w=c.getTicksCoords({tickModel:d}),x=[],S=[],D=0;D=n.y&&i[1]<=n.y+n.height:o.contain(o.toLocalCoord(i[1]))&&i[0]>=n.y&&i[0]<=n.y+n.height},a.prototype.pointToData=function(i){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(i["horizontal"===n.orient?0:1]))]},a.prototype.dataToPoint=function(i){var n=this.getAxis(),o=this.getRect(),c=[],d="horizontal"===n.orient?0:1;return i instanceof Array&&(i=i[0]),c[d]=n.toGlobalCoord(n.dataToCoord(+i)),c[1-d]=0===d?o.y+o.height/2:o.x+o.width/2,c},a.prototype.convertToPixel=function(i,n,o){return z$(n)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(i,n,o){return z$(n)===this?this.pointToData(o):null},a}();function z$(a){var i=a.seriesModel,n=a.singleAxisModel;return n&&n.coordinateSystem||i&&i.coordinateSystem}const Dk=hJ;var yd={create:function Vu(a,i){var n=[];return a.eachComponent("singleAxis",function(o,c){var d=new Dk(o,a,i);d.name="single_"+c,d.resize(o,i),o.coordinateSystem=d,n.push(d)}),a.eachSeries(function(o){if("singleAxis"===o.get("coordinateSystem")){var c=o.getReferringComponents("singleAxis",yi).models[0];o.coordinateSystem=c&&c.coordinateSystem}}),n},dimensions:B$};const H$=yd;var gb=["x","y"],fJ=["width","height"],g5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.makeElOption=function(n,o,c,d,h){var f=c.axis,p=f.coordinateSystem,g=v5(p,1-T1(f)),v=p.dataToPoint(o)[0],_=d.get("type");if(_&&"none"!==_){var y=uk(d),w=pJ[_](f,v,g);w.style=y,n.graphicKey=w.type,n.pointer=w}gr(o,n,f5(c),c,d,h)},i.prototype.getHandleTransform=function(n,o,c){var d=f5(o,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var h=Yg(o.axis,n,d);return{x:h[0],y:h[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(n,o,c,d){var h=c.axis,f=h.coordinateSystem,p=T1(h),g=v5(f,p),v=[n.x,n.y];v[p]+=o[p],v[p]=Math.min(g[1],v[p]),v[p]=Math.max(g[0],v[p]);var _=v5(f,1-p),y=(_[1]+_[0])/2,w=[y,y];return w[p]=v[p],{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(a5),pJ={line:function(a,i,n){return{type:"Line",subPixelOptimize:!0,shape:ml([i,n[0]],[i,n[1]],T1(a))}},shadow:function(a,i,n){var o=a.getBandWidth();return{type:"Rect",shape:fk([i-o/2,n[0]],[o,n[1]-n[0]],T1(a))}}};function T1(a){return a.isHorizontal()?0:1}function v5(a,i){var n=a.getRect();return[n[gb[i]],n[gb[i]]+n[fJ[i]]]}const _c=g5;var mJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="single",i}(li),gJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o,c){var d=$h(n);a.prototype.init.apply(this,arguments),xi(n,d)},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),xi(this.option,n)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(en);function xi(a,i){var o,n=a.cellSize;1===(o=ye(n)?n:a.cellSize=[n,n]).length&&(o[1]=o[0]);var c=Se([0,1],function(d){return function Tw(a,i){return null!=a[eu[i][0]]||null!=a[eu[i][1]]&&null!=a[eu[i][2]]}(i,d)&&(o[d]="auto"),null!=o[d]&&"auto"!==o[d]});cs(a,i,{type:"box",ignoreSize:c})}const vJ=gJ;var Tk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=this.group;d.removeAll();var h=n.coordinateSystem,f=h.getRangeInfo(),p=h.getOrient(),g=o.getLocaleModel();this._renderDayRect(n,f,d),this._renderLines(n,f,p,d),this._renderYearText(n,f,p,d),this._renderMonthText(n,g,p,d),this._renderWeekText(n,g,f,p,d)},i.prototype._renderDayRect=function(n,o,c){for(var d=n.coordinateSystem,h=n.getModel("itemStyle").getItemStyle(),f=d.getCellWidth(),p=d.getCellHeight(),g=o.start.time;g<=o.end.time;g=d.getNextNDay(g,1).time){var v=d.dataToRect([g],!1).tl,_=new _t({shape:{x:v[0],y:v[1],width:f,height:p},cursor:"default",style:h});c.add(_)}},i.prototype._renderLines=function(n,o,c,d){var h=this,f=n.coordinateSystem,p=n.getModel(["splitLine","lineStyle"]).getLineStyle(),g=n.get(["splitLine","show"]),v=p.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var _=o.start,y=0;_.time<=o.end.time;y++){x(_.formatedDate),0===y&&(_=f.getDateInfo(o.start.y+"-"+o.start.m));var w=_.date;w.setMonth(w.getMonth()+1),_=f.getDateInfo(w)}function x(S){h._firstDayOfMonth.push(f.getDateInfo(S)),h._firstDayPoints.push(f.dataToRect([S],!1).tl);var D=h._getLinePointsOfOneWeek(n,S,c);h._tlpoints.push(D[0]),h._blpoints.push(D[D.length-1]),g&&h._drawSplitline(D,p,d)}x(f.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(h._getEdgesPoints(h._tlpoints,v,c),p,d),g&&this._drawSplitline(h._getEdgesPoints(h._blpoints,v,c),p,d)},i.prototype._getEdgesPoints=function(n,o,c){var d=[n[0].slice(),n[n.length-1].slice()],h="horizontal"===c?0:1;return d[0][h]=d[0][h]-o/2,d[1][h]=d[1][h]+o/2,d},i.prototype._drawSplitline=function(n,o,c){var d=new io({z2:20,shape:{points:n},style:o});c.add(d)},i.prototype._getLinePointsOfOneWeek=function(n,o,c){for(var d=n.coordinateSystem,h=d.getDateInfo(o),f=[],p=0;p<7;p++){var g=d.getNextNDay(h.time,p),v=d.dataToRect([g.time],!1);f[2*g.day]=v.tl,f[2*g.day+1]=v["horizontal"===c?"bl":"tr"]}return f},i.prototype._formatterLabel=function(n,o){return Ae(n)&&n?function w8(a,i,n){return G(i,function(o,c){a=a.replace("{"+c+"}",n?da(o):o)}),a}(n,o):Xe(n)?n(o):o.nameMap},i.prototype._yearTextPositionControl=function(n,o,c,d,h){var f=o[0],p=o[1],g=["center","bottom"];"bottom"===d?(p+=h,g=["center","top"]):"left"===d?f-=h:"right"===d?(f+=h,g=["center","top"]):p-=h;var v=0;return("left"===d||"right"===d)&&(v=Math.PI/2),{rotation:v,x:f,y:p,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(n,o,c,d){var h=n.getModel("yearLabel");if(h.get("show")){var f=h.get("margin"),p=h.get("position");p||(p="horizontal"!==c?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(g[0][0]+g[1][0])/2,_=(g[0][1]+g[1][1])/2,y="horizontal"===c?0:1,w={top:[v,g[y][1]],bottom:[v,g[1-y][1]],left:[g[1-y][0],_],right:[g[y][0],_]},x=o.start.y;+o.end.y>+o.start.y&&(x=x+"-"+o.end.y);var S=h.get("formatter"),T=this._formatterLabel(S,{start:o.start.y,end:o.end.y,nameMap:x}),A=new Zt({z2:30,style:Zn(h,{text:T})});A.attr(this._yearTextPositionControl(A,w[p],c,p,f)),d.add(A)}},i.prototype._monthTextPositionControl=function(n,o,c,d,h){var f="left",p="top",g=n[0],v=n[1];return"horizontal"===c?(v+=h,o&&(f="center"),"start"===d&&(p="bottom")):(g+=h,o&&(p="middle"),"start"===d&&(f="right")),{x:g,y:v,align:f,verticalAlign:p}},i.prototype._renderMonthText=function(n,o,c,d){var h=n.getModel("monthLabel");if(h.get("show")){var f=h.get("nameMap"),p=h.get("margin"),g=h.get("position"),v=h.get("align"),_=[this._tlpoints,this._blpoints];(!f||Ae(f))&&(f&&(o=Uh(f)||o),f=o.get(["time","monthAbbr"])||[]);var y="start"===g?0:1,w="horizontal"===c?0:1;p="start"===g?-p:p;for(var x="center"===v,S=0;S<_[y].length-1;S++){var D=_[y][S].slice(),T=this._firstDayOfMonth[S];x&&(D[w]=(this._firstDayPoints[S][w]+_[0][S+1][w])/2);var E=h.get("formatter"),k=f[+T.m-1],L={yyyy:T.y,yy:(T.y+"").slice(2),MM:T.m,M:+T.m,nameMap:k},O=this._formatterLabel(E,L),B=new Zt({z2:30,style:_e(Zn(h,{text:O}),this._monthTextPositionControl(D,x,c,g,p))});d.add(B)}}},i.prototype._weekTextPositionControl=function(n,o,c,d,h){var f="center",p="middle",g=n[0],v=n[1],_="start"===c;return"horizontal"===o?(g=g+d+(_?1:-1)*h[0]/2,f=_?"right":"left"):(v=v+d+(_?1:-1)*h[1]/2,p=_?"bottom":"top"),{x:g,y:v,align:f,verticalAlign:p}},i.prototype._renderWeekText=function(n,o,c,d,h){var f=n.getModel("dayLabel");if(f.get("show")){var p=n.coordinateSystem,g=f.get("position"),v=f.get("nameMap"),_=f.get("margin"),y=p.getFirstDayOfWeek();v&&!Ae(v)||(v&&(o=Uh(v)||o),v=o.get(["time","dayOfWeekShort"])||Se(o.get(["time","dayOfWeekAbbr"]),function(L){return L[0]}));var x=p.getNextNDay(c.end.time,7-c.lweek).time,S=[p.getCellWidth(),p.getCellHeight()];_=Ie(_,Math.min(S[1],S[0])),"start"===g&&(x=p.getNextNDay(c.start.time,-(7+c.fweek)).time,_=-_);for(var D=0;D<7;D++){var E,T=p.getNextNDay(x,D),A=p.dataToRect([T.time],!1).center;E=Math.abs((D+y)%7);var k=new Zt({z2:30,style:_e(Zn(f,{text:v[E]}),this._weekTextPositionControl(A,d,g,_,S))});h.add(k)}}},i.type="calendar",i}(li);const M1=Tk;var _5=864e5,kr=function(){function a(i,n,o){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=i}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(i){var n=(i=os(i)).getFullYear(),o=i.getMonth()+1,c=o<10?"0"+o:""+o,d=i.getDate(),h=d<10?"0"+d:""+d,f=i.getDay();return{y:n+"",m:c,d:h,day:f=Math.abs((f+7-this.getFirstDayOfWeek())%7),time:i.getTime(),formatedDate:n+"-"+c+"-"+h,date:i}},a.prototype.getNextNDay=function(i,n){return 0===(n=n||0)||(i=new Date(this.getDateInfo(i).time)).setDate(i.getDate()+n),this.getDateInfo(i)},a.prototype.update=function(i,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var o=this._rangeInfo.weeks||1,c=["width","height"],d=this._model.getCellSize().slice(),h=this._model.getBoxLayoutParams(),f="horizontal"===this._orient?[o,7]:[7,o];G([0,1],function(_){v(d,_)&&(h[c[_]]=d[_]*f[_])});var p={width:n.getWidth(),height:n.getHeight()},g=this._rect=Dr(h,p);function v(_,y){return null!=_[y]&&"auto"!==_[y]}G([0,1],function(_){v(d,_)||(d[_]=g[c[_]]/f[_])}),this._sw=d[0],this._sh=d[1]},a.prototype.dataToPoint=function(i,n){ye(i)&&(i=i[0]),null==n&&(n=!0);var o=this.getDateInfo(i),c=this._rangeInfo;if(n&&!(o.time>=c.start.time&&o.timef.end.time&&n.reverse(),n},a.prototype._getRangeInfo=function(i){var o,n=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];n[0].time>n[1].time&&(o=!0,n.reverse());var c=Math.floor(n[1].time/_5)-Math.floor(n[0].time/_5)+1,d=new Date(n[0].time),h=d.getDate(),f=n[1].date.getDate();d.setDate(h+c-1);var p=d.getDate();if(p!==f)for(var g=d.getTime()-n[1].time>0?1:-1;(p=d.getDate())!==f&&(d.getTime()-n[1].time)*g>0;)c-=g,d.setDate(p-g);var v=Math.floor((c+n[0].day+6)/7),_=o?1-v:v-1;return o&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:c,weeks:v,nthWeek:_,fweek:n[0].day,lweek:n[1].day}},a.prototype._getDateByWeeksAndDay=function(i,n,o){var c=this._getRangeInfo(o);if(i>c.weeks||0===i&&nc.lweek)return null;var d=7*(i-1)-c.fweek+n,h=new Date(c.start.time);return h.setDate(+c.start.d+d),this.getDateInfo(h)},a.create=function(i,n){var o=[];return i.eachComponent("calendar",function(c){var d=new a(c,i,n);o.push(d),c.coordinateSystem=d}),i.eachSeries(function(c){"calendar"===c.get("coordinateSystem")&&(c.coordinateSystem=o[c.get("calendarIndex")||0])}),o},a.dimensions=["time","value"],a}();function y5(a){var i=a.calendarModel,n=a.seriesModel;return i?i.coordinateSystem:n?n.coordinateSystem:null}const U$=kr;function G$(a,i){var n;return G(i,function(o){null!=a[o]&&"auto"!==a[o]&&(n=!0)}),n}var Ga=["transition","enterFrom","leaveTo"],vb=Ga.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bu(a,i,n){if(n&&(!a[n]&&i[n]&&(a[n]={}),a=a[n],i=i[n]),a&&i)for(var o=n?Ga:vb,c=0;c=0;v--){var _,y,w;if(w=null!=(y=xr((_=c[v]).id,null))?h.get(y):null){T=Wi(x=w.parent);var x,E={},k=g_(w,_,x===d?{width:f,height:p}:{width:T.width,height:T.height},null,{hv:_.hv,boundingMode:_.bounding},E);if(!Wi(w).isNew&&k){for(var L=_.transition,O={},B=0;B=0)?O[U]=j:w[U]=j}zt(w,O,n,0)}else w.attr(E)}}},i.prototype._clear=function(){var n=this,o=this._elMap;o.each(function(c){Mk(c,Wi(c).option,o,n._lastGraphicModel)}),this._elMap=Me()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(li);function Qo(a){var n=new(Ue(vl,a)?vl[a]:Zw(a))({});return Wi(n).type=a,n}function W$(a,i,n,o){var c=Qo(n);return i.add(c),o.set(a,c),Wi(c).id=a,Wi(c).isNew=!0,c}function Mk(a,i,n,o){a&&a.parent&&("group"===a.type&&a.traverse(function(d){Mk(d,i,n,o)}),h1(a,i,o),n.removeKey(Wi(a).id))}function $$(a,i,n,o){a.isGroup||G([["cursor",zo.prototype.cursor],["zlevel",o||0],["z",n||0],["z2",0]],function(c){var d=c[0];Ue(i,d)?a[d]=gt(i[d],c[1]):null==a[d]&&(a[d]=c[1])}),G(Wt(i),function(c){if(0===c.indexOf("on")){var d=i[c];a[c]=Xe(d)?d:null}}),Ue(i,"draggable")&&(a.draggable=i.draggable),null!=i.name&&(a.name=i.name),null!=i.id&&(a.id=i.id)}var q$=["x","y","radius","angle","single"],bJ=["cartesian2d","polar","singleAxis"];function ap(a){return a+"Axis"}function Ak(a){var i=a.ecModel,n={infoList:[],infoMap:Me()};return a.eachTargetAxis(function(o,c){var d=i.getComponent(ap(o),c);if(d){var h=d.getCoordSysModel();if(h){var f=h.uid,p=n.infoMap.get(f);p||(n.infoList.push(p={model:h,axisModels:[]}),n.infoMap.set(f,p)),p.axisModels.push(d)}}}),n}var w5=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},a}(),CJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return de(i,a),i.prototype.init=function(n,o,c){var d=Z$(n);this.settledOption=d,this.mergeDefaultAndTheme(n,c),this._doInit(d)},i.prototype.mergeOption=function(n){var o=Z$(n);mt(this.option,n,!0),mt(this.settledOption,o,!0),this._doInit(o)},i.prototype._doInit=function(n){var o=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var c=this.settledOption;G([["start","startValue"],["end","endValue"]],function(d,h){"value"===this._rangePropMode[h]&&(o[d[0]]=c[d[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var n=this.get("orient",!0),o=this._targetAxisInfoMap=Me();this._fillSpecifiedTargetAxis(o)?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(d){d.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(n){var o=!1;return G(q$,function(c){var d=this.getReferringComponents(ap(c),Xv);if(d.specified){o=!0;var h=new w5;G(d.models,function(f){h.add(f.componentIndex)}),n.set(c,h)}},this),o},i.prototype._fillAutoTargetAxisByOrient=function(n,o){var c=this.ecModel,d=!0;if(d){var h="vertical"===o?"y":"x";p(c.findComponents({mainType:h+"Axis"}),h)}function p(g,v){var _=g[0];if(_){var y=new w5;if(y.add(_.componentIndex),n.set(v,y),d=!1,"x"===v||"y"===v){var w=_.getReferringComponents("grid",yi).models[0];w&&G(g,function(x){_.componentIndex!==x.componentIndex&&w===x.getReferringComponents("grid",yi).models[0]&&y.add(x.componentIndex)})}}}d&&p(c.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===o}}),"single"),d&&G(q$,function(g){if(d){var v=c.findComponents({mainType:ap(g),filter:function(y){return"category"===y.get("type",!0)}});if(v[0]){var _=new w5;_.add(v[0].componentIndex),n.set(g,_),d=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(o){!n&&(n=o)},this),"y"===n?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(n){var o=this._rangePropMode,c=this.get("rangeMode");G([["start","startValue"],["end","endValue"]],function(d,h){var f=null!=n[d[0]],p=null!=n[d[1]];f&&!p?o[h]="percent":!f&&p?o[h]="value":c?o[h]=c[h]:f&&(o[h]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(o,c){null==n&&(n=this.ecModel.getComponent(ap(o),c))},this),n},i.prototype.eachTargetAxis=function(n,o){this._targetAxisInfoMap.each(function(c,d){G(c.indexList,function(h){n.call(o,d,h)})})},i.prototype.getAxisProxy=function(n,o){var c=this.getAxisModel(n,o);if(c)return c.__dzAxisProxy},i.prototype.getAxisModel=function(n,o){var c=this._targetAxisInfoMap.get(n);if(c&&c.indexMap[o])return this.ecModel.getComponent(ap(n),o)},i.prototype.setRawRange=function(n){var o=this.option,c=this.settledOption;G([["start","startValue"],["end","endValue"]],function(d){(null!=n[d[0]]||null!=n[d[1]])&&(o[d[0]]=c[d[0]]=n[d[0]],o[d[1]]=c[d[1]]=n[d[1]])},this),this._updateRangeUse(n)},i.prototype.setCalculatedRange=function(n){var o=this.option;G(["start","startValue","end","endValue"],function(c){o[c]=n[c]})},i.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},i.prototype.getValueRange=function(n,o){if(null!=n||null!=o)return this.getAxisProxy(n,o).getDataValueWindow();var c=this.findRepresentativeAxisProxy();return c?c.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var o,c=this._targetAxisInfoMap.keys(),d=0;d=0}(n)){var o=ap(this._dimName),c=n.getReferringComponents(o,yi).models[0];c&&this._axisIndex===c.componentIndex&&i.push(n)}},this),i},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return nt(this._minMaxSpan)},a.prototype.calculateDataWindow=function(i){var g,n=this._dataExtent,c=this.getAxisModel().axis.scale,d=this._dataZoomModel.getRangePropMode(),h=[0,100],f=[],p=[];_b(["start","end"],function(y,w){var x=i[y],S=i[y+"Value"];"percent"===d[w]?(null==x&&(x=h[w]),S=c.parse(yn(x,h,n))):(g=!0,x=yn(S=null==S?n[w]:c.parse(S),n,h)),p[w]=null==S||isNaN(S)?n[w]:S,f[w]=null==x||isNaN(x)?h[w]:x}),X$(p),X$(f);var v=this._minMaxSpan;function _(y,w,x,S,D){var T=D?"Span":"ValueSpan";jf(0,y,x,"all",v["min"+T],v["max"+T]);for(var A=0;A<2;A++)w[A]=yn(y[A],x,S,!0),D&&(w[A]=c.parse(w[A]))}return g?_(p,f,n,h,!1):_(f,p,h,n,!0),{valueWindow:p,percentWindow:f}},a.prototype.reset=function(i){if(i===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=function EJ(a,i,n){var o=[1/0,-1/0];_b(n,function(h){!function Lj(a,i,n){i&&G(nl(i,n),function(o){var c=i.getApproximateExtent(o);c[0]a[1]&&(a[1]=c[1])})}(o,h.getData(),i)});var c=a.getAxisModel(),d=BF(c.axis.scale,c,o).calculate();return[d.min,d.max]}(this,this._dimName,n),this._updateMinMaxSpan();var o=this.calculateDataWindow(i.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(i,n){if(i===this._dataZoomModel){var o=this._dimName,c=this.getTargetSeriesModels(),d=i.get("filterMode"),h=this._valueWindow;"none"!==d&&_b(c,function(p){var g=p.getData(),v=g.mapDimensionsAll(o);if(v.length){if("weakFilter"===d){var _=g.getStore(),y=Se(v,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var x,S,D,T=0;Th[1];if(E&&!k&&!L)return!0;E&&(D=!0),k&&(x=!0),L&&(S=!0)}return D&&x&&S})}else _b(v,function(w){if("empty"===d)p.setData(g=g.map(w,function(S){return function f(p){return p>=h[0]&&p<=h[1]}(S)?S:NaN}));else{var x={};x[w]=h,g.selectRange(x)}});_b(v,function(w){g.setApproximateExtent(h,w)})}})}},a.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},n=this._dataZoomModel,o=this._dataExtent;_b(["min","max"],function(c){var d=n.get(c+"Span"),h=n.get(c+"ValueSpan");null!=h&&(h=this.getAxisModel().axis.scale.parse(h)),null!=h?d=yn(o[0]+h,o,[0,100],!0):null!=d&&(h=yn(d,[0,100],o,!0)-o[0]),i[c+"Span"]=d,i[c+"ValueSpan"]=h},this)},a.prototype._setAxisModel=function(){var i=this.getAxisModel(),n=this._percentWindow,o=this._valueWindow;if(n){var c=Gv(o,[0,500]);c=Math.min(c,20);var d=i.axis.scale.rawExtentInfo;0!==n[0]&&d.setDeterminedMinMax("min",+o[0].toFixed(c)),100!==n[1]&&d.setDeterminedMinMax("max",+o[1].toFixed(c)),d.freeze()}},a}();const IJ=AJ;var kJ={getTargetSeries:function(a){function i(c){a.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(h,f){var p=a.getComponent(ap(h),f);c(h,f,p,d)})})}i(function(c,d,h,f){h.__dzAxisProxy=null});var n=[];i(function(c,d,h,f){h.__dzAxisProxy||(h.__dzAxisProxy=new IJ(c,d,f,a),n.push(h.__dzAxisProxy))});var o=Me();return G(n,function(c){G(c.getTargetSeriesModels(),function(d){o.set(d.uid,d)})}),o},overallReset:function(a,i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,c){n.getAxisProxy(o,c).reset(n)}),n.eachTargetAxis(function(o,c){n.getAxisProxy(o,c).filterData(n,i)})}),a.eachComponent("dataZoom",function(n){var o=n.findRepresentativeAxisProxy();if(o){var c=o.getDataPercentWindow(),d=o.getDataValueWindow();n.setCalculatedRange({start:c[0],end:c[1],startValue:d[0],endValue:d[1]})}})}};const PJ=kJ;var K$=!1;function C5(a){K$||(K$=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,PJ),function RJ(a){a.registerAction("dataZoom",function(i,n){G(function xJ(a,i){var d,n=Me(),o=[],c=Me();a.eachComponent({mainType:"dataZoom",query:i},function(v){c.get(v.uid)||f(v)});do{d=!1,a.eachComponent("dataZoom",h)}while(d);function h(v){!c.get(v.uid)&&function p(v){var _=!1;return v.eachTargetAxis(function(y,w){var x=n.get(y);x&&x[w]&&(_=!0)}),_}(v)&&(f(v),d=!0)}function f(v){c.set(v.uid,!0),o.push(v),function g(v){v.eachTargetAxis(function(_,y){(n.get(_)||n.set(_,[]))[y]=!0})}(v)}return o}(n,i),function(c){c.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function OJ(a){a.registerComponentModel(SJ),a.registerComponentView(MJ),C5(a)}var _l=function a(){},Q$={};function yb(a,i){Q$[a]=i}function J$(a){return Q$[a]}var LJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;G(this.option.feature,function(o,c){var d=J$(c);d&&(d.getDefaultOption&&(d.defaultOption=d.getDefaultOption(n)),mt(o,d.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},i}(en);const FJ=LJ;function eY(a,i){var n=jh(i.get("padding")),o=i.getItemStyle(["color","opacity"]);return o.fill=i.get("backgroundColor"),new _t({shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[1]+n[3],height:a.height+n[0]+n[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1})}var S5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this.group;if(h.removeAll(),n.get("show")){var f=+n.get("itemSize"),p="vertical"===n.get("orient"),g=n.get("feature")||{},v=this._features||(this._features={}),_=[];G(g,function(x,S){_.push(S)}),new Qc(this._featureNames||[],_).add(y).update(y).remove(ct(y,null)).execute(),this._featureNames=_,function NJ(a,i,n){var o=i.getBoxLayoutParams(),c=i.get("padding"),d={width:n.getWidth(),height:n.getHeight()},h=Dr(o,d,c);Wh(i.get("orient"),a,i.get("itemGap"),h.width,h.height),g_(a,o,d,c)}(h,n,c),h.add(eY(h.getBoundingRect(),n)),p||h.eachChild(function(x){var S=x.__title,D=x.ensureState("emphasis"),T=D.textConfig||(D.textConfig={}),A=x.getTextContent(),E=A&&A.ensureState("emphasis");if(E&&!Xe(E)&&S){var k=E.style||(E.style={}),L=M0(S,Zt.makeFont(k)),O=x.x+h.x,U=!1;x.y+h.y+f+L.height>c.getHeight()&&(T.position="top",U=!0);var j=U?-5-L.height:f+10;O+L.width/2>c.getWidth()?(T.position=["100%",j],k.align="right"):O-L.width/2<0&&(T.position=[0,j],k.align="left")}})}function y(x,S){var k,D=_[x],T=_[S],A=g[D],E=new Un(A,n,n.ecModel);if(d&&null!=d.newTitle&&d.featureName===D&&(A.title=d.newTitle),D&&!T){if(function tY(a){return 0===a.indexOf("my")}(D))k={onclick:E.option.onclick,featureName:D};else{var L=J$(D);if(!L)return;k=new L}v[D]=k}else if(!(k=v[T]))return;k.uid=cm("toolbox-feature"),k.model=E,k.ecModel=o,k.api=c;var O=k instanceof _l;D||!T?!E.get("show")||O&&k.unusable?O&&k.remove&&k.remove(o,c):(function w(x,S,D){var L,O,T=x.getModel("iconStyle"),A=x.getModel(["emphasis","iconStyle"]),E=S instanceof _l&&S.getIcons?S.getIcons():x.get("icon"),k=x.get("title")||{};Ae(E)?(L={})[D]=E:L=E,Ae(k)?(O={})[D]=k:O=k;var B=x.iconPaths={};G(L,function(U,j){var W=Ks(U,{},{x:-f/2,y:-f/2,width:f,height:f});W.setStyle(T.getItemStyle()),W.ensureState("emphasis").style=A.getItemStyle();var X=new Zt({style:{text:O[j],align:A.get("textAlign"),borderRadius:A.get("textBorderRadius"),padding:A.get("textPadding"),fill:null},ignore:!0});W.setTextContent(X),nf({el:W,componentModel:n,itemName:j,formatterParamsExtra:{title:O[j]}}),W.__title=O[j],W.on("mouseover",function(){var K=A.getItemStyle(),ee=p?null==n.get("right")&&"right"!==n.get("left")?"right":"left":null==n.get("bottom")&&"bottom"!==n.get("top")?"bottom":"top";X.setStyle({fill:A.get("textFill")||K.fill||K.stroke||"#000",backgroundColor:A.get("textBackgroundColor")}),W.setTextConfig({position:A.get("textPosition")||ee}),X.ignore=!n.get("showTitle"),c.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==x.get(["iconStatus",j])&&c.leaveEmphasis(this),X.hide()}),("emphasis"===x.get(["iconStatus",j])?Xl:Kl)(W),h.add(W),W.on("click",he(S.onclick,S,o,c,j)),B[j]=W})}(E,k,D),E.setIconStatus=function(B,U){var j=this.option,W=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=U,W[B]&&("emphasis"===U?Xl:Kl)(W[B])},k instanceof _l&&k.render&&k.render(E,o,c,d)):O&&k.dispose&&k.dispose(o,c)}},i.prototype.updateView=function(n,o,c,d){G(this._features,function(h){h instanceof _l&&h.updateView&&h.updateView(h.model,o,c,d)})},i.prototype.remove=function(n,o){G(this._features,function(c){c instanceof _l&&c.remove&&c.remove(n,o)}),this.group.removeAll()},i.prototype.dispose=function(n,o){G(this._features,function(c){c instanceof _l&&c.dispose&&c.dispose(n,o)})},i.type="toolbox",i}(li);const VJ=S5;var BJ=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.onclick=function(n,o){var c=this.model,d=c.get("name")||n.get("title.0.text")||"echarts",h="svg"===o.getZr().painter.getType(),f=h?"svg":c.get("type",!0)||"png",p=o.getConnectedDataURL({type:f,backgroundColor:c.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:c.get("connectedBackgroundColor"),excludeComponents:c.get("excludeComponents"),pixelRatio:c.get("pixelRatio")}),g=tn.browser;if(Xe(MouseEvent)&&(g.newEdge||!g.ie&&!g.edge)){var v=document.createElement("a");v.download=d+"."+f,v.target="_blank",v.href=p;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(_)}else if(window.navigator.msSaveOrOpenBlob||h){var y=p.split(","),w=y[0].indexOf("base64")>-1,x=h?decodeURIComponent(y[1]):y[1];w&&(x=window.atob(x));var S=d+"."+f;if(window.navigator.msSaveOrOpenBlob){for(var D=x.length,T=new Uint8Array(D);D--;)T[D]=x.charCodeAt(D);var A=new Blob([T]);window.navigator.msSaveOrOpenBlob(A,S)}else{var E=document.createElement("iframe");document.body.appendChild(E);var k=E.contentWindow,L=k.document;L.open("image/svg+xml","replace"),L.write(x),L.close(),k.focus(),L.execCommand("SaveAs",!0,S),document.body.removeChild(E)}}else{var O=c.get("lang"),B='',U=window.open();U.document.write(B),U.document.title=d}},i.getDefaultOption=function(n){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(_l);const zJ=BJ;var nY="__ec_magicType_stack__",HJ=[["line","bar"],["stack"]],UJ=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getIcons=function(){var n=this.model,o=n.get("icon"),c={};return G(n.get("type"),function(d){o[d]&&(c[d]=o[d])}),c},i.getDefaultOption=function(n){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(n,o,c){var d=this.model,h=d.get(["seriesIndex",c]);if(iY[c]){var f={series:[]};G(HJ,function(_){Ct(_,c)>=0&&G(_,function(y){d.setIconStatus(y,"normal")})}),d.setIconStatus(c,"emphasis"),n.eachComponent({mainType:"series",query:null==h?null:{seriesIndex:h}},function(_){var x=iY[c](_.subType,_.id,_,d);x&&(Ze(x,_.option),f.series.push(x));var S=_.coordinateSystem;if(S&&"cartesian2d"===S.type&&("line"===c||"bar"===c)){var D=S.getAxesByScale("ordinal")[0];if(D){var A=D.dim+"Axis",k=_.getReferringComponents(A,yi).models[0].componentIndex;f[A]=f[A]||[];for(var L=0;L<=k;L++)f[A][k]=f[A][k]||{};f[A][k].boundaryGap="bar"===c}}});var g,v=c;"stack"===c&&(g=mt({stack:d.option.title.tiled,tiled:d.option.title.stack},d.option.title),"emphasis"!==d.get(["iconStatus",c])&&(v="tiled")),o.dispatchAction({type:"changeMagicType",currentType:v,newOption:f,newTitle:g,featureName:"magicType"})}},i}(_l),iY={line:function(a,i,n,o){if("bar"===a)return mt({id:i,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(a,i,n,o){if("line"===a)return mt({id:i,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(a,i,n,o){var c=n.get("stack")===nY;if("line"===a||"bar"===a)return o.setIconStatus("stack",c?"normal":"emphasis"),mt({id:i,stack:c?"":nY},o.get(["option","stack"])||{},!0)}};ys({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,i){i.mergeOption(a.newOption)});const jJ=UJ;var Ik=new Array(60).join("-");function WJ(a){var i=[];return G(a,function(n,o){var c=n.categoryAxis,h=n.valueAxis.dim,f=[" "].concat(Se(n.series,function(w){return w.name})),p=[c.model.getCategories()];G(n.series,function(w){var x=w.getRawData();p.push(w.getRawData().mapArray(x.mapDimension(h),function(S){return S}))});for(var g=[f.join("\t")],v=0;v=0)return!0}(c)){var h=function ZJ(a){for(var i=a.split(/\n+/g),o=[],c=Se(kk(i.shift()).split(D5),function(p){return{name:p,data:[]}}),d=0;d=0)&&h(d,c._targetInfoList)})}return a.prototype.setOutputRanges=function(i,n){return this.matchOutputRanges(i,n,function(o,c,d){if((o.coordRanges||(o.coordRanges=[])).push(c),!o.coordRange){o.coordRange=c;var h=A5[o.brushType](0,d,c);o.__rangeOffset={offset:E5[o.brushType](h.values,o.range,[1,1]),xyMinMax:h.xyMinMax}}}),i},a.prototype.matchOutputRanges=function(i,n,o){G(i,function(c){var d=this.findTargetInfo(c,n);d&&!0!==d&&G(d.coordSyses,function(h){var f=A5[c.brushType](1,h,c.range,!0);o(c,f.values,h,n)})},this)},a.prototype.setInputRanges=function(i,n){G(i,function(o){var c=this.findTargetInfo(o,n);if(o.range=o.range||[],c&&!0!==c){o.panelId=c.panelId;var d=A5[o.brushType](0,c.coordSys,o.coordRange),h=o.__rangeOffset;o.range=h?E5[o.brushType](d.values,h.offset,function dee(a,i){var n=uY(a),o=uY(i),c=[n[0]/o[0],n[1]/o[1]];return isNaN(c[0])&&(c[0]=1),isNaN(c[1])&&(c[1]=1),c}(d.xyMinMax,h.xyMinMax)):d.values}},this)},a.prototype.makePanelOpts=function(i,n){return Se(this._targetInfoList,function(o){var c=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:n?n(o):null,clipPath:Ru(c),isTargetByCursor:Eo(c,i,o.coordSysModel),getLinearBrushOtherExtent:Fi(c)}})},a.prototype.controlSeries=function(i,n,o){var c=this.findTargetInfo(i,o);return!0===c||c&&Ct(c.coordSyses,n.coordinateSystem)>=0},a.prototype.findTargetInfo=function(i,n){for(var o=this._targetInfoList,c=oY(n,i),d=0;da[1]&&a.reverse(),a}function oY(a,i){return Zv(a,i,{includeMainTypes:see})}var cee={grid:function(a,i){var n=a.xAxisModels,o=a.yAxisModels,c=a.gridModels,d=Me(),h={},f={};!n&&!o&&!c||(G(n,function(p){var g=p.axis.grid.model;d.set(g.id,g),h[g.id]=!0}),G(o,function(p){var g=p.axis.grid.model;d.set(g.id,g),f[g.id]=!0}),G(c,function(p){d.set(p.id,p),h[p.id]=!0,f[p.id]=!0}),d.each(function(p){var v=[];G(p.coordinateSystem.getCartesians(),function(_,y){(Ct(n,_.getAxis("x").model)>=0||Ct(o,_.getAxis("y").model)>=0)&&v.push(_)}),i.push({panelId:"grid--"+p.id,gridModel:p,coordSysModel:p,coordSys:v[0],coordSyses:v,getPanelRect:lY.grid,xAxisDeclared:h[p.id],yAxisDeclared:f[p.id]})}))},geo:function(a,i){G(a.geoModels,function(n){var o=n.coordinateSystem;i.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:o,coordSyses:[o],getPanelRect:lY.geo})})}},sY=[function(a,i){var n=a.xAxisModel,o=a.yAxisModel,c=a.gridModel;return!c&&n&&(c=n.axis.grid.model),!c&&o&&(c=o.axis.grid.model),c&&c===i.gridModel},function(a,i){var n=a.geoModel;return n&&n===i.geoModel}],lY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,i=a.getBoundingRect().clone();return i.applyTransform(rc(a)),i}},A5={lineX:ct(cY,0),lineY:ct(cY,1),rect:function(a,i,n,o){var c=a?i.pointToData([n[0][0],n[1][0]],o):i.dataToPoint([n[0][0],n[1][0]],o),d=a?i.pointToData([n[0][1],n[1][1]],o):i.dataToPoint([n[0][1],n[1][1]],o),h=[M5([c[0],d[0]]),M5([c[1],d[1]])];return{values:h,xyMinMax:h}},polygon:function(a,i,n,o){var c=[[1/0,-1/0],[1/0,-1/0]];return{values:Se(n,function(h){var f=a?i.pointToData(h,o):i.dataToPoint(h,o);return c[0][0]=Math.min(c[0][0],f[0]),c[1][0]=Math.min(c[1][0],f[1]),c[0][1]=Math.max(c[0][1],f[0]),c[1][1]=Math.max(c[1][1],f[1]),f}),xyMinMax:c}}};function cY(a,i,n,o){var c=n.getAxis(["x","y"][a]),d=M5(Se([0,1],function(f){return i?c.coordToData(c.toLocalCoord(o[f]),!0):c.toGlobalCoord(c.dataToCoord(o[f]))})),h=[];return h[a]=d,h[1-a]=[NaN,NaN],{values:d,xyMinMax:h}}var E5={lineX:ct(dY,0),lineY:ct(dY,1),rect:function(a,i,n){return[[a[0][0]-n[0]*i[0][0],a[0][1]-n[0]*i[0][1]],[a[1][0]-n[1]*i[1][0],a[1][1]-n[1]*i[1][1]]]},polygon:function(a,i,n){return Se(a,function(o,c){return[o[0]-n[0]*i[c][0],o[1]-n[1]*i[c][1]]})}};function dY(a,i,n,o){return[i[0]-o[a]*n[0],i[1]-o[a]*n[1]]}function uY(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}const I5=lee;var k5=G,uee=function LH(a){return $v+a}("toolbox-dataZoom_"),hee=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c,d){this._brushController||(this._brushController=new TI(c.getZr()),this._brushController.on("brush",he(this._onBrush,this)).mount()),function P5(a,i,n,o,c){var d=n._isZoomActive;o&&"takeGlobalCursor"===o.type&&(d="dataZoomSelect"===o.key&&o.dataZoomSelectActive),n._isZoomActive=d,a.setIconStatus("zoom",d?"emphasis":"normal");var f=new I5(Pk(a),i,{include:["grid"]}).makePanelOpts(c,function(p){return p.xAxisDeclared&&!p.yAxisDeclared?"lineX":!p.xAxisDeclared&&p.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(f).enableBrush(!(!d||!f.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(n,o,this,d,c),function vr(a,i){a.setIconStatus("back",function ree(a){return T5(a).length}(i)>1?"emphasis":"normal")}(n,o)},i.prototype.onclick=function(n,o,c){fee[c].call(this)},i.prototype.remove=function(n,o){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(n,o){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(n){var o=n.areas;if(n.isEnd&&o.length){var c={},d=this.ecModel;this._brushController.updateCovers([]),new I5(Pk(this.model),d,{include:["grid"]}).matchOutputRanges(o,d,function(g,v,_){if("cartesian2d"===_.type){var y=g.brushType;"rect"===y?(f("x",_,v[0]),f("y",_,v[1])):f({lineX:"x",lineY:"y"}[y],_,v)}}),function tee(a,i){var n=T5(a);rY(i,function(o,c){for(var d=n.length-1;d>=0&&!n[d][c];d--);if(d<0){var f=a.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(f){var p=f.getPercentRange();n[0][c]={dataZoomId:c,start:p[0],end:p[1]}}}}),n.push(i)}(d,c),this._dispatchZoomAction(c)}function f(g,v,_){var y=v.getAxis(g),w=y.model,x=function p(g,v,_){var y;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,v.componentIndex)&&(y=w)}),y}(g,w,d),S=x.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=S.minValueSpan||null!=S.maxValueSpan)&&(_=jf(0,_.slice(),y.scale.getExtent(),0,S.minValueSpan,S.maxValueSpan)),x&&(c[x.id]={dataZoomId:x.id,startValue:_[0],endValue:_[1]})}},i.prototype._dispatchZoomAction=function(n){var o=[];k5(n,function(c,d){o.push(nt(c))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},i.getDefaultOption=function(n){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(_l),fee={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function nee(a){var i=T5(a),n=i[i.length-1];i.length>1&&i.pop();var o={};return rY(n,function(c,d){for(var h=i.length-1;h>=0;h--)if(c=i[h][d]){o[d]=c;break}}),o}(this.ecModel))}};function Pk(a){var i={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function fO(a,i){be(null==hO.get(a)&&i),hO.set(a,i)}("dataZoom",function(a){var i=a.getComponent("toolbox",0),n=["feature","dataZoom"];if(i&&null!=i.get(n)){var o=i.getModel(n),c=[],h=Zv(a,Pk(o));return k5(h.xAxisModels,function(p){return f(p,"xAxis","xAxisIndex")}),k5(h.yAxisModels,function(p){return f(p,"yAxis","yAxisIndex")}),c}function f(p,g,v){var _=p.componentIndex,y={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:uee+g+_};y[v]=_,c.push(y)}});const hY=hee;var fY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},i}(en);const R5=fY;function E1(a){var i=a.get("confine");return null!=i?!!i:"richText"===a.get("renderMode")}function Rk(a){if(tn.domSupported)for(var i=document.documentElement.style,n=0,o=a.length;n-1?(f+="top:50%",p+="translateY(-50%) rotate("+(g="left"===d?-225:-45)+"deg)"):(f+="left:50%",p+="translateX(-50%) rotate("+(g="top"===d?225:45)+"deg)");var v=g*Math.PI/180,_=h+c,y=_*Math.abs(Math.cos(v))+_*Math.abs(Math.sin(v)),x=i+" solid "+c+"px;";return'
'}(o,c,d)),Ae(i))h.innerHTML=i+f;else if(i){h.innerHTML="",ye(i)||(i=[i]);for(var p=0;p=0?this._tryShow(d,h):"leave"===c&&this._hide(h))},this))},i.prototype._keepShow=function(){var n=this._tooltipModel,o=this._ecModel,c=this._api,d=n.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==d&&"click"!==d){var h=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!c.isDisposed()&&h.manuallyShowTip(n,o,c,{x:h._lastX,y:h._lastY,dataByCoordSys:h._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(n,o,c,d){if(d.from!==this.uid&&!tn.node&&c.getDom()){var h=B5(d,c);this._ticket="";var f=d.dataByCoordSys,p=function H5(a,i,n){var o=MD(a).queryOptionMap,c=o.keys()[0];if(c&&"series"!==c){var p,h=Kv(i,c,o.get(c),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(h&&(n.getViewOfComponentModel(h).group.traverse(function(g){var v=st(g).tooltipConfig;if(v&&v.name===a.name)return p=g,!0}),p))return{componentMainType:c,componentIndex:h.componentIndex,el:p}}}(d,o,c);if(p){var g=p.el.getBoundingRect().clone();g.applyTransform(p.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:p.el,position:d.position,positionDefault:"bottom"},h)}else if(d.tooltip&&null!=d.x&&null!=d.y){var v=V5;v.x=d.x,v.y=d.y,v.update(),st(v).tooltipConfig={name:null,option:d.tooltip},this._tryShow({offsetX:d.x,offsetY:d.y,target:v},h)}else if(f)this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,dataByCoordSys:f,tooltipOption:d.tooltipOption},h);else if(null!=d.seriesIndex){if(this._manuallyAxisShowTip(n,o,c,d))return;var _=l5(d,o),y=_.point[0],w=_.point[1];null!=y&&null!=w&&this._tryShow({offsetX:y,offsetY:w,target:_.el,position:d.position,positionDefault:"bottom"},h)}else null!=d.x&&null!=d.y&&(c.dispatchAction({type:"updateAxisPointer",x:d.x,y:d.y}),this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,target:c.getZr().findHover(d.x,d.y).target},h))}},i.prototype.manuallyHideTip=function(n,o,c,d){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,d.from!==this.uid&&this._hide(B5(d,c))},i.prototype._manuallyAxisShowTip=function(n,o,c,d){var h=d.seriesIndex,f=d.dataIndex,p=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=h&&null!=f&&null!=p){var g=o.getSeriesByIndex(h);if(g&&"axis"===wb([g.getData().getItemModel(f),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return c.dispatchAction({type:"updateAxisPointer",seriesIndex:h,dataIndex:f,position:d.position}),!0}},i.prototype._tryShow=function(n,o){var c=n.target;if(this._tooltipModel){this._lastX=n.offsetX,this._lastY=n.offsetY;var h=n.dataByCoordSys;if(h&&h.length)this._showAxisTooltip(h,n);else if(c){var f,p;this._lastDataByCoordSys=null,fu(c,function(g){return null!=st(g).dataIndex?(f=g,!0):null!=st(g).tooltipConfig?(p=g,!0):void 0},!0),f?this._showSeriesItemTooltip(n,f,o):p?this._showComponentItemTooltip(n,p,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},i.prototype._showOrMove=function(n,o){var c=n.get("showDelay");o=he(o,this),clearTimeout(this._showTimout),c>0?this._showTimout=setTimeout(o,c):o()},i.prototype._showAxisTooltip=function(n,o){var c=this._ecModel,d=this._tooltipModel,h=[o.offsetX,o.offsetY],f=wb([o.tooltipOption],d),p=this._renderMode,g=[],v=Hr("section",{blocks:[],noHeader:!0}),_=[],y=new ou;G(n,function(A){G(A.dataByAxis,function(E){var k=c.getComponent(E.axisDim+"Axis",E.axisIndex),L=E.value;if(k&&null!=L){var O=hk(L,k.axis,c,E.seriesDataIndices,E.valueLabelOpt),B=Hr("section",{header:O,noHeader:!la(O),sortBlocks:!0,blocks:[]});v.blocks.push(B),G(E.seriesDataIndices,function(U){var j=c.getSeriesByIndex(U.seriesIndex),W=U.dataIndexInside,$=j.getDataParams(W);if(!($.dataIndex<0)){$.axisDim=E.axisDim,$.axisIndex=E.axisIndex,$.axisType=E.axisType,$.axisId=E.axisId,$.axisValue=Px(k.axis,{value:L}),$.axisValueLabel=O,$.marker=y.makeTooltipMarker("item",Gh($.color),p);var X=kO(j.formatTooltip(W,!0,null)),K=X.frag;if(K){var ee=wb([j],d).get("valueFormatter");B.blocks.push(ee?_e({valueFormatter:ee},K):K)}X.text&&_.push(X.text),g.push($)}})}})}),v.blocks.reverse(),_.reverse();var w=o.position,x=f.get("order"),S=qT(v,y,p,x,c.get("useUTC"),f.get("textStyle"));S&&_.unshift(S);var T=_.join("richText"===p?"\n\n":"
");this._showOrMove(f,function(){this._updateContentNotChangedOnAxis(n,g)?this._updatePosition(f,w,h[0],h[1],this._tooltipContent,g):this._showTooltipContent(f,T,g,Math.random()+"",h[0],h[1],w,null,y)})},i.prototype._showSeriesItemTooltip=function(n,o,c){var d=this._ecModel,h=st(o),f=h.seriesIndex,p=d.getSeriesByIndex(f),g=h.dataModel||p,v=h.dataIndex,_=h.dataType,y=g.getData(_),w=this._renderMode,x=n.positionDefault,S=wb([y.getItemModel(v),g,p&&(p.coordinateSystem||{}).model],this._tooltipModel,x?{position:x}:null),D=S.get("trigger");if(null==D||"item"===D){var T=g.getDataParams(v,_),A=new ou;T.marker=A.makeTooltipMarker("item",Gh(T.color),w);var E=kO(g.formatTooltip(v,!1,_)),k=S.get("order"),L=S.get("valueFormatter"),O=E.frag,B=O?qT(L?_e({valueFormatter:L},O):O,A,w,k,d.get("useUTC"),S.get("textStyle")):E.text,U="item_"+g.name+"_"+v;this._showOrMove(S,function(){this._showTooltipContent(S,B,T,U,n.offsetX,n.offsetY,n.position,n.target,A)}),c({type:"showTip",dataIndexInside:v,dataIndex:y.getRawIndex(v),seriesIndex:f,from:this.uid})}},i.prototype._showComponentItemTooltip=function(n,o,c){var d=st(o),f=d.tooltipConfig.option||{};Ae(f)&&(f={content:f,formatter:f});var g=[f],v=this._ecModel.getComponent(d.componentMainType,d.componentIndex);v&&g.push(v),g.push({formatter:f.content});var _=n.positionDefault,y=wb(g,this._tooltipModel,_?{position:_}:null),w=y.get("content"),x=Math.random()+"",S=new ou;this._showOrMove(y,function(){var D=nt(y.get("formatterParams")||{});this._showTooltipContent(y,w,D,x,n.offsetX,n.offsetY,n.position,o,S)}),c({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(n,o,c,d,h,f,p,g,v){if(this._ticket="",n.get("showContent")&&n.get("show")){var _=this._tooltipContent;_.setEnterable(n.get("enterable"));var y=n.get("formatter");p=p||n.get("position");var w=o,S=this._getNearestPoint([h,f],c,n.get("trigger"),n.get("borderColor")).color;if(y)if(Ae(y)){var D=n.ecModel.get("useUTC"),T=ye(c)?c[0]:c;w=y,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=Jd(T.axisValue,w,D)),w=vT(w,c,!0)}else if(Xe(y)){var E=he(function(k,L){k===this._ticket&&(_.setContent(L,v,n,S,p),this._updatePosition(n,p,h,f,_,c,g))},this);this._ticket=d,w=y(c,d,E)}else w=y;_.setContent(w,v,n,S,p),_.show(n,S),this._updatePosition(n,p,h,f,_,c,g)}},i.prototype._getNearestPoint=function(n,o,c,d){return"axis"===c||ye(o)?{color:d||("html"===this._renderMode?"#fff":"none")}:ye(o)?void 0:{color:d||o.color||o.borderColor}},i.prototype._updatePosition=function(n,o,c,d,h,f,p){var g=this._api.getWidth(),v=this._api.getHeight();o=o||n.get("position");var _=h.getSize(),y=n.get("align"),w=n.get("verticalAlign"),x=p&&p.getBoundingRect().clone();if(p&&x.applyTransform(p.transform),Xe(o)&&(o=o([c,d],f,h.el,x,{viewSize:[g,v],contentSize:_.slice()})),ye(o))c=Ie(o[0],g),d=Ie(o[1],v);else if(Ee(o)){var S=o;S.width=_[0],S.height=_[1];var D=Dr(S,{width:g,height:v});c=D.x,d=D.y,y=null,w=null}else if(Ae(o)&&p){var T=function z5(a,i,n,o){var c=n[0],d=n[1],h=Math.ceil(Math.SQRT2*o)+8,f=0,p=0,g=i.width,v=i.height;switch(a){case"inside":f=i.x+g/2-c/2,p=i.y+v/2-d/2;break;case"top":f=i.x+g/2-c/2,p=i.y-d-h;break;case"bottom":f=i.x+g/2-c/2,p=i.y+v+h;break;case"left":f=i.x-c-h,p=i.y+v/2-d/2;break;case"right":f=i.x+g+h,p=i.y+v/2-d/2}return[f,p]}(o,x,_,n.get("borderWidth"));c=T[0],d=T[1]}else T=function Mi(a,i,n,o,c,d,h){var f=n.getSize(),p=f[0],g=f[1];return null!=d&&(a+p+d+2>o?a-=p+d:a+=d),null!=h&&(i+g+h>c?i-=g+h:i+=h),[a,i]}(c,d,h,g,v,y?null:20,w?null:20),c=T[0],d=T[1];y&&(c-=P1(y)?_[0]/2:"right"===y?_[0]:0),w&&(d-=P1(w)?_[1]/2:"bottom"===w?_[1]:0),E1(n)&&(T=function yY(a,i,n,o,c){var d=n.getSize(),h=d[0],f=d[1];return a=Math.min(a+h,o)-h,i=Math.min(i+f,c)-f,[a=Math.max(a,0),i=Math.max(i,0)]}(c,d,h,g,v),c=T[0],d=T[1]),h.moveTo(c,d)},i.prototype._updateContentNotChangedOnAxis=function(n,o){var c=this._lastDataByCoordSys,d=this._cbParamsList,h=!!c&&c.length===n.length;return h&&G(c,function(f,p){var g=f.dataByAxis||[],_=(n[p]||{}).dataByAxis||[];(h=h&&g.length===_.length)&&G(g,function(y,w){var x=_[w]||{},S=y.seriesDataIndices||[],D=x.seriesDataIndices||[];(h=h&&y.value===x.value&&y.axisType===x.axisType&&y.axisId===x.axisId&&S.length===D.length)&&G(S,function(T,A){var E=D[A];h=h&&T.seriesIndex===E.seriesIndex&&T.dataIndex===E.dataIndex}),d&&G(y.seriesDataIndices,function(T){var A=T.seriesIndex,E=o[A],k=d[A];E&&k&&k.data!==E.data&&(h=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=o,!!h},i.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},i.prototype.dispose=function(n,o){tn.node||!o.getDom()||(af(this,"_updatePosition"),this._tooltipContent.dispose(),vk("itemTooltip",o))},i.type="tooltip",i}(li);function wb(a,i,n){var c,o=i.ecModel;n?(c=new Un(n,o,o),c=new Un(i.option,c,o)):c=i;for(var d=a.length-1;d>=0;d--){var h=a[d];h&&(h instanceof Un&&(h=h.get("tooltip",!0)),Ae(h)&&(h={formatter:h}),h&&(c=new Un(h,c,o)))}return c}function B5(a,i){return a.dispatchAction||he(i.dispatchAction,i)}function P1(a){return"center"===a||"middle"===a}const bY=_Y;var Hu=["rect","polygon","keep","clear"];function bee(a,i){var n=Mn(a?a.brush:[]);if(n.length){var o=[];G(n,function(p){var g=p.hasOwnProperty("toolbox")?p.toolbox:[];g instanceof Array&&(o=o.concat(g))});var c=a&&a.toolbox;ye(c)&&(c=c[0]),c||(a.toolbox=[c={feature:{}}]);var d=c.feature||(c.feature={}),h=d.brush||(d.brush={}),f=h.type||(h.type=[]);f.push.apply(f,o),function Nk(a){var i={};G(a,function(n){i[n]=1}),a.length=0,G(i,function(n,o){a.push(o)})}(f),i&&!f.length&&f.push.apply(f,Hu)}}var R1=G;function O1(a){if(a)for(var i in a)if(a.hasOwnProperty(i))return!0}function Vk(a,i,n){var o={};return R1(i,function(d){var h=o[d]=function c(){var d=function(){};return d.prototype.__hidden=d.prototype,new d}();R1(a[d],function(f,p){if(Zr.isValidType(p)){var g={type:p,visual:f};n&&n(g,d),h[p]=new Zr(g),"opacity"===p&&((g=nt(g)).type="colorAlpha",h.__hidden.__alphaForOpacity=new Zr(g))}})}),o}function Bk(a,i,n){var o;G(n,function(c){i.hasOwnProperty(c)&&O1(i[c])&&(o=!0)}),o&&G(n,function(c){i.hasOwnProperty(c)&&O1(i[c])?a[c]=nt(i[c]):delete a[c]})}var SY={lineX:Hk(0),lineY:Hk(1),rect:{point:function(a,i,n){return a&&n.boundingRect.contain(a[0],a[1])},rect:function(a,i,n){return a&&n.boundingRect.intersect(a)}},polygon:{point:function(a,i,n){return a&&n.boundingRect.contain(a[0],a[1])&&Cf(n.range,a[0],a[1])},rect:function(a,i,n){var o=n.range;if(!a||o.length<=1)return!1;var c=a.x,d=a.y,h=a.width,f=a.height,p=o[0];return!!(Cf(o,c,d)||Cf(o,c+h,d)||Cf(o,c,d+f)||Cf(o,c+h,d+f)||ce.create(a).contain(p[0],p[1])||L_(c,d,c+h,d,o)||L_(c,d,c,d+f,o)||L_(c+h,d,c+h,d+f,o)||L_(c,d+f,c+h,d+f,o))||void 0}}};function Hk(a){var i=["x","y"],n=["width","height"];return{point:function(o,c,d){if(o)return yl(o[a],d.range)},rect:function(o,c,d){if(o){var h=d.range,f=[o[i[a]],o[i[a]]+o[n[a]]];return f[1]i[0][1]&&(i[0][1]=d[0]),d[1]i[1][1]&&(i[1][1]=d[1])}return i&&Gk(i)}};function Gk(a){return new ce(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var V1=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){this.ecModel=n,this.api=o,(this._brushController=new TI(o.getZr())).on("brush",he(this._onBrush,this)).mount()},i.prototype.render=function(n,o,c,d){this.model=n,this._updateController(n,o,c,d)},i.prototype.updateTransform=function(n,o,c,d){jk(o),this._updateController(n,o,c,d)},i.prototype.updateVisual=function(n,o,c,d){this.updateTransform(n,o,c,d)},i.prototype.updateView=function(n,o,c,d){this._updateController(n,o,c,d)},i.prototype._updateController=function(n,o,c,d){(!d||d.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(c)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(n){var o=this.model.id,c=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:nt(c),$from:o}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:nt(c),$from:o})},i.type="brush",i}(li);const Wk=V1;var $k=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.areas=[],n.brushOption={},n}return de(i,a),i.prototype.optionUpdated=function(n,o){var c=this.option;!o&&Bk(c,n,["inBrush","outOfBrush"]);var d=c.inBrush=c.inBrush||{};c.outOfBrush=c.outOfBrush||{color:"#ddd"},d.hasOwnProperty("liftZ")||(d.liftZ=5)},i.prototype.setAreas=function(n){n&&(this.areas=Se(n,function(o){return Yk(this.option,o)},this))},i.prototype.setBrushOption=function(n){this.brushOption=Yk(this.option,n),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},i}(en);function Yk(a,i){return mt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Un(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},i,!0)}const W5=$k;var $5=["rect","polygon","lineX","lineY","keep","clear"],qk=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c){var d,h,f;o.eachComponent({mainType:"brush"},function(p){d=p.brushType,h=p.brushOption.brushMode||"single",f=f||!!p.areas.length}),this._brushType=d,this._brushMode=h,G(n.get("type",!0),function(p){n.setIconStatus(p,("keep"===p?"multiple"===h:"clear"===p?f:p===d)?"emphasis":"normal")})},i.prototype.updateView=function(n,o,c){this.render(n,o,c)},i.prototype.getIcons=function(){var n=this.model,o=n.get("icon",!0),c={};return G(n.get("type",!0),function(d){o[d]&&(c[d]=o[d])}),c},i.prototype.onclick=function(n,o,c){var d=this._brushType,h=this._brushMode;"clear"===c?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===c?d:d!==c&&c,brushMode:"keep"===c?"multiple"===h?"single":"multiple":h}})},i.getDefaultOption=function(n){return{show:!0,type:$5.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])}},i}(_l);const Cee=qk;var TY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.layoutMode={type:"box",ignoreSize:!0},n}return de(i,a),i.type="title",i.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},i}(en),MY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){if(this.group.removeAll(),n.get("show")){var d=this.group,h=n.getModel("textStyle"),f=n.getModel("subtextStyle"),p=n.get("textAlign"),g=gt(n.get("textBaseline"),n.get("textVerticalAlign")),v=new Zt({style:Zn(h,{text:n.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10}),_=v.getBoundingRect(),y=n.get("subtext"),w=new Zt({style:Zn(f,{text:y,fill:f.getTextColor(),y:_.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=n.get("link"),S=n.get("sublink"),D=n.get("triggerEvent",!0);v.silent=!x&&!D,w.silent=!S&&!D,x&&v.on("click",function(){Cw(x,"_"+n.get("target"))}),S&&w.on("click",function(){Cw(S,"_"+n.get("subtarget"))}),st(v).eventData=st(w).eventData=D?{componentType:"title",componentIndex:n.componentIndex}:null,d.add(v),y&&d.add(w);var T=d.getBoundingRect(),A=n.getBoxLayoutParams();A.width=T.width,A.height=T.height;var E=Dr(A,{width:c.getWidth(),height:c.getHeight()},n.get("padding"));p||("middle"===(p=n.get("left")||n.get("right"))&&(p="center"),"right"===p?E.x+=E.width:"center"===p&&(E.x+=E.width/2)),g||("center"===(g=n.get("top")||n.get("bottom"))&&(g="middle"),"bottom"===g?E.y+=E.height:"middle"===g&&(E.y+=E.height/2),g=g||"top"),d.x=E.x,d.y=E.y,d.markRedraw();var k={align:p,verticalAlign:g};v.setStyle(k),w.setStyle(k),T=d.getBoundingRect();var L=E.margin,O=n.getItemStyle(["color","opacity"]);O.fill=n.get("backgroundColor");var B=new _t({shape:{x:T.x-L[3],y:T.y-L[0],width:T.width+L[1]+L[3],height:T.height+L[0]+L[2],r:n.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});d.add(B)}},i.type="title",i}(li),EY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.layoutMode="box",n}return de(i,a),i.prototype.init=function(n,o,c){this.mergeDefaultAndTheme(n,c),this._initData()},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(n){null==n&&(n=this.option.currentIndex);var o=this._data.count();this.option.loop?n=(n%o+o)%o:(n>=o&&(n=o-1),n<0&&(n=0)),this.option.currentIndex=n},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(n){this.option.autoPlay=!!n},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var h,n=this.option,o=n.data||[],c=n.axisType,d=this._names=[];"category"===c?(h=[],G(o,function(g,v){var y,_=xr(Yv(g),"");Ee(g)?(y=nt(g)).value=v:y=v,h.push(y),d.push(_)})):h=o,(this._data=new ya([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[c]||"number"}],this)).initData(h,d)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},i}(en);const Y5=EY;var q5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="timeline.slider",i.defaultOption=Ho(Y5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),i}(Y5);Di(q5,BT.prototype);const IY=q5;var Z5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="timeline",i}(li);const X5=Z5;var kY=function(a){function i(n,o,c,d){var h=a.call(this,n,o,c)||this;return h.type=d||"value",h}return de(i,a),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(il);const PY=kY;var Xk=Math.PI,K5=qt(),Kk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){this.api=o},i.prototype.render=function(n,o,c){if(this.model=n,this.api=c,this.ecModel=o,this.group.removeAll(),n.get("show",!0)){var d=this._layout(n,c),h=this._createGroup("_mainGroup"),f=this._createGroup("_labelGroup"),p=this._axis=this._createAxis(d,n);n.formatTooltip=function(g){return Hr("nameValue",{noName:!0,value:p.scale.getLabel({value:g})})},G(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](d,h,p,n)},this),this._renderAxisLabel(d,f,p,n),this._position(d,n)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(n,o){var f,c=n.get(["label","position"]),d=n.get("orient"),h=function See(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},a.get("padding"))}(n,o),p={horizontal:"center",vertical:(f=null==c||"auto"===c?"horizontal"===d?h.y+h.height/2=0||"+"===f?"left":"right"},g={horizontal:f>=0||"+"===f?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:Xk/2},_="vertical"===d?h.height:h.width,y=n.getModel("controlStyle"),w=y.get("show",!0),x=w?y.get("itemSize"):0,S=w?y.get("itemGap"):0,D=x+S,T=n.get(["label","rotate"])||0;T=T*Xk/180;var A,E,k,L=y.get("position",!0),O=w&&y.get("showPlayBtn",!0),B=w&&y.get("showPrevBtn",!0),U=w&&y.get("showNextBtn",!0),j=0,W=_;"left"===L||"bottom"===L?(O&&(A=[0,0],j+=D),B&&(E=[j,0],j+=D),U&&(k=[W-x,0],W-=D)):(O&&(A=[W-x,0],W-=D),B&&(E=[0,0],j+=D),U&&(k=[W-x,0],W-=D));var $=[j,W];return n.get("inverse")&&$.reverse(),{viewRect:h,mainLength:_,orient:d,rotation:v[d],labelRotation:T,labelPosOpt:f,labelAlign:n.get(["label","align"])||p[d],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||g[d],playPosition:A,prevBtnPosition:E,nextBtnPosition:k,axisExtent:$,controlSize:x,controlGap:S}},i.prototype._position=function(n,o){var c=this._mainGroup,d=this._labelGroup,h=n.viewRect;if("vertical"===n.orient){var f=[1,0,0,1,0,0],p=h.x,g=h.y+h.height;ar(f,f,[-p,-g]),Rd(f,f,-Xk/2),ar(f,f,[p,g]),(h=h.clone()).applyTransform(f)}var v=A(h),_=A(c.getBoundingRect()),y=A(d.getBoundingRect()),w=[c.x,c.y],x=[d.x,d.y];x[0]=w[0]=v[0][0];var D,S=n.labelPosOpt;function T(k){k.originX=v[0][0]-k.x,k.originY=v[1][0]-k.y}function A(k){return[[k.x,k.x+k.width],[k.y,k.y+k.height]]}function E(k,L,O,B,U){k[B]+=O[B][U]-L[B][U]}null==S||Ae(S)?(E(w,_,v,1,D="+"===S?0:1),E(x,y,v,1,1-D)):(E(w,_,v,1,D=S>=0?0:1),x[1]=w[1]+S),c.setPosition(w),d.setPosition(x),c.rotation=d.rotation=n.rotation,T(c),T(d)},i.prototype._createAxis=function(n,o){var c=o.getData(),d=o.get("axisType"),h=function RY(a,i){if(i=i||a.get("type"))switch(i){case"category":return new ey({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new NF({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new cc}}(o,d);h.getTicks=function(){return c.mapArray(["value"],function(g){return{value:g}})};var f=c.getDataExtent("value");h.setExtent(f[0],f[1]),h.calcNiceTicks();var p=new PY("value",h,n.axisExtent,d);return p.model=o,p},i.prototype._createGroup=function(n){var o=this[n]=new rt;return this.group.add(o),o},i.prototype._renderAxisLine=function(n,o,c,d){var h=c.getExtent();if(d.get(["lineStyle","show"])){var f=new Gr({shape:{x1:h[0],y1:0,x2:h[1],y2:0},style:_e({lineCap:"round"},d.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(f);var p=this._progressLine=new Gr({shape:{x1:h[0],x2:this._currentPointer?this._currentPointer.x:h[0],y1:0,y2:0},style:Ze({lineCap:"round",lineWidth:f.style.lineWidth},d.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(p)}},i.prototype._renderAxisTick=function(n,o,c,d){var h=this,f=d.getData(),p=c.scale.getTicks();this._tickSymbols=[],G(p,function(g){var v=c.dataToCoord(g.value),_=f.getItemModel(g.value),y=_.getModel("itemStyle"),w=_.getModel(["emphasis","itemStyle"]),x=_.getModel(["progress","itemStyle"]),S={x:v,y:0,onclick:he(h._changeTimeline,h,g.value)},D=OY(_,y,o,S);D.ensureState("emphasis").style=w.getItemStyle(),D.ensureState("progress").style=x.getItemStyle(),Kd(D);var T=st(D);_.get("tooltip")?(T.dataIndex=g.value,T.dataModel=d):T.dataIndex=T.dataModel=null,h._tickSymbols.push(D)})},i.prototype._renderAxisLabel=function(n,o,c,d){var h=this;if(c.getLabelModel().get("show")){var p=d.getData(),g=c.getViewLabels();this._tickLabels=[],G(g,function(v){var _=v.tickValue,y=p.getItemModel(_),w=y.getModel("label"),x=y.getModel(["emphasis","label"]),S=y.getModel(["progress","label"]),D=c.dataToCoord(v.tickValue),T=new Zt({x:D,y:0,rotation:n.labelRotation-n.rotation,onclick:he(h._changeTimeline,h,_),silent:!1,style:Zn(w,{text:v.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});T.ensureState("emphasis").style=Zn(x),T.ensureState("progress").style=Zn(S),o.add(T),Kd(T),K5(T).dataIndex=_,h._tickLabels.push(T)})}},i.prototype._renderControl=function(n,o,c,d){var h=n.controlSize,f=n.rotation,p=d.getModel("controlStyle").getItemStyle(),g=d.getModel(["emphasis","controlStyle"]).getItemStyle(),v=d.getPlayState(),_=d.get("inverse",!0);function y(w,x,S,D){if(w){var T=Ka(gt(d.get(["controlStyle",x+"BtnSize"]),h),h),E=function Dee(a,i,n,o){var c=o.style,d=Ks(a.get(["controlStyle",i]),o||{},new ce(n[0],n[1],n[2],n[3]));return c&&d.setStyle(c),d}(d,x+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:h/2,originY:0,rotation:D?-f:0,rectHover:!0,style:p,onclick:S});E.ensureState("emphasis").style=g,o.add(E),Kd(E)}}y(n.nextBtnPosition,"next",he(this._changeTimeline,this,_?"-":"+")),y(n.prevBtnPosition,"prev",he(this._changeTimeline,this,_?"+":"-")),y(n.playPosition,v?"stop":"play",he(this._handlePlayClick,this,!v),!0)},i.prototype._renderCurrentPointer=function(n,o,c,d){var h=d.getData(),f=d.getCurrentIndex(),p=h.getItemModel(f).getModel("checkpointStyle"),g=this;this._currentPointer=OY(p,p,this._mainGroup,{},this._currentPointer,{onCreate:function(_){_.draggable=!0,_.drift=he(g._handlePointerDrag,g),_.ondragend=he(g._handlePointerDragend,g),LY(_,g._progressLine,f,c,d,!0)},onUpdate:function(_){LY(_,g._progressLine,f,c,d)}})},i.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},i.prototype._handlePointerDrag=function(n,o,c){this._clearTimer(),this._pointerChangeTimeline([c.offsetX,c.offsetY])},i.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},i.prototype._pointerChangeTimeline=function(n,o){var c=this._toAxisCoord(n)[0],h=Qr(this._axis.getExtent().slice());c>h[1]&&(c=h[1]),c=0&&(h[d]=+h[d].toFixed(y)),[h,_]}var U1={min:ct(uo,"min"),max:ct(uo,"max"),average:ct(uo,"average"),median:ct(uo,"median")};function Kg(a,i){if(i){var n=a.getData(),o=a.coordinateSystem,c=o&&o.dimensions;if(!function H1(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}(i)&&!ye(i.coord)&&ye(c)){var d=nP(i,n,o,a);if((i=nt(i)).type&&U1[i.type]&&d.baseAxis&&d.valueAxis){var h=Ct(c,d.baseAxis.dim),f=Ct(c,d.valueAxis.dim),p=U1[i.type](n,d.baseDataDim,d.valueDataDim,h,f);i.coord=p[0],i.value=p[1]}else i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}if(null!=i.coord&&ye(c))for(var g=i.coord,v=0;v<2;v++)U1[g[v]]&&(g[v]=Jg(n,n.mapDimension(c[v]),g[v]));else i.coord=[];return i}}function nP(a,i,n,o){var c={};return null!=a.valueIndex||null!=a.valueDim?(c.valueDataDim=null!=a.valueIndex?i.getDimension(a.valueIndex):a.valueDim,c.valueAxis=n.getAxis(function iP(a,i){var n=a.getData().getDimensionInfo(i);return n&&n.coordDim}(o,c.valueDataDim)),c.baseAxis=n.getOtherAxis(c.valueAxis),c.baseDataDim=i.mapDimension(c.baseAxis.dim)):(c.baseAxis=o.getBaseAxis(),c.valueAxis=n.getOtherAxis(c.baseAxis),c.baseDataDim=i.mapDimension(c.baseAxis.dim),c.valueDataDim=i.mapDimension(c.valueAxis.dim)),c}function Qg(a,i){return!(a&&a.containData&&i.coord&&!tP(i))||a.containData(i.coord)}function tz(a,i){return a?function(n,o,c,d){return Wc(d<2?n.coord&&n.coord[d]:n.value,i[d])}:function(n,o,c,d){return Wc(n.value,i[d])}}function Jg(a,i,n){if("average"===n){var o=0,c=0;return a.each(i,function(d,h){isNaN(d)||(o+=d,c++)}),o/c}return"median"===n?a.getMedian(i):a.getDataExtent(i)["max"===n?1:0]}var nz=qt(),rP=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(){this.markerGroupMap=Me()},i.prototype.render=function(n,o,c){var d=this,h=this.markerGroupMap;h.each(function(f){nz(f).keep=!1}),o.eachSeries(function(f){var p=ju.getMarkerModelFromSeries(f,d.type);p&&d.renderSeries(f,p,o,c)}),h.each(function(f){!nz(f).keep&&d.group.remove(f.group)})},i.prototype.markKeep=function(n){nz(n).keep=!0},i.prototype.toggleBlurSeries=function(n,o){var c=this;G(n,function(d){var h=ju.getMarkerModelFromSeries(d,c.type);h&&h.getData().eachItemGraphicEl(function(p){p&&(o?a_(p):o_(p))})})},i.type="marker",i}(li);const xb=rP;function aP(a,i,n){var o=i.coordinateSystem;a.each(function(c){var h,d=a.getItemModel(c),f=Ie(d.get("x"),n.getWidth()),p=Ie(d.get("y"),n.getHeight());if(isNaN(f)||isNaN(p)){if(i.getMarkerPosition)h=i.getMarkerPosition(a.getValues(a.dimensions,c));else if(o){var g=a.get(o.dimensions[0],c),v=a.get(o.dimensions[1],c);h=o.dataToPoint([g,v])}}else h=[f,p];isNaN(f)||(h[0]=f),isNaN(p)||(h[1]=p),a.setItemLayout(c,h)})}var NY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markPoint");h&&(aP(h.getData(),d,c),this.markerGroupMap.get(d.id).updateLayout())},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,new If),_=function VY(a,i,n){var o;o=a?Se(a&&a.dimensions,function(f){return _e(_e({},i.getData().getDimensionInfo(i.getData().mapDimension(f))||{}),{name:f,ordinalMeta:null})}):[{name:"value",type:"float"}];var c=new ya(o,n),d=Se(n.get("data"),ct(Kg,i));a&&(d=_n(d,ct(Qg,a)));var h=tz(!!a,o);return c.initData(d,null,h),c}(h,n,o);o.setData(_),aP(o.getData(),n,d),_.each(function(y){var w=_.getItemModel(y),x=w.getShallow("symbol"),S=w.getShallow("symbolSize"),D=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),A=w.getShallow("symbolKeepAspect");if(Xe(x)||Xe(S)||Xe(D)||Xe(T)){var E=o.getRawValue(y),k=o.getDataParams(y);Xe(x)&&(x=x(E,k)),Xe(S)&&(S=S(E,k)),Xe(D)&&(D=D(E,k)),Xe(T)&&(T=T(E,k))}var L=w.getModel("itemStyle").getItemStyle(),O=Va(p,"color");L.fill||(L.fill=O),_.setItemVisual(y,{symbol:x,symbolSize:S,symbolRotate:D,symbolOffset:T,symbolKeepAspect:A,style:L})}),v.updateData(_),this.group.add(v.group),_.eachItemGraphicEl(function(y){y.traverse(function(w){st(w).dataModel=o})}),this.markKeep(v),v.group.silent=o.get("silent")||n.get("silent")},i.type="markPoint",i}(xb);const BY=NY;var zY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.createMarkerModelFromSeries=function(n,o,c){return new i(n,o,c)},i.type="markLine",i.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},i}(ju);const iz=zY;var ev=qt(),HY=function(a,i,n,o){var d,c=a.getData();if(ye(o))d=o;else{var h=o.type;if("min"===h||"max"===h||"average"===h||"median"===h||null!=o.xAxis||null!=o.yAxis){var f=void 0,p=void 0;if(null!=o.yAxis||null!=o.xAxis)f=i.getAxis(null!=o.yAxis?"y":"x"),p=it(o.yAxis,o.xAxis);else{var g=nP(o,c,i,a);f=g.valueAxis,p=Jg(c,Cx(c,g.valueDataDim),h)}var _="x"===f.dim?0:1,y=1-_,w=nt(o),x={coord:[]};w.type=null,w.coord=[],w.coord[y]=-1/0,x.coord[y]=1/0;var S=n.get("precision");S>=0&&on(p)&&(p=+p.toFixed(Math.min(S,20))),w.coord[_]=x.coord[_]=p,d=[w,x,{type:h,valueIndex:o.valueIndex,value:p}]}else d=[]}var D=[Kg(a,d[0]),Kg(a,d[1]),_e({},d[2])];return D[2].type=D[2].type||null,mt(D[2],D[0]),mt(D[2],D[1]),D};function Cb(a){return!isNaN(a)&&!isFinite(a)}function oP(a,i,n,o){var c=1-a,d=o.dimensions[a];return Cb(i[c])&&Cb(n[c])&&i[a]===n[a]&&o.getAxis(d).containData(i[a])}function Eee(a,i){if("cartesian2d"===a.type){var n=i[0].coord,o=i[1].coord;if(n&&o&&(oP(1,n,o,a)||oP(0,n,o,a)))return!0}return Qg(a,i[0])&&Qg(a,i[1])}function rz(a,i,n,o,c){var f,d=o.coordinateSystem,h=a.getItemModel(i),p=Ie(h.get("x"),c.getWidth()),g=Ie(h.get("y"),c.getHeight());if(isNaN(p)||isNaN(g)){if(o.getMarkerPosition)f=o.getMarkerPosition(a.getValues(a.dimensions,i));else{var _=a.get((v=d.dimensions)[0],i),y=a.get(v[1],i);f=d.dataToPoint([_,y])}if(ug(d,"cartesian2d")){var v,w=d.getAxis("x"),x=d.getAxis("y");Cb(a.get((v=d.dimensions)[0],i))?f[0]=w.toGlobalCoord(w.getExtent()[n?0:1]):Cb(a.get(v[1],i))&&(f[1]=x.toGlobalCoord(x.getExtent()[n?0:1]))}isNaN(p)||(f[0]=p),isNaN(g)||(f[1]=g)}else f=[p,g];a.setItemLayout(i,f)}var UY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markLine");if(h){var f=h.getData(),p=ev(h).from,g=ev(h).to;p.each(function(v){rz(p,v,!0,d,c),rz(g,v,!1,d,c)}),f.each(function(v){f.setItemLayout(v,[p.getItemLayout(v),g.getItemLayout(v)])}),this.markerGroupMap.get(d.id).updateLayout()}},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,new zC);this.group.add(v.group);var _=function jY(a,i,n){var o;o=a?Se(a&&a.dimensions,function(g){return _e(_e({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var c=new ya(o,n),d=new ya(o,n),h=new ya([],n),f=Se(n.get("data"),ct(HY,i,a,n));a&&(f=_n(f,ct(Eee,a)));var p=tz(!!a,o);return c.initData(Se(f,function(g){return g[0]}),null,p),d.initData(Se(f,function(g){return g[1]}),null,p),h.initData(Se(f,function(g){return g[2]})),h.hasItemOption=!0,{from:c,to:d,line:h}}(h,n,o),y=_.from,w=_.to,x=_.line;ev(o).from=y,ev(o).to=w,o.setData(x);var S=o.get("symbol"),D=o.get("symbolSize"),T=o.get("symbolRotate"),A=o.get("symbolOffset");function E(k,L,O){var B=k.getItemModel(L);rz(k,L,O,n,d);var U=B.getModel("itemStyle").getItemStyle();null==U.fill&&(U.fill=Va(p,"color")),k.setItemVisual(L,{symbolKeepAspect:B.get("symbolKeepAspect"),symbolOffset:gt(B.get("symbolOffset",!0),A[O?0:1]),symbolRotate:gt(B.get("symbolRotate",!0),T[O?0:1]),symbolSize:gt(B.get("symbolSize"),D[O?0:1]),symbol:gt(B.get("symbol",!0),S[O?0:1]),style:U})}ye(S)||(S=[S,S]),ye(D)||(D=[D,D]),ye(T)||(T=[T,T]),ye(A)||(A=[A,A]),_.from.each(function(k){E(y,k,!0),E(w,k,!1)}),x.each(function(k){var L=x.getItemModel(k).getModel("lineStyle").getLineStyle();x.setItemLayout(k,[y.getItemLayout(k),w.getItemLayout(k)]),null==L.stroke&&(L.stroke=y.getItemVisual(k,"style").fill),x.setItemVisual(k,{fromSymbolKeepAspect:y.getItemVisual(k,"symbolKeepAspect"),fromSymbolOffset:y.getItemVisual(k,"symbolOffset"),fromSymbolRotate:y.getItemVisual(k,"symbolRotate"),fromSymbolSize:y.getItemVisual(k,"symbolSize"),fromSymbol:y.getItemVisual(k,"symbol"),toSymbolKeepAspect:w.getItemVisual(k,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(k,"symbolOffset"),toSymbolRotate:w.getItemVisual(k,"symbolRotate"),toSymbolSize:w.getItemVisual(k,"symbolSize"),toSymbol:w.getItemVisual(k,"symbol"),style:L})}),v.updateData(x),_.line.eachItemGraphicEl(function(k){st(k).dataModel=o,k.traverse(function(L){st(L).dataModel=o})}),this.markKeep(v),v.group.silent=o.get("silent")||n.get("silent")},i.type="markLine",i}(xb);const GY=UY;var $Y=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.createMarkerModelFromSeries=function(n,o,c){return new i(n,o,c)},i.type="markArea",i.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(ju);const YY=$Y;var Sb=qt(),qY=function(a,i,n,o){var c=o[0],d=o[1];if(c&&d){var h=Kg(a,c),f=Kg(a,d),p=h.coord,g=f.coord;p[0]=it(p[0],-1/0),p[1]=it(p[1],-1/0),g[0]=it(g[0],1/0),g[1]=it(g[1],1/0);var v=Xb([{},h,f]);return v.coord=[h.coord,f.coord],v.x0=h.x,v.y0=h.y,v.x1=f.x,v.y1=f.y,v}};function G1(a){return!isNaN(a)&&!isFinite(a)}function az(a,i,n,o){var c=1-a;return G1(i[c])&&G1(n[c])}function ZY(a,i){var n=i.coord[0],o=i.coord[1],c={coord:n,x:i.x0,y:i.y0},d={coord:o,x:i.x1,y:i.y1};return ug(a,"cartesian2d")?!(!n||!o||!az(1,n,o)&&!az(0,n,o))||function j1(a,i,n){return!(a&&a.containZone&&i.coord&&n.coord&&!tP(i)&&!tP(n))||a.containZone(i.coord,n.coord)}(a,c,d):Qg(a,c)||Qg(a,d)}function $t(a,i,n,o,c){var f,d=o.coordinateSystem,h=a.getItemModel(i),p=Ie(h.get(n[0]),c.getWidth()),g=Ie(h.get(n[1]),c.getHeight());if(isNaN(p)||isNaN(g)){if(o.getMarkerPosition){var v=a.getValues(["x0","y0"],i),_=a.getValues(["x1","y1"],i),y=d.clampData(v),w=d.clampData(_),x=[];x[0]="x0"===n[0]?y[0]>w[0]?_[0]:v[0]:y[0]>w[0]?v[0]:_[0],x[1]="y0"===n[1]?y[1]>w[1]?_[1]:v[1]:y[1]>w[1]?v[1]:_[1],f=o.getMarkerPosition(x,n,!0)}else{var T=[S=a.get(n[0],i),D=a.get(n[1],i)];d.clampData&&d.clampData(T,T),f=d.dataToPoint(T,!0)}if(ug(d,"cartesian2d")){var A=d.getAxis("x"),E=d.getAxis("y"),S=a.get(n[0],i),D=a.get(n[1],i);G1(S)?f[0]=A.toGlobalCoord(A.getExtent()["x0"===n[0]?0:1]):G1(D)&&(f[1]=E.toGlobalCoord(E.getExtent()["y0"===n[1]?0:1]))}isNaN(p)||(f[0]=p),isNaN(g)||(f[1]=g)}else f=[p,g];return f}var XY=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Iee=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markArea");if(h){var f=h.getData();f.each(function(p){var g=Se(XY,function(_){return $t(f,p,_,d,c)});f.setItemLayout(p,g),f.getItemGraphicEl(p).setShape("points",g)})}},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,{group:new rt});this.group.add(v.group),this.markKeep(v);var _=function kee(a,i,n){var o,c;if(a){var h=Se(a&&a.dimensions,function(g){var v=i.getData();return _e(_e({},v.getDimensionInfo(v.mapDimension(g))||{}),{name:g,ordinalMeta:null})});c=Se(["x0","y0","x1","y1"],function(g,v){return{name:g,type:h[v%2].type}}),o=new ya(c,n)}else o=new ya(c=[{name:"value",type:"float"}],n);var f=Se(n.get("data"),ct(qY,i,a,n));a&&(f=_n(f,ct(ZY,a)));var p=a?function(g,v,_,y){return Wc(g.coord[Math.floor(y/2)][y%2],c[y])}:function(g,v,_,y){return Wc(g.value,c[y])};return o.initData(f,null,p),o.hasItemOption=!0,o}(h,n,o);o.setData(_),_.each(function(y){var w=Se(XY,function(U){return $t(_,y,U,n,d)}),x=h.getAxis("x").scale,S=h.getAxis("y").scale,D=x.getExtent(),T=S.getExtent(),A=[x.parse(_.get("x0",y)),x.parse(_.get("x1",y))],E=[S.parse(_.get("y0",y)),S.parse(_.get("y1",y))];Qr(A),Qr(E),_.setItemLayout(y,{points:w,allClipped:!!(D[0]>A[1]||D[1]E[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},i}(en);const Db=W1;var cp=ct,Tb=G,$1=rt,aa=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.newlineDisabled=!1,n}return de(i,a),i.prototype.init=function(){this.group.add(this._contentGroup=new $1),this.group.add(this._selectorGroup=new $1),this._isFirstRender=!0},i.prototype.getContentGroup=function(){return this._contentGroup},i.prototype.getSelectorGroup=function(){return this._selectorGroup},i.prototype.render=function(n,o,c){var d=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),n.get("show",!0)){var h=n.get("align"),f=n.get("orient");(!h||"auto"===h)&&(h="right"===n.get("left")&&"vertical"===f?"right":"left");var p=n.get("selector",!0),g=n.get("selectorPosition",!0);p&&(!g||"auto"===g)&&(g="horizontal"===f?"end":"start"),this.renderInner(h,n,o,c,p,f,g);var v=n.getBoxLayoutParams(),_={width:c.getWidth(),height:c.getHeight()},y=n.get("padding"),w=Dr(v,_,y),x=this.layoutInner(n,h,w,d,p,g),S=Dr(Ze({width:x.width,height:x.height},v),_,y);this.group.x=S.x-x.x,this.group.y=S.y-x.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eY(x,n))}},i.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},i.prototype.renderInner=function(n,o,c,d,h,f,p){var g=this.getContentGroup(),v=Me(),_=o.get("selectedMode"),y=[];c.eachRawSeries(function(w){!w.get("legendHoverLink")&&y.push(w.id)}),Tb(o.getData(),function(w,x){var S=w.get("name");if(!this.newlineDisabled&&(""===S||"\n"===S)){var D=new $1;return D.newline=!0,void g.add(D)}var T=c.getSeriesByName(S)[0];if(!v.get(S))if(T){var A=T.getData(),E=A.getVisual("legendLineStyle")||{},k=A.getVisual("legendIcon"),L=A.getVisual("style");this._createItem(T,S,x,w,o,n,E,L,k,_,d).on("click",cp(Y1,S,null,d,y)).on("mouseover",cp(lP,T.name,null,d,y)).on("mouseout",cp(cP,T.name,null,d,y)),v.set(S,!0)}else c.eachRawSeries(function(B){if(!v.get(S)&&B.legendVisualProvider){var U=B.legendVisualProvider;if(!U.containName(S))return;var j=U.indexOfName(S),W=U.getItemVisual(j,"style"),$=U.getItemVisual(j,"legendIcon"),X=Ea(W.fill);X&&0===X[3]&&(X[3]=.2,W=_e(_e({},W),{fill:No(X,"rgba")})),this._createItem(B,S,x,w,o,n,{},W,$,_,d).on("click",cp(Y1,null,S,d,y)).on("mouseover",cp(lP,null,S,d,y)).on("mouseout",cp(cP,null,S,d,y)),v.set(S,!0)}},this)},this),h&&this._createSelector(h,o,d,f,p)},i.prototype._createSelector=function(n,o,c,d,h){var f=this.getSelectorGroup();Tb(n,function(g){var v=g.type,_=new Zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){c.dispatchAction({type:"all"===v?"legendAllSelect":"legendInverseSelect"})}});f.add(_),Oa(_,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:g.title}),Kd(_)})},i.prototype._createItem=function(n,o,c,d,h,f,p,g,v,_,y){var w=n.visualDrawType,x=h.get("itemWidth"),S=h.get("itemHeight"),D=h.isSelected(o),T=d.get("symbolRotate"),A=d.get("symbolKeepAspect"),E=d.get("icon"),k=function dp(a,i,n,o,c,d,h){function f(D,T){"auto"===D.lineWidth&&(D.lineWidth=T.lineWidth>0?2:0),Tb(D,function(A,E){"inherit"===D[E]&&(D[E]=T[E])})}var p=i.getModel("itemStyle"),g=p.getItemStyle(),v=0===a.lastIndexOf("empty",0)?"fill":"stroke",_=p.getShallow("decal");g.decal=_&&"inherit"!==_?Qs(_,h):o.decal,"inherit"===g.fill&&(g.fill=o[c]),"inherit"===g.stroke&&(g.stroke=o[v]),"inherit"===g.opacity&&(g.opacity=("fill"===c?o:n).opacity),f(g,o);var y=i.getModel("lineStyle"),w=y.getLineStyle();if(f(w,n),"auto"===g.fill&&(g.fill=o.fill),"auto"===g.stroke&&(g.stroke=o.fill),"auto"===w.stroke&&(w.stroke=o.fill),!d){var x=i.get("inactiveBorderWidth");g.lineWidth="auto"===x?o.lineWidth>0&&g[v]?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),w.stroke=y.get("inactiveColor"),w.lineWidth=y.get("inactiveWidth")}return{itemStyle:g,lineStyle:w}}(v=E||v||"roundRect",d,p,g,w,D,y),L=new $1,O=d.getModel("textStyle");if(!Xe(n.getLegendIcon)||E&&"inherit"!==E){var B="inherit"===E&&n.getData().getVisual("symbol")?"inherit"===T?n.getData().getVisual("symbolRotate"):T:0;L.add(function KY(a){var i=a.icon||"roundRect",n=ji(i,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return n.setStyle(a.itemStyle),n.rotation=(a.iconRotate||0)*Math.PI/180,n.setOrigin([a.itemWidth/2,a.itemHeight/2]),i.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:x,itemHeight:S,icon:v,iconRotate:B,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:A}))}else L.add(n.getLegendIcon({itemWidth:x,itemHeight:S,icon:v,iconRotate:T,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:A}));var U="left"===f?x+5:-5,j=f,W=h.get("formatter"),$=o;Ae(W)&&W?$=W.replace("{name}",o??""):Xe(W)&&($=W(o));var X=D?O.getTextColor():d.get("inactiveColor");L.add(new Zt({style:Zn(O,{text:$,x:U,y:S/2,fill:X,align:j,verticalAlign:"middle"},{inheritColor:X})}));var K=new _t({shape:L.getBoundingRect(),invisible:!0}),ee=d.getModel("tooltip");return ee.get("show")&&nf({el:K,componentModel:h,itemName:o,itemTooltipOption:ee.option}),L.add(K),L.eachChild(function(te){te.silent=!0}),K.silent=!_,this.getContentGroup().add(L),Kd(L),L.__legendDataIndex=c,L},i.prototype.layoutInner=function(n,o,c,d,h,f){var p=this.getContentGroup(),g=this.getSelectorGroup();Wh(n.get("orient"),p,n.get("itemGap"),c.width,c.height);var v=p.getBoundingRect(),_=[-v.x,-v.y];if(g.markRedraw(),p.markRedraw(),h){Wh("horizontal",g,n.get("selectorItemGap",!0));var y=g.getBoundingRect(),w=[-y.x,-y.y],x=n.get("selectorButtonGap",!0),S=n.getOrient().index,D=0===S?"width":"height",T=0===S?"height":"width",A=0===S?"y":"x";"end"===f?w[S]+=v[D]+x:_[S]+=y[D]+x,w[1-S]+=v[T]/2-y[T]/2,g.x=w[0],g.y=w[1],p.x=_[0],p.y=_[1];var E={x:0,y:0};return E[D]=v[D]+x+y[D],E[T]=Math.max(v[T],y[T]),E[A]=Math.min(0,y[A]+w[1-S]),E}return p.x=_[0],p.y=_[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(li);function Y1(a,i,n,o){cP(a,i,n,o),n.dispatchAction({type:"legendToggleSelect",name:a??i}),lP(a,i,n,o)}function oz(a){for(var n,i=a.getZr().storage.getDisplayList(),o=0,c=i.length;oc[h],D=[-w.x,-w.y];o||(D[d]=v[g]);var T=[0,0],A=[-x.x,-x.y],E=gt(n.get("pageButtonGap",!0),n.get("itemGap",!0));S&&("end"===n.get("pageButtonPosition",!0)?A[d]+=c[h]-x[h]:T[d]+=x[h]+E),A[1-d]+=w[f]/2-x[f]/2,v.setPosition(D),_.setPosition(T),y.setPosition(A);var L={x:0,y:0};if(L[h]=S?c[h]:w[h],L[f]=Math.max(w[f],x[f]),L[p]=Math.min(0,x[p]+A[1-d]),_.__rectSize=c[h],S){var O={x:0,y:0};O[h]=Math.max(c[h]-x[h]-E,0),O[f]=L[f],_.setClipPath(new _t({shape:O})),_.__rectSize=O[h]}else y.eachChild(function(U){U.attr({invisible:!0,silent:!0})});var B=this._getPageInfo(n);return null!=B.pageIndex&&zt(v,{x:B.contentPosition[0],y:B.contentPosition[1]},S?n:null),this._updatePageInfoView(n,B),L},i.prototype._pageGo=function(n,o,c){var d=this._getPageInfo(o)[n];null!=d&&c.dispatchAction({type:"legendScroll",scrollDataIndex:d,legendId:o.id})},i.prototype._updatePageInfoView=function(n,o){var c=this._controllerGroup;G(["pagePrev","pageNext"],function(v){var y=null!=o[v+"DataIndex"],w=c.childOfName(v);w&&(w.setStyle("fill",n.get(y?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=y?"pointer":"default")});var d=c.childOfName("pageText"),h=n.get("pageFormatter"),f=o.pageIndex,p=null!=f?f+1:0,g=o.pageCount;d&&h&&d.setStyle("text",Ae(h)?h.replace("{current}",null==p?"":p+"").replace("{total}",null==g?"":g+""):h({current:p,total:g}))},i.prototype._getPageInfo=function(n){var o=n.get("scrollDataIndex",!0),c=this.getContentGroup(),d=this._containerGroup.__rectSize,h=n.getOrient().index,f=uP[h],p=q1[h],g=this._findTargetItemIndex(o),v=c.children(),_=v[g],y=v.length,w=y?1:0,x={contentPosition:[c.x,c.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!_)return x;var S=k(_);x.contentPosition[h]=-S.s;for(var D=g+1,T=S,A=S,E=null;D<=y;++D)(!(E=k(v[D]))&&A.e>T.s+d||E&&!L(E,T.s))&&(T=A.i>T.i?A:E)&&(null==x.pageNextDataIndex&&(x.pageNextDataIndex=T.i),++x.pageCount),A=E;for(D=g-1,T=S,A=S,E=null;D>=-1;--D)(!(E=k(v[D]))||!L(A,E.s))&&T.i=B&&O.s<=B+d}},i.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(h,f){var p=h.__legendDataIndex;null==d&&null!=p&&(d=f),p===n&&(o=f)}),o??d):0;var o,d},i.type="legend.scroll",i}(sz);const lz=tq;function dz(a){kt(QY),a.registerComponentModel(eq),a.registerComponentView(lz),function cz(a){a.registerAction("legendScroll","legendscroll",function(i,n){var o=i.scrollDataIndex;null!=o&&n.eachComponent({mainType:"legend",subType:"scroll",query:i},function(c){c.setScrollDataIndex(o)})})}(a)}var nq=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="dataZoom.inside",i.defaultOption=Ho(A1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(A1);const Z1=nq;var bl=qt();function uz(a,i){if(i){a.removeKey(i.model.uid);var n=i.controller;n&&n.dispose()}}function Oee(a,i){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function fP(a,i,n,o){return a.coordinateSystem.containPoint([n,o])}var hz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return de(i,a),i.prototype.render=function(n,o,c){a.prototype.render.apply(this,arguments),n.noTarget()?this._clear():(this.range=n.getPercentRange(),function Wu(a,i,n){bl(a).coordSysRecordMap.each(function(o){var c=o.dataZoomInfoMap.get(i.uid);c&&(c.getRange=n)})}(c,n,{pan:he(Ni.pan,this),zoom:he(Ni.zoom,this),scrollMove:he(Ni.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function iq(a,i){for(var n=bl(a).coordSysRecordMap,o=n.keys(),c=0;c0?f.pixelStart+f.pixelLength-f.pixel:f.pixel-f.pixelStart)/f.pixelLength*(d[1]-d[0])+d[0],g=Math.max(1/o.scale,0);d[0]=(d[0]-p)*g+p,d[1]=(d[1]-p)*g+p;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(jf(0,d,[0,100],0,v.minSpan,v.maxSpan),this.range=d,c[0]!==d[0]||c[1]!==d[1])return d}},pan:pP(function(a,i,n,o,c,d){var h=X1[o]([d.oldX,d.oldY],[d.newX,d.newY],i,c,n);return h.signal*(a[1]-a[0])*h.pixel/h.pixelLength}),scrollMove:pP(function(a,i,n,o,c,d){return X1[o]([0,0],[d.scrollDelta,d.scrollDelta],i,c,n).signal*(a[1]-a[0])*d.scrollDelta})};function pP(a){return function(i,n,o,c){var d=this.range,h=d.slice(),f=i.axisModels[0];if(f&&(jf(a(h,f,i,n,o,c),h,[0,100],"all"),this.range=h,d[0]!==h[0]||d[1]!==h[1]))return h}}var X1={grid:function(a,i,n,o,c){var d=n.axis,h={},f=c.model.coordinateSystem.getRect();return a=a||[0,0],"x"===d.dim?(h.pixel=i[0]-a[0],h.pixelLength=f.width,h.pixelStart=f.x,h.signal=d.inverse?1:-1):(h.pixel=i[1]-a[1],h.pixelLength=f.height,h.pixelStart=f.y,h.signal=d.inverse?-1:1),h},polar:function(a,i,n,o,c){var d=n.axis,h={},f=c.model.coordinateSystem,p=f.getRadiusAxis().getExtent(),g=f.getAngleAxis().getExtent();return a=a?f.pointToCoord(a):[0,0],i=f.pointToCoord(i),"radiusAxis"===n.mainType?(h.pixel=i[0]-a[0],h.pixelLength=p[1]-p[0],h.pixelStart=p[0],h.signal=d.inverse?1:-1):(h.pixel=i[1]-a[1],h.pixelLength=g[1]-g[0],h.pixelStart=g[0],h.signal=d.inverse?-1:1),h},singleAxis:function(a,i,n,o,c){var d=n.axis,h=c.model.coordinateSystem.getRect(),f={};return a=a||[0,0],"horizontal"===d.orient?(f.pixel=i[0]-a[0],f.pixelLength=h.width,f.pixelStart=h.x,f.signal=d.inverse?1:-1):(f.pixel=i[1]-a[1],f.pixelLength=h.height,f.pixelStart=h.y,f.signal=d.inverse?-1:1),f}};const K1=hz;function mP(a){C5(a),a.registerComponentModel(Z1),a.registerComponentView(K1),function rq(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(i,n){var o=bl(n),c=o.coordSysRecordMap||(o.coordSysRecordMap=Me());c.each(function(d){d.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(d){G(Ak(d).infoList,function(f){var p=f.model.uid,g=c.get(p)||c.set(p,function hP(a,i){var n={model:i,containsPoint:ct(fP,i),dispatchAction:ct(Oee,a),dataZoomInfoMap:null,controller:null},o=n.controller=new vg(a.getZr());return G(["pan","zoom","scrollMove"],function(c){o.on(c,function(d){var h=[];n.dataZoomInfoMap.each(function(f){if(d.isAvailableBehavior(f.model.option)){var p=(f.getRange||{})[c],g=p&&p(f.dzReferCoordSysInfo,n.model.mainType,n.controller,d);!f.model.get("disabled",!0)&&g&&h.push({dataZoomId:f.model.id,start:g[0],end:g[1]})}}),h.length&&n.dispatchAction(h)})}),n}(n,f.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=Me())).set(d.uid,{dzReferCoordSysInfo:f,model:d,getRange:null})})}),c.each(function(d){var f,h=d.controller,p=d.dataZoomInfoMap;if(p){var g=p.keys()[0];null!=g&&(f=p.get(g))}if(f){var v=function Lee(a){var i,n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return a.each(function(d){var h=d.model,f=!h.get("disabled",!0)&&(!h.get("zoomLock",!0)||"move");o[n+f]>o[n+i]&&(i=f),c=c&&h.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}(p);h.enable(v.controlType,v.opt),h.setPointerChecker(d.containsPoint),rf(d,"dispatchAction",f.model.get("throttle",!0),"fixRate")}else uz(c,d)})})}(a)}var fz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=Ho(A1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),i}(A1);const gP=fz;var up=_t,Vi="horizontal",kn="vertical",aq=["line","bar","candlestick","scatter"],lt={easing:"cubicOut",duration:100,delay:0},Vn=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._displayables={},n}return de(i,a),i.prototype.init=function(n,o){this.api=o,this._onBrush=he(this._onBrush,this),this._onBrushEnd=he(this._onBrushEnd,this)},i.prototype.render=function(n,o,c,d){if(a.prototype.render.apply(this,arguments),rf(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),!1!==n.get("show"))return n.noTarget()?(this._clear(),void this.group.removeAll()):((!d||"dataZoom"!==d.type||d.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){af(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(o),this._positionGroup()},i.prototype._resetLocation=function(){var n=this.dataZoomModel,o=this.api,d=n.get("brushSelect")?7:0,h=this._findCoordRect(),f={width:o.getWidth(),height:o.getHeight()},p=this._orient===Vi?{right:f.width-h.x-h.width,top:f.height-30-7-d,width:h.width,height:30}:{right:7,top:h.y,width:30,height:h.height},g=$h(n.option);G(["right","top","width","height"],function(_){"ph"===g[_]&&(g[_]=p[_])});var v=Dr(g,f);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===kn&&this._size.reverse()},i.prototype._positionGroup=function(){var n=this.group,o=this._location,c=this._orient,d=this.dataZoomModel.getFirstTargetAxisModel(),h=d&&d.get("inverse"),f=this._displayables.sliderGroup,p=(this._dataShadowInfo||{}).otherAxisInverse;f.attr(c!==Vi||h?c===Vi&&h?{scaleY:p?1:-1,scaleX:-1}:c!==kn||h?{scaleY:p?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:p?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:p?1:-1,scaleX:1});var g=n.getBoundingRect([f]);n.x=o.x-g.x,n.y=o.y-g.y,n.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var n=this.dataZoomModel,o=this._size,c=this._displayables.sliderGroup,d=n.get("brushSelect");c.add(new up({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var h=new up({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:he(this._onClickPanel,this)}),f=this.api.getZr();d?(h.on("mousedown",this._onBrushStart,this),h.cursor="crosshair",f.on("mousemove",this._onBrush),f.on("mouseup",this._onBrushEnd)):(f.off("mousemove",this._onBrush),f.off("mouseup",this._onBrushEnd)),c.add(h)},i.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],n){var o=this._size,c=this._shadowSize||[],d=n.series,h=d.getRawData(),f=d.getShadowDim&&d.getShadowDim(),p=f&&h.getDimensionInfo(f)?d.getShadowDim():n.otherDim;if(null!=p){var g=this._shadowPolygonPts,v=this._shadowPolylinePts;if(h!==this._shadowData||p!==this._shadowDim||o[0]!==c[0]||o[1]!==c[1]){var _=h.getDataExtent(p),y=.3*(_[1]-_[0]);_=[_[0]-y,_[1]+y];var k,w=[0,o[1]],S=[[o[0],0],[0,0]],D=[],T=o[0]/(h.count()-1),A=0,E=Math.round(h.count()/o[0]);h.each([p],function(j,W){if(E>0&&W%E)A+=T;else{var $=null==j||isNaN(j)||""===j,X=$?0:yn(j,_,w,!0);$&&!k&&W?(S.push([S[S.length-1][0],0]),D.push([D[D.length-1][0],0])):!$&&k&&(S.push([A,0]),D.push([A,0])),S.push([A,X]),D.push([A,X]),A+=T,k=$}}),g=this._shadowPolygonPts=S,v=this._shadowPolylinePts=D}this._shadowData=h,this._shadowDim=p,this._shadowSize=[o[0],o[1]];for(var W,$,X,K,L=this.dataZoomModel,B=0;B<3;B++){var U=(W=void 0,$=void 0,void 0,void 0,W=L.getModel(1===B?"selectedDataBackground":"dataBackground"),$=new rt,X=new no({shape:{points:g},segmentIgnoreThreshold:1,style:W.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),K=new io({shape:{points:v},segmentIgnoreThreshold:1,style:W.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),$.add(X),$.add(K),$);this._displayables.sliderGroup.add(U),this._displayables.dataShadowSegs.push(U)}}}},i.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,o=n.get("showDataShadow");if(!1!==o){var c,d=this.ecModel;return n.eachTargetAxis(function(h,f){G(n.getAxisProxy(h,f).getTargetSeriesModels(),function(g){if(!(c||!0!==o&&Ct(aq,g.get("type"))<0)){var y,v=d.getComponent(ap(h),f).axis,_=function nv(a){return{x:"y",y:"x",radius:"angle",angle:"radius"}[a]}(h),w=g.coordinateSystem;null!=_&&w.getOtherAxis&&(y=w.getOtherAxis(v).inverse),_=g.getData().mapDimension(_),c={thisAxis:v,series:g,thisDim:h,otherDim:_,otherAxisInverse:y}}},this)},this),c}},i.prototype._renderHandle=function(){var n=this.group,o=this._displayables,c=o.handles=[null,null],d=o.handleLabels=[null,null],h=this._displayables.sliderGroup,f=this._size,p=this.dataZoomModel,g=this.api,v=p.get("borderRadius")||0,_=p.get("brushSelect"),y=o.filler=new up({silent:_,style:{fill:p.get("fillerColor")},textConfig:{position:"inside"}});h.add(y),h.add(new up({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:f[0],height:f[1],r:v},style:{stroke:p.get("dataBackgroundColor")||p.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),G([0,1],function(E){var k=p.get("handleIcon");!Bm[k]&&k.indexOf("path://")<0&&k.indexOf("image://")<0&&(k="path://"+k);var L=ji(k,-1,0,2,2,null,!0);L.attr({cursor:Cn(this._orient),draggable:!0,drift:he(this._onDragMove,this,E),ondragend:he(this._onDragEnd,this),onmouseover:he(this._showDataInfo,this,!0),onmouseout:he(this._showDataInfo,this,!1),z2:5});var O=L.getBoundingRect(),B=p.get("handleSize");this._handleHeight=Ie(B,this._size[1]),this._handleWidth=O.width/O.height*this._handleHeight,L.setStyle(p.getModel("handleStyle").getItemStyle()),L.style.strokeNoScale=!0,L.rectHover=!0,L.ensureState("emphasis").style=p.getModel(["emphasis","handleStyle"]).getItemStyle(),Kd(L);var U=p.get("handleColor");null!=U&&(L.style.fill=U),h.add(c[E]=L);var j=p.getModel("textStyle");n.add(d[E]=new Zt({silent:!0,invisible:!0,style:Zn(j,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:j.getTextColor(),font:j.getFont()}),z2:10}))},this);var w=y;if(_){var x=Ie(p.get("moveHandleSize"),f[1]),S=o.moveHandle=new _t({style:p.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:f[1]-.5,height:x}}),D=.8*x,T=o.moveHandleIcon=ji(p.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);T.silent=!0,T.y=f[1]+x/2-.5,S.ensureState("emphasis").style=p.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var A=Math.min(f[1]/2,Math.max(x,10));(w=o.moveZone=new _t({invisible:!0,shape:{y:f[1]-A,height:x+A}})).on("mouseover",function(){g.enterEmphasis(S)}).on("mouseout",function(){g.leaveEmphasis(S)}),h.add(S),h.add(T),h.add(w)}w.attr({draggable:!0,cursor:Cn(this._orient),drift:he(this._onDragMove,this,"all"),ondragstart:he(this._showDataInfo,this,!0),ondragend:he(this._onDragEnd,this),onmouseover:he(this._showDataInfo,this,!0),onmouseout:he(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[yn(n[0],[0,100],o,!0),yn(n[1],[0,100],o,!0)]},i.prototype._updateInterval=function(n,o){var c=this.dataZoomModel,d=this._handleEnds,h=this._getViewExtent(),f=c.findRepresentativeAxisProxy().getMinMaxSpan(),p=[0,100];jf(o,d,h,c.get("zoomLock")?"all":n,null!=f.minSpan?yn(f.minSpan,p,h,!0):null,null!=f.maxSpan?yn(f.maxSpan,p,h,!0):null);var g=this._range,v=this._range=Qr([yn(d[0],h,p,!0),yn(d[1],h,p,!0)]);return!g||g[0]!==v[0]||g[1]!==v[1]},i.prototype._updateView=function(n){var o=this._displayables,c=this._handleEnds,d=Qr(c.slice()),h=this._size;G([0,1],function(w){var S=this._handleHeight;o.handles[w].attr({scaleX:S/2,scaleY:S/2,x:c[w]+(w?-1:1),y:h[1]/2-S/2})},this),o.filler.setShape({x:d[0],y:0,width:d[1]-d[0],height:h[1]});var f={x:d[0],width:d[1]-d[0]};o.moveHandle&&(o.moveHandle.setShape(f),o.moveZone.setShape(f),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",f.x+f.width/2));for(var p=o.dataShadowSegs,g=[0,d[0],d[1],h[0]],v=0;vo[0]||c[1]<0||c[1]>o[1])){var d=this._handleEnds,f=this._updateInterval("all",c[0]-(d[0]+d[1])/2);this._updateView(),f&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(n){this._brushStart=new St(n.offsetX,n.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(n){if(this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,o){o.attr("ignore",!0);var c=o.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(c.width)<5)){var h=this._getViewExtent(),f=[0,100];this._range=Qr([yn(c.x,h,f,!0),yn(c.x+c.width,h,f,!0)]),this._handleEnds=[c.x,c.x+c.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(n){this._brushing&&(Ps(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},i.prototype._updateBrushRect=function(n,o){var c=this._displayables,h=c.brushRect;h||(h=c.brushRect=new up({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),c.sliderGroup.add(h)),h.attr("ignore",!1);var f=this._brushStart,p=this._displayables.sliderGroup,g=p.transformCoordToLocal(n,o),v=p.transformCoordToLocal(f.x,f.y),_=this._size;g[0]=Math.max(Math.min(_[0],g[0]),0),h.setShape({x:v[0],y:0,width:g[0]-v[0],height:_[1]})},i.prototype._dispatchZoomAction=function(n){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?lt:null,start:o[0],end:o[1]})},i.prototype._findCoordRect=function(){var n,o=Ak(this.dataZoomModel).infoList;if(!n&&o.length){var c=o[0].model.coordinateSystem;n=c.getRect&&c.getRect()}if(!n){var d=this.api.getWidth(),h=this.api.getHeight();n={x:.2*d,y:.2*h,width:.6*d,height:.6*h}}return n},i.type="dataZoom.slider",i}(x5);function Cn(a){return"vertical"===a?"ns-resize":"ew-resize"}const Fee=Vn;function Eb(a){a.registerComponentModel(gP),a.registerComponentView(Fee),C5(a)}var eS={get:function(a,i,n){var o=nt((Vee[a]||{})[i]);return n&&ye(o)?o[o.length-1]:o}},Vee={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const oq=eS;var sq=Zr.mapVisual,Bee=Zr.eachVisual,zee=ye,pz=G,lq=Qr,cq=yn,Hee=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return de(i,a),i.prototype.init=function(n,o,c){this.mergeDefaultAndTheme(n,c)},i.prototype.optionUpdated=function(n,o){!o&&Bk(this.option,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(n){var o=this.stateList;n=he(n,this),this.controllerVisuals=Vk(this.option.controller,o,n),this.targetVisuals=Vk(this.option.target,o,n)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,o=[];return null==n||"all"===n?this.ecModel.eachSeries(function(c,d){o.push(d)}):o=Mn(n),o},i.prototype.eachTargetSeries=function(n,o){G(this.getTargetSeriesIndices(),function(c){var d=this.ecModel.getSeriesByIndex(c);d&&n.call(o,d)},this)},i.prototype.isTargetSeries=function(n){var o=!1;return this.eachTargetSeries(function(c){c===n&&(o=!0)}),o},i.prototype.formatValueText=function(n,o,c){var g,d=this.option,h=d.precision,f=this.dataBound,p=d.formatter;c=c||["<",">"],ye(n)&&(n=n.slice(),g=!0);var v=o?n:g?[_(n[0]),_(n[1])]:_(n);return Ae(p)?p.replace("{value}",g?v[0]:v).replace("{value2}",g?v[1]:v):Xe(p)?g?p(n[0],n[1]):p(n):g?n[0]===f[0]?c[0]+" "+v[1]:n[1]===f[1]?c[1]+" "+v[0]:v[0]+" - "+v[1]:v;function _(y){return y===f[0]?"min":y===f[1]?"max":(+y).toFixed(Math.min(h,20))}},i.prototype.resetExtent=function(){var n=this.option,o=lq([n.min,n.max]);this._dataExtent=o},i.prototype.getDataDimensionIndex=function(n){var o=this.option.dimension;if(null!=o)return n.getDimensionIndex(o);for(var c=n.dimensions,d=c.length-1;d>=0;d--){var f=n.getDimensionInfo(c[d]);if(!f.isCalculationCoord)return f.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var n=this.ecModel,o=this.option,c={inRange:o.inRange,outOfRange:o.outOfRange},d=o.target||(o.target={}),h=o.controller||(o.controller={});mt(d,c),mt(h,c);var f=this.isCategory();function p(_){zee(o.color)&&!_.inRange&&(_.inRange={color:o.color.slice().reverse()}),_.inRange=_.inRange||{color:n.get("gradientColor")}}p.call(this,d),p.call(this,h),function g(_,y,w){var x=_[y],S=_[w];x&&!S&&(S=_[w]={},pz(x,function(D,T){if(Zr.isValidType(T)){var A=oq.get(T,"inactive",f);null!=A&&(S[T]=A,"color"===T&&!S.hasOwnProperty("opacity")&&!S.hasOwnProperty("colorAlpha")&&(S.opacity=[0,0]))}}))}.call(this,d,"inRange","outOfRange"),function v(_){var y=(_.inRange||{}).symbol||(_.outOfRange||{}).symbol,w=(_.inRange||{}).symbolSize||(_.outOfRange||{}).symbolSize,x=this.get("inactiveColor"),D=this.getItemSymbol()||"roundRect";pz(this.stateList,function(T){var A=this.itemSize,E=_[T];E||(E=_[T]={color:f?x:[x]}),null==E.symbol&&(E.symbol=y&&nt(y)||(f?D:[D])),null==E.symbolSize&&(E.symbolSize=w&&nt(w)||(f?A[0]:[A[0],A[0]])),E.symbol=sq(E.symbol,function(O){return"none"===O?D:O});var k=E.symbolSize;if(null!=k){var L=-1/0;Bee(k,function(O){O>L&&(L=O)}),E.symbolSize=sq(k,function(O){return cq(O,[0,L],[0,A[0]],!0)})}},this)}.call(this,h)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(n){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(n){return null},i.prototype.getVisualMeta=function(n){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(en);const $u=Hee;var yP=[20,140],bP=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(n,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(c){c.mappingMethod="linear",c.dataExtent=this.getExtent()}),this._resetRange()},i.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(null==n[0]||isNaN(n[0]))&&(n[0]=yP[0]),(null==n[1]||isNaN(n[1]))&&(n[1]=yP[1])},i.prototype._resetRange=function(){var n=this.getExtent(),o=this.option.range;!o||o.auto?(n.auto=1,this.option.range=n):ye(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],n[0]),o[1]=Math.min(o[1],n[1]))},i.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),G(this.stateList,function(n){var o=this.option.controller[n].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},i.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},i.prototype.getSelected=function(){var n=this.getExtent(),o=Qr((this.get("range")||[]).slice());return o[0]>n[1]&&(o[0]=n[1]),o[1]>n[1]&&(o[1]=n[1]),o[0]=c[1]||n<=o[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(n){var o=[];return this.eachTargetSeries(function(c){var d=[],h=c.getData();h.each(this.getDataDimensionIndex(h),function(f,p){n[0]<=f&&f<=n[1]&&d.push(p)},this),o.push({seriesId:c.id,dataIndex:d})},this),o},i.prototype.getVisualMeta=function(n){var o=mz(0,0,this.getExtent()),c=mz(0,0,this.option.range.slice()),d=[];function h(w,x){d.push({value:w,color:n(w,x)})}for(var f=0,p=0,g=c.length,v=o.length;pn[1])break;d.push({color:this.getControllerVisual(p,"color",o),offset:f/100})}return d.push({color:this.getControllerVisual(n[1],"color",o),offset:1}),d},i.prototype._createBarPoints=function(n,o){var c=this.visualMapModel.itemSize;return[[c[0]-o[0],n[0]],[c[0],n[0]],[c[0],n[1]],[c[0]-o[1],n[1]]]},i.prototype._createBarGroup=function(n){var o=this._orient,c=this.visualMapModel.get("inverse");return new rt("horizontal"!==o||c?"horizontal"===o&&c?{scaleX:"bottom"===n?-1:1,rotation:-Math.PI/2}:"vertical"!==o||c?{scaleX:"left"===n?1:-1}:{scaleX:"left"===n?1:-1,scaleY:-1}:{scaleX:"bottom"===n?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(n,o){if(this._useHandle){var c=this._shapes,d=this.visualMapModel,h=c.handleThumbs,f=c.handleLabels,p=d.itemSize,g=d.getExtent();vz([0,1],function(v){var _=h[v];_.setStyle("fill",o.handlesColor[v]),_.y=n[v];var y=Ts(n[v],[0,p[1]],g,!0),w=this.getControllerVisual(y,"symbolSize");_.scaleX=_.scaleY=w/p[0],_.x=p[0]-w/2;var x=Xs(c.handleLabelPoints[v],rc(_,this.group));f[v].setStyle({x:x[0],y:x[1],text:d.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",c.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(n,o,c,d){var h=this.visualMapModel,f=h.getExtent(),p=h.itemSize,g=[0,p[1]],v=this._shapes,_=v.indicator;if(_){_.attr("invisible",!1);var w=this.getControllerVisual(n,"color",{convertOpacityToAlpha:!0}),x=this.getControllerVisual(n,"symbolSize"),S=Ts(n,f,g,!0),D=p[0]-x/2,T={x:_.x,y:_.y};_.y=S,_.x=D;var A=Xs(v.indicatorLabelPoint,rc(_,this.group)),E=v.indicatorLabel;E.attr("invisible",!1);var k=this._applyTransform("left",v.mainGroup),O="horizontal"===this._orient;E.setStyle({text:(c||"")+h.formatValueText(o),verticalAlign:O?k:"middle",align:O?"center":k});var B={x:D,y:S,style:{fill:w}},U={style:{x:A[0],y:A[1]}};if(h.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var j={duration:100,easing:"cubicInOut",additive:!0};_.x=T.x,_.y=T.y,_.animateTo(B,j),E.animateTo(U,j)}else _.attr(B),E.attr(U);this._firstShowIndicator=!1;var W=this._shapes.handleLabels;if(W)for(var $=0;$h[1]&&(_[1]=1/0),o&&(_[0]===-1/0?this._showIndicator(v,_[1],"< ",p):_[1]===1/0?this._showIndicator(v,_[0],"> ",p):this._showIndicator(v,v,"\u2248 ",p));var y=this._hoverLinkDataIndices,w=[];(o||hq(c))&&(w=this._hoverLinkDataIndices=c.findTargetDataIndices(_));var x=function t2(a,i){var n={},o={};return c(a||[],n),c(i||[],o,n),[d(n),d(o)];function c(h,f,p){for(var g=0,v=h.length;g=0&&(d.dimension=h,o.push(d))}}),a.getData().setVisual("visualMeta",o)}}];function Hi(a,i,n,o){for(var c=i.targetVisuals[o],d=Zr.prepareVisualTypes(c),h={color:Va(a.getData(),"color")},f=0,p=d.length;f0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),a.registerAction(fq,Io),G(zi,function(i){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,i)}),a.registerPreprocessor(bz))}function pq(a){a.registerComponentModel(wP),a.registerComponentView(nS),MP(a)}var mq=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._pieceList=[],n}return de(i,a),i.prototype.optionUpdated=function(n,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var c=this._mode=this._determineMode();this._pieceList=[],gq[this._mode].call(this,this._pieceList),this._resetSelected(n,o);var d=this.option.categories;this.resetVisual(function(h,f){"categories"===c?(h.mappingMethod="category",h.categories=nt(d)):(h.dataExtent=this.getExtent(),h.mappingMethod="piecewise",h.pieceList=Se(this._pieceList,function(p){return p=nt(p),"inRange"!==f&&(p.visual=null),p}))})},i.prototype.completeVisualOption=function(){var n=this.option,o={},c=Zr.listVisualTypes(),d=this.isCategory();function h(f,p,g){return f&&f[p]&&f[p].hasOwnProperty(g)}G(n.pieces,function(f){G(c,function(p){f.hasOwnProperty(p)&&(o[p]=1)})}),G(o,function(f,p){var g=!1;G(this.stateList,function(v){g=g||h(n,v,p)||h(n.target,v,p)},this),!g&&G(this.stateList,function(v){(n[v]||(n[v]={}))[p]=oq.get(p,"inRange"===v?"active":"inactive",d)})},this),a.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(n,o){var c=this.option,d=this._pieceList,h=(o?c:n).selected||{};if(c.selected=h,G(d,function(p,g){var v=this.getSelectedMapKey(p);h.hasOwnProperty(v)||(h[v]=!0)},this),"single"===c.selectedMode){var f=!1;G(d,function(p,g){var v=this.getSelectedMapKey(p);h[v]&&(f?h[v]=!1:f=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(n){return"categories"===this._mode?n.value+"":n.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(n){this.option.selected=nt(n)},i.prototype.getValueState=function(n){var o=Zr.findPieceIndex(n,this._pieceList);return null!=o&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(n){var o=[],c=this._pieceList;return this.eachTargetSeries(function(d){var h=[],f=d.getData();f.each(this.getDataDimensionIndex(f),function(p,g){Zr.findPieceIndex(p,c)===n&&h.push(g)},this),o.push({seriesId:d.id,dataIndex:h})},this),o},i.prototype.getRepresentValue=function(n){var o;if(this.isCategory())o=n.value;else if(null!=n.value)o=n.value;else{var c=n.interval||[];o=c[0]===-1/0&&c[1]===1/0?0:(c[0]+c[1])/2}return o},i.prototype.getVisualMeta=function(n){if(!this.isCategory()){var o=[],c=["",""],d=this,f=this._pieceList.slice();if(f.length){var p=f[0].interval[0];p!==-1/0&&f.unshift({interval:[-1/0,p]}),(p=f[f.length-1].interval[1])!==1/0&&f.push({interval:[p,1/0]})}else f.push({interval:[-1/0,1/0]});var g=-1/0;return G(f,function(v){var _=v.interval;_&&(_[0]>g&&h([g,_[0]],"outOfRange"),h(_.slice()),g=_[1])},this),{stops:o,outerColors:c}}function h(v,_){var y=d.getRepresentValue({interval:v});_||(_=d.getValueState(y));var w=n(y,_);v[0]===-1/0?c[0]=w:v[1]===1/0?c[1]=w:o.push({value:v[0],color:w},{value:v[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=Ho($u.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),i}($u),gq={splitNumber:function(a){var i=this.option,n=Math.min(i.precision,20),o=this.getExtent(),c=i.splitNumber;c=Math.max(parseInt(c,10),1),i.splitNumber=c;for(var d=(o[1]-o[0])/c;+d.toFixed(n)!==d&&n<5;)n++;i.precision=n,d=+d.toFixed(n),i.minOpen&&a.push({interval:[-1/0,o[0]],close:[0,0]});for(var h=0,f=o[0];h","\u2265"][o[0]]])},this)}};function xz(a,i){var n=a.inverse;("vertical"===a.orient?!n:n)&&i.reverse()}const vq=mq;var Cz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.doRender=function(){var n=this.group;n.removeAll();var o=this.visualMapModel,c=o.get("textGap"),d=o.textStyleModel,h=d.getFont(),f=d.getTextColor(),p=this._getItemAlign(),g=o.itemSize,v=this._getViewData(),_=v.endsText,y=it(o.get("showLabel",!0),!_);_&&this._renderEndsText(n,_[0],g,y,p),G(v.viewPieceList,function(w){var x=w.piece,S=new rt;S.onclick=he(this._onItemClick,this,x),this._enableHoverLink(S,w.indexInModelPieceList);var D=o.getRepresentValue(x);if(this._createItemSymbol(S,D,[0,0,g[0],g[1]]),y){var T=this.visualMapModel.getValueState(D);S.add(new Zt({style:{x:"right"===p?-c:g[0]+c,y:g[1]/2,text:x.text,verticalAlign:"middle",align:p,font:h,fill:f,opacity:"outOfRange"===T?.5:1}}))}n.add(S)},this),_&&this._renderEndsText(n,_[1],g,y,p),Wh(o.get("orient"),n,o.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},i.prototype._enableHoverLink=function(n,o){var c=this;n.on("mouseover",function(){return d("highlight")}).on("mouseout",function(){return d("downplay")});var d=function(h){var f=c.visualMapModel;f.option.hoverLink&&c.api.dispatchAction({type:h,batch:tS(f.findTargetDataIndices(o),f)})}},i.prototype._getItemAlign=function(){var n=this.visualMapModel,o=n.option;if("vertical"===o.orient)return gz(n,this.api,n.itemSize);var c=o.align;return(!c||"auto"===c)&&(c="left"),c},i.prototype._renderEndsText=function(n,o,c,d,h){if(o){var f=new rt;f.add(new Zt({style:Zn(this.visualMapModel.textStyleModel,{x:d?"right"===h?c[0]:0:c[0]/2,y:c[1]/2,verticalAlign:"middle",align:d?h:"center",text:o})})),n.add(f)}},i.prototype._getViewData=function(){var n=this.visualMapModel,o=Se(n.getPieceList(),function(f,p){return{piece:f,indexInModelPieceList:p}}),c=n.get("text"),d=n.get("orient"),h=n.get("inverse");return("horizontal"===d?h:!h)?o.reverse():c&&(c=c.slice().reverse()),{viewPieceList:o,endsText:c}},i.prototype._createItemSymbol=function(n,o,c){n.add(ji(this.getControllerVisual(o,"symbol"),c[0],c[1],c[2],c[3],this.getControllerVisual(o,"color")))},i.prototype._onItemClick=function(n){var o=this.visualMapModel,c=o.option,d=c.selectedMode;if(d){var h=nt(c.selected),f=o.getSelectedMapKey(n);"single"===d||!0===d?(h[f]=!0,G(h,function(p,g){h[g]=g===f})):h[f]=!h[f],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:h})}},i.type="visualMap.piecewise",i}(CP);const Sz=Cz;function AP(a){a.registerComponentModel(vq),a.registerComponentView(Sz),MP(a)}var Uee={label:{enabled:!0},decal:{show:!1}},_q=qt(),jee={};function Gee(a,i){var n=a.getModel("aria");if(n.get("enabled")){var o=nt(Uee);mt(o.label,a.getLocaleModel().get("aria"),!1),mt(n.option,o,!1),function c(){if(n.getModel("decal").get("show")){var _=Me();a.eachSeries(function(y){if(!y.isColorBySeries()){var w=_.get(y.type);w||_.set(y.type,w={}),_q(y).scope=w}}),a.eachRawSeries(function(y){if(!a.isSeriesFiltered(y))if(Xe(y.enableAriaDecal))y.enableAriaDecal();else{var w=y.getData();if(y.isColorBySeries()){var A=Aw(y.ecModel,y.name,jee,a.getSeriesCount()),E=w.getVisual("decal");w.setVisual("decal",k(E,A))}else{var x=y.getRawData(),S={},D=_q(y).scope;w.each(function(L){var O=w.getRawIndex(L);S[O]=L});var T=x.count();x.each(function(L){var O=S[L],B=x.getName(L)||L+"",U=Aw(y.ecModel,B,D,T),j=w.getItemVisual(O,"decal");w.setItemVisual(O,"decal",k(j,U))})}}function k(L,O){var B=L?_e(_e({},O),L):O;return B.dirty=!0,B}})}}(),function d(){var g=a.getLocaleModel().get("aria"),v=n.getModel("label");if(v.option=Ze(v.option,g),v.get("enabled")){var _=i.getZr().dom;if(v.get("description"))return void _.setAttribute("aria-label",v.get("description"));var D,y=a.getSeriesCount(),w=v.get(["data","maxCount"])||10,x=v.get(["series","maxCount"])||10,S=Math.min(y,x);if(!(y<1)){var T=function f(){var g=a.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();D=T?h(v.get(["general","withTitle"]),{title:T}):v.get(["general","withoutTitle"]);var E=[];D+=h(v.get(y>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:y}),a.eachSeries(function(U,j){if(j1?["series","multiple",X]:["series","single",X]),{seriesId:U.seriesIndex,seriesName:U.get("name"),seriesType:p(U.subType)});var K=U.getData();K.count()>w?W+=h(v.get(["data","partialData"]),{displayCnt:w}):W+=v.get(["data","allData"]);for(var te=v.get(["data","separator","middle"]),ie=v.get(["data","separator","end"]),me=[],ue=0;ue":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wee=function(){function a(i){null==(this._condVal=Ae(i)?new RegExp(i):fR(i)?i:null)&&gn("")}return a.prototype.evaluate=function(i){var n=typeof i;return Ae(n)?this._condVal.test(i):!!on(n)&&this._condVal.test(i+"")},a}(),xd=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),bq=function(){function a(){}return a.prototype.evaluate=function(){for(var i=this.children,n=0;n2&&o.push(c),c=[K,ee]}function v(K,ee,te,ie){kb(K,te)&&kb(ee,ie)||c.push(K,ee,te,ie,te,ie)}for(var y,w,x,S,D=0;DU:$2&&o.push(c),o}function rS(a,i,n,o,c,d,h,f,p,g){if(kb(a,n)&&kb(i,o)&&kb(c,h)&&kb(d,f))p.push(h,f);else{var v=2/g,_=v*v,y=h-a,w=f-i,x=Math.sqrt(y*y+w*w);y/=x,w/=x;var S=n-a,D=o-i,T=c-h,A=d-f,E=S*S+D*D,k=T*T+A*A;if(E<_&&k<_)p.push(h,f);else{var L=y*S+w*D,O=-y*T-w*A;if(E-L*L<_&&L>=0&&k-O*O<_&&O>=0)p.push(h,f);else{var j=[],W=[];Fd(a,n,c,h,.5,j),Fd(i,o,d,f,.5,W),rS(j[0],W[0],j[1],W[1],j[2],W[2],j[3],W[3],p,g),rS(j[4],W[4],j[5],W[5],j[6],W[6],j[7],W[7],p,g)}}}}function kz(a,i,n){var d=Math.abs(a[i]/a[1-i]),h=Math.ceil(Math.sqrt(d*n)),f=Math.floor(n/h);0===f&&(f=1,h=n);for(var p=[],g=0;g0)for(g=0;g<_;g++)p[g%h]+=1;return p}function Tq(a,i,n){for(var o=a.r0,c=a.r,d=a.startAngle,f=Math.abs(a.endAngle-d),p=f*c,g=c-o,v=p>Math.abs(g),_=kz([p,g],v?0:1,i),y=(v?f:g)/_.length,w=0;w<_.length;w++)for(var x=(v?g:f)/_[w],S=0;S<_[w];S++){var D={};v?(D.startAngle=d+y*w,D.endAngle=d+y*(w+1),D.r0=o+x*S,D.r=o+x*(S+1)):(D.startAngle=d+x*S,D.endAngle=d+x*(S+1),D.r0=o+y*w,D.r=o+y*(w+1)),D.clockwise=a.clockwise,D.cx=a.cx,D.cy=a.cy,n.push(D)}}function aS(a,i,n,o){return a*o-n*i}function $ee(a,i,n,o,c,d,h,f){var p=n-a,g=o-i,v=h-c,_=f-d,y=aS(v,_,p,g);if(Math.abs(y)<1e-6)return null;var S=aS(a-c,i-d,v,_)/y;return S<0||S>1?null:new St(S*p+a,S*g+i)}function Pz(a,i,n){var o=new St;St.sub(o,n,i),o.normalize();var c=new St;return St.sub(c,a,i),c.dot(o)}function Pn(a,i){var n=a[a.length-1];n&&n[0]===i[0]&&n[1]===i[1]||a.push(i)}function Aq(a){var i=a.points,n=[],o=[];Yp(i,n,o);var c=new ce(n[0],n[1],o[0]-n[0],o[1]-n[1]),d=c.width,h=c.height,f=c.x,p=c.y,g=new St,v=new St;return d>h?(g.x=v.x=f+d/2,g.y=p,v.y=p+h):(g.y=v.y=p+h/2,g.x=f,v.x=f+d),function oS(a,i,n){for(var o=a.length,c=[],d=0;d0)for(var L=o/n,O=-o/2;O<=o/2;O+=L){var B=Math.sin(O),U=Math.cos(O),j=0;for(E=0;E0;g/=2){var v=0,_=0;(a&g)>0&&(v=1),(i&g)>0&&(_=1),f+=g*g*(3*v^_),0===_&&(1===v&&(a=g-1-a,i=g-1-i),p=a,a=i,i=p)}return f}function Pr(a){var i=1/0,n=1/0,o=-1/0,c=-1/0,d=Se(a,function(f){var p=f.getBoundingRect(),g=f.getComputedTransform(),v=p.x+p.width/2+(g?g[4]:0),_=p.y+p.height/2+(g?g[5]:0);return i=Math.min(v,i),n=Math.min(_,n),o=Math.max(v,o),c=Math.max(_,c),[v,_]});return Se(d,function(f,p){return{cp:f,z:fp(f[0],f[1],i,n,o,c),path:a[p]}}).sort(function(f,p){return f.z-p.z}).map(function(f){return f.path})}function Lz(a){return function Xee(a,i){var c,n=[],o=a.shape;switch(a.type){case"rect":(function Mq(a,i,n){for(var o=a.width,c=a.height,d=o>c,h=kz([o,c],d?0:1,i),f=d?"width":"height",p=d?"height":"width",g=d?"x":"y",v=d?"y":"x",_=a[f]/h.length,y=0;y=0;c--)if(!n[c].many.length){var p=n[f].many;if(p.length<=1){if(!f)return n;f=0}d=p.length;var g=Math.ceil(d/2);n[c].many=p.slice(g,d),n[f].many=p.slice(0,g),f++}return n}var qu={clone:function(a){for(var i=[],n=1-Math.pow(1-a.path.style.opacity,1/a.count),o=0;o0){var g,v,f=o.getModel("universalTransition").get("delay"),p=Object.assign({setToFinal:!0},h);Fz(a)&&(g=a,v=i),Fz(i)&&(g=i,v=a);for(var y=g?g===a:a.length>i.length,w=g?$i(v,g):$i(y?i:a,[y?a:i]),x=0,S=0;SSd))for(var c=o.getIndices(),d=function hS(a){for(var i=a.dimensions,n=0;n0&&k.group.traverse(function(O){O instanceof It&&!O.animators.length&&O.animateFrom({style:{opacity:0}},L)})})}function VP(a){return a.getModel("universalTransition").get("seriesKey")||a.id}function Ob(a){return ye(a)?a.sort().join(","):a}function Dd(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function BP(a,i){for(var n=0;n=0&&c.push({dataGroupId:i.oldDataGroupIds[f],data:i.oldData[f],divide:Dd(i.oldData[f]),dim:h.dimension})}),G(Mn(a.to),function(h){var f=BP(n.updatedSeries,h);if(f>=0){var p=n.updatedSeries[f].getData();d.push({dataGroupId:i.oldDataGroupIds[f],data:p,divide:Dd(p),dim:h.dimension})}}),c.length>0&&d.length>0&&NP(c,d,o)}(w,c,o,n)});else{var h=function Bz(a,i){var n=Me(),o=Me(),c=Me();return G(a.oldSeries,function(h,f){var p=a.oldDataGroupIds[f],g=a.oldData[f],v=VP(h),_=Ob(v);o.set(_,{dataGroupId:p,data:g}),ye(v)&&G(v,function(y){c.set(y,{key:_,dataGroupId:p,data:g})})}),G(i.updatedSeries,function(h){if(h.isUniversalTransitionEnabled()&&h.isAnimationEnabled()){var f=h.get("dataGroupId"),p=h.getData(),g=VP(h),v=Ob(g),_=o.get(v);if(_)n.set(v,{oldSeries:[{dataGroupId:_.dataGroupId,divide:Dd(_.data),data:_.data}],newSeries:[{dataGroupId:f,divide:Dd(p),data:p}]});else if(ye(g)){var y=[];G(g,function(S){var D=o.get(S);D.data&&y.push({dataGroupId:D.dataGroupId,divide:Dd(D.data),data:D.data})}),y.length&&n.set(v,{oldSeries:y,newSeries:[{dataGroupId:f,data:p,divide:Dd(p)}]})}else{var w=c.get(g);if(w){var x=n.get(w.key);x||(x={oldSeries:[{dataGroupId:w.dataGroupId,data:w.data,divide:Dd(w.data)}],newSeries:[]},n.set(w.key,x)),x.newSeries.push({dataGroupId:f,data:p,divide:Dd(p)})}}}}),n}(c,o);G(h.keys(),function(w){var x=h.get(w);NP(x.oldSeries,x.newSeries,n)})}G(o.updatedSeries,function(w){w[Yc]&&(w[Yc]=!1)})}for(var f=i.getSeries(),p=c.oldSeries=[],g=c.oldDataGroupIds=[],v=c.oldData=[],_=0;_=200&&Mt.status<=299}function Da(Gt){try{Gt.dispatchEvent(new MouseEvent("click"))}catch{var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Mt)}}var Is=oa.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Ta=oa.saveAs||("object"!=typeof window||window!==oa?function(){}:"download"in HTMLAnchorElement.prototype&&!Is?function(Mt,Ii,yr){var Si=oa.URL||oa.webkitURL,rr=document.createElement("a");rr.download=Ii=Ii||Mt.name||"download",rr.rel="noopener","string"==typeof Mt?(rr.href=Mt,rr.origin!==location.origin?ei(rr.href)?Po(Mt,Ii,yr):Da(rr,rr.target="_blank"):Da(rr)):(rr.href=Si.createObjectURL(Mt),setTimeout(function(){Si.revokeObjectURL(rr.href)},4e4),setTimeout(function(){Da(rr)},0))}:"msSaveOrOpenBlob"in navigator?function(Mt,Ii,yr){if(Ii=Ii||Mt.name||"download","string"==typeof Mt)if(ei(Mt))Po(Mt,Ii,yr);else{var Si=document.createElement("a");Si.href=Mt,Si.target="_blank",setTimeout(function(){Da(Si)})}else navigator.msSaveOrOpenBlob(function Dn(Gt,Mt){return typeof Mt>"u"?Mt={autoBom:!1}:"object"!=typeof Mt&&(console.warn("Deprecated: Expected third argument to be a object"),Mt={autoBom:!Mt}),Mt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Gt.type)?new Blob([String.fromCharCode(65279),Gt],{type:Gt.type}):Gt}(Mt,yr),Ii)}:function(Mt,Ii,yr,Si){if((Si=Si||open("","_blank"))&&(Si.document.title=Si.document.body.innerText="downloading..."),"string"==typeof Mt)return Po(Mt,Ii,yr);var rr="application/octet-stream"===Mt.type,pv=/constructor/i.test(oa.HTMLElement)||oa.safari,eh=/CriOS\/[\d]+/.test(navigator.userAgent);if((eh||rr&&pv||Is)&&typeof FileReader<"u"){var de=new FileReader;de.onloadend=function(){var nh=de.result;nh=eh?nh:nh.replace(/^data:[^;]*;/,"data:attachment/file;"),Si?Si.location.href=nh:location=nh,Si=null},de.readAsDataURL(Mt)}else{var th=oa.URL||oa.webkitURL,mv=th.createObjectURL(Mt);Si?Si.location=mv:location.href=mv,Si=null,setTimeout(function(){th.revokeObjectURL(mv)},4e4)}});oa.saveAs=Ta.saveAs=Ta,_p.exports=Ta}},_p=>{_p(_p.s=550)}]); \ No newline at end of file +(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{550:(_p,oa,Dn)=>{"use strict";let ei=null,Is=1;function Gt(t){const r=ei;return ei=t,r}function eh(t){if((!jb(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==Is)){if(!t.producerMustRecompute(t)&&!oR(t))return t.dirty=!1,void(t.lastCleanEpoch=Is);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Is}}function oR(t){ih(t);for(let r=0;r0}function ih(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let W4=null;function Fn(t){return"function"==typeof t}function $b(t){const l=t(e=>{Error.call(e),e.stack=(new Error).stack});return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l}const RS=$b(t=>function(l){t(this),this.message=l?`${l.length} errors occurred during unsubscription:\n${l.map((e,s)=>`${s+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=l});function Yb(t,r){if(t){const l=t.indexOf(r);0<=l&&t.splice(l,1)}}class bt{constructor(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let r;if(!this.closed){this.closed=!0;const{_parentage:l}=this;if(l)if(this._parentage=null,Array.isArray(l))for(const u of l)u.remove(this);else l.remove(this);const{initialTeardown:e}=this;if(Fn(e))try{e()}catch(u){r=u instanceof RS?u.errors:[u]}const{_finalizers:s}=this;if(s){this._finalizers=null;for(const u of s)try{FS(u)}catch(m){r=r??[],m instanceof RS?r=[...r,...m.errors]:r.push(m)}}if(r)throw new RS(r)}}add(r){var l;if(r&&r!==this)if(this.closed)FS(r);else{if(r instanceof bt){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=null!==(l=this._finalizers)&&void 0!==l?l:[]).push(r)}}_hasParent(r){const{_parentage:l}=this;return l===r||Array.isArray(l)&&l.includes(r)}_addParent(r){const{_parentage:l}=this;this._parentage=Array.isArray(l)?(l.push(r),l):l?[l,r]:r}_removeParent(r){const{_parentage:l}=this;l===r?this._parentage=null:Array.isArray(l)&&Yb(l,r)}remove(r){const{_finalizers:l}=this;l&&Yb(l,r),r instanceof bt&&r._removeParent(this)}}bt.EMPTY=(()=>{const t=new bt;return t.closed=!0,t})();const OS=bt.EMPTY;function LS(t){return t instanceof bt||t&&"closed"in t&&Fn(t.remove)&&Fn(t.add)&&Fn(t.unsubscribe)}function FS(t){Fn(t)?t():t.unsubscribe()}const es={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rh={setTimeout(t,r,...l){const{delegate:e}=rh;return null!=e&&e.setTimeout?e.setTimeout(t,r,...l):setTimeout(t,r,...l)},clearTimeout(t){const{delegate:r}=rh;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function dR(t){rh.setTimeout(()=>{const{onUnhandledError:r}=es;if(!r)throw t;r(t)})}function qb(){}const NS=bp("C",void 0,void 0);function bp(t,r,l){return{kind:t,value:r,error:l}}let Tc=null;function Zb(t){if(es.useDeprecatedSynchronousErrorHandling){const r=!Tc;if(r&&(Tc={errorThrown:!1,error:null}),t(),r){const{errorThrown:l,error:e}=Tc;if(Tc=null,l)throw e}}else t()}class wp extends bt{constructor(r){super(),this.isStopped=!1,r?(this.destination=r,LS(r)&&r.add(this)):this.destination=BS}static create(r,l,e){return new _e(r,l,e)}next(r){this.isStopped?Ct(function uR(t){return bp("N",t,void 0)}(r),this):this._next(r)}error(r){this.isStopped?Ct(function Z4(t){return bp("E",void 0,t)}(r),this):(this.isStopped=!0,this._error(r))}complete(){this.isStopped?Ct(NS,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(r){this.destination.next(r)}_error(r){try{this.destination.error(r)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const nt=Function.prototype.bind;function mt(t,r){return nt.call(t,r)}class Xb{constructor(r){this.partialObserver=r}next(r){const{partialObserver:l}=this;if(l.next)try{l.next(r)}catch(e){Ze(e)}}error(r){const{partialObserver:l}=this;if(l.error)try{l.error(r)}catch(e){Ze(e)}else Ze(r)}complete(){const{partialObserver:r}=this;if(r.complete)try{r.complete()}catch(l){Ze(l)}}}class _e extends wp{constructor(r,l,e){let s;if(super(),Fn(r)||!r)s={next:r??void 0,error:l??void 0,complete:e??void 0};else{let u;this&&es.useDeprecatedNextContext?(u=Object.create(r),u.unsubscribe=()=>this.unsubscribe(),s={next:r.next&&mt(r.next,u),error:r.error&&mt(r.error,u),complete:r.complete&&mt(r.complete,u)}):s=r}this.destination=new Xb(s)}}function Ze(t){es.useDeprecatedSynchronousErrorHandling?function VS(t){es.useDeprecatedSynchronousErrorHandling&&Tc&&(Tc.errorThrown=!0,Tc.error=t)}(t):dR(t)}function Ct(t,r){const{onStoppedNotification:l}=es;l&&rh.setTimeout(()=>l(t,r))}const BS={closed:!0,next:qb,error:function X4(t){throw t},complete:qb},Di="function"==typeof Symbol&&Symbol.observable||"@@observable";function ki(t){return t}function Se(t){return 0===t.length?ki:1===t.length?t[0]:function(l){return t.reduce((e,s)=>s(e),l)}}let ln=(()=>{class t{constructor(l){l&&(this._subscribe=l)}lift(l){const e=new t;return e.source=this,e.operator=l,e}subscribe(l,e,s){const u=function Wt(t){return t&&t instanceof wp||function hR(t){return t&&Fn(t.next)&&Fn(t.error)&&Fn(t.complete)}(t)&&LS(t)}(l)?l:new _e(l,e,s);return Zb(()=>{const{operator:m,source:b}=this;u.add(m?m.call(u,b):b?this._subscribe(u):this._trySubscribe(u))}),u}_trySubscribe(l){try{return this._subscribe(l)}catch(e){l.error(e)}}forEach(l,e){return new(e=_n(e))((s,u)=>{const m=new _e({next:b=>{try{l(b)}catch(C){u(C),m.unsubscribe()}},error:u,complete:s});this.subscribe(m)})}_subscribe(l){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(l)}[Di](){return this}pipe(...l){return Se(l)(this)}toPromise(l){return new(l=_n(l))((e,s)=>{let u;this.subscribe(m=>u=m,m=>s(m),()=>e(u))})}}return t.create=r=>new t(r),t})();function _n(t){var r;return null!==(r=t??es.Promise)&&void 0!==r?r:Promise}const K4=$b(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let he=(()=>{class t extends ln{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(l){const e=new ct(this,this);return e.operator=l,e}_throwIfClosed(){if(this.closed)throw new K4}next(l){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const e of this.currentObservers)e.next(l)}})}error(l){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=l;const{observers:e}=this;for(;e.length;)e.shift().error(l)}})}complete(){Zb(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:l}=this;for(;l.length;)l.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var l;return(null===(l=this.observers)||void 0===l?void 0:l.length)>0}_trySubscribe(l){return this._throwIfClosed(),super._trySubscribe(l)}_subscribe(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)}_innerSubscribe(l){const{hasError:e,isStopped:s,observers:u}=this;return e||s?OS:(this.currentObservers=null,u.push(l),new bt(()=>{this.currentObservers=null,Yb(u,l)}))}_checkFinalizedStatuses(l){const{hasError:e,thrownError:s,isStopped:u}=this;e?l.error(s):u&&l.complete()}asObservable(){const l=new ln;return l.source=this,l}}return t.create=(r,l)=>new ct(r,l),t})();class ct extends he{constructor(r,l){super(),this.destination=r,this.source=l}next(r){var l,e;null===(e=null===(l=this.destination)||void 0===l?void 0:l.next)||void 0===e||e.call(l,r)}error(r){var l,e;null===(e=null===(l=this.destination)||void 0===l?void 0:l.error)||void 0===e||e.call(l,r)}complete(){var r,l;null===(l=null===(r=this.destination)||void 0===r?void 0:r.complete)||void 0===l||l.call(r)}_subscribe(r){var l,e;return null!==(e=null===(l=this.source)||void 0===l?void 0:l.subscribe(r))&&void 0!==e?e:OS}}class ye extends he{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const l=super._subscribe(r);return!l.closed&&r.next(this._value),l}getValue(){const{hasError:r,thrownError:l,_value:e}=this;if(r)throw l;return this._throwIfClosed(),e}next(r){super.next(this._value=r)}}function Xe(t){return Fn(null==t?void 0:t.lift)}function Ae(t){return r=>{if(Xe(r))return r.lift(function(l){try{return t(l,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bn(t,r,l,e,s){return new on(t,r,l,e,s)}class on extends wp{constructor(r,l,e,s,u,m){super(r),this.onFinalize=u,this.shouldUnsubscribe=m,this._next=l?function(b){try{l(b)}catch(C){r.error(C)}}:super._next,this._error=s?function(b){try{s(b)}catch(C){r.error(C)}finally{this.unsubscribe()}}:super._error,this._complete=e?function(){try{e()}catch(b){r.error(b)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:l}=this;super.unsubscribe(),!l&&(null===(r=this.onFinalize)||void 0===r||r.call(this))}}}function Ee(t,r){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>{e.next(t.call(r,u,s++))}))})}function zn(t){for(let r in t)if(t[r]===zn)return r;throw Error("Could not find renamed property on target object.")}function sa(t,r){for(const l in r)r.hasOwnProperty(l)&&!t.hasOwnProperty(l)&&(t[l]=r[l])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const r=t.toString();if(null==r)return""+r;const l=r.indexOf("\n");return-1===l?r:r.substring(0,l)}function ah(t,r){return null==t||""===t?null===r?"":r:null==r||""===r?t:t+" "+r}const fR=zn({__forward_ref__:zn});function Jt(t){return t.__forward_ref__=Jt,t.toString=function(){return Pi(this())},t}function it(t){return gt(t)?t():t}function gt(t){return"function"==typeof t&&t.hasOwnProperty(fR)&&t.__forward_ref__===Jt}function Ro(t){return t&&!!t.\u0275providers}const vv="https://g.co/ng/security#xss";class be extends Error{constructor(r,l){super(function la(t,r){return`NG0${Math.abs(t)}${r?": "+r:""}`}(r,l)),this.code=r}}const xp=zn({\u0275cmp:zn}),oh=zn({\u0275dir:zn}),Ad=zn({\u0275pipe:zn}),pR=zn({\u0275mod:zn}),Il=zn({\u0275fac:zn}),_v=zn({__NG_ELEMENT_ID__:zn}),HS=zn({__NG_ENV_ID__:zn});function Me(t){return"string"==typeof t?t:null==t?"":String(t)}function bv(t,r){throw new be(-201,!1)}function Oo(t,r){null==t&&function Vt(t,r,l,e){throw new Error(`ASSERTION ERROR: ${t}`+(null==e?"":` [Expected=> ${l} ${e} ${r} <=Actual]`))}(r,t,null,"!=")}function ke(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function GS(t){return iH(t,Lo)||iH(t,Jb)}function iH(t,r){return t.hasOwnProperty(r)?t[r]:null}function Or(t){return t&&(t.hasOwnProperty(Qb)||t.hasOwnProperty(e0))?t[Qb]:null}const Lo=zn({\u0275prov:zn}),Qb=zn({\u0275inj:zn}),Jb=zn({ngInjectableDef:zn}),e0=zn({ngInjectorDef:zn});var Yt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Yt||{});let lh;function mR(){return lh}function Ma(t){const r=lh;return lh=t,r}function gR(t,r,l){const e=GS(t);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:l&Yt.Optional?null:void 0!==r?r:void bv()}const vi=globalThis;class ve{constructor(r,l){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=ke({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const xv={},$S="__NG_DI_FLAG__",Za="ngTempTokenPath",YS=/\n/gm,qS="__source";let Pd;function Pl(t){const r=Pd;return Pd=t,r}function sH(t,r=Yt.Default){if(void 0===Pd)throw new be(-203,!1);return null===Pd?gR(t,void 0,r):Pd.get(t,r&Yt.Optional?null:void 0,r)}function fe(t,r=Yt.Default){return(mR()||sH)(it(t),r)}function De(t,r=Yt.Default){return fe(t,n0(r))}function n0(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function da(t){const r=[];for(let l=0;lr){m=u-1;break}}}for(;uu?"":s[F+1].toLowerCase();const q=8&e?H:null;if(q&&-1!==_R(q,M,0)||2&e&&M!==H){if(ar(e))return!1;m=!0}}}}else{if(!m&&!ar(e)&&!ar(C))return!1;if(m&&ar(C))continue;m=!1,e=C|1&e}}return ar(e)||m}function ar(t){return 0==(1&t)}function Rd(t,r,l,e){if(null===r)return-1;let s=0;if(e||!l){let u=!1;for(;s-1)for(l++;l0?'="'+b+'"':"")+"]"}else 8&e?s+="."+m:4&e&&(s+=" "+m);else""!==s&&!ar(m)&&(r+=Dv(u,s),s=""),e=m,u=u||!ar(e);l++}return""!==s&&(r+=Dv(u,s)),r}function xe(t){return Rl(()=>{const r=s0(t),l={...r,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Sp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Zi.Emulated,styles:t.styles||Tn,_:null,schemas:t.schemas||null,tView:null,id:""};JS(l);const e=t.dependencies;return l.directiveDefs=l0(e,!1),l.pipeDefs=l0(e,!0),l.id=function SR(t){let r=0;const l=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const s of l)r=Math.imul(31,r)+s.charCodeAt(0)<<0;return r+=2147483648,"c"+r}(l),l})}function fh(t){return hn(t)||Lr(t)}function Tv(t){return null!==t}function ot(t){return Rl(()=>({type:t.type,bootstrap:t.bootstrap||Tn,declarations:t.declarations||Tn,imports:t.imports||Tn,exports:t.exports||Tn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function xR(t,r){if(null==t)return Ol;const l={};for(const e in t)if(t.hasOwnProperty(e)){let s=t[e],u=s;Array.isArray(s)&&(u=s[1],s=s[0]),l[s]=e,r&&(r[s]=u)}return l}function ce(t){return Rl(()=>{const r=s0(t);return JS(r),r})}function ua(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function hn(t){return t[xp]||null}function Lr(t){return t[oh]||null}function ha(t){return t[Ad]||null}function Aa(t,r){const l=t[pR]||null;if(!l&&!0===r)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return l}function s0(t){const r={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputTransforms:null,inputConfig:t.inputs||Ol,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Tn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xR(t.inputs,r),outputs:xR(t.outputs),debugInfo:null}}function JS(t){var r;null==(r=t.features)||r.forEach(l=>l(t))}function l0(t,r){if(!t)return null;const l=r?ha:fh;return()=>("function"==typeof t?t():t).map(e=>l(e)).filter(Tv)}const Xi=0,He=1,vt=2,Ki=3,Rs=4,fa=5,Os=6,ph=7,oi=8,pa=9,Fl=10,Ht=11,ma=12,Mp=13,Ls=14,Ri=15,mh=16,gh=17,Nl=18,Mv=19,eD=20,Vl=21,vh=22,Od=23,Bt=25,Bl=1,Fs=7,Mc=9,Yn=10;var po=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(po||{});function or(t){return Array.isArray(t)&&"object"==typeof t[Bl]}function Ui(t){return Array.isArray(t)&&!0===t[Bl]}function c0(t){return 0!=(4&t.flags)}function Ti(t){return t.componentOffset>-1}function Ev(t){return 1==(1&t.flags)}function mo(t){return!!t.template}function d0(t){return 0!=(512&t[vt])}function Ac(t,r){return t.hasOwnProperty(Il)?t[Il]:null}class Nd{constructor(r,l,e){this.previousValue=r,this.currentValue=l,this.firstChange=e}isFirstChange(){return this.firstChange}}function nn(){return p0}function p0(t){return t.type.prototype.ngOnChanges&&(t.setInput=m0),AR}function AR(){const t=Ea(this),r=null==t?void 0:t.current;if(r){const l=t.previous;if(l===Ol)t.previous=r;else for(let e in r)l[e]=r[e];t.current=null,this.ngOnChanges(r)}}function m0(t,r,l,e){const s=this.declaredInputs[l],u=Ea(t)||function aD(t,r){return t[_h]=r}(t,{previous:Ol,current:null}),m=u.current||(u.current={}),b=u.previous,C=b[s];m[s]=new Nd(C&&C.currentValue,r,b===Ol),t[e]=r}nn.ngInherit=!0;const _h="__ngSimpleChanges__";function Ea(t){return t[_h]||null}const zl=function(t,r,l){},Ep="svg";let v0=!1;function qn(t){for(;Array.isArray(t);)t=t[Xi];return t}function Ec(t,r){return qn(r[t])}function Xa(t,r){return qn(r[t.index])}function Ic(t,r){return t.data[r]}function yh(t,r){return t[r]}function br(t,r){const l=r[t];return or(l)?l:l[Xi]}function Pv(t){return 128==(128&t[vt])}function Hl(t,r){return null==r?null:t[r]}function IR(t){t[gh]=0}function pH(t){1024&t[vt]||(t[vt]|=1024,Pv(t)&&Ip(t))}function PR(t){var r;return 9216&t[vt]||(null==(r=t[Od])?void 0:r.dirty)}function RR(t){var r;PR(t)?Ip(t):64&t[vt]&&(function fH(){return v0}()?(t[vt]|=1024,Ip(t)):null==(r=t[Fl].changeDetectionScheduler)||r.notify())}function Ip(t){var l;null==(l=t[Fl].changeDetectionScheduler)||l.notify();let r=Vd(t);for(;null!==r&&!(8192&r[vt])&&(r[vt]|=8192,Pv(r));)r=Vd(r)}function y0(t,r){if(256==(256&t[vt]))throw new be(911,!1);null===t[Vl]&&(t[Vl]=[]),t[Vl].push(r)}function Vd(t){const r=t[Ki];return Ui(r)?r[Ki]:r}const Rt={lFrame:zR(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function b0(){return Rt.bindingsEnabled}function go(){return null!==Rt.skipHydrationRootTNode}function Te(){return Rt.lFrame.lView}function fn(){return Rt.lFrame.tView}function oe(t){return Rt.lFrame.contextLView=t,t[oi]}function le(t){return Rt.lFrame.contextLView=null,t}function Hn(){let t=Ov();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ov(){return Rt.lFrame.currentTNode}function vo(t,r){const l=Rt.lFrame;l.currentTNode=t,l.isParent=r}function Lv(){return Rt.lFrame.isParent}function Fv(){Rt.lFrame.isParent=!1}function Nr(){const t=Rt.lFrame;let r=t.bindingRootIndex;return-1===r&&(r=t.bindingRootIndex=t.tView.bindingStartIndex),r}function is(){return Rt.lFrame.bindingIndex++}function _o(t){const r=Rt.lFrame,l=r.bindingIndex;return r.bindingIndex=r.bindingIndex+t,l}function bH(t,r){const l=Rt.lFrame;l.bindingIndex=l.bindingRootIndex=t,Vv(r)}function Vv(t){Rt.lFrame.currentDirectiveIndex=t}function x0(t){const r=Rt.lFrame.currentDirectiveIndex;return-1===r?null:t[r]}function uD(){return Rt.lFrame.currentQueryIndex}function Bv(t){Rt.lFrame.currentQueryIndex=t}function wH(t){const r=t[He];return 2===r.type?r.declTNode:1===r.type?t[fa]:null}function C0(t,r,l){if(l&Yt.SkipSelf){let s=r,u=t;for(;!(s=s.parent,null!==s||l&Yt.Host||(s=wH(u),null===s||(u=u[Ls],10&s.type))););if(null===s)return!1;r=s,t=u}const e=Rt.lFrame=fD();return e.currentTNode=r,e.lView=t,!0}function hD(t){const r=fD(),l=t[He];Rt.lFrame=r,r.currentTNode=l.firstChild,r.lView=t,r.tView=l,r.contextLView=t,r.bindingIndex=l.bindingStartIndex,r.inI18n=!1}function fD(){const t=Rt.lFrame,r=null===t?null:t.child;return null===r?zR(t):r}function zR(t){const r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=r),r}function rs(){const t=Rt.lFrame;return Rt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const S0=rs;function pD(){const t=rs();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vr(){return Rt.lFrame.selectedIndex}function Pc(t){Rt.lFrame.selectedIndex=t}function _i(){const t=Rt.lFrame;return Ic(t.tView,t.selectedIndex)}function Ia(){Rt.lFrame.currentNamespace=Ep}function Bd(){!function AX(){Rt.lFrame.currentNamespace=null}()}let D0=!0;function Pp(){return D0}function Ul(t){D0=t}function Hv(t,r){for(let l=r.directiveStart,e=r.directiveEnd;l=e)break}else r[C]<0&&(t[gh]+=65536),(b>14>16&&(3&t[vt])===r&&(t[vt]+=16384,T0(b,u)):T0(b,u)}const Rp=-1;class yo{constructor(r,l,e){this.factory=r,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=e}}function zd(t){return t!==Rp}function Hd(t){return 32767&t}function Ka(t,r){let l=function EX(t){return t>>16}(t),e=r;for(;l>0;)e=e[Ls],l--;return e}let Op=!0;function Lp(t){const r=Op;return Op=t,r}const WR=255,wh=5;let DH=0;const as={};function Fp(t,r){const l=$R(t,r);if(-1!==l)return l;const e=r[He];e.firstCreatePass&&(t.injectorIndex=r.length,vD(e.data,t),vD(r,null),vD(e.blueprint,null));const s=E0(t,r),u=t.injectorIndex;if(zd(s)){const m=Hd(s),b=Ka(s,r),C=b[He].data;for(let M=0;M<8;M++)r[u+M]=b[m+M]|C[m+M]}return r[u+8]=s,u}function vD(t,r){t.push(0,0,0,0,0,0,0,0,r)}function $R(t,r){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===r[t.injectorIndex+8]?-1:t.injectorIndex}function E0(t,r){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let l=0,e=null,s=r;for(;null!==s;){if(e=yn(s),null===e)return Rp;if(l++,s=s[Ls],-1!==e.injectorIndex)return e.injectorIndex|l<<16}return Rp}function _D(t,r,l){!function gD(t,r,l){let e;"string"==typeof l?e=l.charCodeAt(0)||0:l.hasOwnProperty(_v)&&(e=l[_v]),null==e&&(e=l[_v]=DH++);const s=e&WR;r.data[t+(s>>wh)]|=1<=0?r&WR:MH:r}(l);if("function"==typeof u){if(!C0(r,t,e))return e&Yt.Host?yD(s,0,e):bD(r,l,e,s);try{let m;if(m=u(e),null!=m||e&Yt.Optional)return m;bv()}finally{S0()}}else if("number"==typeof u){let m=null,b=$R(t,r),C=Rp,M=e&Yt.Host?r[Ri][fa]:null;for((-1===b||e&Yt.SkipSelf)&&(C=-1===b?E0(t,r):r[b+8],C!==Rp&&qR(e,!1)?(m=r[He],b=Hd(C),r=Ka(C,r)):b=-1);-1!==b;){const I=r[He];if(k0(u,b,I.data)){const F=xh(b,r,l,m,e,M);if(F!==as)return F}C=r[b+8],C!==Rp&&qR(e,r[He].data[b+8]===M)&&k0(u,b,r)?(m=I,b=Hd(C),r=Ka(C,r)):b=-1}}return s}function xh(t,r,l,e,s,u){const m=r[He],b=m.data[t+8],I=I0(b,m,l,null==e?Ti(b)&&Op:e!=m&&0!=(3&b.type),s&Yt.Host&&u===b);return null!==I?Ch(r,m,I,b):as}function I0(t,r,l,e,s){const u=t.providerIndexes,m=r.data,b=1048575&u,C=t.directiveStart,I=u>>20,H=s?b+I:t.directiveEnd;for(let q=e?b:b+I;q=C&&Q.type===l)return q}if(s){const q=m[C];if(q&&mo(q)&&q.type===l)return C}return null}function Ch(t,r,l,e){let s=t[l];const u=r.data;if(function HR(t){return t instanceof yo}(s)){const m=s;m.resolving&&function Ue(t,r){const l=r?`. Dependency path: ${r.join(" > ")} > ${t}`:"";throw new be(-200,`Circular dependency in DI detected for ${t}${l}`)}(function wn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Me(t)}(u[l]));const b=Lp(m.canSeeViewProviders);m.resolving=!0;const M=m.injectImpl?Ma(m.injectImpl):null;C0(t,e,Yt.Default);try{s=t[l]=m.factory(void 0,u,t,e),r.firstCreatePass&&l>=e.directiveStart&&function SH(t,r,l){const{ngOnChanges:e,ngOnInit:s,ngDoCheck:u}=r.type.prototype;if(e){const m=p0(r);(l.preOrderHooks??=[]).push(t,m),(l.preOrderCheckHooks??=[]).push(t,m)}s&&(l.preOrderHooks??=[]).push(0-t,s),u&&((l.preOrderHooks??=[]).push(t,u),(l.preOrderCheckHooks??=[]).push(t,u))}(l,u[l],r)}finally{null!==M&&Ma(M),Lp(b),m.resolving=!1,S0()}}return s}function k0(t,r,l){return!!(l[r+(t>>wh)]&1<{const r=t.prototype.constructor,l=r[Il]||P0(r),e=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==e;){const u=s[Il]||P0(s);if(u&&u!==l)return u;s=Object.getPrototypeOf(s)}return u=>new u})}function P0(t){return gt(t)?()=>{const r=P0(it(t));return r&&r()}:Ac(t)}function yn(t){const r=t[He],l=r.type;return 2===l?r.declTNode:1===l?t[fa]:null}function Ie(t){return function YR(t,r){if("class"===r)return t.classes;if("style"===r)return t.styles;const l=t.attrs;if(l){const e=l.length;let s=0;for(;s{const e=function Gv(t){return function(...l){if(t){const e=t(...l);for(const s in e)this[s]=e[s]}}}(r);function s(...u){if(this instanceof s)return e.apply(this,u),this;const m=new s(...u);return b.annotation=m,b;function b(C,M,I){const F=C.hasOwnProperty(Qr)?C[Qr]:Object.defineProperty(C,Qr,{value:[]})[Qr];for(;F.length<=I;)F.push(null);return(F[I]=F[I]||[]).push(m),C}}return l&&(s.prototype=Object.create(l.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function Dh(t,r){t.forEach(l=>Array.isArray(l)?Dh(l,r):r(l))}function CD(t,r,l){r>=t.length?t.push(l):t.splice(r,0,l)}function Wv(t,r){return r>=t.length-1?t.pop():t.splice(r,1)[0]}function Bo(t,r,l){let e=Hp(t,r);return e>=0?t[1|e]=l:(e=~e,function SD(t,r,l,e){let s=t.length;if(s==r)t.push(l,e);else if(1===s)t.push(e,t[0]),t[0]=l;else{for(s--,t.push(t[s-1],t[s]);s>r;)t[s]=t[s-2],s--;t[r]=l,t[r+1]=e}}(t,e,r,l)),e}function L0(t,r){const l=Hp(t,r);if(l>=0)return t[1|l]}function Hp(t,r){return function QR(t,r,l){let e=0,s=t.length>>l;for(;s!==e;){const u=e+(s-e>>1),m=t[u<r?s=u:e=u+1}return~(s<{l.push(m)};return Dh(r,m=>{const b=m;N0(b,u,[],e)&&(s||=[],s.push(b))}),void 0!==s&&s2(s,u),l}function s2(t,r){for(let l=0;l{r(u,e)})}}function N0(t,r,l,e){if(!(t=it(t)))return!1;let s=null,u=Or(t);const m=!u&&hn(t);if(u||m){if(m&&!m.standalone)return!1;s=t}else{const C=t.ngModule;if(u=Or(C),!u)return!1;s=C}const b=e.has(s);if(m){if(b)return!1;if(e.add(s),m.dependencies){const C="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const M of C)N0(M,r,l,e)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let M;e.add(s);try{Dh(u.imports,I=>{N0(I,r,l,e)&&(M||=[],M.push(I))})}finally{}void 0!==M&&s2(M,r)}if(!b){const M=Ac(s)||(()=>new s);r({provide:s,useFactory:M,deps:Tn},s),r({provide:AD,useValue:s,multi:!0},s),r({provide:Ud,useValue:()=>fe(s),multi:!0},s)}const C=u.providers;if(null!=C&&!b){const M=t;ID(C,I=>{r(I,M)})}}}return s!==t&&void 0!==t.providers}function ID(t,r){for(let l of t)Ro(l)&&(l=l.\u0275providers),Array.isArray(l)?ID(l,r):r(l)}const V0=zn({provide:String,useValue:zn});function Fc(t){return null!==t&&"object"==typeof t&&V0 in t}function Mh(t){return"function"==typeof t}const PD=new ve("Set Injector scope."),jp={},d2={};let Gp;function Wp(){return void 0===Gp&&(Gp=new F0),Gp}class bo{}class Ah extends bo{get destroyed(){return this._destroyed}constructor(r,l,e,s){super(),this.parent=l,this.source=e,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,OD(r,m=>this.processProvider(m)),this.records.set(Vs,Eh(void 0,this)),s.has("environment")&&this.records.set(bo,Eh(void 0,this));const u=this.records.get(PD);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(AD,Tn,Yt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of r)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(r){return this.assertNotDestroyed(),this._onDestroyHooks.push(r),()=>this.removeOnDestroy(r)}runInContext(r){this.assertNotDestroyed();const l=Pl(this),e=Ma(void 0);try{return r()}finally{Pl(l),Ma(e)}}get(r,l=xv,e=Yt.Default){if(this.assertNotDestroyed(),r.hasOwnProperty(HS))return r[HS](this);e=n0(e);const u=Pl(this),m=Ma(void 0);try{if(!(e&Yt.SkipSelf)){let C=this.records.get(r);if(void 0===C){const M=function RD(t){return"function"==typeof t||"object"==typeof t&&t instanceof ve}(r)&&GS(r);C=M&&this.injectableDefInScope(M)?Eh(B0(r),jp):null,this.records.set(r,C)}if(null!=C)return this.hydrate(r,C)}return(e&Yt.Self?Wp():this.parent).get(r,l=e&Yt.Optional&&l===xv?null:l)}catch(b){if("NullInjectorError"===b.name){if((b[Za]=b[Za]||[]).unshift(Pi(r)),u)throw b;return function lH(t,r,l,e){const s=t[Za];throw r[qS]&&s.unshift(r[qS]),t.message=function KS(t,r,l,e=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let s=Pi(r);if(Array.isArray(r))s=r.map(Pi).join(" -> ");else if("object"==typeof r){let u=[];for(let m in r)if(r.hasOwnProperty(m)){let b=r[m];u.push(m+":"+("string"==typeof b?JSON.stringify(b):Pi(b)))}s=`{${u.join(", ")}}`}return`${l}${e?"("+e+")":""}[${s}]: ${t.replace(YS,"\n ")}`}("\n"+t.message,s,l,e),t.ngTokenPath=s,t[Za]=null,t}(b,r,"R3InjectorError",this.source)}throw b}finally{Ma(m),Pl(u)}}resolveInjectorInitializers(){const r=Pl(this),l=Ma(void 0);try{const s=this.get(Ud,Tn,Yt.Self);for(const u of s)u()}finally{Pl(r),Ma(l)}}toString(){const r=[],l=this.records;for(const e of l.keys())r.push(Pi(e));return`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new be(205,!1)}processProvider(r){let l=Mh(r=it(r))?r:it(r&&r.provide);const e=function UH(t){return Fc(t)?Eh(void 0,t.useValue):Eh(u2(t),jp)}(r);if(!Mh(r)&&!0===r.multi){let s=this.records.get(l);s||(s=Eh(void 0,jp,!0),s.factory=()=>da(s.multi),this.records.set(l,s)),l=r,s.multi.push(r)}this.records.set(l,e)}hydrate(r,l){return l.value===jp&&(l.value=d2,l.value=l.factory()),"object"==typeof l.value&&l.value&&function GH(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(l.value)&&this._ngOnDestroyHooks.add(l.value),l.value}injectableDefInScope(r){if(!r.providedIn)return!1;const l=it(r.providedIn);return"string"==typeof l?"any"===l||this.scopes.has(l):this.injectorDefTypes.has(l)}removeOnDestroy(r){const l=this._onDestroyHooks.indexOf(r);-1!==l&&this._onDestroyHooks.splice(l,1)}}function B0(t){const r=GS(t),l=null!==r?r.factory:Ac(t);if(null!==l)return l;if(t instanceof ve)throw new be(204,!1);if(t instanceof Function)return function HH(t){if(t.length>0)throw new be(204,!1);const l=function Ed(t){return t&&(t[Lo]||t[Jb])||null}(t);return null!==l?()=>l.factory(t):()=>new t}(t);throw new be(204,!1)}function u2(t,r,l){let e;if(Mh(t)){const s=it(t);return Ac(s)||B0(s)}if(Fc(t))e=()=>it(t.useValue);else if(function c2(t){return!(!t||!t.useFactory)}(t))e=()=>t.useFactory(...da(t.deps||[]));else if(function l2(t){return!(!t||!t.useExisting)}(t))e=()=>fe(it(t.useExisting));else{const s=it(t&&(t.useClass||t.provide));if(!function jH(t){return!!t.deps}(t))return Ac(s)||B0(s);e=()=>new s(...da(t.deps))}return e}function Eh(t,r,l=!1){return{factory:t,value:r,multi:l?[]:void 0}}function OD(t,r){for(const l of t)Array.isArray(l)?OD(l,r):l&&Ro(l)?OD(l.\u0275providers,r):r(l)}function jd(t,r){t instanceof Ah&&t.assertNotDestroyed();const e=Pl(t),s=Ma(void 0);try{return r()}finally{Pl(e),Ma(s)}}function m2(t,r=null,l=null,e){const s=zo(t,r,l,e);return s.resolveInjectorInitializers(),s}function zo(t,r=null,l=null,e,s=new Set){const u=[l||Tn,zH(t)];return e=e||("object"==typeof t?void 0:Pi(t)),new Ah(u,r||Wp(),e||null,s)}let Yp,mn=(()=>{var t;class r{static create(e,s){if(Array.isArray(e))return m2({name:""},s,e,"");{const u=e.name??"";return m2({name:u},e.parent,e.providers,u)}}}return(t=r).THROW_IF_NOT_FOUND=xv,t.NULL=new F0,t.\u0275prov=ke({token:t,providedIn:"any",factory:()=>fe(Vs)}),t.__NG_ELEMENT_ID__=-1,r})();function Nc(){if(void 0!==Yp)return Yp;if(typeof document<"u")return document;throw new be(210,!1)}const qp=new ve("AppId",{providedIn:"root",factory:()=>$H}),$H="ng",v2=new ve("Platform Initializer"),Vc=new ve("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),si=new ve("AnimationModuleType"),Bc=new ve("CSP nonce",{providedIn:"root",factory:()=>{var t,r;return(null==(r=null==(t=Nc().body)?void 0:t.querySelector("[ngCspNonce]"))?void 0:r.getAttribute("ngCspNonce"))||null}});function ss(t){return t.ownerDocument.defaultView}function Bs(t){return t.ownerDocument}function Br(t){return t instanceof Function?t():t}function Z0(t){return 128==(128&t.flags)}var Zd=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Zd||{});const x2=/^>|^->||--!>|)/g,XH="\u200b$1\u200b";const UD=new Map;let S2=0;const X0="__ngContext__";function _t(t,r){or(r)?(t[X0]=r[Mv],function KH(t){UD.set(t[Mv],t)}(r)):t[X0]=r}let K0;function Q0(t,r){return K0(t,r)}function Lh(t,r,l,e,s){if(null!=e){let u,m=!1;Ui(e)?u=e:or(e)&&(m=!0,e=e[Xi]);const b=qn(e);0===t&&null!==l?null==s?i_(r,l,b):Gs(r,l,b,s||null,!0):1===t&&null!==l?Gs(r,l,b,s||null,!0):2===t?function JD(t,r,l){const e=r_(t,r);e&&function tm(t,r,l,e){t.removeChild(r,l,e)}(t,e,r,l)}(r,b,m):3===t&&r.destroyNode(b),null!=u&&function Nh(t,r,l,e,s){const u=l[Fs];u!==qn(l)&&Lh(r,t,e,u,s);for(let b=Yn;br.replace(e_,XH))}(r))}function st(t,r,l){return t.createElement(r,l)}function qD(t,r){var l;null==(l=r[Fl].changeDetectionScheduler)||l.notify(),rw(t,r,r[Ht],2,null,null)}function Qp(t,r){const l=t[Mc],e=l.indexOf(r);l.splice(e,1)}function Xd(t,r){if(t.length<=Yn)return;const l=Yn+r,e=t[l];if(e){const s=e[mh];null!==s&&s!==t&&Qp(s,e),r>0&&(t[l-1][Rs]=e[Rs]);const u=Wv(t,Yn+r);!function YD(t,r){qD(t,r),r[Xi]=null,r[fa]=null}(e[He],e);const m=u[Nl];null!==m&&m.detachView(u[He]),e[Ki]=null,e[Rs]=null,e[vt]&=-129}return e}function ea(t,r){if(!(256&r[vt])){const l=r[Ht];l.destroyNode&&rw(t,r,l,3,null,null),function L2(t){let r=t[ma];if(!r)return Fh(t[He],t);for(;r;){let l=null;if(or(r))l=r[ma];else{const e=r[Yn];e&&(l=e)}if(!l){for(;r&&!r[Rs]&&r!==t;)or(r)&&Fh(r[He],r),r=r[Ki];null===r&&(r=t),or(r)&&Fh(r[He],r),l=r&&r[Rs]}r=l}}(r)}}function Fh(t,r){if(!(256&r[vt])){r[vt]&=-129,r[vt]|=256,r[Od]&&function j4(t){if(ih(t),jb(t))for(let r=0;r=0?e[m]():e[-m].unsubscribe(),u+=2}else l[u].call(e[l[u+1]]);null!==e&&(r[ph]=null);const s=r[Vl];if(null!==s){r[Vl]=null;for(let u=0;u-1){const{encapsulation:u}=t.data[e.directiveStart+s];if(u===Zi.None||u===Zi.Emulated)return null}return Xa(e,l)}}(t,r.parent,l)}function Gs(t,r,l,e,s){t.insertBefore(r,l,e,s)}function i_(t,r,l){t.appendChild(r,l)}function em(t,r,l,e,s){null!==e?Gs(t,r,l,e,s):i_(t,r,l)}function r_(t,r){return t.parentNode(r)}function KD(t,r,l){return tw(t,r,l)}let nw,a_,rm,tw=function QD(t,r,l){return 40&t.type?Xa(t,l):null};function iw(t,r,l,e){const s=zc(t,e,r),u=r[Ht],b=KD(e.parent||r[fa],e,r);if(null!=s)if(Array.isArray(l))for(let C=0;Ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return a_}())?void 0:r.createHTML(t))||t}function nT(){if(void 0===rm&&(rm=null,vi.trustedTypes))try{rm=vi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return rm}function ow(t){var r;return(null==(r=nT())?void 0:r.createHTML(t))||t}function j2(t){var r;return(null==(r=nT())?void 0:r.createScriptURL(t))||t}class Bh{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vv})`}}class G2 extends Bh{getTypeName(){return"HTML"}}class r8 extends Bh{getTypeName(){return"Style"}}class Kd extends Bh{getTypeName(){return"Script"}}class a8 extends Bh{getTypeName(){return"URL"}}class Oi extends Bh{getTypeName(){return"ResourceURL"}}function eo(t){return t instanceof Bh?t.changingThisBreaksApplicationSecurity:t}function Ws(t,r){const l=function o8(t){return t instanceof Bh&&t.getTypeName()||null}(t);if(null!=l&&l!==r){if("ResourceURL"===l&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${l} (see ${vv})`)}return l===r}class W2{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const l=(new window.DOMParser).parseFromString(Vh(r),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(r):(l.removeChild(l.firstChild),l)}catch{return null}}}class c8{constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const l=this.inertDocument.createElement("template");return l.innerHTML=Vh(r),l}}const am=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function om(t){return(t=String(t)).match(am)?t:"unsafe:"+t}function zt(t){const r={};for(const l of t.split(","))r[l]=!0;return r}function Nn(...t){const r={};for(const l of t)for(const e in l)l.hasOwnProperty(e)&&(r[e]=!0);return r}const Hh=zt("area,br,col,hr,img,wbr"),Hc=zt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iT=zt("rp,rt"),sm=Nn(Hh,Nn(Hc,zt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Nn(iT,zt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Nn(iT,Hc)),cw=zt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sr=Nn(cw,zt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zn=zt("script,style,template");class dw{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let l=r.firstChild,e=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?e=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,e&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let s=this.checkClobberedElement(l,l.nextSibling);if(s){l=s;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(r){const l=r.nodeName.toLowerCase();if(!sm.hasOwnProperty(l))return this.sanitizedSomething=!0,!Zn.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const e=r.attributes;for(let s=0;s"),!0}endElement(r){const l=r.nodeName.toLowerCase();sm.hasOwnProperty(l)&&!Hh.hasOwnProperty(l)&&(this.buf.push(""))}chars(r){this.buf.push(rT(r))}checkClobberedElement(r,l){if(l&&(r.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return l}}const d8=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u8=/([^\#-~ |!])/g;function rT(t){return t.replace(/&/g,"&").replace(d8,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(u8,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let l_;function aT(t,r){let l=null;try{l_=l_||function sw(t){const r=new c8(t);return function $2(){try{return!!(new window.DOMParser).parseFromString(Vh(""),"text/html")}catch{return!1}}()?new W2(r):r}(t);let e=r?String(r):"";l=l_.getInertBodyElement(e);let s=5,u=e;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,e=u,u=l.innerHTML,l=l_.getInertBodyElement(e)}while(e!==u);return Vh((new dw).sanitizeChildren(uw(l)||l))}finally{if(l){const e=uw(l)||l;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function uw(t){return"content"in t&&function q2(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Qi||{});function zr(t){const r=c_();return r?ow(r.sanitize(Qi.HTML,t)||""):Ws(t,"HTML")?ow(eo(t)):aT(Nc(),Me(t))}function Ut(t){const r=c_();return r?r.sanitize(Qi.URL,t)||"":Ws(t,"URL")?eo(t):om(Me(t))}function hw(t){const r=c_();if(r)return j2(r.sanitize(Qi.RESOURCE_URL,t)||"");if(Ws(t,"ResourceURL"))return j2(eo(t));throw new be(904,!1)}function c_(){const t=Te();return t&&t[Fl].sanitizer}class Q2{}let pw=()=>null;function Co(t,r,l=!1){return pw(t,r,l)}class v8{}class gT{}class vw{resolveComponentFactory(r){throw function tO(t){const r=Error(`No component factory found for ${Pi(t)}.`);return r.ngComponent=t,r}(r)}}let ls=(()=>{class r{}return r.NULL=new vw,r})();function _w(){return Uc(Hn(),Te())}function Uc(t,r){return new je(Xa(t,r))}let je=(()=>{class r{constructor(e){this.nativeElement=e}}return r.__NG_ELEMENT_ID__=_w,r})();function _8(t){return t instanceof je?t.nativeElement:t}class yw{}let ec=(()=>{class r{constructor(){this.destroyNode=null}}return r.__NG_ELEMENT_ID__=()=>function nO(){const t=Te(),l=br(Hn().index,t);return(or(l)?l:t)[Ht]}(),r})(),iO=(()=>{var t;class r{}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>null}),r})();const bw={};function ww(t){const r=Gt(null);try{return t()}finally{Gt(r)}}function fm(t){return!!xw(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function xw(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class oO{constructor(){}supports(r){return fm(r)}create(r){return new Gh(r)}}const x8=(t,r)=>r;class Gh{constructor(r){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||x8}forEachItem(r){let l;for(l=this._itHead;null!==l;l=l._next)r(l)}forEachOperation(r){let l=this._itHead,e=this._removalsHead,s=0,u=null;for(;l||e;){const m=!e||l&&l.currentIndex{m=this._trackByFn(s,b),null!==l&&Object.is(l.trackById,m)?(e&&(l=this._verifyReinsertion(l,b,m,s)),Object.is(l.item,b)||this._addIdentityChange(l,b)):(l=this._mismatch(l,b,m,s),e=!0),l=l._next,s++}),this.length=s;return this._truncate(l),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,l,e,s){let u;return null===r?u=this._itTail:(u=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._reinsertAfter(r,u,s)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(e,s))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._moveAfter(r,u,s)):r=this._addAfter(new Cw(l,e),u,s),r}_verifyReinsertion(r,l,e,s){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null);return null!==u?r=this._reinsertAfter(u,r._prev,s):r.currentIndex!=s&&(r.currentIndex=s,this._addToMoves(r,s)),r}_truncate(r){for(;null!==r;){const l=r._next;this._addToRemovals(this._unlink(r)),r=l}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(r,l,e){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const s=r._prevRemoved,u=r._nextRemoved;return null===s?this._removalsHead=u:s._nextRemoved=u,null===u?this._removalsTail=s:u._prevRemoved=s,this._insertAfter(r,l,e),this._addToMoves(r,e),r}_moveAfter(r,l,e){return this._unlink(r),this._insertAfter(r,l,e),this._addToMoves(r,e),r}_addAfter(r,l,e){return this._insertAfter(r,l,e),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,l,e){const s=null===l?this._itHead:l._next;return r._next=s,r._prev=l,null===s?this._itTail=r:s._prev=r,null===l?this._itHead=r:l._next=r,null===this._linkedRecords&&(this._linkedRecords=new _T),this._linkedRecords.put(r),r.currentIndex=e,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const l=r._prev,e=r._next;return null===l?this._itHead=e:l._next=e,null===e?this._itTail=l:e._prev=l,r}_addToMoves(r,l){return r.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _T),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,l){return r.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class Cw{constructor(r,l){this.item=r,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sw{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,l){let e;for(e=this._head;null!==e;e=e._nextDup)if((null===l||l<=e.currentIndex)&&Object.is(e.trackById,r))return e;return null}remove(r){const l=r._prevDup,e=r._nextDup;return null===l?this._head=e:l._nextDup=e,null===e?this._tail=l:e._prevDup=l,null===this._head}}class _T{constructor(){this.map=new Map}put(r){const l=r.trackById;let e=this.map.get(l);e||(e=new Sw,this.map.set(l,e)),e.add(r)}get(r,l){const s=this.map.get(r);return s?s.get(r,l):null}remove(r){const l=r.trackById;return this.map.get(l).remove(r)&&this.map.delete(l),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eu(t,r,l){const e=t.previousIndex;if(null===e)return e;let s=0;return l&&e{if(l&&l.key===s)this._maybeAddToChanges(l,e),this._appendAfter=l,l=l._next;else{const u=this._getOrCreateRecordForKey(s,e);l=this._insertBeforeOrAppend(l,u)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let e=l;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,l){if(r){const e=r._prev;return l._next=r,l._prev=e,r._prev=l,e&&(e._next=l),r===this._mapHead&&(this._mapHead=l),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(r,l){if(this._records.has(r)){const s=this._records.get(r);this._maybeAddToChanges(s,l);const u=s._prev,m=s._next;return u&&(u._next=m),m&&(m._prev=u),s._next=null,s._prev=null,s}const e=new VX(r);return this._records.set(r,e),e.currentValue=l,this._addToAdditions(e),e}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,l){Object.is(l,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=l,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,l){r instanceof Map?r.forEach(l):Object.keys(r).forEach(e=>l(r[e],e))}}class VX{constructor(r){this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function C8(){return new tu([new oO])}let tu=(()=>{var t;class r{constructor(e){this.factories=e}static create(e,s){if(null!=s){const u=s.factories.slice();e=e.concat(u)}return new r(e)}static extend(e){return{provide:r,useFactory:s=>r.create(e,s||C8()),deps:[[r,new Wl,new Pa]]}}find(e){const s=this.factories.find(u=>u.supports(e));if(null!=s)return s;throw new be(901,!1)}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:C8}),r})();function g_(){return new Tw([new Dw])}let Tw=(()=>{var t;class r{constructor(e){this.factories=e}static create(e,s){if(s){const u=s.factories.slice();e=e.concat(u)}return new r(e)}static extend(e){return{provide:r,useFactory:s=>r.create(e,s||g_()),deps:[[r,new Wl,new Pa]]}}find(e){const s=this.factories.find(u=>u.supports(e));if(s)return s;throw new be(901,!1)}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:g_}),r})();function cs(t,r,l,e,s=!1){for(;null!==l;){const u=r[l.index];null!==u&&e.push(qn(u)),Ui(u)&&$h(u,e);const m=l.type;if(8&m)cs(t,r,l.child,e);else if(32&m){const b=Q0(l,r);let C;for(;C=b();)e.push(C)}else if(16&m){const b=Zl(r,l);if(Array.isArray(b))e.push(...b);else{const C=Vd(r[Ri]);cs(C[He],C,b,e,!0)}}l=s?l.projectionNext:l.next}return e}function $h(t,r){for(let l=Yn;l!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ip(t.lView)},consumerOnSignalRead(){this.lView[Od]=this}};function lO(t){return Uo(t[ma])}function bT(t){return Uo(t[Rs])}function Uo(t){for(;null!==t&&!Ui(t);)t=t[Rs];return t}function ds(t){return t.ngOriginalError}class Tr{constructor(){this._console=console}handleError(r){const l=this._findOriginalError(r);this._console.error("ERROR",r),l&&this._console.error("ORIGINAL ERROR",l)}_findOriginalError(r){let l=r&&ds(r);for(;l&&ds(l);)l=ds(l);return l||null}}const wT=new ve("",{providedIn:"root",factory:()=>De(Tr).handleError.bind(void 0)}),ta=new ve("",{providedIn:"root",factory:()=>!1}),Xt={};function N(t=1){Aw(fn(),Te(),Vr()+t,!1)}function Aw(t,r,l,e){if(!e)if(3==(3&r[vt])){const u=t.preOrderCheckHooks;null!==u&&Uv(r,u,l)}else{const u=t.preOrderHooks;null!==u&&jl(r,u,0,l)}Pc(l)}function V(t,r=Yt.Default){const l=Te();return null===l?fe(t,r):rt(Hn(),l,it(t),r)}function gm(){throw new Error("invalid")}function qh(t,r,l,e,s,u,m,b,C,M,I){const F=r.blueprint.slice();return F[Xi]=s,F[vt]=204|e,(null!==M||t&&2048&t[vt])&&(F[vt]|=2048),IR(F),F[Ki]=F[Ls]=t,F[oi]=l,F[Fl]=m||t&&t[Fl],F[Ht]=b||t&&t[Ht],F[pa]=C||t&&t[pa]||null,F[fa]=u,F[Mv]=function Jr(){return S2++}(),F[Os]=I,F[eD]=M,F[Ri]=2==r.type?t[Ri]:F,F}function tc(t,r,l,e,s){let u=t.data[r];if(null===u)u=function Ew(t,r,l,e,s){const u=Ov(),m=Lv(),C=t.data[r]=function O8(t,r,l,e,s,u){let m=r?r.injectorIndex:-1,b=0;return go()&&(b|=128),{type:l,index:e,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:s,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,m?u:u&&u.parent,l,r,e,s);return null===t.firstChild&&(t.firstChild=C),null!==u&&(m?null==u.child&&null!==C.parent&&(u.child=C):null===u.next&&(u.next=C,C.prev=u)),C}(t,r,l,e,s),function yH(){return Rt.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=l,u.value=e,u.attrs=s;const m=function kp(){const t=Rt.lFrame,r=t.currentTNode;return t.isParent?r:r.parent}();u.injectorIndex=null===m?-1:m.injectorIndex}return vo(u,!0),u}function vm(t,r,l,e){if(0===l)return-1;const s=r.length;for(let u=0;uBt&&Aw(t,r,Bt,!1),zl(m?2:0,s),l(e,s)}finally{Pc(u),zl(m?3:1,s)}}function CT(t,r,l){if(c0(r)){const e=Gt(null);try{const u=r.directiveEnd;for(let m=r.directiveStart;mnull;function DT(t,r,l,e){for(let s in t)if(t.hasOwnProperty(s)){l=null===l?{}:l;const u=t[s];null===e?Pw(l,r,s,u):e.hasOwnProperty(s)&&Pw(l,r,e[s],u)}return l}function Pw(t,r,l,e){t.hasOwnProperty(l)?t[l].push(r,e):t[l]=[r,e]}function Go(t,r,l,e,s,u,m,b){const C=Xa(r,l);let I,M=r.inputs;!b&&null!=M&&(I=M[e])?(RT(t,l,I,e,s),Ti(r)&&function F8(t,r){const l=br(r,t);16&l[vt]||(l[vt]|=64)}(l,r.index)):3&r.type&&(e=function _m(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(e),s=null!=m?m(s,r.value||"",e):s,u.setProperty(C,e,s))}function TT(t,r,l,e){if(b0()){const s=null===e?null:{"":-1},u=function La(t,r){var u;const l=t.directiveRegistry;let e=null,s=null;if(l)for(let m=0;m0;){const l=t[--r];if("number"==typeof l&&l<0)return l}return 0})(m)!=b&&m.push(b),m.push(l,e,u)}}(t,r,e,vm(t,l,s.hostVars,Xt),s)}function nc(t,r,l,e,s,u){const m=Xa(t,r);!function ET(t,r,l,e,s,u,m){if(null==u)t.removeAttribute(r,s,l);else{const b=null==m?Me(u):m(u,e||"",s);t.setAttribute(r,s,b,l)}}(r[Ht],m,u,t.value,l,e,s)}function z8(t,r,l,e,s,u){const m=u[r];if(null!==m)for(let b=0;bt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(b,m),function D8(t){t.lView[Od]!==t&&(t.lView=null,yT.push(t))}(b)),pD()}}function DO(t,r){for(let l=lO(t);null!==l;l=bT(l))for(let e=Yn;e-1&&(Xd(r,e),Wv(l,e))}this._attachedToViewContainer=!1}ea(this._lView[He],this._lView)}onDestroy(r){y0(this._lView,r)}markForCheck(){qs(this._cdRefInjectingView||this._lView)}detach(){this._lView[vt]&=-129}reattach(){RR(this._lView),this._lView[vt]|=128}detectChanges(){this._lView[vt]|=1024,function y_(t,r=!0){var u,m,b;const l=t[Fl],e=l.rendererFactory;null==(u=e.begin)||u.call(e);try{!function LT(t){Gc(t,0);let r=0;for(;PR(t);){if(100===r)throw new be(103,!1);r++,Gc(t,1)}}(t)}catch(C){throw r&&Lw(t,C),C}finally{null==(m=e.end)||m.call(e),null==(b=l.inlineEffectRunner)||b.flush()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new be(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,qD(this._lView[He],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new be(902,!1);this._appRef=r,RR(this._lView)}}let dn=(()=>{class r{}return r.__NG_ELEMENT_ID__=AO,r})();function AO(t){return function EO(t,r,l){if(Ti(t)&&!l){const e=br(t.index,r);return new ym(e,e)}return 47&t.type?new ym(r[Ri],r):null}(Hn(),Te(),16==(16&t))}let b_=(()=>{var t;class r{}return(t=r).__NG_ELEMENT_ID__=$8,t.__NG_ENV_ID__=l=>l,r})();class NT extends b_{constructor(r){super(),this._lView=r}onDestroy(r){return y0(this._lView,r),()=>function Rv(t,r){if(null===t[Vl])return;const l=t[Vl].indexOf(r);-1!==l&&t[Vl].splice(l,1)}(this._lView,r)}}function $8(){return new NT(Te())}const wm=new Set;function Xh(t){var r;wm.has(t)||(wm.add(t),null==(r=null==performance?void 0:performance.mark)||r.call(performance,"mark_feature_usage",{detail:{feature:t}}))}function zT(t){return r=>{setTimeout(t,void 0,r)}}const Ce=class PO extends he{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,l,e){var C,M,I;let s=r,u=l||(()=>null),m=e;if(r&&"object"==typeof r){const F=r;s=null==(C=F.next)?void 0:C.bind(F),u=null==(M=F.error)?void 0:M.bind(F),m=null==(I=F.complete)?void 0:I.bind(F)}this.__isAsync&&(u=zT(u),s&&(s=zT(s)),m&&(m=zT(m)));const b=super.subscribe({next:s,error:u,complete:m});return r instanceof bt&&r.add(b),b}};function RO(...t){}class Ye{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new be(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!e&&l,s.shouldCoalesceRunChangeDetection=e,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function HT(){const t="function"==typeof vi.requestAnimationFrame;let r=vi[t?"requestAnimationFrame":"setTimeout"],l=vi[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&r&&l){const e=r[Zone.__symbol__("OriginalDelegate")];e&&(r=e);const s=l[Zone.__symbol__("OriginalDelegate")];s&&(l=s)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function $X(t){const r=()=>{!function WX(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gn(t),t.isCheckStableRunning=!0,OO(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gn(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,e,s,u,m,b)=>{if(function FO(t){var r;return!(!Array.isArray(t)||1!==t.length)&&!0===(null==(r=t[0].data)?void 0:r.__ignore_ng_zone__)}(b))return l.invokeTask(s,u,m,b);try{return Wc(t),l.invokeTask(s,u,m,b)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||t.shouldCoalesceRunChangeDetection)&&r(),LO(t)}},onInvoke:(l,e,s,u,m,b,C)=>{try{return Wc(t),l.invoke(s,u,m,b,C)}finally{t.shouldCoalesceRunChangeDetection&&r(),LO(t)}},onHasTask:(l,e,s,u)=>{l.hasTask(s,u),e===s&&("microTask"==u.change?(t._hasPendingMicrotasks=u.microTask,gn(t),OO(t)):"macroTask"==u.change&&(t.hasPendingMacrotasks=u.macroTask))},onHandleError:(l,e,s,u)=>(l.handleError(s,u),t.runOutsideAngular(()=>t.onError.emit(u)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new be(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new be(909,!1)}run(r,l,e){return this._inner.run(r,l,e)}runTask(r,l,e,s){const u=this._inner,m=u.scheduleEventTask("NgZoneEvent: "+s,r,GX,RO,RO);try{return u.runTask(m,l,e)}finally{u.cancelTask(m)}}runGuarded(r,l,e){return this._inner.runGuarded(r,l,e)}runOutsideAngular(r){return this._outer.run(r)}}const GX={};function OO(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gn(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function LO(t){t._nesting--,OO(t)}class UT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(r,l,e){return r.apply(l,e)}runGuarded(r,l,e){return r.apply(l,e)}runOutsideAngular(r){return r()}runTask(r,l,e,s){return r.apply(l,e)}}var ru=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ru||{});const NO={destroy(){}};function BO(t,r){!r&&function LD(t){if(!mR()&&!function oH(){return Pd}())throw new be(-203,!1)}();const l=(null==r?void 0:r.injector)??De(mn);if(!function wo(t){return"browser"===(t??De(mn)).get(Vc)}(l))return NO;Xh("NgAfterNextRender");const e=l.get(w_),s=e.handler??=new HO,u=(null==r?void 0:r.phase)??ru.MixedReadWrite,m=()=>{s.unregister(C),b()},b=l.get(b_).onDestroy(m),C=new zO(l,u,()=>{m(),t()});return s.register(C),{destroy:m}}class zO{constructor(r,l,e){this.phase=l,this.callbackFn=e,this.zone=r.get(Ye),this.errorHandler=r.get(Tr,null,{optional:!0})}invoke(){var r;try{this.zone.runOutsideAngular(this.callbackFn)}catch(l){null==(r=this.errorHandler)||r.handleError(l)}}}class HO{constructor(){this.executingCallbacks=!1,this.buckets={[ru.EarlyRead]:new Set,[ru.Write]:new Set,[ru.MixedReadWrite]:new Set,[ru.Read]:new Set},this.deferredCallbacks=new Set}register(r){(this.executingCallbacks?this.deferredCallbacks:this.buckets[r.phase]).add(r)}unregister(r){this.buckets[r.phase].delete(r),this.deferredCallbacks.delete(r)}execute(){let r=!1;this.executingCallbacks=!0;for(const l of Object.values(this.buckets))for(const e of l)r=!0,e.invoke();this.executingCallbacks=!1;for(const l of this.deferredCallbacks)this.buckets[l.phase].add(l);return this.deferredCallbacks.clear(),r}destroy(){for(const r of Object.values(this.buckets))r.clear();this.deferredCallbacks.clear()}}let w_=(()=>{var t;class r{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var u;const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const m of e)m();return!!(null==(u=this.handler)?void 0:u.execute())||e.length>0}ngOnDestroy(){var e;null==(e=this.handler)||e.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>new t}),r})();function K8(t,r){const l=br(r,t),e=l[He];!function UO(t,r){for(let l=r.length;l0&&Xl(t,l,u.join(" "))}}(H,Sn,Q,e),void 0!==l&&function WO(t,r,l){const e=t.projection=[];for(let s=0;s=0;e--){const s=t[e];s.hostVars=r+=s.hostVars,s.hostAttrs=Dp(s.hostAttrs,l=Dp(l,s.hostAttrs))}}(e)}function Kh(t){return t===Ol?{}:t===Tn?[]:t}function YO(t,r){const l=t.viewQuery;t.viewQuery=l?(e,s)=>{r(e,s),l(e,s)}:r}function qO(t,r){const l=t.contentQueries;t.contentQueries=l?(e,s,u)=>{r(e,s,u),l(e,s,u)}:r}function ZO(t,r){const l=t.hostBindings;t.hostBindings=l?(e,s)=>{r(e,s),l(e,s)}:r}function na(t){const r=t.inputConfig,l={};for(const e in r)if(r.hasOwnProperty(e)){const s=r[e];Array.isArray(s)&&s[2]&&(l[e]=s[2])}t.inputTransforms=l}function fs(t,r,l){return t[r]=l}function Mr(t,r,l){return!Object.is(t[r],l)&&(t[r]=l,!0)}function au(t,r,l,e){const s=Mr(t,r,l);return Mr(t,r+1,e)||s}function $e(t,r,l,e){const s=Te();return Mr(s,is(),r)&&(fn(),nc(_i(),s,t,r,l,e)),$e}function Qh(t,r,l,e){return Mr(t,is(),l)?r+Me(l)+e:Xt}function Sm(t,r,l,e,s,u){const b=au(t,function kc(){return Rt.lFrame.bindingIndex}(),l,s);return _o(2),b?r+Me(l)+e+Me(s)+u:Xt}function Zc(t,r){return t<<17|r<<2}function Yo(t){return t>>17&32767}function XT(t){return 2|t}function su(t){return(131068&t)>>2}function D_(t,r){return-131069&t|r<<2}function Tm(t){return 1|t}function QT(t,r,l,e){const s=t[l+1],u=null===r;let m=e?Yo(s):su(s),b=!1;for(;0!==m&&(!1===b||u);){const M=t[m+1];lU(t[m],r)&&(b=!0,t[m+1]=e?Tm(M):XT(M)),m=e?Yo(M):su(M)}b&&(t[l+1]=e?XT(s):Tm(s))}function lU(t,r){return null===t||null==r||(Array.isArray(t)?t[1]:t)===r||!(!Array.isArray(t)||"string"!=typeof r)&&Hp(t,r)>=0}const Ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nL(t){return t.substring(Ur.key,Ur.keyEnd)}function JT(t,r){const l=Ur.textEnd;return l===r?-1:(r=Ur.keyEnd=function cU(t,r,l){for(;r32;)r++;return r}(t,Ur.key=r,l),lu(t,r,l))}function lu(t,r,l){for(;r=0;l=JT(r,l))Bo(t,nL(r),!0)}function to(t,r,l,e){const s=Te(),u=fn(),m=_o(2);u.firstUpdatePass&&cL(u,t,m,e),r!==Xt&&Mr(s,m,r)&&iM(u,u.data[Vr()],s,s[Ht],t,s[m+1]=function no(t,r){return null==t||""===t||("string"==typeof r?t+=r:"object"==typeof t&&(t=Pi(eo(t)))),t}(r,l),e,m)}function Ar(t,r,l,e){const s=fn(),u=_o(2);s.firstUpdatePass&&cL(s,null,u,e);const m=Te();if(l!==Xt&&Mr(m,u,l)){const b=s.data[Vr()];if(uL(b,e)&&!ms(s,u)){let C=e?b.classesWithoutHost:b.stylesWithoutHost;null!==C&&(l=ah(C,l||"")),T_(s,b,m,l,e)}else!function mU(t,r,l,e,s,u,m,b){s===Xt&&(s=Tn);let C=0,M=0,I=0=t.expandoStartIndex}function cL(t,r,l,e){const s=t.data;if(null===s[l+1]){const u=s[Vr()],m=ms(t,l);uL(u,e)&&null===r&&!m&&(r=!1),r=function Gw(t,r,l,e){const s=x0(t);let u=e?r.residualClasses:r.residualStyles;if(null===s)0===(e?r.classBindings:r.styleBindings)&&(l=jr(l=Ww(null,t,r,l,e),r.attrs,e),u=null);else{const m=r.directiveStylingLast;if(-1===m||t[m]!==s)if(l=Ww(s,t,r,l,e),null===u){let C=function uU(t,r,l){const e=l?r.classBindings:r.styleBindings;if(0!==su(e))return t[Yo(e)]}(t,r,e);void 0!==C&&Array.isArray(C)&&(C=Ww(null,t,r,C[1],e),C=jr(C,r.attrs,e),function hU(t,r,l,e){t[Yo(l?r.classBindings:r.styleBindings)]=e}(t,r,e,C))}else u=function fU(t,r,l){let e;const s=r.directiveEnd;for(let u=1+r.directiveStylingLast;u0)&&(M=!0)):I=l,s)if(0!==C){const H=Yo(t[b+1]);t[e+1]=Zc(H,b),0!==H&&(t[H+1]=D_(t[H+1],e)),t[b+1]=function eL(t,r){return 131071&t|r<<17}(t[b+1],e)}else t[e+1]=Zc(b,0),0!==b&&(t[b+1]=D_(t[b+1],e)),b=e;else t[e+1]=Zc(C,0),0===b?b=e:t[C+1]=D_(t[C+1],e),C=e;M&&(t[e+1]=XT(t[e+1])),QT(t,I,e,!0),QT(t,I,e,!1),function tL(t,r,l,e,s){const u=s?t.residualClasses:t.residualStyles;null!=u&&"string"==typeof r&&Hp(u,r)>=0&&(l[e+1]=Tm(l[e+1]))}(r,I,t,e,u),m=Zc(b,C),u?r.classBindings=m:r.styleBindings=m}(s,u,r,l,m,e)}}function Ww(t,r,l,e,s){let u=null;const m=l.directiveEnd;let b=l.directiveStylingLast;for(-1===b?b=l.directiveStart:b++;b0;){const C=t[s],M=Array.isArray(C),I=M?C[1]:C,F=null===I;let H=l[s+1];H===Xt&&(H=F?Tn:void 0);let q=F?L0(H,e):I===e?H:void 0;if(M&&!A_(q)&&(q=L0(C,e)),A_(q)&&(b=q,m))return b;const Q=t[s+1];s=m?Yo(Q):su(Q)}if(null!==r){let C=u?r.residualClasses:r.residualStyles;null!=C&&(b=L0(C,e))}return b}function A_(t){return void 0!==t}function uL(t,r){return 0!=(t.flags&(r?8:16))}let Pm=()=>null;function Ks(t,r){return Pm(t,r)}class L_{destroy(r){}updateValue(r,l){}swap(r,l){const e=Math.min(r,l),s=Math.max(r,l),u=this.detach(s);if(s-e>1){const m=this.detach(e);this.attach(e,u),this.attach(s,m)}else this.attach(e,u)}move(r,l){this.attach(l,this.detach(r))}}function Kw(t,r,l,e,s){return t===l&&Object.is(r,e)?1:Object.is(s(t,r),s(l,e))?-1:0}function cM(t,r,l,e){return!(void 0===r||!r.has(e)||(t.attach(l,r.get(e)),r.delete(e),0))}function nf(t,r,l,e,s){if(cM(t,r,e,l(e,s)))t.updateValue(e,s);else{const u=t.create(e,s);t.attach(e,u)}}function dM(t,r,l,e){const s=new Set;for(let u=r;u<=l;u++)s.add(e(u,t.at(u)));return s}class Kc{constructor(){this.kvMap=new Map,this._vMap=void 0}has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;const l=this.kvMap.get(r);return void 0!==this._vMap&&this._vMap.has(l)?(this.kvMap.set(r,this._vMap.get(l)),this._vMap.delete(l)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,l){if(this.kvMap.has(r)){let e=this.kvMap.get(r);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(e);)e=s.get(e);s.set(e,l)}else this.kvMap.set(r,l)}forEach(r){for(let[l,e]of this.kvMap)if(r(e,l),void 0!==this._vMap){const s=this._vMap;for(;s.has(e);)e=s.get(e),r(e,l)}}}function Rm(t,r,l,e){const s=r.tView,b=qh(t,s,l,4096&t[vt]?4096:16,null,r,null,null,null,(null==e?void 0:e.injector)??null,(null==e?void 0:e.dehydratedView)??null);b[mh]=t[r.index];const M=t[Nl];return null!==M&&(b[Nl]=M.createEmbeddedView(s)),jT(s,b,l),b}function wL(t,r){const l=Yn+r;if(l0&&(l[s-1][Rs]=r),e{class r{}return r.__NG_ELEMENT_ID__=MU,r})();function MU(){return uM(Hn(),Te())}const AU=fi,Rn=class extends AU{constructor(r,l,e){super(),this._lContainer=r,this._hostTNode=l,this._hostLView=e}get element(){return Uc(this._hostTNode,this._hostLView)}get injector(){return new wr(this._hostTNode,this._hostLView)}get parentInjector(){const r=E0(this._hostTNode,this._hostLView);if(zd(r)){const l=Ka(r,this._hostLView),e=Hd(r);return new wr(l[He].data[e+8],l)}return new wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const l=F_(this._lContainer);return null!==l&&l[r]||null}get length(){return this._lContainer.length-Yn}createEmbeddedView(r,l,e){let s,u;"number"==typeof e?s=e:null!=e&&(s=e.index,u=e.injector);const m=Ks(this._lContainer,r.ssrId),b=r.createEmbeddedViewImpl(l||{},u,m);return this.insertImpl(b,s,uu(this._hostTNode,m)),b}createComponent(r,l,e,s,u){const m=r&&!function Sh(t){return"function"==typeof t}(r);let b;if(m)b=l;else{const Q=l||{};b=Q.index,e=Q.injector,s=Q.projectableNodes,u=Q.environmentInjector||Q.ngModuleRef}const C=m?r:new xm(hn(r)),M=e||this.parentInjector;if(!u&&null==C.ngModule){const ne=(m?M:this.parentInjector).get(bo,null);ne&&(u=ne)}const I=hn(C.componentType??{}),F=Ks(this._lContainer,(null==I?void 0:I.id)??null),q=C.create(M,s,(null==F?void 0:F.firstChild)??null,u);return this.insertImpl(q.hostView,b,uu(this._hostTNode,F)),q}insert(r,l){return this.insertImpl(r,l,!0)}insertImpl(r,l,e){const s=r._lView;if(function MX(t){return Ui(t[Ki])}(s)){const b=this.indexOf(r);if(-1!==b)this.detach(b);else{const C=s[Ki],M=new Rn(C,C[fa],C[Ki]);M.detach(M.indexOf(r))}}const u=this._adjustIndex(l),m=this._lContainer;return Om(m,s,u,e),r.attachToViewContainerRef(),CD(Jw(m),u,r),r}move(r,l){return this.insert(r,l)}indexOf(r){const l=F_(this._lContainer);return null!==l?l.indexOf(r):-1}remove(r){const l=this._adjustIndex(r,-1),e=Xd(this._lContainer,l);e&&(Wv(Jw(this._lContainer),l),ea(e[He],e))}detach(r){const l=this._adjustIndex(r,-1),e=Xd(this._lContainer,l);return e&&null!=Wv(Jw(this._lContainer),l)?new ym(e):null}_adjustIndex(r,l=0){return r??this.length+l}};function F_(t){return t[8]}function Jw(t){return t[8]||(t[8]=[])}function uM(t,r){let l;const e=r[t.index];return Ui(e)?l=e:(l=xO(e,r,null,t),r[t.index]=l,nu(r,l)),rf(l,r,t,e),new Rn(l,t,r)}let rf=function fM(t,r,l,e){if(t[Fs])return;let s;s=8&l.type?qn(e):function ex(t,r){const l=t[Ht],e=l.createComment(""),s=Xa(r,t);return Gs(l,r_(l,s),e,function ew(t,r){return t.nextSibling(r)}(l,s),!1),e}(r,l),t[Fs]=s},af=()=>!1;function re(t,r,l,e,s,u,m,b){const C=Te(),M=fn(),I=t+Bt,F=M.firstCreatePass?function IU(t,r,l,e,s,u,m,b,C){const M=r.consts,I=tc(r,t,4,m||null,Hl(M,b));TT(r,l,I,Hl(M,C)),Hv(r,I);const F=I.tView=kw(2,I,e,s,u,r.directiveRegistry,r.pipeRegistry,null,r.schemas,M,null);return null!==r.queries&&(r.queries.template(r,I),F.queries=r.queries.embeddedTView(I)),I}(I,M,C,r,l,e,s,u,m):M.data[I];vo(F,!1);const H=SL(M,C,F,t);Pp()&&iw(M,C,H,F),_t(H,C);const q=xO(H,C,H,F);return C[I]=q,nu(C,q),function hM(t,r,l){return af(t,r,l)}(q,F,C),Ev(F)&&gO(M,C,F),null!=m&&Iw(C,F,b),re}let SL=function DL(t,r,l,e){return Ul(!0),r[Ht].createComment("")};function an(t,r,l){Xh("NgControlFlow");const e=Te(),s=is(),u=nx(e,Bt+t);if(Mr(e,s,r)){const b=Gt(null);try{if(Qw(u,0),-1!==r){const C=df(e[He],Bt+r),M=Ks(u,C.tView.ssrId);Om(u,Rm(e,C,l,{dehydratedView:M}),0,uu(C,M))}}finally{Gt(b)}}else{const b=wL(u,0);void 0!==b&&(b[oi]=l)}}class PU{constructor(r,l,e){this.lContainer=r,this.$implicit=l,this.$index=e}get $count(){return this.lContainer.length-Yn}}function sf(t,r){return r}class OU{constructor(r,l,e){this.hasEmptyBlock=r,this.trackByFn=l,this.liveCollection=e}}function lf(t,r,l,e,s,u,m,b,C,M,I){Xh("NgControlFlow");const F=void 0!==C,H=Te(),q=b?m.bind(H[Ri][oi]):m,Q=new OU(F,q);H[Bt+t]=Q,re(t+1,r,l,e,s,u),F&&re(t+2,C,M,I)}class LU extends L_{constructor(r,l,e){super(),this.lContainer=r,this.hostLView=l,this.templateTNode=e,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Yn}at(r){return this.getLView(r)[oi].$implicit}attach(r,l){const e=l[Os];this.needsIndexUpdate||=r!==this.length,Om(this.lContainer,l,r,uu(this.templateTNode,e))}detach(r){return this.needsIndexUpdate||=r!==this.length-1,function FU(t,r){return Xd(t,r)}(this.lContainer,r)}create(r,l){const e=Ks(this.lContainer,this.templateTNode.tView.ssrId);return Rm(this.hostLView,this.templateTNode,new PU(this.lContainer,l,r),{dehydratedView:e})}destroy(r){ea(r[He],r)}updateValue(r,l){this.getLView(r)[oi].$implicit=l}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r{t.destroy(b)})}(m,t,u.trackByFn),m.updateIndexes(),u.hasEmptyBlock){const b=is(),C=0===m.length;if(Mr(e,b,C)){const M=l+2,I=nx(e,M);if(C){const F=df(s,M),H=Ks(I,F.tView.ssrId);Om(I,Rm(e,F,void 0,{dehydratedView:H}),0,uu(F,H))}else Qw(I,0)}}}finally{Gt(r)}}function nx(t,r){return t[r]}function df(t,r){return Ic(t,r)}function P(t,r,l,e){const s=Te(),u=fn(),m=Bt+t,b=s[Ht],C=u.firstCreatePass?function WL(t,r,l,e,s,u){const m=r.consts,C=tc(r,t,2,e,Hl(m,s));return TT(r,l,C,Hl(m,u)),null!==C.attrs&&Fw(C,C.attrs,!1),null!==C.mergedAttrs&&Fw(C,C.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,C),C}(m,u,s,r,l,e):u.data[m],M=AM(u,s,C,b,r,t);s[m]=M;const I=Ev(C);return vo(C,!0),Kl(b,M,C),32!=(32&C.flags)&&Pp()&&iw(u,s,M,C),0===function OR(){return Rt.lFrame.elementDepthCount}()&&_t(M,s),function LR(){Rt.lFrame.elementDepthCount++}(),I&&(gO(u,s,C),CT(u,C,s)),null!==e&&Iw(s,C),P}function R(){let t=Hn();Lv()?Fv():(t=t.parent,vo(t,!1));const r=t;(function cD(t){return Rt.skipHydrationRootTNode===t})(r)&&function vH(){Rt.skipHydrationRootTNode=null}(),function mH(){Rt.lFrame.elementDepthCount--}();const l=fn();return l.firstCreatePass&&(Hv(l,t),c0(t)&&l.queries.elementEnd(t)),null!=r.classesWithoutHost&&function Vo(t){return 0!=(8&t.flags)}(r)&&T_(l,r,Te(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function jR(t){return 0!=(16&t.flags)}(r)&&T_(l,r,Te(),r.stylesWithoutHost,!1),R}function pe(t,r,l,e){return P(t,r,l,e),R(),pe}let AM=(t,r,l,e,s,u)=>(Ul(!0),st(e,s,function zv(){return Rt.lFrame.currentNamespace}()));function An(t,r,l){const e=Te(),s=fn(),u=t+Bt,m=s.firstCreatePass?function Js(t,r,l,e,s){const u=r.consts,m=Hl(u,e),b=tc(r,t,8,"ng-container",m);return null!==m&&Fw(b,m,!0),TT(r,l,b,Hl(u,s)),null!==r.queries&&r.queries.elementStart(r,b),b}(u,s,e,r,l):s.data[u];vo(m,!0);const b=$L(s,e,m,t);return e[u]=b,Pp()&&iw(s,e,b,m),_t(b,e),Ev(m)&&(gO(s,e,m),CT(s,m,e)),null!=l&&Iw(e,m),An}function On(){let t=Hn();const r=fn();return Lv()?Fv():(t=t.parent,vo(t,!1)),r.firstCreatePass&&(Hv(r,t),c0(t)&&r.queries.elementEnd(t)),On}function ao(t,r,l){return An(t,r,l),On(),ao}let $L=(t,r,l,e)=>(Ul(!0),Zt(r[Ht],""));function Oe(){return Te()}function Ba(t,r,l){const e=Te();return Mr(e,is(),r)&&Go(fn(),_i(),e,t,r,e[Ht],l,!0),Ba}function cx(t,r,l){const e=Te();if(Mr(e,is(),r)){const u=fn(),m=_i();Go(u,m,e,t,r,PT(x0(u.data),m,e),l,!0)}return cx}const Wr="en-US";let QL=Wr;function Ym(t){return!!t&&"function"==typeof t.then}function qM(t){return!!t&&"function"==typeof t.subscribe}function J(t,r,l,e){const s=Te(),u=fn(),m=Hn();return qm(u,s,s[Ht],m,t,r,e),J}function Z_(t,r){const l=Hn(),e=Te(),s=fn();return qm(s,e,PT(x0(s.data),l,e),l,t,r),Z_}function qm(t,r,l,e,s,u,m){const b=Ev(e),M=t.firstCreatePass&&kT(t),I=r[oi],F=CO(r);let H=!0;if(3&e.type||m){const ne=Xa(e,r),ae=m?m(ne):ne,ge=F.length,se=m?Fe=>m(qn(Fe[e.index])):e.index;let Be=null;if(!m&&b&&(Be=function mF(t,r,l,e){const s=t.cleanup;if(null!=s)for(let u=0;uC?b[C]:null}"string"==typeof m&&(u+=2)}return null}(t,r,s,e.index)),null!==Be)(Be.__ngLastListenerFn__||Be).__ngNextListenerFn__=u,Be.__ngLastListenerFn__=u,H=!1;else{u=gF(e,r,I,u,!1);const Fe=l.listen(ae,s,u);F.push(u,Fe),M&&M.push(s,se,ge,ge+1)}}else u=gF(e,r,I,u,!1);const q=e.outputs;let Q;if(H&&null!==q&&(Q=q[s])){const ne=Q.length;if(ne)for(let ae=0;ae-1?br(t.index,r):r);let C=Jc(r,l,e,m),M=u.__ngNextListenerFn__;for(;M;)C=Jc(r,l,M,m)&&C,M=M.__ngNextListenerFn__;return s&&!1===C&&m.preventDefault(),C}}function Z(t=1){return function xH(t){return(Rt.lFrame.contextLView=function kR(t,r){for(;t>0;)r=r[Ls],t--;return r}(t,Rt.lFrame.contextLView))[oi]}(t)}function vF(t,r){let l=null;const e=function dh(t){const r=t.attrs;if(null!=r){const l=r.indexOf(5);if(!(1&l))return r[l+1]}return null}(t);for(let s=0;s(Ul(!0),function t_(t,r){return t.createText(r)}(r[Ht],e));function En(t){return Re("",t,""),En}function Re(t,r,l){const e=Te(),s=Qh(e,t,r,l);return s!==Xt&&hs(e,Vr(),s),Re}function eg(t,r,l,e,s){const u=Te(),m=Sm(u,t,r,l,e,s);return m!==Xt&&hs(u,Vr(),m),eg}function ey(t,r,l,e,s){if(t=it(t),Array.isArray(t))for(let u=0;u>20;if(Mh(t)||!t.multi){const q=new yo(M,s,V),Q=cc(C,r,s?I:I+H,F);-1===Q?(_D(Fp(b,m),u,C),td(u,t,r.length),r.push(C),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),l.push(q),m.push(q)):(l[Q]=q,m[Q]=q)}else{const q=cc(C,r,I+H,F),Q=cc(C,r,I,I+H),ae=Q>=0&&l[Q];if(s&&!ae||!s&&!(q>=0&&l[q])){_D(Fp(b,m),u,C);const ge=function eA(t,r,l,e,s){const u=new yo(t,l,V);return u.multi=[],u.index=r,u.componentProviders=0,JM(u,s,e&&!l),u}(s?Cj:EF,l.length,s,e,M);!s&&ae&&(l[Q].providerFactory=ge),td(u,t,r.length,0),r.push(C),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),l.push(ge),m.push(ge)}else td(u,t,q>-1?q:Q,JM(l[s?Q:q],M,!s&&e));!s&&e&&ae&&l[Q].componentProviders++}}}function td(t,r,l,e){const s=Mh(r),u=function kD(t){return!!t.useClass}(r);if(s||u){const C=(u?it(r.useClass):r).prototype.ngOnDestroy;if(C){const M=t.destroyHooks||(t.destroyHooks=[]);if(!s&&r.multi){const I=M.indexOf(l);-1===I?M.push(l,[e,C]):M[I+1].push(e,C)}else M.push(l,C)}}}function JM(t,r,l){return l&&t.componentProviders++,t.multi.push(r)-1}function cc(t,r,l,e){for(let s=l;s{l.providersResolver=(e,s)=>function AF(t,r,l){const e=fn();if(e.firstCreatePass){const s=mo(t);ey(l,e.data,e.blueprint,s,!0),ey(r,e.data,e.blueprint,s,!1)}}(e,s?s(t):t,r)}}class nd{}class IF{}class Dx extends nd{constructor(r,l,e){super(),this._parent=l,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nw(this);const s=Aa(r);this._bootstrapComponents=Br(s.bootstrap),this._r3Injector=zo(r,l,[{provide:nd,useValue:this},{provide:ls,useValue:this.componentFactoryResolver},...e],Pi(r),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(r)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class Tx extends IF{constructor(r){super(),this.moduleType=r}create(r){return new Dx(this.moduleType,r,[])}}class tA extends nd{constructor(r){super(),this.componentFactoryResolver=new Nw(this),this.instance=null;const l=new Ah([...r.providers,{provide:nd,useValue:this},{provide:ls,useValue:this.componentFactoryResolver}],r.parent||Wp(),r.debugName,new Set(["environment"]));this.injector=l,r.runEnvironmentInitializers&&l.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function Mx(t,r,l=null){return new tA({providers:t,parent:r,debugName:l,runEnvironmentInitializers:!0}).injector}let PF=(()=>{var t;class r{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const s=ED(0,e.type),u=s.length>0?Mx([s],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,u)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return(t=r).\u0275prov=ke({token:t,providedIn:"environment",factory:()=>new t(fe(bo))}),r})();function wf(t){Xh("NgStandalone"),t.getStandaloneInjector=r=>r.get(PF).getOrCreateStandaloneInjector(t)}function Ex(t,r,l){const e=Nr()+t,s=Te();return s[e]===Xt?fs(s,e,l?r.call(l):r()):function S_(t,r){return t[r]}(s,e)}function dc(t,r,l,e){return Px(Te(),Nr(),t,r,l,e)}function Ix(t,r,l,e,s){return HF(Te(),Nr(),t,r,l,e,s)}function id(t,r){const l=t[r];return l===Xt?void 0:l}function Px(t,r,l,e,s,u){const m=r+l;return Mr(t,m,s)?fs(t,m+1,u?e.call(u,s):e(s)):id(t,m+1)}function HF(t,r,l,e,s,u,m){const b=r+l;return au(t,b,s,u)?fs(t,b+2,m?e.call(m,s,u):e(s,u)):id(t,b+2)}function nl(t,r){const l=fn();let e;const s=t+Bt;l.firstCreatePass?(e=function Lj(t,r){if(r)for(let l=r.length-1;l>=0;l--){const e=r[l];if(t===e.name)return e}}(r,l.pipeRegistry),l.data[s]=e,e.onDestroy&&(l.destroyHooks??=[]).push(s,e.onDestroy)):e=l.data[s];const u=e.factory||(e.factory=Ac(e.type)),b=Ma(V);try{const C=Lp(!1),M=u();return Lp(C),function Qm(t,r,l,e){l>=t.data.length&&(t.data[l]=null,t.blueprint[l]=null),r[l]=e}(l,Te(),s,M),M}finally{Ma(b)}}function ng(t,r,l){const e=t+Bt,s=Te(),u=yh(s,e);return ig(s,e)?Px(s,Nr(),r,u.transform,l,u):u.transform(l)}function lA(t,r,l,e){const s=t+Bt,u=Te(),m=yh(u,s);return ig(u,s)?HF(u,Nr(),r,m.transform,l,e,m):m.transform(l,e)}function ig(t,r){return t[He].data[r].pure}function Cf(){return this._results[Symbol.iterator]()}class yu{get changes(){return this._changes??=new Ce}constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const l=yu.prototype;l[Symbol.iterator]||(l[Symbol.iterator]=Cf)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,l){return this._results.reduce(r,l)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,l){this.dirty=!1;const e=function Qa(t){return t.flat(Number.POSITIVE_INFINITY)}(r);(this._changesDetected=!function KR(t,r,l){if(t.length!==r.length)return!1;for(let e=0;e{class r{}return r.__NG_ELEMENT_ID__=GF,r})();const jF=Kn,Bj=class extends jF{constructor(r,l,e){super(),this._declarationLView=r,this._declarationTContainer=l,this.elementRef=e}get ssrId(){var r;return(null==(r=this._declarationTContainer.tView)?void 0:r.ssrId)||null}createEmbeddedView(r,l){return this.createEmbeddedViewImpl(r,l)}createEmbeddedViewImpl(r,l,e){const s=Rm(this._declarationLView,this._declarationTContainer,r,{injector:l,dehydratedView:e});return new ym(s)}};function GF(){return ay(Hn(),Te())}function ay(t,r){return 4&t.type?new Bj(r,t,Uc(t,r)):null}class Ox{constructor(r){this.queryList=r,this.matches=null}clone(){return new Ox(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lx{constructor(r=[]){this.queries=r}createEmbeddedView(r){const l=r.queries;if(null!==l){const e=null!==r.contentQueries?r.contentQueries[0]:l.length,s=[];for(let u=0;u0)e.push(m[b/2]);else{const M=u[b+1],I=r[-C];for(let F=Yn;F{var t;class r{log(e){console.log(e)}warn(e){console.warn(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})();class eG{constructor(r,l){this.ngModuleFactory=r,this.componentFactories=l}}let uN=(()=>{var t;class r{compileModuleSync(e){return new Tx(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const s=this.compileModuleSync(e),m=Br(Aa(e).declarations).reduce((b,C)=>{const M=hn(C);return M&&b.push(new xm(M)),b},[]);return new eG(s,m)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),Df=(()=>{var t;class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ye(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const AA=new ve(""),py=new ve("");let Mf,my=(()=>{var t;class r{constructor(e,s,u){this._ngZone=e,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Mf||(function fG(t){Mf=t}(u),u.addToWindow(s)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(e)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,s,u){let m=-1;s&&s>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(b=>b.timeoutId!==m),e(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:e,timeoutId:m,updateCb:u})}whenStable(e,s,u){if(u&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,s,u),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,s,u){return[]}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye),fe(jx),fe(py))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),jx=(()=>{var t;class r{constructor(){this._applications=new Map}registerApplication(e,s){this._applications.set(e,s)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,s=!0){return(null==Mf?void 0:Mf.findTestabilityInTree(this,e,s))??null}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})();const Gx=new ve("Application Initializer");let Wx=(()=>{var t;class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,s)=>{this.resolve=e,this.reject=s}),this.appInits=De(Gx,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const u of this.appInits){const m=u();if(Ym(m))e.push(m);else if(qM(m)){const b=new Promise((C,M)=>{m.subscribe({complete:C,error:M})});e.push(b)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{s()}).catch(u=>{this.reject(u)}),0===e.length&&s(),this.initialized=!0}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const EA=new ve("appBootstrapListener");function bN(t,r){return Array.isArray(r)?r.reduce(bN,t):{...t,...r}}let ol=(()=>{var t;class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=De(wT),this.afterRenderEffectManager=De(w_),this.componentTypes=[],this.components=[],this.isStable=De(Df).hasPendingTasks.pipe(Ee(e=>!e)),this._injector=De(bo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,s){const u=e instanceof gT;if(!this._injector.get(Wx).done)throw!u&&function ts(t){const r=hn(t)||Lr(t)||ha(t);return null!==r&&r.standalone}(e),new be(405,!1);let b;b=u?e:this._injector.get(ls).resolveComponentFactory(e),this.componentTypes.push(b.componentType);const C=function mG(t){return t.isBoundToModule}(b)?void 0:this._injector.get(nd),I=b.create(mn.NULL,[],s||b.selector,C),F=I.location.nativeElement,H=I.injector.get(AA,null);return null==H||H.registerApplication(F),I.onDestroy(()=>{this.detachView(I.hostView),gy(this.components,I),null==H||H.unregisterApplication(F)}),this._loadComponent(I),I}tick(){if(this._runningTick)throw new be(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{try{this.afterRenderEffectManager.execute()}catch(e){this.internalErrorHandler(e)}this._runningTick=!1}}attachView(e){const s=e;this._views.push(s),s.attachToAppRef(this)}detachView(e){const s=e;gy(this._views,s),s.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const s=this._injector.get(EA,[]);[...this._bootstrapListeners,...s].forEach(u=>u(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>gy(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new be(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function gy(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}let Ef=(()=>{var t;class r{constructor(){this.zone=De(Ye),this.applicationRef=De(ol)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var e;null==(e=this._onMicrotaskEmptySubscription)||e.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function xN(){const t=De(Ye),r=De(Tr);return l=>t.runOutsideAngular(()=>r.handleError(l))}let RA=(()=>{var t;class r{constructor(){this.subscription=new bt,this.initialized=!1,this.zone=De(Ye),this.pendingTasks=De(Df)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const rd=new ve("LocaleId",{providedIn:"root",factory:()=>De(rd,Yt.Optional|Yt.SkipSelf)||function uK(){return typeof $localize<"u"&&$localize.locale||Wr}()}),OA=new ve("PlatformDestroyListeners");let $x=(()=>{var t;class r{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,s){const u=function Z8(t="zone.js",r){return"noop"===t?new UT:"zone.js"===t?new Ye(r):t}(null==s?void 0:s.ngZone,function vG(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(null==t?void 0:t.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(null==t?void 0:t.runCoalescing)??!1}}({eventCoalescing:null==s?void 0:s.ngZoneEventCoalescing,runCoalescing:null==s?void 0:s.ngZoneRunCoalescing}));return u.run(()=>{const m=function Sj(t,r,l){return new Dx(t,r,l)}(e.moduleType,this.injector,function PA(t){return[{provide:Ye,useFactory:t},{provide:Ud,multi:!0,useFactory:()=>{const r=De(Ef,{optional:!0});return()=>r.initialize()}},{provide:Ud,multi:!0,useFactory:()=>{const r=De(RA);return()=>{r.initialize()}}},{provide:wT,useFactory:xN}]}(()=>u)),b=m.injector.get(Tr,null);return u.runOutsideAngular(()=>{const C=u.onError.subscribe({next:M=>{b.handleError(M)}});m.onDestroy(()=>{gy(this._modules,m),C.unsubscribe()})}),function kA(t,r,l){try{const e=l();return Ym(e)?e.catch(s=>{throw r.runOutsideAngular(()=>t.handleError(s)),s}):e}catch(e){throw r.runOutsideAngular(()=>t.handleError(e)),e}}(b,u,()=>{const C=m.injector.get(Wx);return C.runInitializers(),C.donePromise.then(()=>(function JL(t){Oo(t,"Expected localeId to be defined"),"string"==typeof t&&(QL=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(rd,Wr)||Wr),this._moduleDoBootstrap(m),m))})})}bootstrapModule(e,s=[]){const u=bN({},s);return function pG(t,r,l){const e=new Tx(l);return Promise.resolve(e)}(0,0,e).then(m=>this.bootstrapModuleFactory(m,u))}_moduleDoBootstrap(e){const s=e.injector.get(ol);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(u=>s.bootstrap(u));else{if(!e.instance.ngDoBootstrap)throw new be(-403,!1);e.instance.ngDoBootstrap(s)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new be(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const e=this._injector.get(OA,null);e&&(e.forEach(s=>s()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(mn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"platform"}),r})(),Yr=null;const SN=new ve("AllowMultipleToken");function sg(t,r,l=[]){const e=`Platform: ${r}`,s=new ve(e);return(u=[])=>{let m=_y();if(!m||m.injector.get(SN,!1)){const b=[...l,...u,{provide:s,useValue:!0}];t?t(b):function vy(t){if(Yr&&!Yr.get(SN,!1))throw new be(400,!1);(function IA(){!function $4(t){W4=t}(()=>{throw new be(600,!1)})})(),Yr=t;const r=t.get($x);(function DN(t){const r=t.get(v2,null);null==r||r.forEach(l=>l())})(t)}(function LA(t=[],r){return mn.create({name:r,providers:[{provide:PD,useValue:"platform"},{provide:OA,useValue:new Set([()=>Yr=null])},...t]})}(b,e))}return function Yx(t){const r=_y();if(!r)throw new be(401,!1);return r}()}}function _y(){return(null==Yr?void 0:Yr.get($x))??null}const BA=sg(null,"core",[]);let AN=(()=>{var t;class r{constructor(e){}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(ol))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function jt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,r=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?r:Number(t)}let ZA=null;function Su(){return ZA}class qG{}const yt=new ve("DocumentToken");let XA=(()=>{var t;class r{historyGo(e){throw new Error("Not implemented")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(XG),providedIn:"platform"}),r})();const ZG=new ve("Location Initialized");let XG=(()=>{var t;class r extends XA{constructor(){super(),this._doc=De(yt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Su().getBaseHref(this._doc)}onPopState(e){const s=Su().getGlobalEventTarget(this._doc,"window");return s.addEventListener("popstate",e,!1),()=>s.removeEventListener("popstate",e)}onHashChange(e){const s=Su().getGlobalEventTarget(this._doc,"window");return s.addEventListener("hashchange",e,!1),()=>s.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,s,u){this._history.pushState(e,s,u)}replaceState(e,s,u){this._history.replaceState(e,s,u)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>new t,providedIn:"platform"}),r})();function Iy(t,r){if(0==t.length)return r;if(0==r.length)return t;let l=0;return t.endsWith("/")&&l++,r.startsWith("/")&&l++,2==l?t+r.substring(1):1==l?t+r:t+"/"+r}function KG(t){const r=t.match(/#|\?|$/),l=r&&r.index||t.length;return t.slice(0,l-("/"===t[l-1]?1:0))+t.slice(l)}function hc(t){return t&&"?"!==t[0]?"?"+t:t}let Of=(()=>{var t;class r{historyGo(e){throw new Error("Not implemented")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(ZN),providedIn:"root"}),r})();const aC=new ve("appBaseHref");let ZN=(()=>{var t;class r extends Of{constructor(e,s){var u;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=s??this._platformLocation.getBaseHrefFromDOM()??(null==(u=De(yt).location)?void 0:u.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Iy(this._baseHref,e)}path(e=!1){const s=this._platformLocation.pathname+hc(this._platformLocation.search),u=this._platformLocation.hash;return u&&e?`${s}${u}`:s}pushState(e,s,u,m){const b=this.prepareExternalUrl(u+hc(m));this._platformLocation.pushState(e,s,b)}replaceState(e,s,u,m){const b=this.prepareExternalUrl(u+hc(m));this._platformLocation.replaceState(e,s,b)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var s,u;null==(u=(s=this._platformLocation).historyGo)||u.call(s,e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(XA),fe(aC,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),QG=(()=>{var t;class r extends Of{constructor(e,s){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=s&&(this._baseHref=s)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let s=this._platformLocation.hash;return null==s&&(s="#"),s.length>0?s.substring(1):s}prepareExternalUrl(e){const s=Iy(this._baseHref,e);return s.length>0?"#"+s:s}pushState(e,s,u,m){let b=this.prepareExternalUrl(u+hc(m));0==b.length&&(b=this._platformLocation.pathname),this._platformLocation.pushState(e,s,b)}replaceState(e,s,u,m){let b=this.prepareExternalUrl(u+hc(m));0==b.length&&(b=this._platformLocation.pathname),this._platformLocation.replaceState(e,s,b)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var s,u;null==(u=(s=this._platformLocation).historyGo)||u.call(s,e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(XA),fe(aC,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Du=(()=>{var t;class r{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const s=this._locationStrategy.getBaseHref();this._basePath=function e6(t){if(new RegExp("^(https?:)?//").test(t)){const[,l]=t.split(/\/\/[^\/]+/);return l}return t}(KG(KA(s))),this._locationStrategy.onPopState(u=>{this._subject.emit({url:this.path(!0),pop:!0,state:u.state,type:u.type})})}ngOnDestroy(){var e;null==(e=this._urlChangeSubscription)||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,s=""){return this.path()==this.normalize(e+hc(s))}normalize(e){return r.stripTrailingSlash(function pg(t,r){if(!t||!r.startsWith(t))return r;const l=r.substring(t.length);return""===l||["/",";","?","#"].includes(l[0])?l:r}(this._basePath,KA(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,s="",u=null){this._locationStrategy.pushState(u,"",e,s),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hc(s)),u)}replaceState(e,s="",u=null){this._locationStrategy.replaceState(u,"",e,s),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hc(s)),u)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var s,u;null==(u=(s=this._locationStrategy).historyGo)||u.call(s,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(s=>{this._notifyUrlChangeListeners(s.url,s.state)})),()=>{var u;const s=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(s,1),0===this._urlChangeListeners.length&&(null==(u=this._urlChangeSubscription)||u.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",s){this._urlChangeListeners.forEach(u=>u(e,s))}subscribe(e,s,u){return this._subject.subscribe({next:e,error:s,complete:u})}}return(t=r).normalizeQueryParams=hc,t.joinWithSlash=Iy,t.stripTrailingSlash=KG,t.\u0275fac=function(e){return new(e||t)(fe(Of))},t.\u0275prov=ke({token:t,factory:()=>function JG(){return new Du(fe(Of))}(),providedIn:"root"}),r})();function KA(t){return t.replace(/\/index.html$/,"")}function cE(t,r){r=encodeURIComponent(r);for(const l of t.split(";")){const e=l.indexOf("="),[s,u]=-1==e?[l,""]:[l.slice(0,e),l.slice(e+1)];if(s.trim()===r)return decodeURIComponent(u)}return null}const gg=/\s+/,vg=[];let To=(()=>{var t;class r{constructor(e,s){this._ngEl=e,this._renderer=s,this.initialClasses=vg,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(gg):vg}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(gg):e}ngDoCheck(){for(const s of this.initialClasses)this._updateState(s,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const s of e)this._updateState(s,!0);else if(null!=e)for(const s of Object.keys(e))this._updateState(s,!!e[s]);this._applyStateDiff()}_updateState(e,s){const u=this.stateMap.get(e);void 0!==u?(u.enabled!==s&&(u.changed=!0,u.enabled=s),u.touched=!0):this.stateMap.set(e,{enabled:s,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const s=e[0],u=e[1];u.changed?(this._toggleClass(s,u.enabled),u.changed=!1):u.touched||(u.enabled&&this._toggleClass(s,!1),this.stateMap.delete(s)),u.touched=!1}}_toggleClass(e,s){(e=e.trim()).length>0&&e.split(gg).forEach(u=>{s?this._renderer.addClass(this._ngEl.nativeElement,u):this._renderer.removeClass(this._ngEl.nativeElement,u)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(ec))},t.\u0275dir=ce({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),r})();class hC{constructor(r,l,e,s){this.$implicit=r,this.ngForOf=l,this.index=e,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mi=(()=>{var t;class r{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,s,u){this._viewContainer=e,this._template=s,this._differs=u,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const s=this._viewContainer;e.forEachOperation((u,m,b)=>{if(null==u.previousIndex)s.createEmbeddedView(this._template,new hC(u.item,this._ngForOf,-1,-1),null===b?void 0:b);else if(null==b)s.remove(null===m?void 0:m);else if(null!==m){const C=s.get(m);s.move(C,b),fC(C,u)}});for(let u=0,m=s.length;u{fC(s.get(u.currentIndex),u)})}static ngTemplateContextGuard(e,s){return!0}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(tu))},t.\u0275dir=ce({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),r})();function fC(t,r){t.context.$implicit=r.item}let xn=(()=>{var t;class r{constructor(e,s){this._viewContainer=e,this._context=new pC,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=s}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){hE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){hE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,s){return!0}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),r})();class pC{constructor(){this.$implicit=null,this.ngIf=null}}function hE(t,r){if(r&&!r.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(r)}'.`)}class mC{constructor(r,l){this._viewContainerRef=r,this._templateRef=l,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}}let _g=(()=>{var t;class r{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const s=e===this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||s,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),s}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const s of this._defaultViews)s.enforceState(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),r})(),gC=(()=>{var t;class r{constructor(e,s,u){this.ngSwitch=u,u._addCase(),this._view=new mC(e,s)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(_g,9))},t.\u0275dir=ce({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),r})(),Zo=(()=>{var t;class r{constructor(e,s,u){u._addDefault(new mC(e,s))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Kn),V(_g,9))},t.\u0275dir=ce({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),r})(),fE=(()=>{var t;class r{constructor(e,s,u){this._ngEl=e,this._differs=s,this._renderer=u,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,s){const[u,m]=e.split("."),b=-1===u.indexOf("-")?void 0:Zd.DashCase;null!=s?this._renderer.setStyle(this._ngEl.nativeElement,u,m?`${s}${m}`:s,b):this._renderer.removeStyle(this._ngEl.nativeElement,u,b)}_applyChanges(e){e.forEachRemovedItem(s=>this._setStyle(s.key,null)),e.forEachAddedItem(s=>this._setStyle(s.key,s.currentValue)),e.forEachChangedItem(s=>this._setStyle(s.key,s.currentValue))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Tw),V(ec))},t.\u0275dir=ce({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),r})(),pE=(()=>{var t;class r{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const s=this._viewContainerRef;if(this._viewRef&&s.remove(s.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const u=this._createContextForwardProxy();this._viewRef=s.createEmbeddedView(this.ngTemplateOutlet,u,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,s,u)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,s,u),get:(e,s,u)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,s,u)}})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi))},t.\u0275dir=ce({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[nn]}),r})();class I6{createSubscription(r,l){return ww(()=>r.subscribe({next:l,error:e=>{throw e}}))}dispose(r){ww(()=>r.unsubscribe())}}class mE{createSubscription(r,l){return r.then(l,e=>{throw e})}dispose(r){}}const k6=new mE,pV=new I6;let gE=(()=>{var t;class r{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,s=>this._updateLatestValue(e,s))}_selectStrategy(e){if(Ym(e))return k6;if(qM(e))return pV;throw function Mo(t,r){return new be(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,s){e===this._obj&&(this._latestValue=s,this._ref.markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn,16))},t.\u0275pipe=ua({name:"async",type:t,pure:!1,standalone:!0}),r})(),vV=(()=>{var t;class r{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=_V}transform(e,s=_V){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const u=this.differ.diff(e),m=s!==this.compareFn;return u&&(this.keyValues=[],u.forEachItem(b=>{this.keyValues.push(function V6(t,r){return{key:t,value:r}}(b.key,b.currentValue))})),(u||m)&&(this.keyValues.sort(s),this.compareFn=s),this.keyValues}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Tw,16))},t.\u0275pipe=ua({name:"keyvalue",type:t,pure:!1,standalone:!0}),r})();function _V(t,r){const l=t.key,e=r.key;if(l===e)return 0;if(void 0===l)return 1;if(void 0===e)return-1;if(null===l)return 1;if(null===e)return-1;if("string"==typeof l&&"string"==typeof e)return l{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const _C="browser";function bE(t){return t===_C}function Fy(t){return"server"===t}let yV=(()=>{var t;class r{}return(t=r).\u0275prov=ke({token:t,providedIn:"root",factory:()=>bE(De(Vc))?new bV(De(yt),window):new xV}),r})();class bV{constructor(r,l){this.document=r,this.window=l,this.offset=()=>[0,0]}setOffset(r){this.offset=Array.isArray(r)?()=>r:r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){const l=function wV(t,r){const l=t.getElementById(r)||t.getElementsByName(r)[0];if(l)return l;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const e=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=e.currentNode;for(;s;){const u=s.shadowRoot;if(u){const m=u.getElementById(r)||u.querySelector(`[name="${r}"]`);if(m)return m}s=e.nextNode()}}return null}(this.document,r);l&&(this.scrollToElement(l),l.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){const l=r.getBoundingClientRect(),e=l.left+this.window.pageXOffset,s=l.top+this.window.pageYOffset,u=this.offset();this.window.scrollTo(e-u[0],s-u[1])}}class xV{setOffset(r){}getScrollPosition(){return[0,0]}scrollToPosition(r){}scrollToAnchor(r){}setHistoryScrollRestoration(r){}}class wE{}class b7 extends qG{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ME extends b7{static makeCurrent(){!function YG(t){ZA||(ZA=t)}(new ME)}onAndCancel(r,l,e){return r.addEventListener(l,e),()=>{r.removeEventListener(l,e)}}dispatchEvent(r,l){r.dispatchEvent(l)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,l){return(l=l||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,l){return"window"===l?window:"document"===l?r:"body"===l?r.body:null}getBaseHref(r){const l=function w7(){return ld=ld||document.querySelector("base"),ld?ld.getAttribute("href"):null}();return null==l?null:function x7(t){return new URL(t,document.baseURI).pathname}(l)}resetBaseElement(){ld=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return cE(document.cookie,r)}}let ld=null,S7=(()=>{var t;class r{build(){return new XMLHttpRequest}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const AE=new ve("EventManagerPlugins");let EE=(()=>{var t;class r{constructor(e,s){this._zone=s,this._eventNameToPlugin=new Map,e.forEach(u=>{u.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,s,u){return this._findPluginFor(s).addEventListener(e,s,u)}getZone(){return this._zone}_findPluginFor(e){let s=this._eventNameToPlugin.get(e);if(s)return s;if(s=this._plugins.find(m=>m.supports(e)),!s)throw new be(5101,!1);return this._eventNameToPlugin.set(e,s),s}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(AE),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();class OV{constructor(r){this._doc=r}}const SC="ng-app-id";let LV=(()=>{var t;class r{constructor(e,s,u,m={}){this.doc=e,this.appId=s,this.nonce=u,this.platformId=m,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Fy(m),this.resetHostNodes()}addStyles(e){for(const s of e)1===this.changeUsageCount(s,1)&&this.onStyleAdded(s)}removeStyles(e){for(const s of e)this.changeUsageCount(s,-1)<=0&&this.onStyleRemoved(s)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(s=>s.remove()),e.clear());for(const s of this.getAllStyles())this.onStyleRemoved(s);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const s of this.getAllStyles())this.addStyleToHost(e,s)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const s of this.hostNodes)this.addStyleToHost(s,e)}onStyleRemoved(e){var u,m;const s=this.styleRef;null==(m=null==(u=s.get(e))?void 0:u.elements)||m.forEach(b=>b.remove()),s.delete(e)}collectServerRenderedStyles(){var s;const e=null==(s=this.doc.head)?void 0:s.querySelectorAll(`style[${SC}="${this.appId}"]`);if(null!=e&&e.length){const u=new Map;return e.forEach(m=>{null!=m.textContent&&u.set(m.textContent,m)}),u}return null}changeUsageCount(e,s){const u=this.styleRef;if(u.has(e)){const m=u.get(e);return m.usage+=s,m.usage}return u.set(e,{usage:s,elements:[]}),s}getStyleElement(e,s){const u=this.styleNodesInDOM,m=null==u?void 0:u.get(s);if((null==m?void 0:m.parentNode)===e)return u.delete(s),m.removeAttribute(SC),m;{const b=this.doc.createElement("style");return this.nonce&&b.setAttribute("nonce",this.nonce),b.textContent=s,this.platformIsServer&&b.setAttribute(SC,this.appId),e.appendChild(b),b}}addStyleToHost(e,s){var C;const u=this.getStyleElement(e,s),m=this.styleRef,b=null==(C=m.get(s))?void 0:C.elements;b?b.push(u):m.set(s,{elements:[u],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(qp),fe(Bc,8),fe(Vc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const DC={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},IE=/%COMP%/g,T7=new ve("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function VV(t,r){return r.map(l=>l.replace(IE,t))}let PE=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I=null){this.eventManager=e,this.sharedStylesHost=s,this.appId=u,this.removeStylesOnCompDestroy=m,this.doc=b,this.platformId=C,this.ngZone=M,this.nonce=I,this.rendererByCompId=new Map,this.platformIsServer=Fy(C),this.defaultRenderer=new RE(e,b,M,this.platformIsServer)}createRenderer(e,s){if(!e||!s)return this.defaultRenderer;this.platformIsServer&&s.encapsulation===Zi.ShadowDom&&(s={...s,encapsulation:Zi.Emulated});const u=this.getOrCreateRenderer(e,s);return u instanceof zV?u.applyToHost(e):u instanceof TC&&u.applyStyles(),u}getOrCreateRenderer(e,s){const u=this.rendererByCompId;let m=u.get(s.id);if(!m){const b=this.doc,C=this.ngZone,M=this.eventManager,I=this.sharedStylesHost,F=this.removeStylesOnCompDestroy,H=this.platformIsServer;switch(s.encapsulation){case Zi.Emulated:m=new zV(M,I,s,this.appId,F,b,C,H);break;case Zi.ShadowDom:return new BV(M,I,e,s,b,C,this.nonce,H);default:m=new TC(M,I,s,F,b,C,H)}u.set(s.id,m)}return m}ngOnDestroy(){this.rendererByCompId.clear()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(EE),fe(LV),fe(qp),fe(T7),fe(yt),fe(Vc),fe(Ye),fe(Bc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();class RE{constructor(r,l,e,s){this.eventManager=r,this.doc=l,this.ngZone=e,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,l){return l?this.doc.createElementNS(DC[l]||l,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,l){(LE(r)?r.content:r).appendChild(l)}insertBefore(r,l,e){r&&(LE(r)?r.content:r).insertBefore(l,e)}removeChild(r,l){r&&r.removeChild(l)}selectRootElement(r,l){let e="string"==typeof r?this.doc.querySelector(r):r;if(!e)throw new be(-5104,!1);return l||(e.textContent=""),e}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,l,e,s){if(s){l=s+":"+l;const u=DC[s];u?r.setAttributeNS(u,l,e):r.setAttribute(l,e)}else r.setAttribute(l,e)}removeAttribute(r,l,e){if(e){const s=DC[e];s?r.removeAttributeNS(s,l):r.removeAttribute(`${e}:${l}`)}else r.removeAttribute(l)}addClass(r,l){r.classList.add(l)}removeClass(r,l){r.classList.remove(l)}setStyle(r,l,e,s){s&(Zd.DashCase|Zd.Important)?r.style.setProperty(l,e,s&Zd.Important?"important":""):r.style[l]=e}removeStyle(r,l,e){e&Zd.DashCase?r.style.removeProperty(l):r.style[l]=""}setProperty(r,l,e){null!=r&&(r[l]=e)}setValue(r,l){r.nodeValue=l}listen(r,l,e){if("string"==typeof r&&!(r=Su().getGlobalEventTarget(this.doc,r)))throw new Error(`Unsupported event target ${r} for event ${l}`);return this.eventManager.addEventListener(r,l,this.decoratePreventDefault(e))}decoratePreventDefault(r){return l=>{if("__ngUnwrap__"===l)return r;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>r(l)):r(l))&&l.preventDefault()}}}function LE(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class BV extends RE{constructor(r,l,e,s,u,m,b,C){super(r,u,m,C),this.sharedStylesHost=l,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const M=VV(s.id,s.styles);for(const I of M){const F=document.createElement("style");b&&F.setAttribute("nonce",b),F.textContent=I,this.shadowRoot.appendChild(F)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,l){return super.appendChild(this.nodeOrShadowRoot(r),l)}insertBefore(r,l,e){return super.insertBefore(this.nodeOrShadowRoot(r),l,e)}removeChild(r,l){return super.removeChild(this.nodeOrShadowRoot(r),l)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class TC extends RE{constructor(r,l,e,s,u,m,b,C){super(r,u,m,b),this.sharedStylesHost=l,this.removeStylesOnCompDestroy=s,this.styles=C?VV(C,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class zV extends TC{constructor(r,l,e,s,u,m,b,C){const M=s+"-"+e.id;super(r,l,e,u,m,b,C,M),this.contentAttr=function M7(t){return"_ngcontent-%COMP%".replace(IE,t)}(M),this.hostAttr=function A7(t){return"_nghost-%COMP%".replace(IE,t)}(M)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,l){const e=super.createElement(r,l);return super.setAttribute(e,this.contentAttr,""),e}}let I7=(()=>{var t;class r extends OV{constructor(e){super(e)}supports(e){return!0}addEventListener(e,s,u){return e.addEventListener(s,u,!1),()=>this.removeEventListener(e,s,u)}removeEventListener(e,s,u){return e.removeEventListener(s,u)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const HV=["alt","control","meta","shift"],Bf={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},UV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let MC=(()=>{var t;class r extends OV{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,s,u){const m=r.parseEventName(s),b=r.eventCallback(m.fullKey,u,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Su().onAndCancel(e,m.domEventName,b))}static parseEventName(e){const s=e.toLowerCase().split("."),u=s.shift();if(0===s.length||"keydown"!==u&&"keyup"!==u)return null;const m=r._normalizeKey(s.pop());let b="",C=s.indexOf("code");if(C>-1&&(s.splice(C,1),b="code."),HV.forEach(I=>{const F=s.indexOf(I);F>-1&&(s.splice(F,1),b+=I+".")}),b+=m,0!=s.length||0===m.length)return null;const M={};return M.domEventName=u,M.fullKey=b,M}static matchEventFullKeyCode(e,s){let u=Bf[e.key]||e.key,m="";return s.indexOf("code.")>-1&&(u=e.code,m="code."),!(null==u||!u)&&(u=u.toLowerCase()," "===u?u="space":"."===u&&(u="dot"),HV.forEach(b=>{b!==u&&(0,UV[b])(e)&&(m+=b+".")}),m+=u,m===s)}static eventCallback(e,s,u){return m=>{r.matchEventFullKeyCode(m,e)&&u.runGuarded(()=>s(m))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const FE=sg(BA,"browser",[{provide:Vc,useValue:_C},{provide:v2,useValue:function k7(){ME.makeCurrent()},multi:!0},{provide:yt,useFactory:function P7(){return function g2(t){Yp=t}(document),document},deps:[]}]),R7=new ve(""),GV=[{provide:py,useClass:class C7{addToWindow(r){vi.getAngularTestability=(e,s=!0)=>{const u=r.findTestabilityInTree(e,s);if(null==u)throw new be(5103,!1);return u},vi.getAllAngularTestabilities=()=>r.getAllTestabilities(),vi.getAllAngularRootElements=()=>r.getAllRootElements(),vi.frameworkStabilizers||(vi.frameworkStabilizers=[]),vi.frameworkStabilizers.push(e=>{const s=vi.getAllAngularTestabilities();let u=s.length,m=!1;const b=function(C){m=m||C,u--,0==u&&e(m)};s.forEach(C=>{C.whenStable(b)})})}findTestabilityInTree(r,l,e){return null==l?null:r.getTestability(l)??(e?Su().isShadowRoot(l)?this.findTestabilityInTree(r,l.host,!0):this.findTestabilityInTree(r,l.parentElement,!0):null)}},deps:[]},{provide:AA,useClass:my,deps:[Ye,jx,py]},{provide:my,useClass:my,deps:[Ye,jx,py]}],EC=[{provide:PD,useValue:"root"},{provide:Tr,useFactory:function Vy(){return new Tr},deps:[]},{provide:AE,useClass:I7,multi:!0,deps:[yt,Ye,Vc]},{provide:AE,useClass:MC,multi:!0,deps:[yt]},PE,LV,EE,{provide:yw,useExisting:PE},{provide:wE,useClass:S7,deps:[]},[]];let zy=(()=>{var t;class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:qp,useValue:e.appId}]}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(R7,12))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[...EC,...GV],imports:[Er,AN]}),r})(),kC=(()=>{var t;class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new e:function zf(){return new kC(fe(yt))}(),s},providedIn:"root"}),r})();typeof window<"u"&&window;let dd=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new(e||t):fe(NE),s},providedIn:"root"}),r})(),NE=(()=>{var t;class r extends dd{constructor(e){super(),this._doc=e}sanitize(e,s){if(null==s)return null;switch(e){case Qi.NONE:return s;case Qi.HTML:return Ws(s,"HTML")?eo(s):aT(this._doc,String(s)).toString();case Qi.STYLE:return Ws(s,"Style")?eo(s):s;case Qi.SCRIPT:if(Ws(s,"Script"))return eo(s);throw new be(5200,!1);case Qi.URL:return Ws(s,"URL")?eo(s):om(String(s));case Qi.RESOURCE_URL:if(Ws(s,"ResourceURL"))return eo(s);throw new be(5201,!1);default:throw new be(5202,!1)}}bypassSecurityTrustHtml(e){return function ga(t){return new G2(t)}(e)}bypassSecurityTrustStyle(e){return function zh(t){return new r8(t)}(e)}bypassSecurityTrustScript(e){return function s_(t){return new Kd(t)}(e)}bypassSecurityTrustUrl(e){return function s8(t){return new a8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function l8(t){return new Oi(t)}(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:function(e){let s=null;return s=e?new e:function OC(t){return new NE(t.get(yt))}(fe(mn)),s},providedIn:"root"}),r})();function qV(t,r,l,e,s,u,m){try{var b=t[u](m),C=b.value}catch(M){return void l(M)}b.done?r(C):Promise.resolve(C).then(e,s)}function Ge(t){return function(){var r=this,l=arguments;return new Promise(function(e,s){var u=t.apply(r,l);function m(C){qV(u,e,s,m,b,"next",C)}function b(C){qV(u,e,s,m,b,"throw",C)}m(void 0)})}}function ZV(t){return t&&Fn(t.schedule)}function VE(t){return t[t.length-1]}function BE(t){return Fn(VE(t))?t.pop():void 0}function Uy(t){return ZV(VE(t))?t.pop():void 0}function Eu(t){return this instanceof Eu?(this.v=t,this):new Eu(t)}function qE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function WE(t){var r="function"==typeof Symbol&&Symbol.iterator,l=r&&t[r],e=0;if(l)return l.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),l={},e("next"),e("throw"),e("return"),l[Symbol.asyncIterator]=function(){return this},l);function e(u){l[u]=t[u]&&function(m){return new Promise(function(b,C){!function s(u,m,b,C){Promise.resolve(C).then(function(M){u({value:M,done:b})},m)}(b,C,(m=t[u](m)).done,m.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Wy=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function KE(t){return Fn(null==t?void 0:t.then)}function eW(t){return Fn(t[Di])}function VC(t){return Symbol.asyncIterator&&Fn(null==t?void 0:t[Symbol.asyncIterator])}function t3(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const BC=function tW(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function QE(t){return Fn(null==t?void 0:t[BC])}function JE(t){return function bg(t,r,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,e=l.apply(t,r||[]),u=[];return s={},m("next"),m("throw"),m("return"),s[Symbol.asyncIterator]=function(){return this},s;function m(H){e[H]&&(s[H]=function(q){return new Promise(function(Q,ne){u.push([H,q,Q,ne])>1||b(H,q)})})}function b(H,q){try{!function C(H){H.value instanceof Eu?Promise.resolve(H.value.v).then(M,I):F(u[0][2],H)}(e[H](q))}catch(Q){F(u[0][3],Q)}}function M(H){b("next",H)}function I(H){b("throw",H)}function F(H,q){H(q),u.shift(),u.length&&b(u[0][0],u[0][1])}}(this,arguments,function*(){const l=t.getReader();try{for(;;){const{value:e,done:s}=yield Eu(l.read());if(s)return yield Eu(void 0);yield yield Eu(e)}}finally{l.releaseLock()}})}function eI(t){return Fn(null==t?void 0:t.getReader)}function ra(t){if(t instanceof ln)return t;if(null!=t){if(eW(t))return function tI(t){return new ln(r=>{const l=t[Di]();if(Fn(l.subscribe))return l.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Wy(t))return function nW(t){return new ln(r=>{for(let l=0;l{t.then(l=>{r.closed||(r.next(l),r.complete())},l=>r.error(l)).then(null,dR)})}(t);if(VC(t))return n3(t);if(QE(t))return function iW(t){return new ln(r=>{for(const l of t)if(r.next(l),r.closed)return;r.complete()})}(t);if(eI(t))return function r3(t){return n3(JE(t))}(t)}throw t3(t)}function n3(t){return new ln(r=>{(function a3(t,r){var l,e,s,u;return function UE(t,r,l,e){return new(l||(l=Promise))(function(u,m){function b(I){try{M(e.next(I))}catch(F){m(F)}}function C(I){try{M(e.throw(I))}catch(F){m(F)}}function M(I){I.done?u(I.value):function s(u){return u instanceof l?u:new l(function(m){m(u)})}(I.value).then(b,C)}M((e=e.apply(t,r||[])).next())})}(this,void 0,void 0,function*(){try{for(l=qE(t);!(e=yield l.next()).done;)if(r.next(e.value),r.closed)return}catch(m){s={error:m}}finally{try{e&&!e.done&&(u=l.return)&&(yield u.call(l))}finally{if(s)throw s.error}}r.complete()})})(t,r).catch(l=>r.error(l))})}function Ss(t,r,l,e=0,s=!1){const u=r.schedule(function(){l(),s?t.add(this.schedule(null,e)):this.unsubscribe()},e);if(t.add(u),!s)return u}function zC(t,r=0){return Ae((l,e)=>{l.subscribe(Bn(e,s=>Ss(e,t,()=>e.next(s),r),()=>Ss(e,t,()=>e.complete(),r),s=>Ss(e,t,()=>e.error(s),r)))})}function HC(t,r=0){return Ae((l,e)=>{e.add(t.schedule(()=>l.subscribe(e),r))})}function oI(t,r){if(!t)throw new Error("Iterable cannot be null");return new ln(l=>{Ss(l,r,()=>{const e=t[Symbol.asyncIterator]();Ss(l,r,()=>{e.next().then(s=>{s.done?l.complete():l.next(s.value)})},0,!0)})})}function nr(t,r){return r?function sI(t,r){if(null!=t){if(eW(t))return function iI(t,r){return ra(t).pipe(HC(r),zC(r))}(t,r);if(Wy(t))return function xg(t,r){return new ln(l=>{let e=0;return r.schedule(function(){e===t.length?l.complete():(l.next(t[e++]),l.closed||this.schedule())})})}(t,r);if(KE(t))return function rI(t,r){return ra(t).pipe(HC(r),zC(r))}(t,r);if(VC(t))return oI(t,r);if(QE(t))return function aI(t,r){return new ln(l=>{let e;return Ss(l,r,()=>{e=t[BC](),Ss(l,r,()=>{let s,u;try{({value:s,done:u}=e.next())}catch(m){return void l.error(m)}u?l.complete():l.next(s)},0,!0)}),()=>Fn(null==e?void 0:e.return)&&e.return()})}(t,r);if(eI(t))return function o3(t,r){return oI(JE(t),r)}(t,r)}throw t3(t)}(t,r):ra(t)}function tt(...t){return nr(t,Uy(t))}function Gi(t,r,l=1/0){return Fn(r)?Gi((e,s)=>Ee((u,m)=>r(e,u,s,m))(ra(t(e,s))),l):("number"==typeof r&&(l=r),Ae((e,s)=>function rW(t,r,l,e,s,u,m,b){const C=[];let M=0,I=0,F=!1;const H=()=>{F&&!C.length&&!M&&r.complete()},q=ne=>M{u&&r.next(ne),M++;let ae=!1;ra(l(ne,I++)).subscribe(Bn(r,ge=>{null==s||s(ge),u?q(ge):r.next(ge)},()=>{ae=!0},void 0,()=>{if(ae)try{for(M--;C.length&&MQ(ge)):Q(ge)}H()}catch(ge){r.error(ge)}}))};return t.subscribe(Bn(r,q,()=>{F=!0,H()})),()=>{null==b||b()}}(e,s,t,l)))}function Cg(t,r){return Fn(r)?Gi(t,r,1):Gi(t,1)}function bn(t,r){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>t.call(r,u,s++)&&e.next(u)))})}function Hf(t){return Ae((r,l)=>{try{r.subscribe(l)}finally{l.add(t)}})}function Li(t,r){return Ae((l,e)=>{let s=null,u=0,m=!1;const b=()=>m&&!s&&e.complete();l.subscribe(Bn(e,C=>{null==s||s.unsubscribe();let M=0;const I=u++;ra(t(C,I)).subscribe(s=Bn(e,F=>e.next(r?r(C,F,I,M++):F),()=>{s=null,b()}))},()=>{m=!0,b()}))})}class UC{}class $y{}class Xo{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?"string"==typeof r?this.lazyInit=()=>{this.headers=new Map,r.split("\n").forEach(l=>{const e=l.indexOf(":");if(e>0){const s=l.slice(0,e),u=s.toLowerCase(),m=l.slice(e+1).trim();this.maybeSetNormalizedName(s,u),this.headers.has(u)?this.headers.get(u).push(m):this.headers.set(u,[m])}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((l,e)=>{this.setHeaderEntries(e,l)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([l,e])=>{this.setHeaderEntries(l,e)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();const l=this.headers.get(r.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,l){return this.clone({name:r,value:l,op:"a"})}set(r,l){return this.clone({name:r,value:l,op:"s"})}delete(r,l){return this.clone({name:r,value:l,op:"d"})}maybeSetNormalizedName(r,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,r)}init(){this.lazyInit&&(this.lazyInit instanceof Xo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(l=>{this.headers.set(l,r.headers.get(l)),this.normalizedNames.set(l,r.normalizedNames.get(l))})}clone(r){const l=new Xo;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof Xo?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([r]),l}applyUpdate(r){const l=r.name.toLowerCase();switch(r.op){case"a":case"s":let e=r.value;if("string"==typeof e&&(e=[e]),0===e.length)return;this.maybeSetNormalizedName(r.name,l);const s=("a"===r.op?this.headers.get(l):void 0)||[];s.push(...e),this.headers.set(l,s);break;case"d":const u=r.value;if(u){let m=this.headers.get(l);if(!m)return;m=m.filter(b=>-1===u.indexOf(b)),0===m.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,m)}else this.headers.delete(l),this.normalizedNames.delete(l)}}setHeaderEntries(r,l){const e=(Array.isArray(l)?l:[l]).map(u=>u.toString()),s=r.toLowerCase();this.headers.set(s,e),this.maybeSetNormalizedName(r,s)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>r(this.normalizedNames.get(l),this.headers.get(l)))}}class aW{encodeKey(r){return s3(r)}encodeValue(r){return s3(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const sW=/%(\d[a-f0-9])/gi,lW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s3(t){return encodeURIComponent(t).replace(sW,(r,l)=>lW[l]??r)}function jC(t){return`${t}`}class cl{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new aW,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oW(t,r){const l=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const u=s.indexOf("="),[m,b]=-1==u?[r.decodeKey(s),""]:[r.decodeKey(s.slice(0,u)),r.decodeValue(s.slice(u+1))],C=l.get(m)||[];C.push(b),l.set(m,C)}),l}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(l=>{const e=r.fromObject[l],s=Array.isArray(e)?e.map(jC):[jC(e)];this.map.set(l,s)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();const l=this.map.get(r);return l?l[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,l){return this.clone({param:r,value:l,op:"a"})}appendAll(r){const l=[];return Object.keys(r).forEach(e=>{const s=r[e];Array.isArray(s)?s.forEach(u=>{l.push({param:e,value:u,op:"a"})}):l.push({param:e,value:s,op:"a"})}),this.clone(l)}set(r,l){return this.clone({param:r,value:l,op:"s"})}delete(r,l){return this.clone({param:r,value:l,op:"d"})}toString(){return this.init(),this.keys().map(r=>{const l=this.encoder.encodeKey(r);return this.map.get(r).map(e=>l+"="+this.encoder.encodeValue(e)).join("&")}).filter(r=>""!==r).join("&")}clone(r){const l=new cl({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(r),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":const l=("a"===r.op?this.map.get(r.param):void 0)||[];l.push(jC(r.value)),this.map.set(r.param,l);break;case"d":if(void 0===r.value){this.map.delete(r.param);break}{let e=this.map.get(r.param)||[];const s=e.indexOf(jC(r.value));-1!==s&&e.splice(s,1),e.length>0?this.map.set(r.param,e):this.map.delete(r.param)}}}),this.cloneFrom=this.updates=null)}}class cW{constructor(){this.map=new Map}set(r,l){return this.map.set(r,l),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}}function l3(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c3(t){return typeof Blob<"u"&&t instanceof Blob}function d3(t){return typeof FormData<"u"&&t instanceof FormData}class Yy{constructor(r,l,e,s){let u;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function dW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==e?e:null,u=s):u=e,u&&(this.reportProgress=!!u.reportProgress,this.withCredentials=!!u.withCredentials,u.responseType&&(this.responseType=u.responseType),u.headers&&(this.headers=u.headers),u.context&&(this.context=u.context),u.params&&(this.params=u.params),this.transferCache=u.transferCache),this.headers||(this.headers=new Xo),this.context||(this.context=new cW),this.params){const m=this.params.toString();if(0===m.length)this.urlWithParams=l;else{const b=l.indexOf("?");this.urlWithParams=l+(-1===b?"?":bF.set(H,r.setHeaders[H]),C)),r.setParams&&(M=Object.keys(r.setParams).reduce((F,H)=>F.set(H,r.setParams[H]),M)),new Yy(l,e,u,{params:M,headers:C,context:I,reportProgress:b,responseType:s,withCredentials:m})}}var Iu=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Iu||{});class lI{constructor(r,l=200,e="OK"){this.headers=r.headers||new Xo,this.status=void 0!==r.status?r.status:l,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}}class GC extends lI{constructor(r={}){super(r),this.type=Iu.ResponseHeader}clone(r={}){return new GC({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class Uf extends lI{constructor(r={}){super(r),this.type=Iu.Response,this.body=void 0!==r.body?r.body:null}clone(r={}){return new Uf({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class Sg extends lI{constructor(r){super(r,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${r.url||"(unknown url)"}`:`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}}function cI(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let WC=(()=>{var t;class r{constructor(e){this.handler=e}request(e,s,u={}){let m;if(e instanceof Yy)m=e;else{let M,I;M=u.headers instanceof Xo?u.headers:new Xo(u.headers),u.params&&(I=u.params instanceof cl?u.params:new cl({fromObject:u.params})),m=new Yy(e,s,void 0!==u.body?u.body:null,{headers:M,context:u.context,params:I,reportProgress:u.reportProgress,responseType:u.responseType||"json",withCredentials:u.withCredentials,transferCache:u.transferCache})}const b=tt(m).pipe(Cg(M=>this.handler.handle(M)));if(e instanceof Yy||"events"===u.observe)return b;const C=b.pipe(bn(M=>M instanceof Uf));switch(u.observe||"body"){case"body":switch(m.responseType){case"arraybuffer":return C.pipe(Ee(M=>{if(null!==M.body&&!(M.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return M.body}));case"blob":return C.pipe(Ee(M=>{if(null!==M.body&&!(M.body instanceof Blob))throw new Error("Response is not a Blob.");return M.body}));case"text":return C.pipe(Ee(M=>{if(null!==M.body&&"string"!=typeof M.body)throw new Error("Response is not a string.");return M.body}));default:return C.pipe(Ee(M=>M.body))}case"response":return C;default:throw new Error(`Unreachable: unhandled observe type ${u.observe}}`)}}delete(e,s={}){return this.request("DELETE",e,s)}get(e,s={}){return this.request("GET",e,s)}head(e,s={}){return this.request("HEAD",e,s)}jsonp(e,s){return this.request("JSONP",e,{params:(new cl).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,s={}){return this.request("OPTIONS",e,s)}patch(e,s,u={}){return this.request("PATCH",e,cI(u,s))}post(e,s,u={}){return this.request("POST",e,cI(u,s))}put(e,s,u={}){return this.request("PUT",e,cI(u,s))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(UC))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function YC(t,r){return r(t)}function pW(t,r){return(l,e)=>r.intercept(l,{handle:s=>t(s,e)})}const gW=new ve(""),qy=new ve(""),p3=new ve(""),m3=new ve("");function vW(){let t=null;return(r,l)=>{null===t&&(t=(De(gW,{optional:!0})??[]).reduceRight(pW,YC));const e=De(Df),s=e.add();return t(r,l).pipe(Hf(()=>e.remove(s)))}}let g3=(()=>{var t;class r extends UC{constructor(e,s){super(),this.backend=e,this.injector=s,this.chain=null,this.pendingTasks=De(Df);const u=De(m3,{optional:!0});this.backend=u??e}handle(e){if(null===this.chain){const u=Array.from(new Set([...this.injector.get(qy),...this.injector.get(p3,[])]));this.chain=u.reduceRight((m,b)=>function mW(t,r,l){return(e,s)=>jd(l,()=>r(e,u=>t(u,s)))}(m,b,this.injector),YC)}const s=this.pendingTasks.add();return this.chain(e,u=>this.backend.handle(u)).pipe(Hf(()=>this.pendingTasks.remove(s)))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe($y),fe(bo))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const jf=/^\)\]\}',?\n/;let Gf=(()=>{var t;class r{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new be(-2800,!1);const s=this.xhrFactory;return(s.\u0275loadImpl?nr(s.\u0275loadImpl()):tt(null)).pipe(Li(()=>new ln(m=>{const b=s.build();if(b.open(e.method,e.urlWithParams),e.withCredentials&&(b.withCredentials=!0),e.headers.forEach((ae,ge)=>b.setRequestHeader(ae,ge.join(","))),e.headers.has("Accept")||b.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const ae=e.detectContentTypeHeader();null!==ae&&b.setRequestHeader("Content-Type",ae)}if(e.responseType){const ae=e.responseType.toLowerCase();b.responseType="json"!==ae?ae:"text"}const C=e.serializeBody();let M=null;const I=()=>{if(null!==M)return M;const ae=b.statusText||"OK",ge=new Xo(b.getAllResponseHeaders()),se=function uI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(b)||e.url;return M=new GC({headers:ge,status:b.status,statusText:ae,url:se}),M},F=()=>{let{headers:ae,status:ge,statusText:se,url:Be}=I(),Fe=null;204!==ge&&(Fe=typeof b.response>"u"?b.responseText:b.response),0===ge&&(ge=Fe?200:0);let Ft=ge>=200&&ge<300;if("json"===e.responseType&&"string"==typeof Fe){const Sn=Fe;Fe=Fe.replace(jf,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(ai){Fe=Sn,Ft&&(Ft=!1,Fe={error:ai,text:Fe})}}Ft?(m.next(new Uf({body:Fe,headers:ae,status:ge,statusText:se,url:Be||void 0})),m.complete()):m.error(new Sg({error:Fe,headers:ae,status:ge,statusText:se,url:Be||void 0}))},H=ae=>{const{url:ge}=I(),se=new Sg({error:ae,status:b.status||0,statusText:b.statusText||"Unknown Error",url:ge||void 0});m.error(se)};let q=!1;const Q=ae=>{q||(m.next(I()),q=!0);let ge={type:Iu.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(ge.total=ae.total),"text"===e.responseType&&b.responseText&&(ge.partialText=b.responseText),m.next(ge)},ne=ae=>{let ge={type:Iu.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(ge.total=ae.total),m.next(ge)};return b.addEventListener("load",F),b.addEventListener("error",H),b.addEventListener("timeout",H),b.addEventListener("abort",H),e.reportProgress&&(b.addEventListener("progress",Q),null!==C&&b.upload&&b.upload.addEventListener("progress",ne)),b.send(C),m.next({type:Iu.Sent}),()=>{b.removeEventListener("error",H),b.removeEventListener("abort",H),b.removeEventListener("load",F),b.removeEventListener("timeout",H),e.reportProgress&&(b.removeEventListener("progress",Q),null!==C&&b.upload&&b.upload.removeEventListener("progress",ne)),b.readyState!==b.DONE&&b.abort()}})))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(wE))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const Zy=new ve("XSRF_ENABLED"),hI=new ve("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),w3=new ve("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class fI{}let xW=(()=>{var t;class r{constructor(e,s,u){this.doc=e,this.platform=s,this.cookieName=u,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=cE(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Vc),fe(hI))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function CW(t,r){const l=t.url.toLowerCase();if(!De(Zy)||"GET"===t.method||"HEAD"===t.method||l.startsWith("http://")||l.startsWith("https://"))return r(t);const e=De(fI).getToken(),s=De(w3);return null!=e&&!t.headers.has(s)&&(t=t.clone({headers:t.headers.set(s,e)})),r(t)}var ku=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ku||{});function Wf(t,r){return{\u0275kind:t,\u0275providers:r}}function SW(...t){const r=[WC,Gf,g3,{provide:UC,useExisting:g3},{provide:$y,useExisting:Gf},{provide:qy,useValue:CW,multi:!0},{provide:Zy,useValue:!0},{provide:fI,useClass:xW}];for(const l of t)r.push(...l.\u0275providers);return function Up(t){return{\u0275providers:t}}(r)}const x3=new ve("LEGACY_INTERCEPTOR_FN");let AW=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[SW(Wf(ku.LegacyInterceptors,[{provide:x3,useFactory:vW},{provide:qy,useExisting:x3,multi:!0}]))]}),r})();function _I(t){return!!t&&(t instanceof ln||Fn(t.lift)&&Fn(t.subscribe))}const{isArray:yI}=Array,{getPrototypeOf:$f,prototype:EW,keys:R3}=Object;function bI(t){if(1===t.length){const r=t[0];if(yI(r))return{args:r,keys:null};if(function O3(t){return t&&"object"==typeof t&&$f(t)===EW}(r)){const l=R3(r);return{args:l.map(e=>r[e]),keys:l}}}return{args:t,keys:null}}const{isArray:wI}=Array;function Ky(t){return Ee(r=>function ud(t,r){return wI(r)?t(...r):t(r)}(t,r))}function xI(t,r){return t.reduce((l,e,s)=>(l[e]=r[s],l),{})}function Pu(...t){const r=Uy(t),l=BE(t),{args:e,keys:s}=bI(t);if(0===e.length)return nr([],r);const u=new ln(function CI(t,r,l=ki){return e=>{L3(r,()=>{const{length:s}=t,u=new Array(s);let m=s,b=s;for(let C=0;C{const M=nr(t[C],r);let I=!1;M.subscribe(Bn(e,F=>{u[C]=F,I||(I=!0,b--),b||e.next(l(u.slice()))},()=>{--m||e.complete()}))},e)},e)}}(e,r,s?m=>xI(s,m):ki));return l?u.pipe(Ky(l)):u}function L3(t,r,l){t?Ss(l,t,r):r()}const Tg=$b(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Mg(t=1/0){return Gi(ki,t)}function Yf(...t){return function F3(){return Mg(1)}()(nr(t,Uy(t)))}function Ag(t){return new ln(r=>{ra(t()).subscribe(r)})}function Eg(t,r){const l=Fn(t)?t:()=>t,e=s=>s.error(l());return new ln(r?s=>r.schedule(e,0,s):e)}const Ao=new ln(t=>t.complete());function XC(){return Ae((t,r)=>{let l=null;t._refCount++;const e=Bn(r,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(l=null);const s=t._connection,u=l;l=null,s&&(!u||s===u)&&s.unsubscribe(),r.unsubscribe()});t.subscribe(e),e.closed||(l=t.connect())})}class SI extends ln{constructor(r,l){super(),this.source=r,this.subjectFactory=l,this._subject=null,this._refCount=0,this._connection=null,Xe(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,null==r||r.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new bt;const l=this.getSubject();r.add(this.source.subscribe(Bn(l,void 0,()=>{this._teardown(),l.complete()},e=>{this._teardown(),l.error(e)},()=>this._teardown()))),r.closed&&(this._connection=null,r=bt.EMPTY)}return r}refCount(){return XC()(this)}}function In(t){return t<=0?()=>Ao:Ae((r,l)=>{let e=0;r.subscribe(Bn(l,s=>{++e<=t&&(l.next(s),t<=e&&l.complete())}))})}function pr(...t){const r=Uy(t);return Ae((l,e)=>{(r?Yf(t,l,r):Yf(t,l)).subscribe(e)})}function qf(t){return Ae((r,l)=>{let e=!1;r.subscribe(Bn(l,s=>{e=!0,l.next(s)},()=>{e||l.next(t),l.complete()}))})}function DI(t=TI){return Ae((r,l)=>{let e=!1;r.subscribe(Bn(l,s=>{e=!0,l.next(s)},()=>e?l.complete():l.error(t())))})}function TI(){return new Tg}function Ru(t,r){const l=arguments.length>=2;return e=>e.pipe(t?bn((s,u)=>t(s,u,e)):ki,In(1),l?qf(r):DI(()=>new Tg))}function Fi(t,r,l){const e=Fn(t)||r||l?{next:t,error:r,complete:l}:t;return e?Ae((s,u)=>{var m;null===(m=e.subscribe)||void 0===m||m.call(e);let b=!0;s.subscribe(Bn(u,C=>{var M;null===(M=e.next)||void 0===M||M.call(e,C),u.next(C)},()=>{var C;b=!1,null===(C=e.complete)||void 0===C||C.call(e),u.complete()},C=>{var M;b=!1,null===(M=e.error)||void 0===M||M.call(e,C),u.error(C)},()=>{var C,M;b&&(null===(C=e.unsubscribe)||void 0===C||C.call(e)),null===(M=e.finalize)||void 0===M||M.call(e)}))}):ki}function Eo(t){return Ae((r,l)=>{let u,e=null,s=!1;e=r.subscribe(Bn(l,void 0,void 0,m=>{u=ra(t(m,Eo(t)(r))),e?(e.unsubscribe(),e=null,u.subscribe(l)):s=!0})),s&&(e.unsubscribe(),e=null,u.subscribe(l))})}function AI(t){return t<=0?()=>Ao:Ae((r,l)=>{let e=[];r.subscribe(Bn(l,s=>{e.push(s),t{for(const s of e)l.next(s);l.complete()},void 0,()=>{e=null}))})}function B3(t){return Ee(()=>t)}function Dt(t){return Ae((r,l)=>{ra(t).subscribe(Bn(l,()=>l.complete(),qb)),!l.closed&&r.subscribe(l)})}const sn="primary",Qy=Symbol("RouteTitle");class PW{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const l=this.params[r];return Array.isArray(l)?l[0]:l}return null}getAll(r){if(this.has(r)){const l=this.params[r];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Ig(t){return new PW(t)}function z3(t,r,l){const e=l.path.split("/");if(e.length>t.length||"full"===l.pathMatch&&(r.hasChildren()||e.lengthe[u]===s)}return t===r}function hd(t){return _I(t)?t:Ym(t)?nr(Promise.resolve(t)):tt(t)}const OW={exact:function G3(t,r,l){if(!Xf(t.segments,r.segments)||!KC(t.segments,r.segments,l)||t.numberOfChildren!==r.numberOfChildren)return!1;for(const e in r.children)if(!t.children[e]||!G3(t.children[e],r.children[e],l))return!1;return!0},subset:W3},U3={exact:function LW(t,r){return pc(t,r)},subset:function FW(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(l=>H3(t[l],r[l]))},ignored:()=>!0};function j3(t,r,l){return OW[l.paths](t.root,r.root,l.matrixParams)&&U3[l.queryParams](t.queryParams,r.queryParams)&&!("exact"===l.fragment&&t.fragment!==r.fragment)}function W3(t,r,l){return $3(t,r,r.segments,l)}function $3(t,r,l,e){if(t.segments.length>l.length){const s=t.segments.slice(0,l.length);return!(!Xf(s,l)||r.hasChildren()||!KC(s,l,e))}if(t.segments.length===l.length){if(!Xf(t.segments,l)||!KC(t.segments,l,e))return!1;for(const s in r.children)if(!t.children[s]||!W3(t.children[s],r.children[s],e))return!1;return!0}{const s=l.slice(0,t.segments.length),u=l.slice(t.segments.length);return!!(Xf(t.segments,s)&&KC(t.segments,s,e)&&t.children[sn])&&$3(t.children[sn],r,u,e)}}function KC(t,r,l){return r.every((e,s)=>U3[l](t[s].parameters,e.parameters))}class Zf{constructor(r=new ci([],{}),l={},e=null){this.root=r,this.queryParams=l,this.fragment=e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ig(this.queryParams)),this._queryParamMap}toString(){return BW.serialize(this)}}class ci{constructor(r,l){this.segments=r,this.children=l,this.parent=null,Object.values(l).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return QC(this)}}class Jy{constructor(r,l){this.path=r,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Ig(this.parameters)),this._parameterMap}toString(){return Z3(this)}}function Xf(t,r){return t.length===r.length&&t.every((l,e)=>l.path===r[e].path)}let kg=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>new eb,providedIn:"root"}),r})();class eb{parse(r){const l=new $W(r);return new Zf(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(r){const l=`/${tb(r.root,!0)}`,e=function HW(t){const r=Object.entries(t).map(([l,e])=>Array.isArray(e)?e.map(s=>`${JC(l)}=${JC(s)}`).join("&"):`${JC(l)}=${JC(e)}`).filter(l=>l);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${l}${e}${"string"==typeof r.fragment?`#${function Ou(t){return encodeURI(t)}(r.fragment)}`:""}`}}const BW=new eb;function QC(t){return t.segments.map(r=>Z3(r)).join("/")}function tb(t,r){if(!t.hasChildren())return QC(t);if(r){const l=t.children[sn]?tb(t.children[sn],!1):"",e=[];return Object.entries(t.children).forEach(([s,u])=>{s!==sn&&e.push(`${s}:${tb(u,!1)}`)}),e.length>0?`${l}(${e.join("//")})`:l}{const l=function VW(t,r){let l=[];return Object.entries(t.children).forEach(([e,s])=>{e===sn&&(l=l.concat(r(s,e)))}),Object.entries(t.children).forEach(([e,s])=>{e!==sn&&(l=l.concat(r(s,e)))}),l}(t,(e,s)=>s===sn?[tb(t.children[sn],!1)]:[`${s}:${tb(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[sn]?`${QC(t)}/${l[0]}`:`${QC(t)}/(${l.join("//")})`}}function Y3(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function JC(t){return Y3(t).replace(/%3B/gi,";")}function Pg(t){return Y3(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dl(t){return decodeURIComponent(t)}function q3(t){return dl(t.replace(/\+/g,"%20"))}function Z3(t){return`${Pg(t.path)}${function zW(t){return Object.entries(t).map(([r,l])=>`;${Pg(r)}=${Pg(l)}`).join("")}(t.parameters)}`}const X3=/^[^\/()?;#]+/;function e1(t){const r=t.match(X3);return r?r[0]:""}const UW=/^[^\/()?;=#]+/,GW=/^[^=?&#]+/,K3=/^[^&#]+/;class $W{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ci([],{}):new ci([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(r.length>0||Object.keys(l).length>0)&&(e[sn]=new ci(r,l)),e}parseSegment(){const r=e1(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new be(4009,!1);return this.capture(r),new Jy(dl(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const l=function jW(t){const r=t.match(UW);return r?r[0]:""}(this.remaining);if(!l)return;this.capture(l);let e="";if(this.consumeOptional("=")){const s=e1(this.remaining);s&&(e=s,this.capture(e))}r[dl(l)]=dl(e)}parseQueryParam(r){const l=function WW(t){const r=t.match(GW);return r?r[0]:""}(this.remaining);if(!l)return;this.capture(l);let e="";if(this.consumeOptional("=")){const m=function Q3(t){const r=t.match(K3);return r?r[0]:""}(this.remaining);m&&(e=m,this.capture(e))}const s=q3(l),u=q3(e);if(r.hasOwnProperty(s)){let m=r[s];Array.isArray(m)||(m=[m],r[s]=m),m.push(u)}else r[s]=u}parseParens(r){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const e=e1(this.remaining),s=this.remaining[e.length];if("/"!==s&&")"!==s&&";"!==s)throw new be(4010,!1);let u;e.indexOf(":")>-1?(u=e.slice(0,e.indexOf(":")),this.capture(u),this.capture(":")):r&&(u=sn);const m=this.parseChildren();l[u]=1===Object.keys(m).length?m[sn]:new ci([],m),this.consumeOptional("//")}return l}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new be(4011,!1)}}function J3(t){return t.segments.length>0?new ci([],{[sn]:t}):t}function Rg(t){const r={};for(const[e,s]of Object.entries(t.children)){const u=Rg(s);if(e===sn&&0===u.segments.length&&u.hasChildren())for(const[m,b]of Object.entries(u.children))r[m]=b;else(u.segments.length>0||u.hasChildren())&&(r[e]=u)}return function YW(t){if(1===t.numberOfChildren&&t.children[sn]){const r=t.children[sn];return new ci(t.segments.concat(r.segments),r.children)}return t}(new ci(t.segments,r))}function Kf(t){return t instanceof Zf}function eB(t){let r;const s=J3(function l(u){const m={};for(const C of u.children){const M=l(C);m[C.outlet]=M}const b=new ci(u.url,m);return u===t&&(r=b),b}(t.root));return r??s}function tB(t,r,l,e){let s=t;for(;s.parent;)s=s.parent;if(0===r.length)return II(s,s,s,l,e);const u=function ZW(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iB(!0,0,t);let r=0,l=!1;const e=t.reduce((s,u,m)=>{if("object"==typeof u&&null!=u){if(u.outlets){const b={};return Object.entries(u.outlets).forEach(([C,M])=>{b[C]="string"==typeof M?M.split("/"):M}),[...s,{outlets:b}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===m?(u.split("/").forEach((b,C)=>{0==C&&"."===b||(0==C&&""===b?l=!0:".."===b?r++:""!=b&&s.push(b))}),s):[...s,u]},[]);return new iB(l,r,e)}(r);if(u.toRoot())return II(s,s,new ci([],{}),l,e);const m=function rB(t,r,l){if(t.isAbsolute)return new Og(r,!0,0);if(!l)return new Og(r,!1,NaN);if(null===l.parent)return new Og(l,!0,0);const e=t1(t.commands[0])?0:1;return function kI(t,r,l){let e=t,s=r,u=l;for(;u>s;){if(u-=s,e=e.parent,!e)throw new be(4005,!1);s=e.segments.length}return new Og(e,!1,s-u)}(l,l.segments.length-1+e,t.numberOfDoubleDots)}(u,s,t),b=m.processChildren?Qf(m.segmentGroup,m.index,u.commands):aB(m.segmentGroup,m.index,u.commands);return II(s,m.segmentGroup,b,l,e)}function t1(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nb(t){return"object"==typeof t&&null!=t&&t.outlets}function II(t,r,l,e,s){let m,u={};e&&Object.entries(e).forEach(([C,M])=>{u[C]=Array.isArray(M)?M.map(I=>`${I}`):`${M}`}),m=t===r?l:nB(t,r,l);const b=J3(Rg(m));return new Zf(b,u,s)}function nB(t,r,l){const e={};return Object.entries(t.children).forEach(([s,u])=>{e[s]=u===r?l:nB(u,r,l)}),new ci(t.segments,e)}class iB{constructor(r,l,e){if(this.isAbsolute=r,this.numberOfDoubleDots=l,this.commands=e,r&&e.length>0&&t1(e[0]))throw new be(4003,!1);const s=e.find(nb);if(s&&s!==e.at(-1))throw new be(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Og{constructor(r,l,e){this.segmentGroup=r,this.processChildren=l,this.index=e}}function aB(t,r,l){if(t||(t=new ci([],{})),0===t.segments.length&&t.hasChildren())return Qf(t,r,l);const e=function oB(t,r,l){let e=0,s=r;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=l.length)return u;const m=t.segments[s],b=l[e];if(nb(b))break;const C=`${b}`,M=e0&&void 0===C)break;if(C&&M&&"object"==typeof M&&void 0===M.outlets){if(!sB(C,M,m))return u;e+=2}else{if(!sB(C,{},m))return u;e++}s++}return{match:!0,pathIndex:s,commandIndex:e}}(t,r,l),s=l.slice(e.commandIndex);if(e.match&&e.pathIndexu!==sn)&&t.children[sn]&&1===t.numberOfChildren&&0===t.children[sn].segments.length){const u=Qf(t.children[sn],r,l);return new ci(t.segments,u.children)}return Object.entries(e).forEach(([u,m])=>{"string"==typeof m&&(m=[m]),null!==m&&(s[u]=aB(t.children[u],r,m))}),Object.entries(t.children).forEach(([u,m])=>{void 0===e[u]&&(s[u]=m)}),new ci(t.segments,s)}}function ib(t,r,l){const e=t.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[l]=ib(new ci([],{}),0,e))}),r}function PI(t){const r={};return Object.entries(t).forEach(([l,e])=>r[l]=`${e}`),r}function sB(t,r,l){return t==l.path&&pc(r,l.parameters)}const rb="imperative";class mc{constructor(r,l){this.id=r,this.url=l}}class n1 extends mc{constructor(r,l,e="imperative",s=null){super(r,l),this.type=0,this.navigationTrigger=e,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fd extends mc{constructor(r,l,e){super(r,l),this.urlAfterRedirects=e,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lg extends mc{constructor(r,l,e,s){super(r,l),this.reason=e,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fg extends mc{constructor(r,l,e,s){super(r,l),this.reason=e,this.code=s,this.type=16}}class r1 extends mc{constructor(r,l,e,s){super(r,l),this.error=e,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lB extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QW extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cB extends mc{constructor(r,l,e,s,u){super(r,l),this.urlAfterRedirects=e,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JW extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class e9 extends mc{constructor(r,l,e,s){super(r,l),this.urlAfterRedirects=e,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class t9{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class dB{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class n9{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class i9{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class r9{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a9{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uB{constructor(r,l,e){this.routerEvent=r,this.position=l,this.anchor=e,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class RI{}class OI{constructor(r){this.url=r}}class hB{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ab,this.attachRef=null}}let ab=(()=>{var t;class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,s){const u=this.getOrCreateContext(e);u.outlet=s,this.contexts.set(e,u)}onChildOutletDestroyed(e){const s=this.getContext(e);s&&(s.outlet=null,s.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let s=this.getContext(e);return s||(s=new hB,this.contexts.set(e,s)),s}getContext(e){return this.contexts.get(e)||null}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class LI{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const l=this.pathFromRoot(r);return l.length>1?l[l.length-2]:null}children(r){const l=FI(r,this._root);return l?l.children.map(e=>e.value):[]}firstChild(r){const l=FI(r,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(r){const l=NI(r,this._root);return l.length<2?[]:l[l.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return NI(r,this._root).map(l=>l.value)}}function FI(t,r){if(t===r.value)return r;for(const l of r.children){const e=FI(t,l);if(e)return e}return null}function NI(t,r){if(t===r.value)return[r];for(const l of r.children){const e=NI(t,l);if(e.length)return e.unshift(r),e}return[]}class ul{constructor(r,l){this.value=r,this.children=l}toString(){return`TreeNode(${this.value})`}}function Ng(t){const r={};return t&&t.children.forEach(l=>r[l.value.outlet]=l),r}class fB extends LI{constructor(r,l){super(r),this.snapshot=l,zI(this,r)}toString(){return this.snapshot.toString()}}function pB(t){const r=function o9(t){const u=new BI([],{},{},"",{},sn,t,null,{});return new mB("",new ul(u,[]))}(t),l=new ye([new Jy("",{})]),e=new ye({}),s=new ye({}),u=new ye({}),m=new ye(""),b=new Wn(l,e,u,m,s,sn,t,r.root);return b.snapshot=r.root,new fB(new ul(b,[]),r)}class Wn{constructor(r,l,e,s,u,m,b,C){var M;this.urlSubject=r,this.paramsSubject=l,this.queryParamsSubject=e,this.fragmentSubject=s,this.dataSubject=u,this.outlet=m,this.component=b,this._futureSnapshot=C,this.title=(null==(M=this.dataSubject)?void 0:M.pipe(Ee(I=>I[Qy])))??tt(void 0),this.url=r,this.params=l,this.queryParams=e,this.fragment=s,this.data=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ee(r=>Ig(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ee(r=>Ig(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function VI(t,r,l="emptyOnly"){var u;let e;const{routeConfig:s}=t;return e=null===r||"always"!==l&&""!==(null==s?void 0:s.path)&&(r.component||null!=(u=r.routeConfig)&&u.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...r.params,...t.params},data:{...r.data,...t.data},resolve:{...t.data,...r.data,...null==s?void 0:s.data,...t._resolvedData}},s&&ob(s)&&(e.resolve[Qy]=s.title),e}class BI{get title(){var r;return null==(r=this.data)?void 0:r[Qy]}constructor(r,l,e,s,u,m,b,C,M){this.url=r,this.params=l,this.queryParams=e,this.fragment=s,this.data=u,this.outlet=m,this.component=b,this.routeConfig=C,this._resolve=M}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ig(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ig(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mB extends LI{constructor(r,l){super(l),this.url=r,zI(this,l)}toString(){return HI(this._root)}}function zI(t,r){r.value._routerState=t,r.children.forEach(l=>zI(t,l))}function HI(t){const r=t.children.length>0?` { ${t.children.map(HI).join(", ")} } `:"";return`${t.value}${r}`}function UI(t){if(t.snapshot){const r=t.snapshot,l=t._futureSnapshot;t.snapshot=l,pc(r.queryParams,l.queryParams)||t.queryParamsSubject.next(l.queryParams),r.fragment!==l.fragment&&t.fragmentSubject.next(l.fragment),pc(r.params,l.params)||t.paramsSubject.next(l.params),function RW(t,r){if(t.length!==r.length)return!1;for(let l=0;lpc(l.parameters,r[e].parameters))}(t.url,r.url);return l&&!(!t.parent!=!r.parent)&&(!t.parent||jI(t.parent,r.parent))}function ob(t){return"string"==typeof t.title||null===t.title}let GI=(()=>{var t;class r{constructor(){this.activated=null,this._activatedRoute=null,this.name=sn,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=De(ab),this.location=De(fi),this.changeDetector=De(dn),this.environmentInjector=De(bo),this.inputBinder=De(a1,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:s,previousValue:u}=e.name;if(s)return;this.isTrackedInParentContexts(u)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(u)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null==(e=this.inputBinder)||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var s;return(null==(s=this.parentContexts.getContext(e))?void 0:s.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);null!=e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new be(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new be(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new be(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,s){var u;this.activated=e,this._activatedRoute=s,this.location.insert(e.hostView),null==(u=this.inputBinder)||u.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,s){var I;if(this.isActivated)throw new be(4013,!1);this._activatedRoute=e;const u=this.location,b=e.snapshot.component,C=this.parentContexts.getOrCreateContext(this.name).children,M=new s9(e,C,u.injector);this.activated=u.createComponent(b,{index:u.length,injector:M,environmentInjector:s??this.environmentInjector}),this.changeDetector.markForCheck(),null==(I=this.inputBinder)||I.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nn]}),r})();class s9{constructor(r,l,e){this.route=r,this.childContexts=l,this.parent=e}get(r,l){return r===Wn?this.route:r===ab?this.childContexts:this.parent.get(r,l)}}const a1=new ve("");let gB=(()=>{var t;class r{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var s;null==(s=this.outletDataSubscriptions.get(e))||s.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:s}=e,u=Pu([s.queryParams,s.params,s.data]).pipe(Li(([m,b,C],M)=>(C={...m,...b,...C},0===M?tt(C):Promise.resolve(C)))).subscribe(m=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==s||null===s.component)return void this.unsubscribeFromRouteData(e);const b=function WG(t){const r=hn(t);if(!r)return null;const l=new xm(r);return{get selector(){return l.selector},get type(){return l.componentType},get inputs(){return l.inputs},get outputs(){return l.outputs},get ngContentSelectors(){return l.ngContentSelectors},get isStandalone(){return r.standalone},get isSignal(){return r.signals}}}(s.component);if(b)for(const{templateName:C}of b.inputs)e.activatedComponentRef.setInput(C,m[C]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,u)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function sb(t,r,l){if(l&&t.shouldReuseRoute(r.value,l.value.snapshot)){const e=l.value;e._futureSnapshot=r.value;const s=function c9(t,r,l){return r.children.map(e=>{for(const s of l.children)if(t.shouldReuseRoute(e.value,s.value.snapshot))return sb(t,e,s);return sb(t,e)})}(t,r,l);return new ul(e,s)}{if(t.shouldAttach(r.value)){const u=t.retrieve(r.value);if(null!==u){const m=u.route;return m.value._futureSnapshot=r.value,m.children=r.children.map(b=>sb(t,b)),m}}const e=function d9(t){return new Wn(new ye(t.url),new ye(t.params),new ye(t.queryParams),new ye(t.fragment),new ye(t.data),t.outlet,t.component,t)}(r.value),s=r.children.map(u=>sb(t,u));return new ul(e,s)}}const o1="ngNavigationCancelingError";function vB(t,r){const{redirectTo:l,navigationBehaviorOptions:e}=Kf(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,s=_B(!1,0,r);return s.url=l,s.navigationBehaviorOptions=e,s}function _B(t,r,l){const e=new Error("NavigationCancelingError: "+(t||""));return e[o1]=!0,e.cancellationCode=r,l&&(e.url=l),e}function yB(t){return t&&t[o1]}let bB=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["ng-component"]],standalone:!0,features:[wf],decls:1,vars:0,template:function(e,s){1&e&&pe(0,"router-outlet")},dependencies:[GI],encapsulation:2}),r})();function WI(t){const r=t.children&&t.children.map(WI),l=r?{...t,children:r}:{...t};return!l.component&&!l.loadComponent&&(r||l.loadChildren)&&l.outlet&&l.outlet!==sn&&(l.component=bB),l}function hl(t){return t.outlet||sn}function Vg(t){var r;if(!t)return null;if(null!=(r=t.routeConfig)&&r._injector)return t.routeConfig._injector;for(let l=t.parent;l;l=l.parent){const e=l.routeConfig;if(null!=e&&e._loadedInjector)return e._loadedInjector;if(null!=e&&e._injector)return e._injector}return null}class DB{constructor(r,l,e,s,u){this.routeReuseStrategy=r,this.futureState=l,this.currState=e,this.forwardEvent=s,this.inputBindingEnabled=u}activate(r){const l=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,e,r),UI(this.futureState.root),this.activateChildRoutes(l,e,r)}deactivateChildRoutes(r,l,e){const s=Ng(l);r.children.forEach(u=>{const m=u.value.outlet;this.deactivateRoutes(u,s[m],e),delete s[m]}),Object.values(s).forEach(u=>{this.deactivateRouteAndItsChildren(u,e)})}deactivateRoutes(r,l,e){const s=r.value,u=l?l.value:null;if(s===u)if(s.component){const m=e.getContext(s.outlet);m&&this.deactivateChildRoutes(r,l,m.children)}else this.deactivateChildRoutes(r,l,e);else u&&this.deactivateRouteAndItsChildren(l,e)}deactivateRouteAndItsChildren(r,l){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,l):this.deactivateRouteAndOutlet(r,l)}detachAndStoreRouteSubtree(r,l){const e=l.getContext(r.value.outlet),s=e&&r.value.component?e.children:l,u=Ng(r);for(const m of Object.values(u))this.deactivateRouteAndItsChildren(m,s);if(e&&e.outlet){const m=e.outlet.detach(),b=e.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:m,route:r,contexts:b})}}deactivateRouteAndOutlet(r,l){const e=l.getContext(r.value.outlet),s=e&&r.value.component?e.children:l,u=Ng(r);for(const m of Object.values(u))this.deactivateRouteAndItsChildren(m,s);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(r,l,e){const s=Ng(l);r.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],e),this.forwardEvent(new a9(u.value.snapshot))}),r.children.length&&this.forwardEvent(new i9(r.value.snapshot))}activateRoutes(r,l,e){const s=r.value,u=l?l.value:null;if(UI(s),s===u)if(s.component){const m=e.getOrCreateContext(s.outlet);this.activateChildRoutes(r,l,m.children)}else this.activateChildRoutes(r,l,e);else if(s.component){const m=e.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const b=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),m.children.onOutletReAttached(b.contexts),m.attachRef=b.componentRef,m.route=b.route.value,m.outlet&&m.outlet.attach(b.componentRef,b.route.value),UI(b.route.value),this.activateChildRoutes(r,null,m.children)}else{const b=Vg(s.snapshot);m.attachRef=null,m.route=s,m.injector=b,m.outlet&&m.outlet.activateWith(s,m.injector),this.activateChildRoutes(r,null,m.children)}}else this.activateChildRoutes(r,null,e)}}class TB{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class s1{constructor(r,l){this.component=r,this.route=l}}function MB(t,r,l){const e=t._root;return Bg(e,r?r._root:null,l,[e.value])}function Jf(t,r){const l=Symbol(),e=r.get(t,l);return e===l?"function"!=typeof t||function gX(t){return null!==GS(t)}(t)?r.get(t):t:e}function Bg(t,r,l,e,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=Ng(r);return t.children.forEach(m=>{(function $I(t,r,l,e,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=t.value,m=r?r.value:null,b=l?l.getContext(t.value.outlet):null;if(m&&u.routeConfig===m.routeConfig){const C=function zg(t,r,l){if("function"==typeof l)return l(t,r);switch(l){case"pathParamsChange":return!Xf(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Xf(t.url,r.url)||!pc(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jI(t,r)||!pc(t.queryParams,r.queryParams);default:return!jI(t,r)}}(m,u,u.routeConfig.runGuardsAndResolvers);C?s.canActivateChecks.push(new TB(e)):(u.data=m.data,u._resolvedData=m._resolvedData),Bg(t,r,u.component?b?b.children:null:l,e,s),C&&b&&b.outlet&&b.outlet.isActivated&&s.canDeactivateChecks.push(new s1(b.outlet.component,m))}else m&&Hg(r,b,s),s.canActivateChecks.push(new TB(e)),Bg(t,null,u.component?b?b.children:null:l,e,s)})(m,u[m.value.outlet],l,e.concat([m.value]),s),delete u[m.value.outlet]}),Object.entries(u).forEach(([m,b])=>Hg(b,l.getContext(m),s)),s}function Hg(t,r,l){const e=Ng(t),s=t.value;Object.entries(e).forEach(([u,m])=>{Hg(m,s.component?r?r.children.getContext(u):null:r,l)}),l.canDeactivateChecks.push(new s1(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}function Ug(t){return"function"==typeof t}function AB(t){return t instanceof Tg||"EmptyError"===(null==t?void 0:t.name)}const l1=Symbol("INITIAL_VALUE");function jg(){return Li(t=>Pu(t.map(r=>r.pipe(In(1),pr(l1)))).pipe(Ee(r=>{for(const l of r)if(!0!==l){if(l===l1)return l1;if(!1===l||l instanceof Zf)return l}return!0}),bn(r=>r!==l1),In(1)))}function PB(t){return function G(...t){return Se(t)}(Fi(r=>{if(Kf(r))throw vB(0,r)}),Ee(r=>!0===r))}class ZI{constructor(r){this.segmentGroup=r||null}}class XI extends Error{constructor(r){super(),this.urlTree=r}}function Gg(t){return Eg(new ZI(t))}class O9{constructor(r,l){this.urlSerializer=r,this.urlTree=l}lineralizeSegments(r,l){let e=[],s=l.root;for(;;){if(e=e.concat(s.segments),0===s.numberOfChildren)return tt(e);if(s.numberOfChildren>1||!s.children[sn])return Eg(new be(4e3,!1));s=s.children[sn]}}applyRedirectCommands(r,l,e){const s=this.applyRedirectCreateUrlTree(l,this.urlSerializer.parse(l),r,e);if(l.startsWith("/"))throw new XI(s);return s}applyRedirectCreateUrlTree(r,l,e,s){const u=this.createSegmentGroup(r,l.root,e,s);return new Zf(u,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(r,l){const e={};return Object.entries(r).forEach(([s,u])=>{if("string"==typeof u&&u.startsWith(":")){const b=u.substring(1);e[s]=l[b]}else e[s]=u}),e}createSegmentGroup(r,l,e,s){const u=this.createSegments(r,l.segments,e,s);let m={};return Object.entries(l.children).forEach(([b,C])=>{m[b]=this.createSegmentGroup(r,C,e,s)}),new ci(u,m)}createSegments(r,l,e,s){return l.map(u=>u.path.startsWith(":")?this.findPosParam(r,u,s):this.findOrReturn(u,e))}findPosParam(r,l,e){const s=e[l.path.substring(1)];if(!s)throw new be(4001,!1);return s}findOrReturn(r,l){let e=0;for(const s of l){if(s.path===r.path)return l.splice(e),s;e++}return r}}const c1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function L9(t,r,l,e,s){const u=KI(t,r,l);return u.matched?(e=function h9(t,r){return t.providers&&!t._injector&&(t._injector=Mx(t.providers,r,`Route: ${t.path}`)),t._injector??r}(r,e),function k9(t,r,l,e){const s=r.canMatch;return s&&0!==s.length?tt(s.map(m=>{const b=Jf(m,t);return hd(function D9(t){return t&&Ug(t.canMatch)}(b)?b.canMatch(r,l):jd(t,()=>b(r,l)))})).pipe(jg(),PB()):tt(!0)}(e,r,l).pipe(Ee(m=>!0===m?u:{...c1}))):tt(u)}function KI(t,r,l){if("**"===r.path)return function F9(t){var r;return{matched:!0,parameters:(null==(r=t.at(-1))?void 0:r.parameters)??{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(l);if(""===r.path)return"full"===r.pathMatch&&(t.hasChildren()||l.length>0)?{...c1}:{matched:!0,consumedSegments:[],remainingSegments:l,parameters:{},positionalParamSegments:{}};const s=(r.matcher||z3)(l,t,r);if(!s)return{...c1};const u={};Object.entries(s.posParams??{}).forEach(([b,C])=>{u[b]=C.path});const m=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:l.slice(s.consumed.length),parameters:m,positionalParamSegments:s.posParams??{}}}function QI(t,r,l,e){return l.length>0&&function V9(t,r,l){return l.some(e=>d1(t,r,e)&&hl(e)!==sn)}(t,l,e)?{segmentGroup:new ci(r,pd(e,new ci(l,t.children))),slicedSegments:[]}:0===l.length&&function B9(t,r,l){return l.some(e=>d1(t,r,e))}(t,l,e)?{segmentGroup:new ci(t.segments,N9(t,l,e,t.children)),slicedSegments:l}:{segmentGroup:new ci(t.segments,t.children),slicedSegments:l}}function N9(t,r,l,e){const s={};for(const u of l)if(d1(t,r,u)&&!e[hl(u)]){const m=new ci([],{});s[hl(u)]=m}return{...e,...s}}function pd(t,r){const l={};l[sn]=r;for(const e of t)if(""===e.path&&hl(e)!==sn){const s=new ci([],{});l[hl(e)]=s}return l}function d1(t,r,l){return(!(t.hasChildren()||r.length>0)||"full"!==l.pathMatch)&&""===l.path}class U9{}class W9{constructor(r,l,e,s,u,m,b){this.injector=r,this.configLoader=l,this.rootComponentType=e,this.config=s,this.urlTree=u,this.paramsInheritanceStrategy=m,this.urlSerializer=b,this.applyRedirects=new O9(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new be(4002,`'${r.segmentGroup}'`)}recognize(){const r=QI(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(Ee(l=>{const e=new BI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},sn,this.rootComponentType,null,{}),s=new ul(e,l),u=new mB("",s),m=function qW(t,r,l=null,e=null){return tB(eB(t),r,l,e)}(e,[],this.urlTree.queryParams,this.urlTree.fragment);return m.queryParams=this.urlTree.queryParams,u.url=this.urlSerializer.serialize(m),this.inheritParamsAndData(u._root,null),{state:u,tree:m}}))}match(r){return this.processSegmentGroup(this.injector,this.config,r,sn).pipe(Eo(e=>{if(e instanceof XI)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof ZI?this.noMatchError(e):e}))}inheritParamsAndData(r,l){const e=r.value,s=VI(e,l,this.paramsInheritanceStrategy);e.params=Object.freeze(s.params),e.data=Object.freeze(s.data),r.children.forEach(u=>this.inheritParamsAndData(u,e))}processSegmentGroup(r,l,e,s){return 0===e.segments.length&&e.hasChildren()?this.processChildren(r,l,e):this.processSegment(r,l,e,e.segments,s,!0).pipe(Ee(u=>u instanceof ul?[u]:[]))}processChildren(r,l,e){const s=[];for(const u of Object.keys(e.children))"primary"===u?s.unshift(u):s.push(u);return nr(s).pipe(Cg(u=>{const m=e.children[u],b=function CB(t,r){const l=t.filter(e=>hl(e)===r);return l.push(...t.filter(e=>hl(e)!==r)),l}(l,u);return this.processSegmentGroup(r,b,m,u)}),function IW(t,r){return Ae(function MI(t,r,l,e,s){return(u,m)=>{let b=l,C=r,M=0;u.subscribe(Bn(m,I=>{const F=M++;C=b?t(C,I,F):(b=!0,I),e&&m.next(C)},s&&(()=>{b&&m.next(C),m.complete()})))}}(t,r,arguments.length>=2,!0))}((u,m)=>(u.push(...m),u)),qf(null),function kW(t,r){const l=arguments.length>=2;return e=>e.pipe(t?bn((s,u)=>t(s,u,e)):ki,AI(1),l?qf(r):DI(()=>new Tg))}(),Gi(u=>{if(null===u)return Gg(e);const m=q9(u);return function $9(t){t.sort((r,l)=>r.value.outlet===sn?-1:l.value.outlet===sn?1:r.value.outlet.localeCompare(l.value.outlet))}(m),tt(m)}))}processSegment(r,l,e,s,u,m){return nr(l).pipe(Cg(b=>this.processSegmentAgainstRoute(b._injector??r,l,b,e,s,u,m).pipe(Eo(C=>{if(C instanceof ZI)return tt(null);throw C}))),Ru(b=>!!b),Eo(b=>{if(AB(b))return function H9(t,r,l){return 0===r.length&&!t.children[l]}(e,s,u)?tt(new U9):Gg(e);throw b}))}processSegmentAgainstRoute(r,l,e,s,u,m,b){return function z9(t,r,l,e){return!!(hl(t)===e||e!==sn&&d1(r,l,t))&&KI(r,t,l).matched}(e,s,u,m)?void 0===e.redirectTo?this.matchSegmentAgainstRoute(r,s,e,u,m):this.allowRedirects&&b?this.expandSegmentAgainstRouteUsingRedirect(r,s,l,e,u,m):Gg(s):Gg(s)}expandSegmentAgainstRouteUsingRedirect(r,l,e,s,u,m){const{matched:b,consumedSegments:C,positionalParamSegments:M,remainingSegments:I}=KI(l,s,u);if(!b)return Gg(l);s.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const F=this.applyRedirects.applyRedirectCommands(C,s.redirectTo,M);return this.applyRedirects.lineralizeSegments(s,F).pipe(Gi(H=>this.processSegment(r,e,l,H.concat(I),m,!1)))}matchSegmentAgainstRoute(r,l,e,s,u){const m=L9(l,e,s,r);return"**"===e.path&&(l.children={}),m.pipe(Li(b=>b.matched?this.getChildConfig(r=e._injector??r,e,s).pipe(Li(({routes:C})=>{const M=e._loadedInjector??r,{consumedSegments:I,remainingSegments:F,parameters:H}=b,q=new BI(I,H,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function OB(t){return t.data||{}}(e),hl(e),e.component??e._loadedComponent??null,e,function LB(t){return t.resolve||{}}(e)),{segmentGroup:Q,slicedSegments:ne}=QI(l,I,F,C);if(0===ne.length&&Q.hasChildren())return this.processChildren(M,C,Q).pipe(Ee(ge=>null===ge?null:new ul(q,ge)));if(0===C.length&&0===ne.length)return tt(new ul(q,[]));const ae=hl(e)===u;return this.processSegment(M,C,Q,ne,ae?sn:u,!0).pipe(Ee(ge=>new ul(q,ge instanceof ul?[ge]:[])))})):Gg(l)))}getChildConfig(r,l,e){return l.children?tt({routes:l.children,injector:r}):l.loadChildren?void 0!==l._loadedRoutes?tt({routes:l._loadedRoutes,injector:l._loadedInjector}):function kB(t,r,l,e){const s=r.canLoad;return void 0===s||0===s.length?tt(!0):tt(s.map(m=>{const b=Jf(m,t);return hd(function w9(t){return t&&Ug(t.canLoad)}(b)?b.canLoad(r,l):jd(t,()=>b(r,l)))})).pipe(jg(),PB())}(r,l,e).pipe(Gi(s=>s?this.configLoader.loadChildren(r,l).pipe(Fi(u=>{l._loadedRoutes=u.routes,l._loadedInjector=u.injector})):function RB(t){return Eg(_B(!1,3))}())):tt({routes:[],injector:r})}}function Y9(t){const r=t.value.routeConfig;return r&&""===r.path}function q9(t){const r=[],l=new Set;for(const e of t){if(!Y9(e)){r.push(e);continue}const s=r.find(u=>e.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...e.children),l.add(s)):r.push(e)}for(const e of l){const s=q9(e.children);r.push(new ul(e.value,s))}return r.filter(e=>!l.has(e))}function X9(t){const r=t.children.map(l=>X9(l)).flat();return[t,...r]}function zB(t){return Li(r=>{const l=t(r);return l?nr(l).pipe(Ee(()=>r)):tt(r)})}let lb=(()=>{var t;class r{buildTitle(e){let s,u=e.root;for(;void 0!==u;)s=this.getResolvedTitleForRoute(u)??s,u=u.children.find(m=>m.outlet===sn);return s}getResolvedTitleForRoute(e){return e.data[Qy]}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(Wg),providedIn:"root"}),r})(),Wg=(()=>{var t;class r extends lb{constructor(e){super(),this.title=e}updateTitle(e){const s=this.buildTitle(e);void 0!==s&&this.title.setTitle(s)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(kC))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const Lu=new ve("",{providedIn:"root",factory:()=>({})}),md=new ve("ROUTES");let u1=(()=>{var t;class r{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=De(uN)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return tt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const s=hd(e.loadComponent()).pipe(Ee(HB),Fi(m=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=m}),Hf(()=>{this.componentLoaders.delete(e)})),u=new SI(s,()=>new he).pipe(XC());return this.componentLoaders.set(e,u),u}loadChildren(e,s){if(this.childrenLoaders.get(s))return this.childrenLoaders.get(s);if(s._loadedRoutes)return tt({routes:s._loadedRoutes,injector:s._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(s);const m=function h1(t,r,l,e){return hd(t.loadChildren()).pipe(Ee(HB),Gi(s=>s instanceof IF||Array.isArray(s)?tt(s):nr(r.compileModuleAsync(s))),Ee(s=>{e&&e(t);let u,m,b=!1;return Array.isArray(s)?(m=s,!0):(u=s.create(l).injector,m=u.get(md,[],{optional:!0,self:!0}).flat()),{routes:m.map(WI),injector:u}}))}(s,this.compiler,e,this.onLoadEndListener).pipe(Hf(()=>{this.childrenLoaders.delete(s)})),b=new SI(m,()=>new he).pipe(XC());return this.childrenLoaders.set(s,b),b}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function HB(t){return function ep(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let JI=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(K9),providedIn:"root"}),r})(),K9=(()=>{var t;class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,s){return e}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const fl=new ve(""),UB=new ve("");function HQ(t,r,l){const e=t.get(UB),s=t.get(yt);return t.get(Ye).runOutsideAngular(()=>{if(!s.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let u;const m=new Promise(M=>{u=M}),b=s.startViewTransition(()=>(u(),function Q9(t){return new Promise(r=>{BO(r,{injector:t})})}(t))),{onViewTransitionCreated:C}=e;return C&&jd(t,()=>C({transition:b,from:r,to:l})),m})}let cb=(()=>{var t;class r{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=De(u1),this.environmentInjector=De(bo),this.urlSerializer=De(kg),this.rootContexts=De(ab),this.location=De(Du),this.inputBindingEnabled=null!==De(a1,{optional:!0}),this.titleStrategy=De(lb),this.options=De(Lu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=De(JI),this.createViewTransition=De(fl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>tt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=u=>this.events.next(new dB(u)),this.configLoader.onLoadStartListener=u=>this.events.next(new t9(u))}complete(){var e;null==(e=this.transitions)||e.complete()}handleNavigationRequest(e){var u;const s=++this.navigationId;null==(u=this.transitions)||u.next({...this.transitions.value,...e,id:s})}setupNavigations(e,s,u){return this.transitions=new ye({id:0,currentUrlTree:s,currentRawUrl:s,extractedUrl:this.urlHandlingStrategy.extract(s),urlAfterRedirects:this.urlHandlingStrategy.extract(s),rawUrl:s,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:rb,restoredState:null,currentSnapshot:u.snapshot,targetSnapshot:null,currentRouterState:u,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(bn(m=>0!==m.id),Ee(m=>({...m,extractedUrl:this.urlHandlingStrategy.extract(m.rawUrl)})),Li(m=>{this.currentTransition=m;let b=!1,C=!1;return tt(m).pipe(Fi(M=>{this.currentNavigation={id:M.id,initialUrl:M.rawUrl,extractedUrl:M.extractedUrl,trigger:M.source,extras:M.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Li(M=>{const I=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!I&&"reload"!==(M.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const H="";return this.events.next(new Fg(M.id,this.urlSerializer.serialize(M.rawUrl),H,0)),M.resolve(null),Ao}if(this.urlHandlingStrategy.shouldProcessUrl(M.rawUrl))return tt(M).pipe(Li(H=>{var Q,ne;const q=null==(Q=this.transitions)?void 0:Q.getValue();return this.events.next(new n1(H.id,this.urlSerializer.serialize(H.extractedUrl),H.source,H.restoredState)),q!==(null==(ne=this.transitions)?void 0:ne.getValue())?Ao:Promise.resolve(H)}),function FB(t,r,l,e,s,u){return Gi(m=>function j9(t,r,l,e,s,u,m="emptyOnly"){return new W9(t,r,l,e,s,m,u).recognize()}(t,r,l,e,m.extractedUrl,s,u).pipe(Ee(({state:b,tree:C})=>({...m,targetSnapshot:b,urlAfterRedirects:C}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Fi(H=>{m.targetSnapshot=H.targetSnapshot,m.urlAfterRedirects=H.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:H.urlAfterRedirects};const q=new lB(H.id,this.urlSerializer.serialize(H.extractedUrl),this.urlSerializer.serialize(H.urlAfterRedirects),H.targetSnapshot);this.events.next(q)}));if(I&&this.urlHandlingStrategy.shouldProcessUrl(M.currentRawUrl)){const{id:H,extractedUrl:q,source:Q,restoredState:ne,extras:ae}=M,ge=new n1(H,this.urlSerializer.serialize(q),Q,ne);this.events.next(ge);const se=pB(this.rootComponentType).snapshot;return this.currentTransition=m={...M,targetSnapshot:se,urlAfterRedirects:q,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=q,tt(m)}{const H="";return this.events.next(new Fg(M.id,this.urlSerializer.serialize(M.extractedUrl),H,1)),M.resolve(null),Ao}}),Fi(M=>{const I=new QW(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects),M.targetSnapshot);this.events.next(I)}),Ee(M=>(this.currentTransition=m={...M,guards:MB(M.targetSnapshot,M.currentSnapshot,this.rootContexts)},m)),function EB(t,r){return Gi(l=>{const{targetSnapshot:e,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:m}}=l;return 0===m.length&&0===u.length?tt({...l,guardsResult:!0}):function T9(t,r,l,e){return nr(t).pipe(Gi(s=>function qI(t,r,l,e,s){const u=r&&r.routeConfig?r.routeConfig.canDeactivate:null;return u&&0!==u.length?tt(u.map(b=>{const C=Vg(r)??s,M=Jf(b,C);return hd(function S9(t){return t&&Ug(t.canDeactivate)}(M)?M.canDeactivate(t,r,l,e):jd(C,()=>M(t,r,l,e))).pipe(Ru())})).pipe(jg()):tt(!0)}(s.component,s.route,l,r,e)),Ru(s=>!0!==s,!0))}(m,e,s,t).pipe(Gi(b=>b&&function b9(t){return"boolean"==typeof t}(b)?function M9(t,r,l,e){return nr(r).pipe(Cg(s=>Yf(function E9(t,r){return null!==t&&r&&r(new n9(t)),tt(!0)}(s.route.parent,e),function A9(t,r){return null!==t&&r&&r(new r9(t)),tt(!0)}(s.route,e),function IB(t,r,l){const e=r[r.length-1],u=r.slice(0,r.length-1).reverse().map(m=>function y9(t){const r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(m)).filter(m=>null!==m).map(m=>Ag(()=>tt(m.guards.map(C=>{const M=Vg(m.node)??l,I=Jf(C,M);return hd(function C9(t){return t&&Ug(t.canActivateChild)}(I)?I.canActivateChild(e,t):jd(M,()=>I(e,t))).pipe(Ru())})).pipe(jg())));return tt(u).pipe(jg())}(t,s.path,l),function I9(t,r,l){const e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return tt(!0);const s=e.map(u=>Ag(()=>{const m=Vg(r)??l,b=Jf(u,m);return hd(function x9(t){return t&&Ug(t.canActivate)}(b)?b.canActivate(r,t):jd(m,()=>b(r,t))).pipe(Ru())}));return tt(s).pipe(jg())}(t,s.route,l))),Ru(s=>!0!==s,!0))}(e,u,t,r):tt(b)),Ee(b=>({...l,guardsResult:b})))})}(this.environmentInjector,M=>this.events.next(M)),Fi(M=>{if(m.guardsResult=M.guardsResult,Kf(M.guardsResult))throw vB(0,M.guardsResult);const I=new cB(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects),M.targetSnapshot,!!M.guardsResult);this.events.next(I)}),bn(M=>!!M.guardsResult||(this.cancelNavigationTransition(M,"",3),!1)),zB(M=>{if(M.guards.canActivateChecks.length)return tt(M).pipe(Fi(I=>{const F=new JW(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(F)}),Li(I=>{let F=!1;return tt(I).pipe(function NB(t,r){return Gi(l=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=l;if(!s.length)return tt(l);const u=new Set(s.map(C=>C.route)),m=new Set;for(const C of u)if(!m.has(C))for(const M of X9(C))m.add(M);let b=0;return nr(m).pipe(Cg(C=>u.has(C)?function VB(t,r,l,e){const s=t.routeConfig,u=t._resolve;return void 0!==(null==s?void 0:s.title)&&!ob(s)&&(u[Qy]=s.title),function BB(t,r,l,e){const s=EI(t);if(0===s.length)return tt({});const u={};return nr(s).pipe(Gi(m=>function zQ(t,r,l,e){const s=Vg(r)??e,u=Jf(t,s);return hd(u.resolve?u.resolve(r,l):jd(s,()=>u(r,l)))}(t[m],r,l,e).pipe(Ru(),Fi(b=>{u[m]=b}))),AI(1),B3(u),Eo(m=>AB(m)?Ao:Eg(m)))}(u,t,r,e).pipe(Ee(m=>(t._resolvedData=m,t.data=VI(t,t.parent,l).resolve,null)))}(C,e,t,r):(C.data=VI(C,C.parent,t).resolve,tt(void 0))),Fi(()=>b++),AI(1),Gi(C=>b===m.size?tt(l):Ao))})}(this.paramsInheritanceStrategy,this.environmentInjector),Fi({next:()=>F=!0,complete:()=>{F||this.cancelNavigationTransition(I,"",2)}}))}),Fi(I=>{const F=new e9(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(F)}))}),zB(M=>{const I=F=>{var q;const H=[];null!=(q=F.routeConfig)&&q.loadComponent&&!F.routeConfig._loadedComponent&&H.push(this.configLoader.loadComponent(F.routeConfig).pipe(Fi(Q=>{F.component=Q}),Ee(()=>{})));for(const Q of F.children)H.push(...I(Q));return H};return Pu(I(M.targetSnapshot.root)).pipe(qf(null),In(1))}),zB(()=>this.afterPreactivation()),Li(()=>{var H;const{currentSnapshot:M,targetSnapshot:I}=m,F=null==(H=this.createViewTransition)?void 0:H.call(this,this.environmentInjector,M.root,I.root);return F?nr(F).pipe(Ee(()=>m)):tt(m)}),Ee(M=>{const I=function l9(t,r,l){const e=sb(t,r._root,l?l._root:void 0);return new fB(e,r)}(e.routeReuseStrategy,M.targetSnapshot,M.currentRouterState);return this.currentTransition=m={...M,targetRouterState:I},this.currentNavigation.targetRouterState=I,m}),Fi(()=>{this.events.next(new RI)}),((t,r,l,e)=>Ee(s=>(new DB(r,s.targetRouterState,s.currentRouterState,l,e).activate(t),s)))(this.rootContexts,e.routeReuseStrategy,M=>this.events.next(M),this.inputBindingEnabled),In(1),Fi({next:M=>{var I;b=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new fd(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects))),null==(I=this.titleStrategy)||I.updateTitle(M.targetRouterState.snapshot),M.resolve(!0)},complete:()=>{b=!0}}),Dt(this.transitionAbortSubject.pipe(Fi(M=>{throw M}))),Hf(()=>{var M;b||C||this.cancelNavigationTransition(m,"",1),(null==(M=this.currentNavigation)?void 0:M.id)===m.id&&(this.currentNavigation=null)}),Eo(M=>{if(C=!0,yB(M))this.events.next(new Lg(m.id,this.urlSerializer.serialize(m.extractedUrl),M.message,M.cancellationCode)),function u9(t){return yB(t)&&Kf(t.url)}(M)?this.events.next(new OI(M.url)):m.resolve(!1);else{this.events.next(new r1(m.id,this.urlSerializer.serialize(m.extractedUrl),M,m.targetSnapshot??void 0));try{m.resolve(e.errorHandler(M))}catch(I){m.reject(I)}}return Ao}))}))}cancelNavigationTransition(e,s,u){const m=new Lg(e.id,this.urlSerializer.serialize(e.extractedUrl),s,u);this.events.next(m),e.resolve(!1)}isUpdatingInternalState(){var e,s;return(null==(e=this.currentTransition)?void 0:e.extractedUrl.toString())!==(null==(s=this.currentTransition)?void 0:s.currentUrlTree.toString())}isUpdatedBrowserUrl(){var s,u;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null==(s=this.currentTransition)?void 0:s.extractedUrl.toString())&&!(null!=(u=this.currentTransition)&&u.extras.skipLocationChange)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function jB(t){return t!==rb}let J9=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(t$),providedIn:"root"}),r})();class e${shouldDetach(r){return!1}store(r,l){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,l){return r.routeConfig===l.routeConfig}}let t$=(()=>{var t;class r extends e${}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),GB=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:()=>De(UQ),providedIn:"root"}),r})(),UQ=(()=>{var t;class r extends GB{constructor(){super(...arguments),this.location=De(Du),this.urlSerializer=De(kg),this.options=De(Lu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=De(JI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zf,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pB(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var e;return"computed"!==this.canceledNavigationResolution?this.currentPageId:(null==(e=this.restoredState())?void 0:e.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(s=>{"popstate"===s.type&&e(s.url,s.state)})}handleRouterEvent(e,s){if(e instanceof n1)this.stateMemento=this.createStateMemento();else if(e instanceof Fg)this.rawUrlTree=s.initialUrl;else if(e instanceof lB){if("eager"===this.urlUpdateStrategy&&!s.extras.skipLocationChange){const u=this.urlHandlingStrategy.merge(s.finalUrl,s.initialUrl);this.setBrowserUrl(u,s)}}else e instanceof RI?(this.currentUrlTree=s.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(s.finalUrl,s.initialUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s))):e instanceof Lg&&(3===e.code||2===e.code)?this.restoreHistory(s):e instanceof r1?this.restoreHistory(s,!0):e instanceof fd&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,s){const u=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(u)||s.extras.replaceUrl){const b={...s.extras.state,...this.generateNgRouterState(s.id,this.browserPageId)};this.location.replaceState(u,"",b)}else{const m={...s.extras.state,...this.generateNgRouterState(s.id,this.browserPageId+1)};this.location.go(u,"",m)}}restoreHistory(e,s=!1){if("computed"===this.canceledNavigationResolution){const m=this.currentPageId-this.browserPageId;0!==m?this.location.historyGo(m):this.currentUrlTree===e.finalUrl&&0===m&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(s&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,s){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:s}:{navigationId:e}}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();var $g=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}($g||{});function WB(t,r){t.events.pipe(bn(l=>l instanceof fd||l instanceof Lg||l instanceof r1||l instanceof Fg),Ee(l=>l instanceof fd||l instanceof Fg?$g.COMPLETE:l instanceof Lg&&(0===l.code||1===l.code)?$g.REDIRECTING:$g.FAILED),bn(l=>l!==$g.REDIRECTING),In(1)).subscribe(()=>{r()})}function $B(t){throw t}const f1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xr=(()=>{var t;class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var e;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=De(dN),this.stateManager=De(GB),this.options=De(Lu,{optional:!0})||{},this.pendingTasks=De(Df),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=De(cb),this.urlSerializer=De(kg),this.location=De(Du),this.urlHandlingStrategy=De(JI),this._events=new he,this.errorHandler=this.options.errorHandler||$B,this.navigated=!1,this.routeReuseStrategy=De(J9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(null==(e=De(md,{optional:!0}))?void 0:e.flat())??[],this.componentInputBindingEnabled=!!De(a1,{optional:!0}),this.eventsSubscription=new bt,this.isNgZoneEnabled=De(Ye)instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:s=>{this.console.warn(s)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(s=>{try{const u=this.navigationTransitions.currentTransition,m=this.navigationTransitions.currentNavigation;if(null!==u&&null!==m)if(this.stateManager.handleRouterEvent(s,m),s instanceof Lg&&0!==s.code&&1!==s.code)this.navigated=!0;else if(s instanceof fd)this.navigated=!0;else if(s instanceof OI){const b=this.urlHandlingStrategy.merge(s.url,u.currentRawUrl),C={skipLocationChange:u.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jB(u.source)};this.scheduleNavigation(b,rb,null,C,{resolve:u.resolve,reject:u.reject,promise:u.promise})}(function tk(t){return!(t instanceof RI||t instanceof OI)})(s)&&this._events.next(s)}catch(u){this.navigationTransitions.transitionAbortSubject.next(u)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),rb,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,s)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",s)},0)}))}navigateToSyncWithBrowser(e,s,u){const m={replaceUrl:!0},b=null!=u&&u.navigationId?u:null;if(u){const M={...u};delete M.navigationId,delete M.\u0275routerPageId,0!==Object.keys(M).length&&(m.state=M)}const C=this.parseUrl(e);this.scheduleNavigation(C,s,b,m)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(WI),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,s={}){const{relativeTo:u,queryParams:m,fragment:b,queryParamsHandling:C,preserveFragment:M}=s,I=M?this.currentUrlTree.fragment:b;let H,F=null;switch(C){case"merge":F={...this.currentUrlTree.queryParams,...m};break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=m||null}null!==F&&(F=this.removeEmptyProps(F));try{H=eB(u?u.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),H=this.currentUrlTree.root}return tB(H,e,F,I??null)}navigateByUrl(e,s={skipLocationChange:!1}){const u=Kf(e)?e:this.parseUrl(e),m=this.urlHandlingStrategy.merge(u,this.rawUrlTree);return this.scheduleNavigation(m,rb,null,s)}navigate(e,s={skipLocationChange:!1}){return function ek(t){for(let r=0;r(null!=m&&(s[u]=m),s),{})}scheduleNavigation(e,s,u,m,b){if(this.disposed)return Promise.resolve(!1);let C,M,I;b?(C=b.resolve,M=b.reject,I=b.promise):I=new Promise((H,q)=>{C=H,M=q});const F=this.pendingTasks.add();return WB(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(F))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:u,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:m,resolve:C,reject:M,promise:I,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I.catch(H=>Promise.reject(H))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mr=(()=>{var t;class r{constructor(e,s,u,m,b,C){var I;this.router=e,this.route=s,this.tabIndexAttribute=u,this.renderer=m,this.el=b,this.locationStrategy=C,this.href=null,this.commands=null,this.onChanges=new he,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const M=null==(I=b.nativeElement.tagName)?void 0:I.toLowerCase();this.isAnchorElement="a"===M||"area"===M,this.isAnchorElement?this.subscription=e.events.subscribe(F=>{F instanceof fd&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,s,u,m,b){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||s||u||m||b||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){var e;null==(e=this.subscription)||e.unsubscribe()}updateHref(){var s;this.href=null!==this.urlTree&&this.locationStrategy?null==(s=this.locationStrategy)?void 0:s.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function K2(t,r,l){return function X2(t,r){return"src"===r&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===r&&("base"===t||"link"===t)?hw:Ut}(r,l)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,s){const u=this.renderer,m=this.el.nativeElement;null!==s?u.setAttribute(m,e,s):u.removeAttribute(m,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xr),V(Wn),Ie("tabindex"),V(ec),V(je),V(Of))},t.\u0275dir=ce({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,s){1&e&&J("click",function(m){return s.onClick(m.button,m.ctrlKey,m.shiftKey,m.altKey,m.metaKey)}),2&e&&$e("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",jt],skipLocationChange:["skipLocationChange","skipLocationChange",jt],replaceUrl:["replaceUrl","replaceUrl",jt],routerLink:"routerLink"},standalone:!0,features:[na,nn]}),r})();class YB{}let n$=(()=>{var t;class r{constructor(e,s,u,m,b){this.router=e,this.injector=u,this.preloadingStrategy=m,this.loader=b}setUpPreloading(){this.subscription=this.router.events.pipe(bn(e=>e instanceof fd),Cg(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,s){const u=[];for(const m of s){m.providers&&!m._injector&&(m._injector=Mx(m.providers,e,`Route: ${m.path}`));const b=m._injector??e,C=m._loadedInjector??b;(m.loadChildren&&!m._loadedRoutes&&void 0===m.canLoad||m.loadComponent&&!m._loadedComponent)&&u.push(this.preloadConfig(b,m)),(m.children||m._loadedRoutes)&&u.push(this.processRoutes(C,m.children??m._loadedRoutes))}return nr(u).pipe(Mg())}preloadConfig(e,s){return this.preloadingStrategy.preload(s,()=>{let u;u=s.loadChildren&&void 0===s.canLoad?this.loader.loadChildren(e,s):tt(null);const m=u.pipe(Gi(b=>null===b?tt(void 0):(s._loadedRoutes=b.routes,s._loadedInjector=b.injector,this.processRoutes(b.injector??e,b.routes))));return s.loadComponent&&!s._loadedComponent?nr([m,this.loader.loadComponent(s)]).pipe(Mg()):m})}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Xr),fe(uN),fe(bo),fe(YB),fe(u1))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const db=new ve("");let p1=(()=>{var t;class r{constructor(e,s,u,m,b={}){this.urlSerializer=e,this.transitions=s,this.viewportScroller=u,this.zone=m,this.options=b,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},b.scrollPositionRestoration=b.scrollPositionRestoration||"disabled",b.anchorScrolling=b.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof n1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fd?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Fg&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof uB&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,s){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new uB(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,s))})},0)})}ngOnDestroy(){var e,s;null==(e=this.routerEventsSubscription)||e.unsubscribe(),null==(s=this.scrollEventsSubscription)||s.unsubscribe()}}return(t=r).\u0275fac=function(e){gm()},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();function gc(t,r){return{\u0275kind:t,\u0275providers:r}}function XB(){const t=De(mn);return r=>{var u,m;const l=t.get(ol);if(r!==l.components[0])return;const e=t.get(Xr),s=t.get(ak);1===t.get(ok)&&e.initialNavigation(),null==(u=t.get(KB,null,Yt.Optional))||u.setUpPreloading(),null==(m=t.get(db,null,Yt.Optional))||m.init(),e.resetRootComponentType(l.componentTypes[0]),s.closed||(s.next(),s.complete(),s.unsubscribe())}}const ak=new ve("",{factory:()=>new he}),ok=new ve("",{providedIn:"root",factory:()=>1}),KB=new ve("");function a$(t){return gc(0,[{provide:KB,useExisting:n$},{provide:YB,useExisting:t}])}function l$(t){return gc(9,[{provide:fl,useValue:HQ},{provide:UB,useValue:{skipNextTransition:!(null==t||!t.skipInitialTransition),...t}}])}const dk=new ve("ROUTER_FORROOT_GUARD"),JB=[Du,{provide:kg,useClass:eb},Xr,ab,{provide:Wn,useFactory:function qB(t){return t.routerState.root},deps:[Xr]},u1,[]];let e5=(()=>{var t;class r{constructor(e){}static forRoot(e,s){return{ngModule:r,providers:[JB,[],{provide:md,multi:!0,useValue:e},{provide:dk,useFactory:tp,deps:[[Xr,new Pa,new Wl]]},{provide:Lu,useValue:s||{}},null!=s&&s.useHash?{provide:Of,useClass:QG}:{provide:Of,useClass:ZN},{provide:db,useFactory:()=>{const t=De(yV),r=De(Ye),l=De(Lu),e=De(cb),s=De(kg);return l.scrollOffset&&t.setOffset(l.scrollOffset),new p1(s,e,t,r,l)}},null!=s&&s.preloadingStrategy?a$(s.preloadingStrategy).\u0275providers:[],null!=s&&s.initialNavigation?n5(s):[],null!=s&&s.bindToComponentInputs?gc(8,[gB,{provide:a1,useExisting:gB}]).\u0275providers:[],null!=s&&s.enableViewTransitions?l$().\u0275providers:[],[{provide:m1,useFactory:XB},{provide:EA,multi:!0,useExisting:m1}]]}}static forChild(e){return{ngModule:r,providers:[{provide:md,multi:!0,useValue:e}]}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(dk,8))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function tp(t){return"guarded"}function n5(t){return["disabled"===t.initialNavigation?gc(3,[{provide:Gx,multi:!0,useFactory:()=>{const r=De(Xr);return()=>{r.setUpLocationChangeListener()}}},{provide:ok,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?gc(2,[{provide:ok,useValue:0},{provide:Gx,multi:!0,deps:[mn],useFactory:r=>{const l=r.get(ZG,Promise.resolve());return()=>l.then(()=>new Promise(e=>{const s=r.get(Xr),u=r.get(ak);WB(s,()=>{e(!0)}),r.get(cb).afterPreactivation=()=>(e(!0),u.closed?tt(void 0):u),s.initialNavigation()}))}}]).\u0275providers:[]]}const m1=new ve("");class uk{constructor(r){this.user=r.user,this.role=r.role,this.admin=r.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}}function Ot(t){return null!=t&&"false"!=`${t}`}function xa(t,r=0){return hk(t)?Number(t):r}function hk(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Yg(t){return Array.isArray(t)?t:[t]}function gr(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ml(t){return t instanceof je?t.nativeElement:t}function fk(t,r=/\s+/){const l=[];if(null!=t){const e=Array.isArray(t)?t:`${t}`.split(r);for(const s of e){const u=`${s}`.trim();u&&l.push(u)}}return l}const o5=["addListener","removeListener"],g$=["addEventListener","removeEventListener"],s5=["on","off"];function vd(t,r,l,e){if(Fn(l)&&(e=l,l=void 0),e)return vd(t,r,l).pipe(Ky(e));const[s,u]=function y$(t){return Fn(t.addEventListener)&&Fn(t.removeEventListener)}(t)?g$.map(m=>b=>t[m](r,b,l)):function v$(t){return Fn(t.addListener)&&Fn(t.removeListener)}(t)?o5.map(pk(t,r)):function _$(t){return Fn(t.on)&&Fn(t.off)}(t)?s5.map(pk(t,r)):[];if(!s&&Wy(t))return Gi(m=>vd(m,r,l))(ra(t));if(!s)throw new TypeError("Invalid event target");return new ln(m=>{const b=(...C)=>m.next(1u(b)})}function pk(t,r){return l=>e=>t[l](r,e)}class _d extends bt{constructor(r,l){super()}schedule(r,l=0){return this}}const g1={setInterval(t,r,...l){const{delegate:e}=g1;return null!=e&&e.setInterval?e.setInterval(t,r,...l):setInterval(t,r,...l)},clearInterval(t){const{delegate:r}=g1;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0};class v1 extends _d{constructor(r,l){super(r,l),this.scheduler=r,this.work=l,this.pending=!1}schedule(r,l=0){var e;if(this.closed)return this;this.state=r;const s=this.id,u=this.scheduler;return null!=s&&(this.id=this.recycleAsyncId(u,s,l)),this.pending=!0,this.delay=l,this.id=null!==(e=this.id)&&void 0!==e?e:this.requestAsyncId(u,this.id,l),this}requestAsyncId(r,l,e=0){return g1.setInterval(r.flush.bind(r,this),e)}recycleAsyncId(r,l,e=0){if(null!=e&&this.delay===e&&!1===this.pending)return l;null!=l&&g1.clearInterval(l)}execute(r,l){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(r,l);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,l){let s,e=!1;try{this.work(r)}catch(u){e=!0,s=u||new Error("Scheduled action threw falsy error")}if(e)return this.unsubscribe(),s}unsubscribe(){if(!this.closed){const{id:r,scheduler:l}=this,{actions:e}=l;this.work=this.state=this.scheduler=null,this.pending=!1,Yb(e,this),null!=r&&(this.id=this.recycleAsyncId(l,r,null)),this.delay=null,super.unsubscribe()}}}const ub={schedule(t){let r=requestAnimationFrame,l=cancelAnimationFrame;const{delegate:e}=ub;e&&(r=e.requestAnimationFrame,l=e.cancelAnimationFrame);const s=r(u=>{l=void 0,t(u)});return new bt(()=>null==l?void 0:l(s))},requestAnimationFrame(...t){const{delegate:r}=ub;return((null==r?void 0:r.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:r}=ub;return((null==r?void 0:r.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},mk={now:()=>(mk.delegate||Date).now(),delegate:void 0};class qg{constructor(r,l=qg.now){this.schedulerActionCtor=r,this.now=l}schedule(r,l=0,e){return new this.schedulerActionCtor(this,r).schedule(e,l)}}qg.now=mk.now;class gk extends qg{constructor(r,l=qg.now){super(r,l),this.actions=[],this._active=!1}flush(r){const{actions:l}=this;if(this._active)return void l.push(r);let e;this._active=!0;do{if(e=r.execute(r.state,r.delay))break}while(r=l.shift());if(this._active=!1,e){for(;r=l.shift();)r.unsubscribe();throw e}}}new class vk extends gk{flush(r){this._active=!0;const l=this._scheduled;this._scheduled=void 0;const{actions:e}=this;let s;r=r||e.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=e[0])&&r.id===l&&e.shift());if(this._active=!1,s){for(;(r=e[0])&&r.id===l&&e.shift();)r.unsubscribe();throw s}}}(class b$ extends v1{constructor(r,l){super(r,l),this.scheduler=r,this.work=l}requestAsyncId(r,l,e=0){return null!==e&&e>0?super.requestAsyncId(r,l,e):(r.actions.push(this),r._scheduled||(r._scheduled=ub.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,l,e=0){var s;if(null!=e?e>0:this.delay>0)return super.recycleAsyncId(r,l,e);const{actions:u}=r;null!=l&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==l&&(ub.cancelAnimationFrame(l),r._scheduled=void 0)}});let _1,l5=1;const y1={};function _k(t){return t in y1&&(delete y1[t],!0)}const x$={setImmediate(t){const r=l5++;return y1[r]=!0,_1||(_1=Promise.resolve()),_1.then(()=>_k(r)&&t()),r},clearImmediate(t){_k(t)}},{setImmediate:C$,clearImmediate:S$}=x$,b1={setImmediate(...t){const{delegate:r}=b1;return((null==r?void 0:r.setImmediate)||C$)(...t)},clearImmediate(t){const{delegate:r}=b1;return((null==r?void 0:r.clearImmediate)||S$)(t)},delegate:void 0},w1=new class T$ extends gk{flush(r){this._active=!0;const l=this._scheduled;this._scheduled=void 0;const{actions:e}=this;let s;r=r||e.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=e[0])&&r.id===l&&e.shift());if(this._active=!1,s){for(;(r=e[0])&&r.id===l&&e.shift();)r.unsubscribe();throw s}}}(class D$ extends v1{constructor(r,l){super(r,l),this.scheduler=r,this.work=l}requestAsyncId(r,l,e=0){return null!==e&&e>0?super.requestAsyncId(r,l,e):(r.actions.push(this),r._scheduled||(r._scheduled=b1.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,l,e=0){var s;if(null!=e?e>0:this.delay>0)return super.recycleAsyncId(r,l,e);const{actions:u}=r;null!=l&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==l&&(b1.clearImmediate(l),r._scheduled===l&&(r._scheduled=void 0))}}),Ds=new gk(v1),M$=Ds;function c5(t){return t instanceof Date&&!isNaN(t)}function hb(t=0,r,l=M$){let e=-1;return null!=r&&(ZV(r)?l=r:e=r),new ln(s=>{let u=c5(t)?+t-l.now():t;u<0&&(u=0);let m=0;return l.schedule(function(){s.closed||(s.next(m++),0<=e?this.schedule(void 0,e):s.complete())},u)})}function d5(t,r=Ds){return function A$(t){return Ae((r,l)=>{let e=!1,s=null,u=null,m=!1;const b=()=>{if(null==u||u.unsubscribe(),u=null,e){e=!1;const M=s;s=null,l.next(M)}m&&l.complete()},C=()=>{u=null,m&&l.complete()};r.subscribe(Bn(l,M=>{e=!0,s=M,u||ra(t(M)).subscribe(u=Bn(l,b,C))},()=>{m=!0,(!e||!u||u.closed)&&l.complete()}))})}(()=>hb(t,r))}let bk;try{bk=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bk=!1}let Zg,Jn=(()=>{var t;class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?bE(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!bk)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Vc))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const h5=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function x1(){if(Zg)return Zg;if("object"!=typeof document||!document)return Zg=new Set(h5),Zg;let t=document.createElement("input");return Zg=new Set(h5.filter(r=>(t.setAttribute("type",r),t.type===r))),Zg}let fb,Fu,wk;function Ko(t){return function E$(){if(null==fb&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fb=!0}))}finally{fb=fb||!1}return fb}()?t:!!t.capture}function I$(){if(null==Fu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fu=!1,Fu;if("scrollBehavior"in document.documentElement.style)Fu=!0;else{const t=Element.prototype.scrollTo;Fu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Fu}function pb(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function vc(t){return t.composedPath?t.composedPath()[0]:t.target}function xk(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const O$=new ve("cdk-dir-doc",{providedIn:"root",factory:function L$(){return De(yt)}}),S1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ir=(()=>{var t;class r{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function D1(t){const r=(null==t?void 0:t.toLowerCase())||"";return"auto"===r&&typeof navigator<"u"&&null!=navigator&&navigator.language?S1.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(O$,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mb=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Ck=(()=>{var t;class r{constructor(e,s,u){this._ngZone=e,this._platform=s,this._scrolled=new he,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=u}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const s=this.scrollContainers.get(e);s&&(s.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ln(s=>{this._globalSubscription||this._addGlobalListener();const u=e>0?this._scrolled.pipe(d5(e)).subscribe(s):this._scrolled.subscribe(s);return this._scrolledCount++,()=>{u.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):tt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,s)=>this.deregister(s)),this._scrolled.complete()}ancestorScrolled(e,s){const u=this.getAncestorScrollContainers(e);return this.scrolled(s).pipe(bn(m=>!m||u.indexOf(m)>-1))}getAncestorScrollContainers(e){const s=[];return this.scrollContainers.forEach((u,m)=>{this._scrollableContainsElement(m,e)&&s.push(m)}),s}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,s){let u=ml(s),m=e.getElementRef().nativeElement;do{if(u==m)return!0}while(u=u.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vd(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye),fe(Jn),fe(yt,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),Nu=(()=>{var t;class r{constructor(e,s,u){this._platform=e,this._change=new he,this._changeListener=m=>{this._change.next(m)},this._document=u,s.runOutsideAngular(()=>{if(e.isBrowser){const m=this._getWindow();m.addEventListener("resize",this._changeListener),m.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:s,height:u}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+u,right:e.left+s,height:u,width:s}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,s=this._getWindow(),u=e.documentElement,m=u.getBoundingClientRect();return{top:-m.top||e.body.scrollTop||s.scrollY||u.scrollTop||0,left:-m.left||e.body.scrollLeft||s.scrollX||u.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(d5(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye),fe(yt,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),np=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Sk=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[mb,np,mb,np]}),r})();class Dk{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Vu extends Dk{constructor(r,l,e,s,u){super(),this.component=r,this.viewContainerRef=l,this.injector=e,this.componentFactoryResolver=s,this.projectableNodes=u}}class yd extends Dk{constructor(r,l,e,s){super(),this.templateRef=r,this.viewContainerRef=l,this.context=e,this.injector=s}get origin(){return this.templateRef.elementRef}attach(r,l=this.context){return this.context=l,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class H$ extends Dk{constructor(r){super(),this.element=r instanceof je?r.nativeElement:r}}class gb{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Vu?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof yd?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof H$?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class g5 extends gb{constructor(r,l,e,s,u){super(),this.outletElement=r,this._componentFactoryResolver=l,this._appRef=e,this._defaultInjector=s,this.attachDomPortal=m=>{const b=m.element,C=this._document.createComment("dom-portal");b.parentNode.insertBefore(C,b),this.outletElement.appendChild(b),this._attachedPortal=m,super.setDisposeFn(()=>{C.parentNode&&C.parentNode.replaceChild(b,C)})},this._document=u}attachComponentPortal(r){const e=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(e,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector,r.projectableNodes||void 0),this.setDisposeFn(()=>s.destroy())):(s=e.create(r.injector||this._defaultInjector||mn.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let l=r.viewContainerRef,e=l.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return e.rootNodes.forEach(s=>this.outletElement.appendChild(s)),e.detectChanges(),this.setDisposeFn(()=>{let s=l.indexOf(e);-1!==s&&l.remove(s)}),this._attachedPortal=r,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let T1=(()=>{var t;class r extends yd{constructor(e,s){super(e,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(fi))},t.\u0275dir=ce({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ze]}),r})(),_c=(()=>{var t;class r extends gb{constructor(e,s,u){super(),this._componentFactoryResolver=e,this._viewContainerRef=s,this._isInitialized=!1,this.attached=new Ce,this.attachDomPortal=m=>{const b=m.element,C=this._document.createComment("dom-portal");m.setAttachedHost(this),b.parentNode.insertBefore(C,b),this._getRootNode().appendChild(b),this._attachedPortal=m,super.setDisposeFn(()=>{C.parentNode&&C.parentNode.replaceChild(b,C)})},this._document=u}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const s=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,m=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),b=s.createComponent(m,s.length,e.injector||s.injector,e.projectableNodes||void 0);return s!==this._viewContainerRef&&this._getRootNode().appendChild(b.hostView.rootNodes[0]),super.setDisposeFn(()=>b.destroy()),this._attachedPortal=e,this._attachedRef=b,this.attached.emit(b),b}attachTemplatePortal(e){e.setAttachedHost(this);const s=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ls),V(fi),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ze]}),r})(),gl=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();function xi(...t){const r=Uy(t),l=function U7(t,r){return"number"==typeof VE(t)?t.pop():r}(t,1/0),e=t;return e.length?1===e.length?ra(e[0]):Mg(l)(nr(e,r)):Ao}function vr(t,...r){return r.length?r.some(l=>t[l]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const P5=I$();class hY{constructor(r,l){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=l}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=gr(-this._previousScrollPosition.left),r.style.top=gr(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,e=r.style,s=this._document.body.style,u=e.scrollBehavior||"",m=s.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),P5&&(e.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),P5&&(e.scrollBehavior=u,s.scrollBehavior=m)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const l=this._document.body,e=this._viewportRuler.getViewportSize();return l.scrollHeight>e.height||l.scrollWidth>e.width}}class fY{constructor(r,l,e,s){this._scrollDispatcher=r,this._ngZone=l,this._viewportRuler=e,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0).pipe(bn(l=>!l||!this._overlayRef.overlayElement.contains(l.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const l=this._viewportRuler.getViewportScrollPosition().top;Math.abs(l-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class R5{enable(){}disable(){}attach(){}}function E1(t,r){return r.some(l=>t.bottoml.bottom||t.rightl.right)}function Rk(t,r){return r.some(l=>t.topl.bottom||t.leftl.right)}class O5{constructor(r,l,e,s){this._scrollDispatcher=r,this._viewportRuler=l,this._ngZone=e,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const l=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:s}=this._viewportRuler.getViewportSize();E1(l,[{width:e,height:s,bottom:s,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let pY=(()=>{var t;class r{constructor(e,s,u,m){this._scrollDispatcher=e,this._viewportRuler=s,this._ngZone=u,this.noop=()=>new R5,this.close=b=>new fY(this._scrollDispatcher,this._ngZone,this._viewportRuler,b),this.block=()=>new hY(this._viewportRuler,this._document),this.reposition=b=>new O5(this._scrollDispatcher,this._viewportRuler,this._ngZone,b),this._document=m}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ck),fe(Nu),fe(Ye),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class zu{constructor(r){if(this.scrollStrategy=new R5,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const l=Object.keys(r);for(const e of l)void 0!==r[e]&&(this[e]=r[e])}}}class Ok{constructor(r,l){this.connectionPair=r,this.scrollableViewProperties=l}}let L5=(()=>{var t;class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const s=this._attachedOverlays.indexOf(e);s>-1&&this._attachedOverlays.splice(s,1),0===this._attachedOverlays.length&&this.detach()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mY=(()=>{var t;class r extends L5{constructor(e,s){super(e),this._ngZone=s,this._keydownListener=u=>{const m=this._attachedOverlays;for(let b=m.length-1;b>-1;b--)if(m[b]._keydownEvents.observers.length>0){const C=m[b]._keydownEvents;this._ngZone?this._ngZone.run(()=>C.next(u)):C.next(u);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Ye,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),F5=(()=>{var t;class r extends L5{constructor(e,s,u){super(e),this._platform=s,this._ngZone=u,this._cursorStyleIsSet=!1,this._pointerDownListener=m=>{this._pointerDownEventTarget=vc(m)},this._clickListener=m=>{const b=vc(m),C="click"===m.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:b;this._pointerDownEventTarget=null;const M=this._attachedOverlays.slice();for(let I=M.length-1;I>-1;I--){const F=M[I];if(F._outsidePointerEvents.observers.length<1||!F.hasAttached())continue;if(F.overlayElement.contains(b)||F.overlayElement.contains(C))break;const H=F._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>H.next(m)):H.next(m)}}}add(e){if(super.add(e),!this._isAttached){const s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(s)):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Jn),fe(Ye,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),I1=(()=>{var t;class r{constructor(e,s){this._platform=s,this._document=e}ngOnDestroy(){var e;null==(e=this._containerElement)||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||xk()){const u=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let m=0;mthis._backdropClick.next(F),this._backdropTransitionendHandler=F=>{this._disposeBackdrop(F.target)},this._keydownEvents=new he,this._outsidePointerEvents=new he,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const l=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(In(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==l?void 0:l.onDestroy)&&l.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),l}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var l;const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null==(l=this._host)||l.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=gr(this._config.width),r.height=gr(this._config.height),r.minWidth=gr(this._config.minWidth),r.minHeight=gr(this._config.minHeight),r.maxWidth=gr(this._config.maxWidth),r.maxHeight=gr(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,l,e){const s=Yg(l||[]).filter(u=>!!u);s.length&&(e?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(Dt(xi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Lk="cdk-overlay-connected-position-bounding-box",gY=/([A-Za-z%]+)$/;class N5{get positions(){return this._preferredPositions}constructor(r,l,e,s,u){this._viewportRuler=l,this._document=e,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new he,this._resizeSubscription=bt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}attach(r){this._validatePositions(),r.hostElement.classList.add(Lk),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,l=this._overlayRect,e=this._viewportRect,s=this._containerRect,u=[];let m;for(let b of this._preferredPositions){let C=this._getOriginPoint(r,s,b),M=this._getOverlayPoint(C,l,b),I=this._getOverlayFit(M,l,e,b);if(I.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(b,C);this._canFitWithFlexibleDimensions(I,M,e)?u.push({position:b,origin:C,overlayRect:l,boundingBoxRect:this._calculateBoundingBoxRect(C,b)}):(!m||m.overlayFit.visibleAreaC&&(C=I,b=M)}return this._isPushed=!1,void this._applyPosition(b.position,b.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(m.position,m.originPoint);this._applyPosition(m.position,m.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&op(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Lk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const l=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,l)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,l,e){let s,u;if("center"==e.originX)s=r.left+r.width/2;else{const m=this._isRtl()?r.right:r.left,b=this._isRtl()?r.left:r.right;s="start"==e.originX?m:b}return l.left<0&&(s-=l.left),u="center"==e.originY?r.top+r.height/2:"top"==e.originY?r.top:r.bottom,l.top<0&&(u-=l.top),{x:s,y:u}}_getOverlayPoint(r,l,e){let s,u;return s="center"==e.overlayX?-l.width/2:"start"===e.overlayX?this._isRtl()?-l.width:0:this._isRtl()?0:-l.width,u="center"==e.overlayY?-l.height/2:"top"==e.overlayY?0:-l.height,{x:r.x+s,y:r.y+u}}_getOverlayFit(r,l,e,s){const u=Fk(l);let{x:m,y:b}=r,C=this._getOffset(s,"x"),M=this._getOffset(s,"y");C&&(m+=C),M&&(b+=M);let H=0-b,q=b+u.height-e.height,Q=this._subtractOverflows(u.width,0-m,m+u.width-e.width),ne=this._subtractOverflows(u.height,H,q),ae=Q*ne;return{visibleArea:ae,isCompletelyWithinViewport:u.width*u.height===ae,fitsInViewportVertically:ne===u.height,fitsInViewportHorizontally:Q==u.width}}_canFitWithFlexibleDimensions(r,l,e){if(this._hasFlexibleDimensions){const s=e.bottom-l.y,u=e.right-l.x,m=bd(this._overlayRef.getConfig().minHeight),b=bd(this._overlayRef.getConfig().minWidth);return(r.fitsInViewportVertically||null!=m&&m<=s)&&(r.fitsInViewportHorizontally||null!=b&&b<=u)}return!1}_pushOverlayOnScreen(r,l,e){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=Fk(l),u=this._viewportRect,m=Math.max(r.x+s.width-u.width,0),b=Math.max(r.y+s.height-u.height,0),C=Math.max(u.top-e.top-r.y,0),M=Math.max(u.left-e.left-r.x,0);let I=0,F=0;return I=s.width<=u.width?M||-m:r.xQ&&!this._isInitialRender&&!this._growAfterOpen&&(m=r.y-Q/2)}if("end"===l.overlayX&&!s||"start"===l.overlayX&&s)H=e.width-r.x+this._viewportMargin,I=r.x-this._viewportMargin;else if("start"===l.overlayX&&!s||"end"===l.overlayX&&s)F=r.x,I=e.right-r.x;else{const q=Math.min(e.right-r.x+e.left,r.x),Q=this._lastBoundingBoxSize.width;I=2*q,F=r.x-q,I>Q&&!this._isInitialRender&&!this._growAfterOpen&&(F=r.x-Q/2)}return{top:m,left:F,bottom:b,right:H,width:I,height:u}}_setBoundingBoxStyles(r,l){const e=this._calculateBoundingBoxRect(r,l);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,m=this._overlayRef.getConfig().maxWidth;s.height=gr(e.height),s.top=gr(e.top),s.bottom=gr(e.bottom),s.width=gr(e.width),s.left=gr(e.left),s.right=gr(e.right),s.alignItems="center"===l.overlayX?"center":"end"===l.overlayX?"flex-end":"flex-start",s.justifyContent="center"===l.overlayY?"center":"bottom"===l.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=gr(u)),m&&(s.maxWidth=gr(m))}this._lastBoundingBoxSize=e,op(this._boundingBox.style,s)}_resetBoundingBoxStyles(){op(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){op(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,l){const e={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,m=this._overlayRef.getConfig();if(s){const I=this._viewportRuler.getViewportScrollPosition();op(e,this._getExactOverlayY(l,r,I)),op(e,this._getExactOverlayX(l,r,I))}else e.position="static";let b="",C=this._getOffset(l,"x"),M=this._getOffset(l,"y");C&&(b+=`translateX(${C}px) `),M&&(b+=`translateY(${M}px)`),e.transform=b.trim(),m.maxHeight&&(s?e.maxHeight=gr(m.maxHeight):u&&(e.maxHeight="")),m.maxWidth&&(s?e.maxWidth=gr(m.maxWidth):u&&(e.maxWidth="")),op(this._pane.style,e)}_getExactOverlayY(r,l,e){let s={top:"",bottom:""},u=this._getOverlayPoint(l,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,e)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=gr(u.y),s}_getExactOverlayX(r,l,e){let m,s={left:"",right:""},u=this._getOverlayPoint(l,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,e)),m=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===m?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=gr(u.x),s}_getScrollVisibility(){const r=this._getOriginRect(),l=this._pane.getBoundingClientRect(),e=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rk(r,e),isOriginOutsideView:E1(r,e),isOverlayClipped:Rk(l,e),isOverlayOutsideView:E1(l,e)}}_subtractOverflows(r,...l){return l.reduce((e,s)=>e-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,l=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+r-this._viewportMargin,bottom:e.top+l-this._viewportMargin,width:r-2*this._viewportMargin,height:l-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,l){return"x"===l?null==r.offsetX?this._offsetX:r.offsetX:null==r.offsetY?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Yg(r).forEach(l=>{""!==l&&-1===this._appliedPanelClasses.indexOf(l)&&(this._appliedPanelClasses.push(l),this._pane.classList.add(l))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof je)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const l=r.width||0,e=r.height||0;return{top:r.y,bottom:r.y+e,left:r.x,right:r.x+l,height:e,width:l}}}function op(t,r){for(let l in r)r.hasOwnProperty(l)&&(t[l]=r[l]);return t}function bd(t){if("number"!=typeof t&&null!=t){const[r,l]=t.split(gY);return l&&"px"!==l?null:parseFloat(r)}return t||null}function Fk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const V5="cdk-global-overlay-wrapper";class _Y{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const l=r.getConfig();this._overlayRef=r,this._width&&!l.width&&r.updateSize({width:this._width}),this._height&&!l.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(V5),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:m,maxHeight:b}=e,C=!("100%"!==s&&"100vw"!==s||m&&"100%"!==m&&"100vw"!==m),M=!("100%"!==u&&"100vh"!==u||b&&"100%"!==b&&"100vh"!==b),I=this._xPosition,F=this._xOffset,H="rtl"===this._overlayRef.getConfig().direction;let q="",Q="",ne="";C?ne="flex-start":"center"===I?(ne="center",H?Q=F:q=F):H?"left"===I||"end"===I?(ne="flex-end",q=F):("right"===I||"start"===I)&&(ne="flex-start",Q=F):"left"===I||"start"===I?(ne="flex-start",q=F):("right"===I||"end"===I)&&(ne="flex-end",Q=F),r.position=this._cssPosition,r.marginLeft=C?"0":q,r.marginTop=M?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=C?"0":Q,l.justifyContent=ne,l.alignItems=M?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement,e=l.style;l.classList.remove(V5),e.justifyContent=e.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let wb=(()=>{var t;class r{constructor(e,s,u,m){this._viewportRuler=e,this._document=s,this._platform=u,this._overlayContainer=m}global(){return new _Y}flexibleConnectedTo(e){return new N5(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Nu),fe(yt),fe(Jn),fe(I1))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),B5=0,Mi=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this.scrollStrategies=e,this._overlayContainer=s,this._componentFactoryResolver=u,this._positionBuilder=m,this._keyboardDispatcher=b,this._injector=C,this._ngZone=M,this._document=I,this._directionality=F,this._location=H,this._outsideClickDispatcher=q,this._animationsModuleType=Q}create(e){const s=this._createHostElement(),u=this._createPaneElement(s),m=this._createPortalOutlet(u),b=new zu(e);return b.direction=b.direction||this._directionality.value,new k1(m,s,u,b,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const s=this._document.createElement("div");return s.id="cdk-overlay-"+B5++,s.classList.add("cdk-overlay-pane"),e.appendChild(s),s}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ol)),new g5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pY),fe(I1),fe(ls),fe(wb),fe(mY),fe(mn),fe(Ye),fe(yt),fe(Ir),fe(Du),fe(F5),fe(si,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const yY=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z5=new ve("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}});let P1=(()=>{var t;class r{constructor(e){this.elementRef=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),r})(),H5=(()=>{var t;class r{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,s,u,m,b){this._overlay=e,this._dir=b,this._backdropSubscription=bt.EMPTY,this._attachSubscription=bt.EMPTY,this._detachSubscription=bt.EMPTY,this._positionSubscription=bt.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new yd(s,u),this._scrollStrategyFactory=m,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=yY);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(s=>{this.overlayKeydown.next(s),27===s.keyCode&&!this.disableClose&&!vr(s)&&(s.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(s=>{this.overlayOutsideClick.next(s)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),s=new zu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(s.width=this.width),(this.height||0===this.height)&&(s.height=this.height),(this.minWidth||0===this.minWidth)&&(s.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(s.minHeight=this.minHeight),this.backdropClass&&(s.backdropClass=this.backdropClass),this.panelClass&&(s.panelClass=this.panelClass),s}_updatePositionStrategy(e){const s=this.positions.map(u=>({originX:u.originX,originY:u.originY,overlayX:u.overlayX,overlayY:u.overlayY,offsetX:u.offsetX||this.offsetX,offsetY:u.offsetY||this.offsetY,panelClass:u.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(s).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof P1?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function p5(t,r=!1){return Ae((l,e)=>{let s=0;l.subscribe(Bn(e,u=>{const m=t(u,s++);(m||r)&&e.next(u),!m&&e.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(Kn),V(fi),V(z5),V(Ir,8))},t.\u0275dir=ce({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop",jt],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition",jt],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",jt],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen",jt],push:["cdkConnectedOverlayPush","push",jt],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",jt]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[na,nn]}),r})();const wY={provide:z5,deps:[Mi],useFactory:function bY(t){return()=>t.scrollStrategies.reposition()}};let Hu=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Mi,wY],imports:[mb,gl,Sk,Sk]}),r})();function Nk(t,r=Ds){return Ae((l,e)=>{let s=null,u=null,m=null;const b=()=>{if(s){s.unsubscribe(),s=null;const M=u;u=null,e.next(M)}};function C(){const M=m+t,I=r.now();if(I{u=M,m=r.now(),s||(s=r.schedule(C,t),e.add(s))},()=>{b(),e.complete()},void 0,()=>{u=s=null}))})}function R1(t){return bn((r,l)=>t<=l)}function O1(t,r=ki){return t=t??Vk,Ae((l,e)=>{let s,u=!0;l.subscribe(Bn(e,m=>{const b=r(m);(u||!t(s,b))&&(u=!1,s=b,e.next(m))}))})}function Vk(t,r){return t===r}let Bk=(()=>{var t;class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),xY=(()=>{var t;class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,s)=>this._cleanupObserver(s))}observe(e){const s=ml(e);return new ln(u=>{const b=this._observeElement(s).subscribe(u);return()=>{b.unsubscribe(),this._unobserveElement(s)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const s=new he,u=this._mutationObserverFactory.create(m=>s.next(m));u&&u.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:u,stream:s,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:s,stream:u}=this._observedElements.get(e);s&&s.disconnect(),u.complete(),this._observedElements.delete(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Bk))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),CY=(()=>{var t;class r{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xa(e),this._subscribe()}constructor(e,s,u){this._contentObserver=e,this._elementRef=s,this._ngZone=u,this.event=new Ce,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Nk(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null==(e=this._currentSubscription)||e.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(xY),V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",jt],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[na]}),r})(),zk=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Bk]}),r})();const Hk=new Set;let yl,wee=(()=>{var t;class r{constructor(e,s){this._platform=e,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Uk}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function U5(t,r){if(!Hk.has(t))try{yl||(yl=document.createElement("style"),r&&(yl.nonce=r),yl.setAttribute("type","text/css"),document.head.appendChild(yl)),yl.sheet&&(yl.sheet.insertRule(`@media ${t} {body{ }}`,0),Hk.add(t))}catch(l){console.error(l)}}(e,this._nonce),this._matchMedia(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Bc,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function Uk(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let L1=(()=>{var t;class r{constructor(e,s){this._mediaMatcher=e,this._zone=s,this._queries=new Map,this._destroySubject=new he}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return jk(Yg(e)).some(u=>this._registerQuery(u).mql.matches)}observe(e){let m=Pu(jk(Yg(e)).map(b=>this._registerQuery(b).observable));return m=Yf(m.pipe(In(1)),m.pipe(R1(1),Nk(0))),m.pipe(Ee(b=>{const C={matches:!1,breakpoints:{}};return b.forEach(({matches:M,query:I})=>{C.matches=C.matches||M,C.breakpoints[I]=M}),C}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const s=this._mediaMatcher.matchMedia(e),m={observable:new ln(b=>{const C=M=>this._zone.run(()=>b.next(M));return s.addListener(C),()=>{s.removeListener(C)}}).pipe(pr(s),Ee(({matches:b})=>({query:e,matches:b})),Dt(this._destroySubject)),mql:s};return this._queries.set(e,m),m}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(wee),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function jk(t){return t.map(r=>r.split(",")).reduce((r,l)=>r.concat(l)).map(r=>r.trim())}function F1(t,r,l){const e=N1(t,r);l=l.trim(),!e.some(s=>s.trim()===l)&&(e.push(l),t.setAttribute(r,e.join(" ")))}function sp(t,r,l){const e=N1(t,r);l=l.trim();const s=e.filter(u=>u!==l);s.length?t.setAttribute(r,s.join(" ")):t.removeAttribute(r)}function N1(t,r){const l=t.getAttribute(r);return(null==l?void 0:l.match(/\S+/g))??[]}const Gk="cdk-describedby-message",V1="cdk-describedby-host";let Wk=0,G5=(()=>{var t;class r{constructor(e,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wk++,this._document=e,this._id=De(qp)+"-"+Wk++}describe(e,s,u){if(!this._canBeDescribed(e,s))return;const m=$k(s,u);"string"!=typeof s?(Yk(s,this._id),this._messageRegistry.set(m,{messageElement:s,referenceCount:0})):this._messageRegistry.has(m)||this._createMessageElement(s,u),this._isElementDescribedByMessage(e,m)||this._addMessageReference(e,m)}removeDescription(e,s,u){var b;if(!s||!this._isElementNode(e))return;const m=$k(s,u);if(this._isElementDescribedByMessage(e,m)&&this._removeMessageReference(e,m),"string"==typeof s){const C=this._messageRegistry.get(m);C&&0===C.referenceCount&&this._deleteMessageElement(m)}0===(null==(b=this._messagesContainer)?void 0:b.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var s;const e=this._document.querySelectorAll(`[${V1}="${this._id}"]`);for(let u=0;u0!=u.indexOf(Gk));e.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(e,s){const u=this._messageRegistry.get(s);F1(e,"aria-describedby",u.messageElement.id),e.setAttribute(V1,this._id),u.referenceCount++}_removeMessageReference(e,s){const u=this._messageRegistry.get(s);u.referenceCount--,sp(e,"aria-describedby",u.messageElement.id),e.removeAttribute(V1)}_isElementDescribedByMessage(e,s){const u=N1(e,"aria-describedby"),m=this._messageRegistry.get(s),b=m&&m.messageElement.id;return!!b&&-1!=u.indexOf(b)}_canBeDescribed(e,s){if(!this._isElementNode(e))return!1;if(s&&"object"==typeof s)return!0;const u=null==s?"":`${s}`.trim(),m=e.getAttribute("aria-label");return!(!u||m&&m.trim()===u)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(Jn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function $k(t,r){return"string"==typeof t?`${r||""}/${t}`:t}function Yk(t,r){t.id||(t.id=`${Gk}-${r}-${Wk++}`)}class W5{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new he,this._typeaheadSubscription=bt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=l=>l.disabled,this._pressedLetters=[],this.tabOut=new he,this.change=new he,r instanceof yu&&(this._itemChangesSubscription=r.changes.subscribe(l=>{if(this._activeItem){const s=l.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Fi(l=>this._pressedLetters.push(l)),Nk(r),bn(()=>this._pressedLetters.length>0),Ee(()=>this._pressedLetters.join(""))).subscribe(l=>{const e=this._getItemsArray();for(let s=1;s!r[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&s){const u=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(u>0?u:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&s){const u=this._activeItemIndex+this._pageUpAndDown.delta,m=this._getItemsArray().length;this._setActiveItemByIndex(u=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],r.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(r){const l=this._getItemsArray(),e="number"==typeof r?r:l.indexOf(r);this._activeItem=l[e]??null,this._activeItemIndex=e}destroy(){var r;this._typeaheadSubscription.unsubscribe(),null==(r=this._itemChangesSubscription)||r.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const l=this._getItemsArray();for(let e=1;e<=l.length;e++){const s=(this._activeItemIndex+r*e+l.length)%l.length;if(!this._skipPredicateFn(l[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,l){const e=this._getItemsArray();if(e[r]){for(;this._skipPredicateFn(e[r]);)if(!e[r+=l])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof yu?this._items.toArray():this._items}}class $5 extends W5{setActiveItem(r){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(r),this.activeItem&&this.activeItem.setActiveStyles()}}class qk extends W5{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Zk=(()=>{var t;class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function MY(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const s=function TY(t){try{return t.frameElement}catch{return null}}(function Xk(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(s&&(-1===X5(s)||!this.isVisible(s)))return!1;let u=e.nodeName.toLowerCase(),m=X5(e);return e.hasAttribute("contenteditable")?-1!==m:!("iframe"===u||"object"===u||this._platform.WEBKIT&&this._platform.IOS&&!function kY(t){let r=t.nodeName.toLowerCase(),l="input"===r&&t.type;return"text"===l||"password"===l||"select"===r||"textarea"===r}(e))&&("audio"===u?!!e.hasAttribute("controls")&&-1!==m:"video"===u?-1!==m&&(null!==m||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,s){return function PY(t){return!function EY(t){return function q5(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function AY(t){let r=t.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(t)||function Y5(t){return function IY(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Z5(t))}(e)&&!this.isDisabled(e)&&((null==s?void 0:s.ignoreVisibility)||this.isVisible(e))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function Z5(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let r=t.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function X5(t){if(!Z5(t))return null;const r=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class K5{get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}constructor(r,l,e,s,u=!1){this._element=r,this._checker=l,this._ngZone=e,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}destroy(){const r=this._startAnchor,l=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),l&&(l.removeEventListener("focus",this.endAnchorListener),l.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(l=>{this._executeOnStable(()=>l(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const l=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?l.length?l[0]:this._getFirstTabbableElement(this._element):l.length?l[l.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const l=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(l){if(!this._checker.isFocusable(l)){const e=this._getFirstTabbableElement(l);return null==e||e.focus(r),!!e}return l.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const l=this._getRegionBoundary("start");return l&&l.focus(r),!!l}focusLastTabbableElement(r){const l=this._getRegionBoundary("end");return l&&l.focus(r),!!l}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const l=r.children;for(let e=0;e=0;e--){const s=l[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(l[e]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,l){r?l.setAttribute("tabindex","0"):l.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(In(1)).subscribe(r)}}let Kk=(()=>{var t;class r{constructor(e,s,u){this._checker=e,this._ngZone=s,this._document=u}create(e,s=!1){return new K5(e,this._checker,this._ngZone,this._document,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Zk),fe(Ye),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),RY=(()=>{var t;class r{get enabled(){var e;return(null==(e=this.focusTrap)?void 0:e.enabled)||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,s,u){this._elementRef=e,this._focusTrapFactory=s,this._previouslyFocusedElement=null,De(Jn).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){var e;null==(e=this.focusTrap)||e.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){var e;null==(e=this.focusTrap)||e.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){var u;const s=e.autoCapture;s&&!s.firstChange&&this.autoCapture&&null!=(u=this.focusTrap)&&u.hasAttached()&&this._captureFocus()}_captureFocus(){var e;this._previouslyFocusedElement=pb(),null==(e=this.focusTrap)||e.focusInitialElementWhenReady()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",jt],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",jt]},exportAs:["cdkTrapFocus"],features:[na,nn]}),r})();function Qk(t){return 0===t.buttons||0===t.detail}function Jk(t){const r=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const FY=new ve("cdk-input-modality-detector-options"),Q5={ignoreKeys:[18,17,224,91,16]},Xg=Ko({passive:!0,capture:!0});let eP=(()=>{var t;class r{get mostRecentModality(){return this._modality.value}constructor(e,s,u,m){this._platform=e,this._mostRecentTarget=null,this._modality=new ye(null),this._lastTouchMs=0,this._onKeydown=b=>{var C,M;null!=(M=null==(C=this._options)?void 0:C.ignoreKeys)&&M.some(I=>I===b.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vc(b))},this._onMousedown=b=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qk(b)?"keyboard":"mouse"),this._mostRecentTarget=vc(b))},this._onTouchstart=b=>{Jk(b)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vc(b))},this._options={...Q5,...m},this.modalityDetected=this._modality.pipe(R1(1)),this.modalityChanged=this.modalityDetected.pipe(O1()),e.isBrowser&&s.runOutsideAngular(()=>{u.addEventListener("keydown",this._onKeydown,Xg),u.addEventListener("mousedown",this._onMousedown,Xg),u.addEventListener("touchstart",this._onTouchstart,Xg)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Xg),document.removeEventListener("mousedown",this._onMousedown,Xg),document.removeEventListener("touchstart",this._onTouchstart,Xg))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye),fe(yt),fe(FY,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const B1=new ve("liveAnnouncerElement",{providedIn:"root",factory:function z1(){return null}}),J5=new ve("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ju=0,ez=(()=>{var t;class r{constructor(e,s,u,m){this._ngZone=s,this._defaultOptions=m,this._document=u,this._liveElement=e||this._createLiveElement()}announce(e,...s){const u=this._defaultOptions;let m,b;return 1===s.length&&"number"==typeof s[0]?b=s[0]:[m,b]=s,this.clear(),clearTimeout(this._previousTimeout),m||(m=u&&u.politeness?u.politeness:"polite"),null==b&&u&&(b=u.duration),this._liveElement.setAttribute("aria-live",m),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(C=>this._currentResolve=C)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof b&&(this._previousTimeout=setTimeout(()=>this.clear(),b)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,s;clearTimeout(this._previousTimeout),null==(e=this._liveElement)||e.remove(),this._liveElement=null,null==(s=this._currentResolve)||s.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",s=this._document.getElementsByClassName(e),u=this._document.createElement("div");for(let m=0;m .cdk-overlay-container [aria-modal="true"]');for(let u=0;u{var t;class r{constructor(e,s,u,m,b){this._ngZone=e,this._platform=s,this._inputModalityDetector=u,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new he,this._rootNodeFocusAndBlurListener=C=>{for(let I=vc(C);I;I=I.parentElement)"focus"===C.type?this._onFocus(C,I):this._onBlur(C,I)},this._document=m,this._detectionMode=(null==b?void 0:b.detectionMode)||0}monitor(e,s=!1){const u=ml(e);if(!this._platform.isBrowser||1!==u.nodeType)return tt();const m=function R$(t){if(function P$(){if(null==wk){const t=typeof document<"u"?document.head:null;wk=!(!t||!t.createShadowRoot&&!t.attachShadow)}return wk}()){const r=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}(u)||this._getDocument(),b=this._elementInfo.get(u);if(b)return s&&(b.checkChildren=!0),b.subject;const C={checkChildren:s,subject:new he,rootNode:m};return this._elementInfo.set(u,C),this._registerGlobalListeners(C),C.subject}stopMonitoring(e){const s=ml(e),u=this._elementInfo.get(s);u&&(u.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(u))}focusVia(e,s,u){const m=ml(e);m===this._getDocument().activeElement?this._getClosestElementsInfo(m).forEach(([C,M])=>this._originChanged(C,s,M)):(this._setOrigin(s),"function"==typeof m.focus&&m.focus(u))}ngOnDestroy(){this._elementInfo.forEach((e,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,s){e.classList.toggle("cdk-focused",!!s),e.classList.toggle("cdk-touch-focused","touch"===s),e.classList.toggle("cdk-keyboard-focused","keyboard"===s),e.classList.toggle("cdk-mouse-focused","mouse"===s),e.classList.toggle("cdk-program-focused","program"===s)}_setOrigin(e,s=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&s,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,s){const u=this._elementInfo.get(s),m=vc(e);!u||!u.checkChildren&&s!==m||this._originChanged(s,this._getFocusOrigin(m),u)}_onBlur(e,s){const u=this._elementInfo.get(s);!u||u.checkChildren&&e.relatedTarget instanceof Node&&s.contains(e.relatedTarget)||(this._setClasses(s),this._emitOrigin(u,null))}_emitOrigin(e,s){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(s))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const s=e.rootNode,u=this._rootNodeFocusListenerCount.get(s)||0;u||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,H1),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,H1)}),this._rootNodeFocusListenerCount.set(s,u+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Dt(this._stopInputModalityDetector)).subscribe(m=>{this._setOrigin(m,!0)}))}_removeGlobalListeners(e){const s=e.rootNode;if(this._rootNodeFocusListenerCount.has(s)){const u=this._rootNodeFocusListenerCount.get(s);u>1?this._rootNodeFocusListenerCount.set(s,u-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,H1),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,H1),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,s,u){this._setClasses(e,s),this._emitOrigin(u,s),this._lastFocusOrigin=s}_getClosestElementsInfo(e){const s=[];return this._elementInfo.forEach((u,m)=>{(m===e||u.checkChildren&&m.contains(e))&&s.push([m,u])}),s}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:s,mostRecentModality:u}=this._inputModalityDetector;if("mouse"!==u||!s||s===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const m=e.labels;if(m)for(let b=0;b{var t;class r{constructor(e,s){this._elementRef=e,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(uo))},t.\u0275dir=ce({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),r})();const Kg="cdk-high-contrast-black-on-white",nP="cdk-high-contrast-white-on-black",iP="cdk-high-contrast-active";let Qg=(()=>{var t;class r{constructor(e,s){this._platform=e,this._document=s,this._breakpointSubscription=De(L1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const s=this._document.defaultView||window,u=s&&s.getComputedStyle?s.getComputedStyle(e):null,m=(u&&u.backgroundColor||"").replace(/ /g,"");switch(e.remove(),m){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(iP,Kg,nP),this._hasCheckedHighContrastMode=!0;const s=this.getHighContrastMode();1===s?e.add(iP,Kg):2===s&&e.add(iP,nP)}}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),j1=(()=>{var t;class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Qg))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[zk]}),r})();function tz(t,r){}class Jg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let rP=(()=>{var t;class r extends gb{constructor(e,s,u,m,b,C,M,I){super(),this._elementRef=e,this._focusTrapFactory=s,this._config=m,this._interactivityChecker=b,this._ngZone=C,this._overlayRef=M,this._focusMonitor=I,this._platform=De(Jn),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=F=>{this._portalOutlet.hasAttached();const H=this._portalOutlet.attachDomPortal(F);return this._contentAttached(),H},this._document=u,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const s=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),s}attachTemplatePortal(e){this._portalOutlet.hasAttached();const s=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),s}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,s){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const u=()=>{e.removeEventListener("blur",u),e.removeEventListener("mousedown",u),e.removeAttribute("tabindex")};e.addEventListener("blur",u),e.addEventListener("mousedown",u)})),e.focus(s)}_focusByCssSelector(e,s){let u=this._elementRef.nativeElement.querySelector(e);u&&this._forceFocus(u,s)}_trapFocus(){var s;const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":null==(s=this._focusTrap)||s.focusInitialElementWhenReady().then(u=>{u||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let s=null;if("string"==typeof e?s=this._document.querySelector(e):"boolean"==typeof e?s=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(s=e),this._config.restoreFocus&&s&&"function"==typeof s.focus){const u=pb(),m=this._elementRef.nativeElement;(!u||u===this._document.body||u===m||m.contains(u))&&(this._focusMonitor?(this._focusMonitor.focusVia(s,this._closeInteractionType),this._closeInteractionType=null):s.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,s=pb();return e===s||e.contains(s)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pb()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt,8),V(Jg),V(Zk),V(Ye),V(k1),V(uo))},t.\u0275cmp=xe({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,s){if(1&e&&ft(_c,7),2&e){let u;Ne(u=Ve())&&(s._portalOutlet=u.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,s){2&e&&$e("id",s._config.id||null)("role",s._config.role)("aria-modal",s._config.ariaModal)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null)},standalone:!0,features:[ze,wf],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,s){1&e&&re(0,tz,0,0,"ng-template",0)},dependencies:[gl,_c],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class xb{constructor(r,l){this.overlayRef=r,this.config=l,this.closed=new he,this.disableClose=l.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=l.id,this.keydownEvents.subscribe(e=>{27===e.keyCode&&!this.disableClose&&!vr(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=r.detachments().subscribe(()=>{!1!==l.closeOnOverlayDetachments&&this.close()})}close(r,l){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=(null==l?void 0:l.focusOrigin)||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(r),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",l=""){return this.overlayRef.updateSize({width:r,height:l}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const aP=new ve("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.block()}}),NY=new ve("DialogData"),VY=new ve("DefaultDialogConfig");let zY=0,iz=(()=>{var t;class r{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,s,u,m,b,C){this._overlay=e,this._injector=s,this._defaultOptions=u,this._parentDialog=m,this._overlayContainer=b,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this._ariaHiddenElements=new Map,this.afterAllClosed=Ag(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pr(void 0))),this._scrollStrategy=C}open(e,s){(s={...this._defaultOptions||new Jg,...s}).id=s.id||"cdk-dialog-"+zY++,s.id&&this.getDialogById(s.id);const m=this._getOverlayConfig(s),b=this._overlay.create(m),C=new xb(b,s),M=this._attachContainer(b,C,s);return C.containerInstance=M,this._attachDialogContent(e,C,M,s),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.closed.subscribe(()=>this._removeOpenDialog(C,!0)),this.afterOpened.next(C),C}closeAll(){ev(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(s=>s.id===e)}ngOnDestroy(){ev(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),ev(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const s=new zu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(s.backdropClass=e.backdropClass),s}_attachContainer(e,s,u){var F;const m=u.injector||(null==(F=u.viewContainerRef)?void 0:F.injector),b=[{provide:Jg,useValue:u},{provide:xb,useValue:s},{provide:k1,useValue:e}];let C;u.container?"function"==typeof u.container?C=u.container:(C=u.container.type,b.push(...u.container.providers(u))):C=rP;const M=new Vu(C,u.viewContainerRef,mn.create({parent:m||this._injector,providers:b}),u.componentFactoryResolver);return e.attach(M).instance}_attachDialogContent(e,s,u,m){if(e instanceof Kn){const b=this._createInjector(m,s,u,void 0);let C={$implicit:m.data,dialogRef:s};m.templateContext&&(C={...C,..."function"==typeof m.templateContext?m.templateContext():m.templateContext}),u.attachTemplatePortal(new yd(e,null,C,b))}else{const b=this._createInjector(m,s,u,this._injector),C=u.attachComponentPortal(new Vu(e,m.viewContainerRef,b,m.componentFactoryResolver));s.componentRef=C,s.componentInstance=C.instance}}_createInjector(e,s,u,m){var M;const b=e.injector||(null==(M=e.viewContainerRef)?void 0:M.injector),C=[{provide:NY,useValue:e.data},{provide:xb,useValue:s}];return e.providers&&("function"==typeof e.providers?C.push(...e.providers(s,e,u)):C.push(...e.providers)),e.direction&&(!b||!b.get(Ir,null,{optional:!0}))&&C.push({provide:Ir,useValue:{value:e.direction,change:tt()}}),mn.create({parent:b||m,providers:C})}_removeOpenDialog(e,s){const u=this.openDialogs.indexOf(e);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((m,b)=>{m?b.setAttribute("aria-hidden",m):b.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),s&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const s=e.parentElement.children;for(let u=s.length-1;u>-1;u--){const m=s[u];m!==e&&"SCRIPT"!==m.nodeName&&"STYLE"!==m.nodeName&&!m.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(mn),fe(VY,8),fe(t,12),fe(I1),fe(aP))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();function ev(t,r){let l=t.length;for(;l--;)r(t[l])}let HY=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[iz],imports:[Hu,gl,j1,rP,gl]}),r})();const UY=["text"];function jY(t,r){if(1&t&&pe(0,"mat-pseudo-checkbox",6),2&t){const l=Z();z("disabled",l.disabled)("state",l.selected?"checked":"unchecked")}}function GY(t,r){1&t&&pe(0,"mat-pseudo-checkbox",7),2&t&&z("disabled",Z().disabled)}function WY(t,r){if(1&t&&(P(0,"span",8),Y(1),R()),2&t){const l=Z();N(),Re("(",l.group.label,")")}}const $Y=[[["mat-icon"]],"*"],YY=["mat-icon","*"];let qY=(()=>{var t;class r{}return(t=r).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",r})(),G1=(()=>{var t;class r{}return(t=r).COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",r})();const ZY=new ve("mat-sanity-checks",{providedIn:"root",factory:function az(){return!0}});let $t=(()=>{var t;class r{constructor(e,s,u){this._sanityChecks=s,this._document=u,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!xk()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Qg),fe(ZY,8),fe(yt))},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[mb,mb]}),r})();function lp(t){return class extends t{get disabled(){return this._disabled}set disabled(r){this._disabled=Ot(r)}constructor(...r){super(...r),this._disabled=!1}}}function tv(t,r){return class extends t{get color(){return this._color}set color(l){const e=l||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}constructor(...l){super(...l),this.defaultColor=r,this.color=r}}}function sP(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=Ot(r)}constructor(...r){super(...r),this._disableRipple=!1}}}function W1(t,r=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(l){this._tabIndex=null!=l?xa(l):this.defaultTabIndex}constructor(...l){super(...l),this._tabIndex=r,this.defaultTabIndex=r}}}function Db(t){return class extends t{updateErrorState(){const r=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==r&&(this.errorState=u,this.stateChanges.next())}constructor(...r){super(...r),this.errorState=!1}}}function cp(t){return class extends t{constructor(...r){super(...r),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ln(l=>{this._isInitialized?this._notifySubscriber(l):this._pendingSubscribers.push(l)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(r){r.next(),r.complete()}}}const Tb=new ve("MAT_DATE_LOCALE",{providedIn:"root",factory:function $1(){return De(rd)}});class aa{constructor(){this._localeChanges=new he,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,l){return this.getYear(r)-this.getYear(l)||this.getMonth(r)-this.getMonth(l)||this.getDate(r)-this.getDate(l)}sameDate(r,l){if(r&&l){let e=this.isValid(r),s=this.isValid(l);return e&&s?!this.compareDate(r,l):e==s}return r==l}clampDate(r,l,e){return l&&this.compareDate(r,l)<0?l:e&&this.compareDate(r,e)>0?e:r}}const dp=new ve("mat-date-formats"),KY=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Y1(t,r){const l=Array(t);for(let e=0;e{var t;class r extends aa{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=De(Tb,{optional:!0}),void 0!==e&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const s=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Y1(12,u=>this._format(s,new Date(2017,u,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Y1(31,s=>this._format(e,new Date(2017,0,s+1)))}getDayOfWeekNames(e){const s=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Y1(7,u=>this._format(s,new Date(2017,0,u+1)))}getYearName(e){const s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,s,u){let m=this._createDateWithOverflow(e,s,u);return m.getMonth(),m}today(){return new Date}parse(e,s){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,s){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const u=new Intl.DateTimeFormat(this.locale,{...s,timeZone:"utc"});return this._format(u,e)}addCalendarYears(e,s){return this.addCalendarMonths(e,12*s)}addCalendarMonths(e,s){let u=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+s,this.getDate(e));return this.getMonth(u)!=((this.getMonth(e)+s)%12+12)%12&&(u=this._createDateWithOverflow(this.getYear(u),this.getMonth(u),0)),u}addCalendarDays(e,s){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+s)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(KY.test(e)){let s=new Date(e);if(this.isValid(s))return s}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,s,u){const m=new Date;return m.setFullYear(e,s,u),m.setHours(0,0,0,0),m}_2digit(e){return("00"+e).slice(-2)}_format(e,s){const u=new Date;return u.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),u.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),e.format(u)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Tb,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const lP={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let cP=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:aa,useClass:oz}]}),r})(),sz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:dp,useValue:lP}],imports:[cP]}),r})(),Gu=(()=>{var t;class r{isErrorState(e,s){return!!(e&&e.invalid&&(e.touched||s&&s.submitted))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class eq{constructor(r,l,e,s=!1){this._renderer=r,this.element=l,this.config=e,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dP=Ko({passive:!0,capture:!0});class uP{constructor(){this._events=new Map,this._delegateEventHandler=r=>{var e;const l=vc(r);l&&(null==(e=this._events.get(r.type))||e.forEach((s,u)=>{(u===l||u.contains(l))&&s.forEach(m=>m.handleEvent(r))}))}}addHandler(r,l,e,s){const u=this._events.get(l);if(u){const m=u.get(e);m?m.add(s):u.set(e,new Set([s]))}else this._events.set(l,new Map([[e,new Set([s])]])),r.runOutsideAngular(()=>{document.addEventListener(l,this._delegateEventHandler,dP)})}removeHandler(r,l,e){const s=this._events.get(r);if(!s)return;const u=s.get(l);u&&(u.delete(e),0===u.size&&s.delete(l),0===s.size&&(this._events.delete(r),document.removeEventListener(r,this._delegateEventHandler,dP)))}}const q1={enterDuration:225,exitDuration:150},lz=Ko({passive:!0,capture:!0}),cz=["mousedown","touchstart"],dz=["mouseup","mouseleave","touchend","touchcancel"];class Ab{constructor(r,l,e,s){this._target=r,this._ngZone=l,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ml(e))}fadeInRipple(r,l,e={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...q1,...e.animation};e.centered&&(r=s.left+s.width/2,l=s.top+s.height/2);const m=e.radius||function nq(t,r,l){const e=Math.max(Math.abs(t-l.left),Math.abs(t-l.right)),s=Math.max(Math.abs(r-l.top),Math.abs(r-l.bottom));return Math.sqrt(e*e+s*s)}(r,l,s),b=r-s.left,C=l-s.top,M=u.enterDuration,I=document.createElement("div");I.classList.add("mat-ripple-element"),I.style.left=b-m+"px",I.style.top=C-m+"px",I.style.height=2*m+"px",I.style.width=2*m+"px",null!=e.color&&(I.style.backgroundColor=e.color),I.style.transitionDuration=`${M}ms`,this._containerElement.appendChild(I);const F=window.getComputedStyle(I),q=F.transitionDuration,Q="none"===F.transitionProperty||"0s"===q||"0s, 0s"===q||0===s.width&&0===s.height,ne=new eq(this,I,e,Q);I.style.transform="scale3d(1, 1, 1)",ne.state=0,e.persistent||(this._mostRecentTransientRipple=ne);let ae=null;return!Q&&(M||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ge=()=>this._finishRippleTransition(ne),se=()=>this._destroyRipple(ne);I.addEventListener("transitionend",ge),I.addEventListener("transitioncancel",se),ae={onTransitionEnd:ge,onTransitionCancel:se}}),this._activeRipples.set(ne,ae),(Q||!M)&&this._finishRippleTransition(ne),ne}fadeOutRipple(r){if(2===r.state||3===r.state)return;const l=r.element,e={...q1,...r.config.animation};l.style.transitionDuration=`${e.exitDuration}ms`,l.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const l=ml(r);!this._platform.isBrowser||!l||l===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=l,cz.forEach(e=>{Ab._eventManager.addHandler(this._ngZone,e,l,this)}))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{dz.forEach(l=>{this._triggerElement.addEventListener(l,this,lz)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const l=r===this._mostRecentTransientRipple,{persistent:e}=r.config;r.state=1,!e&&(!l||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const l=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==l&&(r.element.removeEventListener("transitionend",l.onTransitionEnd),r.element.removeEventListener("transitioncancel",l.onTransitionCancel)),r.element.remove()}_onMousedown(r){const l=Qk(r),e=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const r=this._triggerElement;r&&(cz.forEach(l=>Ab._eventManager.removeHandler(l,r,this)),this._pointerUpEventsRegistered&&dz.forEach(l=>r.removeEventListener(l,this,lz)))}}Ab._eventManager=new uP;const Z1=new ve("mat-ripple-global-options");let bl=(()=>{var t;class r{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,s,u,m,b){this._elementRef=e,this._animationMode=b,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=m||{},this._rippleRenderer=new Ab(this,s,e,u)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,s=0,u){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,s,{...this.rippleConfig,...u}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye),V(Jn),V(Z1,8),V(si,8))},t.\u0275dir=ce({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,s){2&e&&et("mat-ripple-unbounded",s.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),Wu=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})(),iq=(()=>{var t;class r{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,s){2&e&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===s.state)("mat-pseudo-checkbox-checked","checked"===s.state)("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal","minimal"===s.appearance)("mat-pseudo-checkbox-full","full"===s.appearance)("_mat-animation-noopable","NoopAnimations"===s._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),r})(),uz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t]}),r})();const hP=new ve("MAT_OPTION_PARENT_COMPONENT"),fP=new ve("MatOptgroup");let rq=0;class hz{constructor(r,l=!1){this.source=r,this.isUserInput=l}}let Ni=(()=>{var t;class r{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,s,u,m){this._element=e,this._changeDetectorRef=s,this._parent=u,this.group=m,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rq++,this.onSelectionChange=new Ce,this._stateChanges=new he}get active(){return this._active}get viewValue(){var e;return((null==(e=this._text)?void 0:e.nativeElement.textContent)||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,s){const u=this._getHostElement();"function"==typeof u.focus&&u.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!vr(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new hz(this,e))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(hP,8),V(fP,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-option"]],viewQuery:function(e,s){if(1&e&&ft(UY,7),2&e){let u;Ne(u=Ve())&&(s._text=u.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,s){1&e&&J("click",function(){return s._selectViaInteraction()})("keydown",function(m){return s._handleKeydown(m)}),2&e&&(Ba("id",s.id),$e("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),et("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",jt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[na],ngContentSelectors:YY,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,s){1&e&&(jn($Y),re(0,jY,1,2,"mat-pseudo-checkbox",0),dt(1),P(2,"span",1,2),dt(4,1),R(),re(5,GY,1,1,"mat-pseudo-checkbox",3)(6,WY,2,1,"span",4),pe(7,"div",5)),2&e&&(an(0,s.multiple?0:-1),N(5),an(5,s.multiple||!s.selected||s.hideSingleSelectionIndicator?-1:5),N(),an(6,s.group&&s.group._inert?6:-1),N(),z("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[bl,iq],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})();function pP(t,r,l){if(l.length){let e=r.toArray(),s=l.toArray(),u=0;for(let m=0;ml+e?Math.max(0,t-e+r):l}let K1=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Wu,$t,uz]}),r})();const mP={capture:!0},fz=["focus","click","mouseenter","touchstart"],gP="mat-ripple-loader-uninitialized",up="mat-ripple-loader-class-name",vP="mat-ripple-loader-centered",Q1="mat-ripple-loader-disabled";let J1=(()=>{var t;class r{constructor(){this._document=De(yt,{optional:!0}),this._animationMode=De(si,{optional:!0}),this._globalRippleOptions=De(Z1,{optional:!0}),this._platform=De(Jn),this._ngZone=De(Ye),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const u=e.target.closest(`[${gP}]`);u&&this._createRipple(u)},this._ngZone.runOutsideAngular(()=>{var e;for(const s of fz)null==(e=this._document)||e.addEventListener(s,this._onInteraction,mP)})}ngOnDestroy(){var s;const e=this._hosts.keys();for(const u of e)this.destroyRipple(u);for(const u of fz)null==(s=this._document)||s.removeEventListener(u,this._onInteraction,mP)}configureRipple(e,s){e.setAttribute(gP,""),(s.className||!e.hasAttribute(up))&&e.setAttribute(up,s.className||""),s.centered&&e.setAttribute(vP,""),s.disabled&&e.setAttribute(Q1,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,s){const u=this._hosts.get(e);u?u.disabled=s:s?e.setAttribute(Q1,""):e.removeAttribute(Q1)}_createRipple(e){var b;if(!this._document)return;const s=this._hosts.get(e);if(s)return s;null==(b=e.querySelector(".mat-ripple"))||b.remove();const u=this._document.createElement("span");u.classList.add("mat-ripple",e.getAttribute(up)),e.append(u);const m=new bl(new je(u),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return m._isInitialized=!0,m.trigger=e,m.centered=e.hasAttribute(vP),m.disabled=e.hasAttribute(Q1),this.attachRipple(e,m),m}attachRipple(e,s){e.removeAttribute(gP),this._hosts.set(e,s)}destroyRipple(e){const s=this._hosts.get(e);s&&(s.ngOnDestroy(),this._hosts.delete(e))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const wd="*";function Vi(t,r){return{type:7,name:t,definitions:r,options:{}}}function kn(t,r=null){return{type:4,styles:r,timings:t}}function _P(t,r=null){return{type:3,steps:t,options:r}}function lt(t){return{type:6,styles:t,offset:null}}function Vn(t,r,l){return{type:0,name:t,styles:r,options:l}}function nv(t){return{type:5,steps:t}}function Cn(t,r,l=null){return{type:1,expr:t,animation:r,options:l}}function Eb(t=null){return{type:9,options:t}}function eS(t,r,l=null){return{type:11,selector:t,animation:r,options:l}}class $u{constructor(r=0,l=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+l}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const l="start"==r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}class yP{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let l=0,e=0,s=0;const u=this.players.length;0==u?queueMicrotask(()=>this._onFinish()):this.players.forEach(m=>{m.onDone(()=>{++l==u&&this._onFinish()}),m.onDestroy(()=>{++e==u&&this._onDestroy()}),m.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((m,b)=>Math.max(m,b.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const l=r*this.totalTime;this.players.forEach(e=>{const s=e.totalTime?Math.min(1,l/e.totalTime):1;e.setPosition(s)})}getPosition(){const r=this.players.reduce((l,e)=>null===l||e.totalTime>l.totalTime?e:l,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const l="start"==r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}function mz(t,r){}class wP{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const xP="mdc-dialog--open",CP="mdc-dialog--opening",SP="mdc-dialog--closing";let Ts=(()=>{var t;class r extends rP{constructor(e,s,u,m,b,C,M,I,F){super(e,s,u,m,b,C,M,F),this._animationMode=I,this._animationStateChanged=new Ce,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DP(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?DP(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(vz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CP,xP)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(xP),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(xP),this._animationsEnabled?(this._hostElement.style.setProperty(vz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(SP)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(CP,SP)}_waitForAnimationToComplete(e,s){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(s,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(e){const s=super.attachComponentPortal(e);return s.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Kk),V(yt,8),V(wP),V(Zk),V(Ye),V(k1),V(si,8),V(uo))},t.\u0275cmp=xe({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,s){2&e&&(Ba("id",s._config.id),$e("aria-modal",s._config.ariaModal)("role",s._config.role)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null),et("_mat-animation-noopable",!s._animationsEnabled))},standalone:!0,features:[ze,wf],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,mz,0,0,"ng-template",2),R()())},dependencies:[gl,_c],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),r})();const vz="--mat-dialog-transition-duration";function DP(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?xa(t.substring(0,t.length-2)):t.endsWith("s")?1e3*xa(t.substring(0,t.length-1)):"0"===t?0:null}class di{constructor(r,l,e){this._ref=r,this._containerInstance=e,this._afterOpened=new he,this._beforeClosed=new he,this._state=0,this.disableClose=l.disableClose,this.id=r.id,e._animationStateChanged.pipe(bn(s=>"opened"===s.state),In(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(bn(s=>"closed"===s.state),In(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),xi(this.backdropClick(),this.keydownEvents().pipe(bn(s=>27===s.keyCode&&!this.disableClose&&!vr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),_z(this,"keydown"===s.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe(bn(l=>"closing"===l.state),In(1)).subscribe(l=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let l=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?l.left(r.left):l.right(r.right):l.centerHorizontally(),r&&(r.top||r.bottom)?r.top?l.top(r.top):l.bottom(r.bottom):l.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",l=""){return this._ref.updateSize(r,l),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function _z(t,r,l){return t._closeInteractionType=r,t.close(l)}const Bi=new ve("MatMdcDialogData"),dq=new ve("mat-mdc-dialog-default-options"),TP=new ve("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.block()}});let yz=0,nS=(()=>{var t;class r{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,s,u,m,b,C,M,I){this._overlay=e,this._defaultOptions=m,this._scrollStrategy=b,this._parentDialog=C,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new he,this._afterOpenedAtThisLevel=new he,this.dialogConfigClass=wP,this.afterAllClosed=Ag(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pr(void 0))),this._dialog=s.get(iz),this._dialogRefConstructor=di,this._dialogContainerType=Ts,this._dialogDataToken=Bi}open(e,s){let u;(s={...this._defaultOptions||new wP,...s}).id=s.id||"mat-mdc-dialog-"+yz++,s.scrollStrategy=s.scrollStrategy||this._scrollStrategy();const m=this._dialog.open(e,{...s,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:s},{provide:Jg,useValue:s}]},templateContext:()=>({dialogRef:u}),providers:(b,C,M)=>(u=new this._dialogRefConstructor(b,s,M),u.updatePosition(null==s?void 0:s.position),[{provide:this._dialogContainerType,useValue:M},{provide:this._dialogDataToken,useValue:C.data},{provide:this._dialogRefConstructor,useValue:u}])});return u.componentRef=m.componentRef,u.componentInstance=m.componentInstance,this.openDialogs.push(u),this.afterOpened.next(u),u.afterClosed().subscribe(()=>{const b=this.openDialogs.indexOf(u);b>-1&&(this.openDialogs.splice(b,1),this.openDialogs.length||this._getAfterAllClosed().next())}),u}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(s=>s.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let s=e.length;for(;s--;)e[s].close()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(mn),fe(Du,8),fe(dq,8),fe(TP),fe(t,12),fe(I1),fe(si,8))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),fq=0,Io=(()=>{var t;class r{constructor(e,s,u){this.dialogRef=e,this._elementRef=s,this._dialog=u,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=bz(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const s=e._matDialogClose||e._matDialogCloseResult;s&&(this.dialogResult=s.currentValue)}_onButtonClick(e){_z(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di,8),V(je),V(nS))},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,s){1&e&&J("click",function(m){return s._onButtonClick(m)}),2&e&&$e("aria-label",s.ariaLabel||null)("type",s.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[nn]}),r})(),zi=(()=>{var t;class r{constructor(e,s,u){this._dialogRef=e,this._elementRef=s,this._dialog=u,this.id="mat-mdc-dialog-title-"+fq++}ngOnInit(){this._dialogRef||(this._dialogRef=bz(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{var e,s;null==(s=null==(e=this._dialogRef._containerInstance)?void 0:e._ariaLabelledByQueue)||s.push(this.id)})}ngOnDestroy(){var s,u;const e=null==(u=null==(s=this._dialogRef)?void 0:s._containerInstance)?void 0:u._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const m=e.indexOf(this.id);m>-1&&e.splice(m,1)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di,8),V(je),V(nS))},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,s){2&e&&Ba("id",s.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0}),r})(),Hi=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0}),r})(),Ai=(()=>{var t;class r{constructor(){this.align="start"}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-mdc-dialog-actions-align-center","center"===s.align)("mat-mdc-dialog-actions-align-end","end"===s.align)},inputs:{align:"align"},standalone:!0}),r})();function bz(t,r){let l=t.nativeElement.parentElement;for(;l&&!l.classList.contains("mat-mdc-dialog-container");)l=l.parentElement;return l?r.find(e=>e.id===l.id):null}let wz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[nS],imports:[HY,Hu,gl,$t,Ts,$t]}),r})();const gq=$b(t=>function(l=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=l});function vq(t){throw new gq(t)}function Cz(t,r){const l="object"==typeof r;return new Promise((e,s)=>{const u=new _e({next:m=>{e(m),u.unsubscribe()},error:s,complete:()=>{l?e(r.defaultValue):s(new Tg)}});t.subscribe(u)})}var Sz;const AP=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Dz=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],Tz=t=>{const r=[];return t.forEach(l=>{r.push(l.substring(0,3))}),r},iv=(t,r,l)=>(typeof r>"u"&&(r=new Date),xd(t,r,l)),xd=(t,r,l,e)=>{e=e||{},r=r||new Date;const s=l||Cq;s.formats=s.formats||{};const u=r.getTime();return(e.utc||"number"==typeof e.timezone)&&(r=bq(r)),"number"==typeof e.timezone&&(r=new Date(r.getTime()+6e4*e.timezone)),t.replace(/%([-_0]?.)/g,(m,b)=>{let C,M,I,F,H,q,Q,ne;if(I=null,H=null,2===b.length){if(I=b[0],"-"===I)H="";else if("_"===I)H=" ";else{if("0"!==I)return m;H="0"}b=b[1]}switch(b){case"A":return s.days[r.getDay()];case"a":return s.shortDays[r.getDay()];case"B":return s.months[r.getMonth()];case"b":case"h":return s.shortMonths[r.getMonth()];case"C":return ho(Math.floor(r.getFullYear()/100),H);case"D":return xd(s.formats.D||"%m/%d/%y",r,s);case"d":return ho(r.getDate(),H);case"e":return r.getDate();case"F":return xd(s.formats.F||"%Y-%m-%d",r,s);case"H":return ho(r.getHours(),H);case"I":return ho(Mz(r),H);case"j":return Q=new Date(r.getFullYear(),0,1),C=Math.ceil((r.getTime()-Q.getTime())/864e5),ho(C,3);case"k":return ho(r.getHours(),void 0===H?" ":H);case"L":return ho(Math.floor(u%1e3),3);case"l":return ho(Mz(r),void 0===H?" ":H);case"M":return ho(r.getMinutes(),H);case"m":return ho(r.getMonth()+1,H);case"n":return"\n";case"o":return String(r.getDate())+wq(r.getDate());case"P":case"p":return"";case"R":return xd(s.formats.R||"%H:%M",r,s);case"r":return xd(s.formats.r||"%I:%M:%S %p",r,s);case"S":return ho(r.getSeconds(),H);case"s":return Math.floor(u/1e3);case"T":return xd(s.formats.T||"%H:%M:%S",r,s);case"t":return"\t";case"U":return ho(iS(r,"sunday"),H);case"u":return M=r.getDay(),0===M?7:M;case"v":return xd(s.formats.v||"%e-%b-%Y",r,s);case"W":return ho(iS(r,"monday"),H);case"w":return r.getDay();case"Y":return r.getFullYear();case"y":return ne=String(r.getFullYear()),ne.slice(ne.length-2);case"Z":return e.utc?"GMT":(q=r.toString().match(/\((\w+)\)/),q&&q[1]||"");case"z":return e.utc?"+0000":(F="number"==typeof e.timezone?e.timezone:-r.getTimezoneOffset(),(F<0?"-":"+")+ho(Math.abs(F/60))+ho(F%60));default:return b}})},bq=t=>{const r=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+r)},ho=(t,r,l)=>{"number"==typeof r&&(l=r,r="0"),r=r??"0",l=l??2;let e=String(t);if(r)for(;e.length{let r;return r=t.getHours(),0===r?r=12:r>12&&(r-=12),r},wq=t=>{const r=t%10,l=t%100;if(l>=11&&l<=13||0===r||r>=4)return"th";switch(r){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},iS=(t,r)=>{r=r||"sunday";let l=t.getDay();"monday"===r&&(0===l?l=6:l--);const e=new Date(t.getFullYear(),0,1),s=Math.floor((t.getTime()-e.getTime())/864e5);return Math.floor((s+7-l)/7)},EP=t=>t.replace(/./g,r=>{switch(r){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+r;case"c":return"%FT%TZ";case"D":return"%a";case"e":case"O":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":case"L":case"S":case"t":case"U":return"";case"j":return"%d";case"l":return"%A";case"M":case"N":return"%b";case"n":return"%m";case"o":return"%W";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"T":return"%Z";case"u":return"0";case"z":return"%j";case"Z":return"z";default:return r}}),Ms=(t,r,l=null)=>{let e;if("None"===r||null==r)r=7226578800,e=django.gettext("Never");else{let s=django.get_format(t);l&&(s+=l),e=iv(EP(s),new Date(1e3*r))}return e},IP=t=>"yes"===t||!0===t||"true"===t||1===t,Cq={days:AP,shortDays:Tz(AP),months:Dz,shortMonths:Tz(Dz),AM:"AM",PM:"PM",am:"am",pm:"pm"},Yu=(t,r)=>{let l;if(t instanceof Promise)l=t;else if(t instanceof wl)l=t;else{if(r)return Cz(t.pipe(function xz(t,r){const{first:l,each:e,with:s=vq,scheduler:u=r??Ds,meta:m=null}=c5(t)?{first:t}:"number"==typeof t?{each:t}:t;if(null==l&&null==e)throw new TypeError("No timeout provided.");return Ae((b,C)=>{let M,I,F=null,H=0;const q=Q=>{I=Ss(C,u,()=>{try{M.unsubscribe(),ra(s({meta:m,lastValue:F,seen:H})).subscribe(C)}catch(ne){C.error(ne)}},Q)};M=b.subscribe(Bn(C,Q=>{null==I||I.unsubscribe(),H++,C.next(F=Q),e>0&&q(e)},void 0,void 0,()=>{null!=I&&I.closed||null==I||I.unsubscribe(),F=null})),!H&&q(null!=l?"number"==typeof l?l:+l-u.now():e)})}(r)));l=Cz(t)}return l};class wl{constructor(){this[Sz]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((r,l)=>{this.resolve=r,this.reject=l})}then(r,l){return this.promise.then(r,l)}catch(r){return this.promise.catch(r)}finally(r){return this.promise.finally(r)}}Sz=Symbol.toStringTag;const Ez=["mat-button",""],kP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],PP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],RP=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",rS=["mat-icon-button",""],Dq=["*"],Mq=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let aS=(()=>{var t;class r{get ripple(){var e;return null==(e=this._rippleLoader)?void 0:e.getRipple(this._elementRef.nativeElement)}set ripple(e){var s;null==(s=this._rippleLoader)||s.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,s,u,m){var M;this._elementRef=e,this._platform=s,this._ngZone=u,this._animationMode=m,this._focusMonitor=De(uo),this._rippleLoader=De(J1),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,null==(M=this._rippleLoader)||M.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const b=this._elementRef.nativeElement,C=b.classList;for(const{attribute:I,mdcClasses:F}of Mq)b.hasAttribute(I)&&C.add(...F)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){var e;this._focusMonitor.stopMonitoring(this._elementRef),null==(e=this._rippleLoader)||e.destroyRipple(this._elementRef.nativeElement)}focus(e="program",s){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,s):this._elementRef.nativeElement.focus(s)}_updateRippleDisabled(){var e;null==(e=this._rippleLoader)||e.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275dir=ce({type:t,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",jt],disabled:["disabled","disabled",jt]},features:[na]}),r})(),Pz=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m),this._haltDisabledEvents=b=>{this.disabled&&(b.preventDefault(),b.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275dir=ce({type:t,inputs:{tabIndex:["tabIndex","tabIndex",l=>null==l?void 0:qA(l)]},features:[na,ze]}),r})(),Pn=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[ze],attrs:Ez,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),oS=(()=>{var t;class r extends Pz{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:11,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null)("tabindex",s.disabled?-1:s.tabIndex)("aria-disabled",s.disabled.toString()),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[ze],attrs:Ez,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',RP],encapsulation:2,changeDetection:0}),r})(),wc=(()=>{var t;class r extends aS{constructor(e,s,u,m){super(e,s,u,m),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[ze],attrs:rS,ngContentSelectors:Dq,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(),pe(0,"span",0),dt(1),pe(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',RP],encapsulation:2,changeDetection:0}),r})(),Rz=(()=>{var t;class r extends Pz{constructor(e,s,u,m){super(e,s,u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(Ye),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["a","mat-icon-button",""]],hostVars:11,hostBindings:function(e,s){2&e&&($e("disabled",s.disabled||null)("tabindex",s.disabled?-1:s.tabIndex)("aria-disabled",s.disabled.toString()),cu(s.color?"mat-"+s.color:""),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[ze],attrs:rS,ngContentSelectors:PP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,s){1&e&&(jn(kP),pe(0,"span",0),dt(1),P(2,"span",1),dt(3,1),R(),dt(4,2),pe(5,"span",2)(6,"span",3)),2&e&&et("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',RP],encapsulation:2,changeDetection:0}),r})(),hp=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,$t]}),r})(),vn=(()=>{var t;class r{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["uds-translate"]]}),r})(),Oz=(()=>{var t;class r{constructor(e){this.sanitizer=e}transform(e,s){return e=(e=(e=e.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dd,16))},t.\u0275pipe=ua({name:"safeHtml",type:t,pure:!0}),r})();function Eq(t,r){if(1&t){const l=Oe();P(0,"button",4),J("click",function(){return oe(l),le(Z().resolveAndClose(!1))}),P(1,"uds-translate"),Y(2,"Close"),R(),Y(3),R()}if(2&t){const l=Z();N(3),En(l.extra)}}function lS(t,r){if(1&t){const l=Oe();P(0,"button",5),J("click",function(){return oe(l),le(Z().resolveAndClose(!0))}),P(1,"uds-translate"),Y(2,"Yes"),R()()}2&t&&z("color",Z().yesColor)}function Qee(t,r){if(1&t){const l=Oe();P(0,"button",5),J("click",function(){return oe(l),le(Z().resolveAndClose(!1))}),P(1,"uds-translate"),Y(2,"No"),R()()}2&t&&z("color",Z().noColor)}var Pb=function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t}(Pb||{});let Rb=(()=>{var t;class r{constructor(e,s){this.dialogRef=e,this.data=s,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new wl}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){var e=this;return Ge(function*(){const s=e.data.autoclose||0;s>0&&(e.dialogRef.afterClosed().subscribe(u=>{e.closed()}),e.setExtra(s),e.subscription=function mq(t=0,r=Ds){return t<0&&(t=0),hb(t,t,r)}(1e3).subscribe(u=>{const m=s-1e3*(u+1);e.setExtra(m),m<=0&&e.close()}))})()}ngOnInit(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Pb.alert&&this.initAlert()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(e,s){1&e&&(pe(0,"h4",0),nl(1,"safeHtml"),pe(2,"mat-dialog-content",1),nl(3,"safeHtml"),P(4,"mat-dialog-actions"),re(5,Eq,4,1,"button",2)(6,lS,3,1,"button",3)(7,Qee,3,1,"button",3),R()),2&e&&(z("innerHtml",ng(1,5,s.data.title),zr),N(2),z("innerHTML",ng(3,7,s.data.body),zr),N(3),z("ngIf",0===s.data.type),N(),z("ngIf",1===s.data.type),N(),z("ngIf",1===s.data.type))},dependencies:[xn,Pn,Io,zi,Ai,Hi,vn,Oz],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();var Ca=function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t}(Ca||{});class OP{static locateChoice(r,l){const e=l.gui.choices;if(void 0===e)return{id:"",img:"",text:""};let s=e.find(u=>u.id===r);if(void 0===s)try{s=e[0]}catch{s={id:"",img:"",text:""}}return s}}function LP(...t){const r=BE(t),{args:l,keys:e}=bI(t),s=new ln(u=>{const{length:m}=l;if(!m)return void u.complete();const b=new Array(m);let C=m,M=m;for(let I=0;I{F||(F=!0,M--),b[I]=H},()=>C--,void 0,()=>{(!C||!F)&&(M||u.next(e?xI(e,b):b),u.complete())}))}});return r?s.pipe(Ky(r)):s}let cS=(()=>{var t;class r{constructor(e,s){this._renderer=e,this._elementRef=s,this.onChange=u=>{},this.onTouched=()=>{}}setProperty(e,s){this._renderer.setProperty(this._elementRef.nativeElement,e,s)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ec),V(je))},t.\u0275dir=ce({type:t}),r})(),fp=(()=>{var t;class r extends cS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,features:[ze]}),r})();const Pr=new ve("NgValueAccessor"),Iq={provide:Pr,useExisting:Jt(()=>$i),multi:!0},Fz=new ve("CompositionEventMode");let $i=(()=>{var t;class r extends cS{constructor(e,s,u){super(e,s),this._compositionMode=u,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function kq(){const t=Su()?Su().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ec),V(je),V(Fz,8))},t.\u0275dir=ce({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,s){1&e&&J("input",function(m){return s._handleInput(m.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(m){return s._compositionEnd(m.target.value)})},features:[Je([Iq]),ze]}),r})();function qu(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function uS(t){return null!=t&&"number"==typeof t.length}const Ei=new ve("NgValidators"),Sd=new ve("NgAsyncValidators"),Pq=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class hS{static min(r){return function FP(t){return r=>{if(qu(r.value)||qu(t))return null;const l=parseFloat(r.value);return!isNaN(l)&&l{if(qu(r.value)||qu(t))return null;const l=parseFloat(r.value);return!isNaN(l)&&l>t?{max:{max:t,actual:r.value}}:null}}(r)}static required(r){return pS(r)}static requiredTrue(r){return pp(r)}static email(r){return function Nz(t){return qu(t.value)||Pq.test(t.value)?null:{email:!0}}(r)}static minLength(r){return function Vz(t){return r=>qu(r.value)||!uS(r.value)?null:r.value.length{if(qu(e.value))return null;const s=e.value;return r.test(s)?null:{pattern:{requiredPattern:l,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return i(r)}static composeAsync(r){return o(r)}}function pS(t){return qu(t.value)?{required:!0}:null}function pp(t){return!0===t.value?null:{required:!0}}function NP(t){return r=>uS(r.value)&&r.value.length>t?{maxlength:{requiredLength:t,actualLength:r.value.length}}:null}function Ob(t){return null}function Dd(t){return null!=t}function Bz(t){return Ym(t)?nr(t):t}function BP(t){let r={};return t.forEach(l=>{r=null!=l?{...r,...l}:r}),0===Object.keys(r).length?null:r}function zz(t,r){return r.map(l=>l(t))}function a(t){return t.map(r=>function Rq(t){return!t.validate}(r)?r:l=>r.validate(l))}function i(t){if(!t)return null;const r=t.filter(Dd);return 0==r.length?null:function(l){return BP(zz(l,r))}}function n(t){return null!=t?i(a(t)):null}function o(t){if(!t)return null;const r=t.filter(Dd);return 0==r.length?null:function(l){return LP(zz(l,r).map(Bz)).pipe(Ee(BP))}}function c(t){return null!=t?o(a(t)):null}function d(t,r){return null===t?[r]:Array.isArray(t)?[...t,r]:[t,r]}function h(t){return t._rawValidators}function f(t){return t._rawAsyncValidators}function p(t){return t?Array.isArray(t)?t:[t]:[]}function g(t,r){return Array.isArray(t)?t.includes(r):t===r}function v(t,r){const l=p(r);return p(t).forEach(s=>{g(l,s)||l.push(s)}),l}function _(t,r){return p(r).filter(l=>!g(t,l))}class y{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=n(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=c(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,l){return!!this.control&&this.control.hasError(r,l)}getError(r,l){return this.control?this.control.getError(r,l):null}}class w extends y{get formDirective(){return null}get path(){return null}}class x extends y{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class S{constructor(r){this._cd=r}get isTouched(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.touched)}get isUntouched(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.untouched)}get isPristine(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.pristine)}get isDirty(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.dirty)}get isValid(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.valid)}get isInvalid(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.invalid)}get isPending(){var r,l;return!(null==(l=null==(r=this._cd)?void 0:r.control)||!l.pending)}get isSubmitted(){var r;return!(null==(r=this._cd)||!r.submitted)}}let A=(()=>{var t;class r extends S{constructor(e){super(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(x,2))},t.\u0275dir=ce({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,s){2&e&&et("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[ze]}),r})(),E=(()=>{var t;class r extends S{constructor(e){super(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(w,10))},t.\u0275dir=ce({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,s){2&e&&et("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[ze]}),r})();const Le="VALID",We="INVALID",Ke="PENDING",Qe="DISABLED";function At(t){return(Et(t)?t.validators:t)||null}function Pt(t,r){return(Et(r)?r.asyncValidators:t)||null}function Et(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class xt{constructor(r,l){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(r),this._assignAsyncValidators(l)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Le}get invalid(){return this.status===We}get pending(){return this.status==Ke}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(v(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(v(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(_(r,this._rawAsyncValidators))}hasValidator(r){return g(this._rawValidators,r)}hasAsyncValidator(r){return g(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(l=>{l.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(l=>{l.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ke,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const l=this._parentMarkedDirty(r.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(e=>{e.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:l}),this._onDisabledChange.forEach(e=>e(!0))}enable(r={}){const l=this._parentMarkedDirty(r.onlySelf);this.status=Le,this._forEachChild(e=>{e.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:l}),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Le||this.status===Ke)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(l=>l._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:Le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ke,this._hasOwnPendingAsyncValidator=!0;const l=Bz(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,l={}){this.errors=r,this._updateControlsErrors(!1!==l.emitEvent)}get(r){let l=r;return null==l||(Array.isArray(l)||(l=l.split(".")),0===l.length)?null:l.reduce((e,s)=>e&&e._find(s),this)}getError(r,l){const e=l?this.get(l):this;return e&&e.errors?e.errors[r]:null}hasError(r,l){return!!this.getError(r,l)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ke)?Ke:this._anyControlsHaveStatus(We)?We:Le}_anyControlsHaveStatus(r){return this._anyControls(l=>l.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Et(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=function Qt(t){return Array.isArray(t)?n(t):t||null}(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=function at(t){return Array.isArray(t)?c(t):t||null}(this._rawAsyncValidators)}}class ui extends xt{constructor(r,l,e){super(At(l),Pt(e,l)),this.controls=r,this._initObservables(),this._setUpdateStrategy(l),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,l){return this.controls[r]?this.controls[r]:(this.controls[r]=l,l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange),l)}addControl(r,l,e={}){this.registerControl(r,l),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(r,l={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:l.emitEvent}),this._onCollectionChange()}setControl(r,l,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],l&&this.registerControl(r,l),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,l={}){(function qe(t,r,l){t._forEachChild((e,s)=>{if(void 0===l[s])throw new be(1002,"")})})(this,0,r),Object.keys(r).forEach(e=>{(function wt(t,r,l){const e=t.controls;if(!(r?Object.keys(e):e).length)throw new be(1e3,"");if(!e[l])throw new be(1001,"")})(this,!0,e),this.controls[e].setValue(r[e],{onlySelf:!0,emitEvent:l.emitEvent})}),this.updateValueAndValidity(l)}patchValue(r,l={}){null!=r&&(Object.keys(r).forEach(e=>{const s=this.controls[e];s&&s.patchValue(r[e],{onlySelf:!0,emitEvent:l.emitEvent})}),this.updateValueAndValidity(l))}reset(r={},l={}){this._forEachChild((e,s)=>{e.reset(r?r[s]:null,{onlySelf:!0,emitEvent:l.emitEvent})}),this._updatePristine(l),this._updateTouched(l),this.updateValueAndValidity(l)}getRawValue(){return this._reduceChildren({},(r,l,e)=>(r[e]=l.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(l,e)=>!!e._syncPendingControls()||l);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(l=>{const e=this.controls[l];e&&r(e,l)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[l,e]of Object.entries(this.controls))if(this.contains(l)&&r(e))return!0;return!1}_reduceValue(){return this._reduceChildren({},(l,e,s)=>((e.enabled||this.disabled)&&(l[s]=e.value),l))}_reduceChildren(r,l){let e=r;return this._forEachChild((s,u)=>{e=l(e,s,u)}),e}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}const Rr=new ve("CallSetDisabledState",{providedIn:"root",factory:()=>Xu}),Xu="always";function rv(t,r,l=Xu){var e,s;Oq(t,r),r.valueAccessor.writeValue(t.value),(t.disabled||"always"===l)&&(null==(s=(e=r.valueAccessor).setDisabledState)||s.call(e,t.disabled)),function pae(t,r){r.valueAccessor.registerOnChange(l=>{t._pendingValue=l,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Jee(t,r)})}(t,r),function gae(t,r){const l=(e,s)=>{r.valueAccessor.writeValue(e),s&&r.viewToModelUpdate(e)};t.registerOnChange(l),r._registerOnDestroy(()=>{t._unregisterOnChange(l)})}(t,r),function mae(t,r){r.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Jee(t,r),"submit"!==t.updateOn&&t.markAsTouched()})}(t,r),function fae(t,r){if(r.valueAccessor.setDisabledState){const l=e=>{r.valueAccessor.setDisabledState(e)};t.registerOnDisabledChange(l),r._registerOnDestroy(()=>{t._unregisterOnDisabledChange(l)})}}(t,r)}function av(t,r,l=!0){const e=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),Uz(t,r),t&&(r._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Hz(t,r){t.forEach(l=>{l.registerOnValidatorChange&&l.registerOnValidatorChange(r)})}function Oq(t,r){const l=h(t);null!==r.validator?t.setValidators(d(l,r.validator)):"function"==typeof l&&t.setValidators([l]);const e=f(t);null!==r.asyncValidator?t.setAsyncValidators(d(e,r.asyncValidator)):"function"==typeof e&&t.setAsyncValidators([e]);const s=()=>t.updateValueAndValidity();Hz(r._rawValidators,s),Hz(r._rawAsyncValidators,s)}function Uz(t,r){let l=!1;if(null!==t){if(null!==r.validator){const s=h(t);if(Array.isArray(s)&&s.length>0){const u=s.filter(m=>m!==r.validator);u.length!==s.length&&(l=!0,t.setValidators(u))}}if(null!==r.asyncValidator){const s=f(t);if(Array.isArray(s)&&s.length>0){const u=s.filter(m=>m!==r.asyncValidator);u.length!==s.length&&(l=!0,t.setAsyncValidators(u))}}}const e=()=>{};return Hz(r._rawValidators,e),Hz(r._rawAsyncValidators,e),l}function Jee(t,r){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ete(t,r){Oq(t,r)}function Fq(t,r){if(!t.hasOwnProperty("model"))return!1;const l=t.model;return!!l.isFirstChange()||!Object.is(r,l.currentValue)}function tte(t,r){t._syncPendingControls(),r.forEach(l=>{const e=l.control;"submit"===e.updateOn&&e._pendingChange&&(l.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Nq(t,r){if(!r)return null;let l,e,s;return Array.isArray(r),r.forEach(u=>{u.constructor===$i?l=u:function yae(t){return Object.getPrototypeOf(t.constructor)===fp}(u)?e=u:s=u}),s||e||l||null}const wae={provide:w,useExisting:Jt(()=>ov)},zP=(()=>Promise.resolve())();let ov=(()=>{var t;class r extends w{constructor(e,s,u){super(),this.callSetDisabledState=u,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new ui({},n(e),c(s))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){zP.then(()=>{const s=this._findContainer(e.path);e.control=s.registerControl(e.name,e.control),rv(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){zP.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){zP.then(()=>{const s=this._findContainer(e.path),u=new ui({});ete(u,e),s.registerControl(e.name,u),u.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){zP.then(()=>{const s=this._findContainer(e.path);s&&s.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,s){zP.then(()=>{this.form.get(e.path).setValue(s)})}setValue(e){this.control.setValue(e)}onSubmit(e){var s;return this.submitted=!0,tte(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null==(s=null==e?void 0:e.target)?void 0:s.method)}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,s){1&e&&J("submit",function(m){return s.onSubmit(m)})("reset",function(){return s.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([wae]),ze]}),r})();function nte(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}function ite(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vq=class extends xt{constructor(r=null,l,e){super(At(l),Pt(e,l)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(l),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Et(l)&&(l.nonNullable||l.initialValueIsDefault)&&(this.defaultValue=ite(r)?r.value:r)}setValue(r,l={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==l.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==l.emitViewToModelChange)),this.updateValueAndValidity(l)}patchValue(r,l={}){this.setValue(r,l)}reset(r=this.defaultValue,l={}){this._applyFormState(r),this.markAsPristine(l),this.markAsUntouched(l),this.setValue(this.value,l),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){nte(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){nte(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){ite(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},Sae={provide:x,useExisting:Jt(()=>ii)},ote=(()=>Promise.resolve())();let ii=(()=>{var t;class r extends x{constructor(e,s,u,m,b,C){super(),this._changeDetectorRef=b,this.callSetDisabledState=C,this.control=new Vq,this._registered=!1,this.name="",this.update=new Ce,this._parent=e,this._setValidators(s),this._setAsyncValidators(u),this.valueAccessor=Nq(0,m)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const s=e.name.previousValue;this.formDirective.removeControl({name:s,path:this._getPath(s)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Fq(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){rv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ote.then(()=>{var s;this.control.setValue(e,{emitViewToModelChange:!1}),null==(s=this._changeDetectorRef)||s.markForCheck()})}_updateDisabled(e){const s=e.isDisabled.currentValue,u=0!==s&&jt(s);ote.then(()=>{var m;u&&!this.control.disabled?this.control.disable():!u&&this.control.disabled&&this.control.enable(),null==(m=this._changeDetectorRef)||m.markForCheck()})}_getPath(e){return this._parent?function xl(t,r){return[...r.path,t]}(e,this._parent):[e]}}return(t=r).\u0275fac=function(e){return new(e||t)(V(w,9),V(Ei,10),V(Sd,10),V(Pr,10),V(dn,8),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Je([Sae]),ze,nn]}),r})(),Bq=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),r})();const Dae={provide:Pr,useExisting:Jt(()=>sv),multi:!0};let sv=(()=>{var t;class r extends fp{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=s=>{e(""==s?null:parseFloat(s))}}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,s){1&e&&J("input",function(m){return s.onChange(m.target.value)})("blur",function(){return s.onTouched()})},features:[Je([Dae]),ze]}),r})(),ste=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const zq=new ve("NgModelWithFormControlWarning"),Eae={provide:x,useExisting:Jt(()=>Hq)};let Hq=(()=>{var t;class r extends x{set isDisabled(e){}constructor(e,s,u,m,b){super(),this._ngModelWarningConfig=m,this.callSetDisabledState=b,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(s),this.valueAccessor=Nq(0,u)}ngOnChanges(e){if(this._isControlChanged(e)){const s=e.form.previousValue;s&&av(s,this,!1),rv(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Fq(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&av(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return(t=r)._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Pr,10),V(zq,8),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Je([Eae]),ze,nn]}),r})();const Iae={provide:w,useExisting:Jt(()=>mS)};let mS=(()=>{var t;class r extends w{constructor(e,s,u){super(),this.callSetDisabledState=u,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(s)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Uz(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const s=this.form.get(e.path);return rv(s,e,this.callSetDisabledState),s.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),s}getControl(e){return this.form.get(e.path)}removeControl(e){av(e.control||null,e,!1),function bae(t,r){const l=t.indexOf(r);l>-1&&t.splice(l,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,s){this.form.get(e.path).setValue(s)}onSubmit(e){var s;return this.submitted=!0,tte(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null==(s=null==e?void 0:e.target)?void 0:s.method)}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const s=e.control,u=this.form.get(e.path);s!==u&&(av(s||null,e),(t=>t instanceof Vq)(u)&&(rv(u,e,this.callSetDisabledState),e.control=u))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const s=this.form.get(e.path);ete(s,e),s.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const s=this.form.get(e.path);s&&function vae(t,r){return Uz(t,r)}(s,e)&&s.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oq(this.form,this),this._oldForm&&Uz(this._oldForm,this)}_checkFormPresent(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ei,10),V(Sd,10),V(Rr,8))},t.\u0275dir=ce({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,s){1&e&&J("submit",function(m){return s.onSubmit(m)})("reset",function(){return s.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([Iae]),ze,nn]}),r})();let Lb=(()=>{var t;class r{constructor(){this._validator=Ob}ngOnChanges(e){if(this.inputName in e){const s=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(s),this._validator=this._enabled?this.createValidator(s):Ob,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,features:[nn]}),r})();const Uae={provide:Ei,useExisting:Jt(()=>xc),multi:!0},jae={provide:Ei,useExisting:Jt(()=>jz),multi:!0};let xc=(()=>{var t;class r extends Lb{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=jt,this.createValidator=e=>pS}enabled(e){return e}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,s){2&e&&$e("required",s._enabled?"":null)},inputs:{required:"required"},features:[Je([Uae]),ze]}),r})(),jz=(()=>{var t;class r extends xc{constructor(){super(...arguments),this.createValidator=e=>pp}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,s){2&e&&$e("required",s._enabled?"":null)},features:[Je([jae]),ze]}),r})();const $ae={provide:Ei,useExisting:Jt(()=>HP),multi:!0};let HP=(()=>{var t;class r extends Lb{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function pte(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>NP(e)}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,s){2&e&&$e("maxlength",s._enabled?s.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Je([$ae]),ze]}),r})(),wte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[ste]}),r})(),Zae=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:[{provide:Rr,useValue:e.callSetDisabledState??Xu}]}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[wte]}),r})(),xte=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:[{provide:zq,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Rr,useValue:e.callSetDisabledState??Xu}]}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[wte]}),r})();function Xae(t,r){}const Kae=t=>({animationDuration:t}),Qae=(t,r)=>({value:t,params:r});function Jae(t,r){1&t&&dt(0)}const Cte=["*"],eoe=["tabListContainer"],toe=["tabList"],noe=["tabListInner"],ioe=["nextPaginator"],roe=["previousPaginator"],aoe=["tabBodyWrapper"],ooe=["tabHeader"];function soe(t,r){}function loe(t,r){1&t&&re(0,soe,0,0,"ng-template",10),2&t&&z("cdkPortalOutlet",Z().$implicit.templateLabel)}function coe(t,r){1&t&&Y(0),2&t&&En(Z().$implicit.textLabel)}function doe(t,r){if(1&t){const l=Oe();P(0,"div",4,5),J("click",function(){const s=oe(l),u=s.$implicit,m=s.$index,b=Z(),C=pn(1);return le(b._handleClick(u,C,m))})("cdkFocusChange",function(s){const m=oe(l).$index;return le(Z()._tabFocusChanged(s,m))}),pe(2,"span",6)(3,"div",7),P(4,"span",8)(5,"span",9),re(6,loe,1,1,null,10)(7,coe,1,1),R()()()}if(2&t){const l=r.$implicit,e=r.$index,s=pn(1),u=Z();et("mdc-tab--active",u.selectedIndex===e),z("id",u._getTabLabelId(e))("ngClass",l.labelClass)("disabled",l.disabled)("fitInkBarToContent",u.fitInkBarToContent),$e("tabIndex",u._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",u._tabs.length)("aria-controls",u._getTabContentId(e))("aria-selected",u.selectedIndex===e)("aria-label",l.ariaLabel||null)("aria-labelledby",!l.ariaLabel&&l.ariaLabelledby?l.ariaLabelledby:null),N(3),z("matRippleTrigger",s)("matRippleDisabled",l.disabled||u.disableRipple),N(3),an(6,l.templateLabel?6:7)}}function uoe(t,r){if(1&t){const l=Oe();P(0,"mat-tab-body",11),J("_onCentered",function(){return oe(l),le(Z()._removeTabBodyWrapperHeight())})("_onCentering",function(s){return oe(l),le(Z()._setTabBodyWrapperHeight(s))}),R()}if(2&t){const l=r.$implicit,e=r.$index,s=Z();et("mat-mdc-tab-body-active",s.selectedIndex===e),z("id",s._getTabContentId(e))("ngClass",l.bodyClass)("content",l.content)("position",l.position)("origin",l.origin)("animationDuration",s.animationDuration)("preserveContent",s.preserveContent),$e("tabindex",null!=s.contentTabIndex&&s.selectedIndex===e?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(e))("aria-hidden",s.selectedIndex!==e)}}const hoe={translateTab:Vi("translateTab",[Vn("center, void, left-origin-center, right-origin-center",lt({transform:"none"})),Vn("left",lt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Vn("right",lt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Cn("* => left, * => right, left => center, right => center",kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Cn("void => left-origin-center",[lt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Cn("void => right-origin-center",[lt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),kn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let foe=(()=>{var t;class r extends _c{constructor(e,s,u,m){super(e,s,m),this._host=u,this._centeringSub=bt.EMPTY,this._leavingSub=bt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(pr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(ls),V(fi),V(Jt(()=>Ste)),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","matTabBodyHost",""]],features:[ze]}),r})(),Ste=(()=>{var t;class r{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,s,u){this._elementRef=e,this._dir=s,this._dirChangeSubscription=bt.EMPTY,this._translateTabComplete=new he,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,s&&(this._dirChangeSubscription=s.change.subscribe(m=>{this._computePositionAnimationState(m),u.markForCheck()})),this._translateTabComplete.pipe(O1((m,b)=>m.fromState===b.fromState&&m.toState===b.toState)).subscribe(m=>{this._isCenterPosition(m.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(m.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const s=this._isCenterPosition(e.toState);this._beforeCentering.emit(s),s&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const s=this._getLayoutDirection();return"ltr"==s&&e<=0||"rtl"==s&&e>0?"left-origin-center":"right-origin-center"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ir,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,s){if(1&e&&ft(_c,5),2&e){let u;Ne(u=Ve())&&(s._portalHost=u.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,s){1&e&&(P(0,"div",0,1),J("@translateTab.start",function(m){return s._onTranslateTabStarted(m)})("@translateTab.done",function(m){return s._translateTabComplete.next(m)}),re(2,Xae,0,0,"ng-template",2),R()),2&e&&z("@translateTab",Ix(3,Qae,s._position,dc(1,Kae,s.animationDuration)))},dependencies:[foe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[hoe.translateTab]}}),r})();const poe=new ve("MatTabContent");let moe=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","matTabContent",""]],features:[Je([{provide:poe,useExisting:t}])]}),r})();const goe=new ve("MatTabLabel"),Dte=new ve("MAT_TAB");let As=(()=>{var t;class r extends T1{constructor(e,s,u){super(e,s),this._closestTab=u}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(fi),V(Dte,8))},t.\u0275dir=ce({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Je([{provide:goe,useExisting:t}]),ze]}),r})();const $q="mdc-tab-indicator--active",Tte="mdc-tab-indicator--no-transition";class voe{constructor(r){this._items=r}hide(){this._items.forEach(r=>r.deactivateInkBar())}alignToElement(r){var s,u;const l=this._items.find(m=>m.elementRef.nativeElement===r),e=this._currentItem;if(l!==e&&(null==e||e.deactivateInkBar(),l)){const m=null==(u=null==e?void 0:(s=e.elementRef.nativeElement).getBoundingClientRect)?void 0:u.call(s);l.activateInkBar(m),this._currentItem=l}}}function _oe(t){return class extends t{constructor(...r){super(...r),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(r){const l=Ot(r);this._fitToContent!==l&&(this._fitToContent=l,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(r){const l=this.elementRef.nativeElement;if(!r||!l.getBoundingClientRect||!this._inkBarContentElement)return void l.classList.add($q);const e=l.getBoundingClientRect(),s=r.width/e.width,u=r.left-e.left;l.classList.add(Tte),this._inkBarContentElement.style.setProperty("transform",`translateX(${u}px) scaleX(${s})`),l.getBoundingClientRect(),l.classList.remove(Tte),l.classList.add($q),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove($q)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){var r;null==(r=this._inkBarElement)||r.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const r=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=r.createElement("span"),this._inkBarContentElement=r.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const boe=_oe(lp(class{}));let Mte=(()=>{var t;class r extends boe{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,s){2&e&&($e("aria-disabled",!!s.disabled),et("mat-mdc-tab-disabled",s.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ze]}),r})();const woe=lp(class{}),Ate=new ve("MAT_TAB_GROUP");let Es=(()=>{var t;class r extends woe{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,s){super(),this._viewContainerRef=e,this._closestTabGroup=s,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new he,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new yd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(Ate,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,As,5),Kt(u,moe,7,Kn)),2&e){let m;Ne(m=Ve())&&(s.templateLabel=m.first),Ne(m=Ve())&&(s._explicitContent=m.first)}},viewQuery:function(e,s){if(1&e&&ft(Kn,7),2&e){let u;Ne(u=Ve())&&(s._implicitContent=u.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[Je([{provide:Dte,useExisting:t}]),ze,nn],ngContentSelectors:Cte,decls:1,vars:0,template:function(e,s){1&e&&(jn(),re(0,Jae,1,0,"ng-template"))},encapsulation:2}),r})();const Ete=Ko({passive:!0});let Soe=(()=>{var t;class r{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ot(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=xa(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,s,u,m,b,C,M){this._elementRef=e,this._changeDetectorRef=s,this._viewportRuler=u,this._dir=m,this._ngZone=b,this._platform=C,this._animationMode=M,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new he,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new he,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,b.runOutsideAngular(()=>{vd(e.nativeElement,"mouseleave").pipe(Dt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){vd(this._previousPaginator.nativeElement,"touchstart",Ete).pipe(Dt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),vd(this._nextPaginator.nativeElement,"touchstart",Ete).pipe(Dt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:tt("ltr"),s=this._viewportRuler.change(150),u=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qk(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(In(1)).subscribe(u),xi(e,s,this._items.changes,this._itemsResized()).pipe(Dt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),u()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(m=>{this.indexFocused.emit(m),this._setTabFocus(m)})}_itemsResized(){return"function"!=typeof ResizeObserver?Ao:this._items.changes.pipe(pr(this._items),Li(e=>new ln(s=>this._ngZone.runOutsideAngular(()=>{const u=new ResizeObserver(m=>s.next(m));return e.forEach(m=>u.observe(m.elementRef.nativeElement)),()=>{u.disconnect()}}))),R1(1),bn(e=>e.some(s=>s.contentRect.width>0&&s.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!vr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const s=this._items.get(this.focusIndex);s&&!s.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const s=this._tabListContainer.nativeElement;s.scrollLeft="ltr"==this._getLayoutDirection()?0:s.scrollWidth-s.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,s="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(s)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const s=this._items?this._items.toArray()[e]:null;if(!s)return;const u=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:m,offsetWidth:b}=s.elementRef.nativeElement;let C,M;"ltr"==this._getLayoutDirection()?(C=m,M=C+b):(M=this._tabListInner.nativeElement.offsetWidth-m,C=M-b);const I=this.scrollDistance,F=this.scrollDistance+u;CF&&(this.scrollDistance+=Math.min(M-F,C-I))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,s=e?e.elementRef.nativeElement:null;s?this._inkBar.alignToElement(s):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,s){s&&null!=s.button&&0!==s.button||(this._stopInterval(),hb(650,100).pipe(Dt(xi(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:u,distance:m}=this._scrollHeader(e);(0===m||m>=u)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const s=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(s,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:s,distance:this._scrollDistance}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Nu),V(Ir,8),V(Ye),V(Jn),V(si,8))},t.\u0275dir=ce({type:t,inputs:{disablePagination:"disablePagination"}}),r})(),Doe=(()=>{var t;class r extends Soe{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}constructor(e,s,u,m,b,C,M){super(e,s,u,m,b,C,M),this._disableRipple=!1}ngAfterContentInit(){this._inkBar=new voe(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Nu),V(Ir,8),V(Ye),V(Jn),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Mte,4),2&e){let m;Ne(m=Ve())&&(s._items=m)}},viewQuery:function(e,s){if(1&e&&(ft(eoe,7),ft(toe,7),ft(noe,7),ft(ioe,5),ft(roe,5)),2&e){let u;Ne(u=Ve())&&(s._tabListContainer=u.first),Ne(u=Ve())&&(s._tabList=u.first),Ne(u=Ve())&&(s._tabListInner=u.first),Ne(u=Ve())&&(s._nextPaginator=u.first),Ne(u=Ve())&&(s._previousPaginator=u.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-mdc-tab-header-pagination-controls-enabled",s._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==s._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ze],ngContentSelectors:Cte,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,s){1&e&&(jn(),P(0,"button",0,1),J("click",function(){return s._handlePaginatorClick("before")})("mousedown",function(m){return s._handlePaginatorPress("before",m)})("touchend",function(){return s._stopInterval()}),pe(2,"div",2),R(),P(3,"div",3,4),J("keydown",function(m){return s._handleKeydown(m)}),P(5,"div",5,6),J("cdkObserveContent",function(){return s._onContentChanges()}),P(7,"div",7,8),dt(9),R()()(),P(10,"button",9,10),J("mousedown",function(m){return s._handlePaginatorPress("after",m)})("click",function(){return s._handlePaginatorClick("after")})("touchend",function(){return s._stopInterval()}),pe(12,"div",2),R()),2&e&&(et("mat-mdc-tab-header-pagination-disabled",s._disableScrollBefore),z("matRippleDisabled",s._disableScrollBefore||s.disableRipple)("disabled",s._disableScrollBefore||null),N(3),et("_mat-animation-noopable","NoopAnimations"===s._animationMode),N(7),et("mat-mdc-tab-header-pagination-disabled",s._disableScrollAfter),z("matRippleDisabled",s._disableScrollAfter||s.disableRipple)("disabled",s._disableScrollAfter||null))},dependencies:[bl,CY],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),r})();const Toe=new ve("MAT_TABS_CONFIG");let Moe=0;const Aoe=tv(sP(class{constructor(t){this._elementRef=t}}),"primary");let Cl=(()=>{var t;class r extends Aoe{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ot(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ot(e)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ot(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=xa(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=xa(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ot(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ot(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const s=this._elementRef.nativeElement.classList;s.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&s.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,s,u,m){super(e),this._changeDetectorRef=s,this._animationMode=m,this._tabs=new yu,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=bt.EMPTY,this._tabLabelSubscription=bt.EMPTY,this._fitInkBarToContent=!1,this._stretchTabs=!0,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._groupId=Moe++,this.animationDuration=u&&u.animationDuration?u.animationDuration:"500ms",this.disablePagination=!(!u||null==u.disablePagination)&&u.disablePagination,this.dynamicHeight=!(!u||null==u.dynamicHeight)&&u.dynamicHeight,this.contentTabIndex=(null==u?void 0:u.contentTabIndex)??null,this.preserveContent=!(null==u||!u.preserveContent),this.fitInkBarToContent=!(!u||null==u.fitInkBarToContent)&&u.fitInkBarToContent,this.stretchTabs=!u||null==u.stretchTabs||u.stretchTabs}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const s=null==this._selectedIndex;if(!s){this.selectedTabChange.emit(this._createChangeEvent(e));const u=this._tabBodyWrapper.nativeElement;u.style.minHeight=u.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((u,m)=>u.isActive=m===e),s||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((s,u)=>{s.position=u-e,null!=this._selectedIndex&&0==s.position&&!s.origin&&(s.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const s=this._tabs.toArray();let u;for(let m=0;m{s[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(pr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(s=>s._closestTabGroup===this||!s._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const s=this._tabHeader;s&&(s.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const s=new Ioe;return s.index=e,this._tabs&&this._tabs.length&&(s.tab=this._tabs.toArray()[e]),s}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=xi(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const s=this._tabBodyWrapper.nativeElement;s.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(s.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,s,u){s.focusIndex=u,e.disabled||(this.selectedIndex=u)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,s){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Toe,8),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Es,5),2&e){let m;Ne(m=Ve())&&(s._allTabs=m)}},viewQuery:function(e,s){if(1&e&&(ft(aoe,5),ft(ooe,5)),2&e){let u;Ne(u=Ve())&&(s._tabBodyWrapper=u.first),Ne(u=Ve())&&(s._tabHeader=u.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(e,s){2&e&&(cr("--mat-tab-animation-duration",s.animationDuration),et("mat-mdc-tab-group-dynamic-height",s.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===s.headerPosition)("mat-mdc-tab-group-stretch-tabs",s.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"],dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Je([{provide:Ate,useExisting:t}]),ze],decls:8,vars:5,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(e,s){1&e&&(P(0,"mat-tab-header",0,1),J("indexFocused",function(m){return s._focusChanged(m)})("selectFocusedIndex",function(m){return s.selectedIndex=m}),lf(2,doe,8,16,"div",12,sf),R(),P(4,"div",2,3),lf(6,uoe,1,12,"mat-tab-body",13,sf),R()),2&e&&(z("selectedIndex",s.selectedIndex||0)("disableRipple",s.disableRipple)("disablePagination",s.disablePagination),N(2),cf(s._tabs),N(2),et("_mat-animation-noopable","NoopAnimations"===s._animationMode),N(2),cf(s._tabs))},dependencies:[To,_c,bl,U1,Ste,Mte,Doe],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),r})();class Ioe{}let koe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,$t,gl,Wu,zk,j1,$t]}),r})();function Poe(t,r){if(1&t){const l=Oe();P(0,"uds-field-text",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Roe(t,r){if(1&t){const l=Oe();P(0,"uds-field-autocomplete",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Ooe(t,r){if(1&t){const l=Oe();P(0,"uds-field-textbox",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Loe(t,r){if(1&t){const l=Oe();P(0,"uds-field-numeric",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Foe(t,r){if(1&t){const l=Oe();P(0,"uds-field-password",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Noe(t,r){if(1&t){const l=Oe();P(0,"uds-field-hidden",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Voe(t,r){if(1&t){const l=Oe();P(0,"uds-field-choice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Boe(t,r){if(1&t){const l=Oe();P(0,"uds-field-multichoice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function zoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-editlist",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Hoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-checkbox",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Uoe(t,r){if(1&t){const l=Oe();P(0,"uds-field-imgchoice",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function joe(t,r){if(1&t){const l=Oe();P(0,"uds-field-date",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}function Goe(t,r){if(1&t){const l=Oe();P(0,"uds-field-tags",2),J("changed",function(s){return oe(l),le(Z().changed.emit(s))}),R()}2&t&&z("field",Z().field)}let Ite=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.udsGuiFieldType=Ca}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(e,s){1&e&&(P(0,"div",0),re(1,Poe,1,1,"uds-field-text",1)(2,Roe,1,1,"uds-field-autocomplete",1)(3,Ooe,1,1,"uds-field-textbox",1)(4,Loe,1,1,"uds-field-numeric",1)(5,Foe,1,1,"uds-field-password",1)(6,Noe,1,1,"uds-field-hidden",1)(7,Voe,1,1,"uds-field-choice",1)(8,Boe,1,1,"uds-field-multichoice",1)(9,zoe,1,1,"uds-field-editlist",1)(10,Hoe,1,1,"uds-field-checkbox",1)(11,Uoe,1,1,"uds-field-imgchoice",1)(12,joe,1,1,"uds-field-date",1)(13,Goe,1,1,"uds-field-tags",1),R()),2&e&&(z("ngSwitch",s.field.gui.type)("matTooltip",s.field.gui.tooltip),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXT),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXT_AUTOCOMPLETE),N(),z("ngSwitchCase",s.udsGuiFieldType.TEXTBOX),N(),z("ngSwitchCase",s.udsGuiFieldType.NUMERIC),N(),z("ngSwitchCase",s.udsGuiFieldType.PASSWORD),N(),z("ngSwitchCase",s.udsGuiFieldType.HIDDEN),N(),z("ngSwitchCase",s.udsGuiFieldType.CHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.MULTI_CHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.EDITLIST),N(),z("ngSwitchCase",s.udsGuiFieldType.CHECKBOX),N(),z("ngSwitchCase",s.udsGuiFieldType.IMAGECHOICE),N(),z("ngSwitchCase",s.udsGuiFieldType.DATE),N(),z("ngSwitchCase",s.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),r})();function Woe(t,r){1&t&&Y(0),2&t&&Re(" ",Z().$implicit," ")}function $oe(t,r){if(1&t){const l=Oe();P(0,"uds-field",9),J("changed",function(s){return oe(l),le(Z(3).changed.emit(s))}),R()}2&t&&z("field",r.$implicit)}function Yoe(t,r){if(1&t&&(P(0,"mat-tab",4),re(1,Woe,1,1,"ng-template",5),P(2,"div",6)(3,"div",7),re(4,$oe,1,1,"uds-field",8),R()()()),2&t){const l=r.$implicit,e=Z(2);N(4),z("ngForOf",e.fieldsByTab[l])}}function qoe(t,r){if(1&t&&(P(0,"mat-tab-group",2),re(1,Yoe,5,1,"mat-tab",3),R()),2&t){const l=Z();z("disableRipple",!1)("@.disabled",!0),N(),z("ngForOf",l.tabs)}}function Zoe(t,r){if(1&t){const l=Oe();P(0,"div")(1,"uds-field",9),J("changed",function(s){return oe(l),le(Z(2).changed.emit(s))}),R()()}if(2&t){const l=r.$implicit;N(),z("field",l)}}function Xoe(t,r){if(1&t&&(P(0,"div",6),re(1,Zoe,2,1,"div",10),R()),2&t){const l=Z();N(),z("ngForOf",l.fields)}}const Koe=django.gettext("Main");let Qoe=(()=>{var t;class r{constructor(){this.fields=[],this.changed=new Ce,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(const e of this.fields){const s=void 0===e.gui.tab?Koe:e.gui.tab;this.tabs.includes(s)||(this.tabs.push(s),this.fieldsByTab[s]=new Array),this.fieldsByTab[s].push(e)}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[4,"ngFor","ngForOf"]],template:function(e,s){if(1&e&&re(0,qoe,2,3,"mat-tab-group",0)(1,Xoe,2,1,"ng-template",null,1,so),2&e){const u=pn(2);z("ngIf",s.tabs.length>1)("ngIfElse",u)}},dependencies:[mi,xn,As,Es,Cl,Ite],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem}"]}),r})();function Joe(t,r){if(1&t){const l=Oe();P(0,"button",10),J("click",function(){return oe(l),le(Z().customButtonClicked())}),Y(1),R()}if(2&t){const l=Z();N(),En(l.data.customButton)}}let ese=(()=>{var t;class r{constructor(e,s){this.dialogRef=e,this.data=s,this.onEvent=new Ce(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){const e={},s=[];return this.data.guiFields.forEach(u=>{let m=u.value;if(u.gui.required&&0!==m&&!1!==m&&(!m||m instanceof Array&&0===m.length)&&s.push(u.gui.label),"number"==typeof m){const b=parseInt((u.gui.minValue||987654321).toString(),10),C=parseInt((u.gui.maxValue||987654321).toString(),10);987654321!==b&&m= "+u.gui.minValue),987654321!==C&&m>C&&s.push(u.gui.label+" <= "+u.gui.maxValue),m=m.toString()}e[u.name]=m}),{data:e,errors:s}}save(){const e=this.getFields();e.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", ")):this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){const e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(e,s){1&e&&(pe(0,"h4",0),nl(1,"safeHtml"),P(2,"mat-dialog-content",null,1)(4,"form",2)(5,"uds-form",3),J("changed",function(m){return s.changed(m)}),R()()(),P(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),re(9,Joe,2,1,"button",6),R(),P(10,"div",7)(11,"button",8),J("click",function(){return s.dialogRef.close()})("click",function(){return s.cancel()}),P(12,"uds-translate"),Y(13,"Discard & close"),R()(),P(14,"button",9),J("click",function(){return s.save()}),P(15,"uds-translate"),Y(16,"Save"),R()()()()()),2&e&&(z("innerHtml",ng(1,5,s.data.title),zr),N(5),z("fields",s.data.guiFields),N(4),z("ngIf",void 0!==s.data.customButton),N(2),z("disabled",s.saving),N(3),z("disabled",s.saving))},dependencies:[To,xn,Bq,E,ov,Pn,zi,Ai,Hi,vn,Qoe,Oz],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]}),r})();class tse{constructor(r){this.gui=r}modalForm(r,l,e=null,s){l.sort((C,M)=>C.gui.order>M.gui.order?1:-1);const u=null!=e;e=u?e:{},l.forEach(C=>{(!1===u||void 0===C.gui.readonly)&&(C.gui.readonly=!1),C.gui.type===Ca.TEXT&&C.gui.lines&&(C.gui.type=Ca.TEXTBOX);const M=e[C.name];if(void 0!==M)if(M instanceof Array){const I=new Array;M.forEach(F=>I.push(F)),C.value=I}else C.value=M});const m=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(ese,{position:{top:"64px"},width:m,data:{title:r,guiFields:l,customButton:s,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(r,l,e,s,u,m,b){var C=this;return Ge(function*(){const M=b||{},I=M.callback||(()=>{}),F=s||[],H=e?django.gettext("Test"):void 0,q={},Q={},ne=se=>{Q.hasOwnProperty(se.name)&&""!==se.value&&void 0!==se.value&&C.executeCallback(r,se,q)},ae=M.snack||C.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),ge=yield r.table.rest.gui(m);if(ae.dismiss(),void 0!==F)for(const se of F)ge.push(se);for(const se of ge)se.gui.type!==Ca.INFO?(q[se.name]=se,void 0!==se.gui.fills&&(Q[se.name]=se.gui.fills)):"title"===se.name&&(l+=" "+(se.value||se.gui.default||""));C.modalForm(l,ge,u,H).subscribe(function(){var se=Ge(function*(Be){switch(Be.data&&(Be.data.data_type=m),Be.type){case H:if(Be.errors&&Be.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Be.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),r.table.rest.test(m,Be.data).then(Fe=>{"ok"!==Fe?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Fe,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Be.data)for(const Fe of ge)ne(Fe);else ne(Be.data.field);I({on:Be.data,all:q});break;case"save":if(void 0===M.save){Be.dialog.componentInstance.saving=!0;try{u?yield r.table.rest.save(Be.data,u.id):yield r.table.rest.create(Be.data),C.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),Be.dialog.close(),r.table.overview()}finally{Be.dialog.componentInstance.saving=!1}}else Be.dialog.close(),M.save.resolve(Be.data);break;case"cancel":Be.dialog.close()}});return function(Be){return se.apply(this,arguments)}}())})()}typedEditForm(r,l,e=!1,s,u=(()=>{})){var m=this;return Ge(function*(){const b=r.table.selection.selected[0],C=b.type,I=(new Ce,m.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),F=yield r.table.rest.get(b.id);return m.typedForm(r,l,e,s,F,C,{snack:I,callback:u})})()}typedNewForm(r,l,e=!1,s,u=(()=>{})){var m=this;return Ge(function*(){return m.typedForm(r,l,e,s,null,r.param?r.param.type:void 0,{callback:u})})()}deleteForm(r,l){var e=this;return Ge(function*(){const s=new Array,u=new Array;for(const C of r.table.selection.selected){let M=C.name||C.friendly_name;M&&M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),s.push(M),u.push(C.id)}const m=django.gettext("Are you sure do you want to delete the following items?")+"
"+s.join(", ")+"";if(yield e.gui.questionDialog(l,m,!0)){for(const M of u)try{yield r.table.rest.delete(M)}catch(I){console.warn("Error deleting item",M,I)}e.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()}})()}executeCallback(r,l,e,s={}){var u=this;return Ge(function*(){const m=new Array;if(!l.gui.fills)return;for(const M of l.gui.fills.parameters)m.push(M+"="+encodeURIComponent(e[M].value));const b=yield r.table.rest.callback(l.gui.fills.callback_name,m.join("&")),C=new Array;for(const M of b){const I=e[M.name];if(void 0!==I){void 0!==I.gui.fills&&C.push(I);const F=new Array;for(const H of M.choices)F.push({id:H.id,text:H.text,img:H.img});I.gui.choices=F,I.value||(I.value=M.choices.length>0?M.choices[0].id:"")}}for(const M of C)void 0===s[M.name]&&(s[M.name]=!0,u.executeCallback(r,M,e,s))})()}}class ise{constructor(r,l){this.dialog=r,this.snackbar=l,this.forms=new tse(this)}alert(r,l,e=0,s){var u=this;return Ge(function*(){const m=s||(window.innerWidth<800?"80%":"40%");return u.dialog.open(Rb,{width:m,data:{title:r,body:l,autoclose:e,type:Pb.alert},disableClose:!0}).componentInstance.acceptance})()}questionDialog(r,l,e=!1){var s=this;return Ge(function*(){const u=window.innerWidth<800?"80%":"40%",m=s.dialog.open(Rb,{width:u,data:{title:r,body:l,type:Pb.question,warnOnYes:e},disableClose:!0});return Yu(m.componentInstance.acceptance)})()}icon(r,l="24px"){return''}}var $a=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}($a||{}),gi=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}(gi||{});const Yq="pool",qq="user",Zq="calendar",ase={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")};class Sl{constructor(r){this.router=r}static getGotoButton(r,l,e){return{id:r,html:'link'+django.gettext("Go to")+" "+ase[r]+"",type:gi.ACCELERATOR,acceleratorProperties:[l,e||""]}}gotoProvider(r){this.router.navigate(void 0!==r?["services","providers",r]:["services","providers"])}gotoService(r,l){this.router.navigate(void 0!==l?["services","providers",r,"detail",l]:["services","providers",r,"detail"])}gotoServer(r){this.router.navigate(["services","servers",r])}gotoServerDetail(r){this.router.navigate(["services","servers",r,"detail"])}gotoServicePool(r){this.router.navigate(["pools","service-pools",r])}gotoServicePoolDetail(r){this.router.navigate(["pools","service-pools",r,"detail"])}gotoMetapool(r){this.router.navigate(["pools","meta-pools",r])}gotoMetapoolDetail(r){this.router.navigate(["pools","meta-pools",r,"detail"])}gotoCalendar(r){this.router.navigate(["pools","calendars",r])}gotoCalendarDetail(r){this.router.navigate(["pools","calendars",r,"detail"])}gotoAccount(r){this.router.navigate(["pools","accounts",r])}gotoAccountDetail(r){this.router.navigate(["pools","accounts",r,"detail"])}gotoPoolGroup(r){this.router.navigate(["pools","pool-groups",r=r||""])}gotoAuthenticator(r){this.router.navigate(["authenticators",r])}gotoAuthenticatorDetail(r){this.router.navigate(["authenticators",r,"detail"])}gotoMFA(r){this.router.navigate(["mfas",r])}gotoUser(r,l){this.router.navigate(["authenticators",r,"detail","users",l])}gotoGroup(r,l){this.router.navigate(["authenticators",r,"detail","groups",l])}gotoTransport(r){this.router.navigate(["connectivity/transports",r])}gotoTunnel(r){this.router.navigate(["connectivity/tunnels",r])}gotoTunnelDetail(r){this.router.navigate(["connectivity/tunnels",r,"detail"])}gotoOSManager(r){this.router.navigate(["osmanagers",r])}goto(r,l,e){const s=u=>{let m=l;if(e[u].split(".").forEach(b=>m=m[b]),!m)throw new Error("not going :)");return m};try{switch(r){case"provider":this.gotoProvider(s(0));break;case"service":this.gotoService(s(0),s(1));break;case Yq:this.gotoServicePool(s(0));break;case"authenticator":this.gotoAuthenticator(s(0));break;case qq:this.gotoUser(s(0),s(1));break;case"group":this.gotoGroup(s(0),s(1));break;case"transport":this.gotoTransport(s(0));break;case"osmanager":this.gotoOSManager(s(0));break;case Zq:this.gotoCalendar(s(0));break;case"poolgroup":this.gotoPoolGroup(s(0))}}catch{}}}function ose(t,r){if(1&t){const l=Oe();P(0,"div",1)(1,"button",2),J("click",function(){return oe(l),le(Z().action())}),Y(2),R()()}if(2&t){const l=Z();N(2),Re(" ",l.data.action," ")}}const sse=["label"];function lse(t,r){}const cse=Math.pow(2,31)-1;class Xq{constructor(r,l){this._overlayRef=l,this._afterDismissed=new he,this._afterOpened=new he,this._onAction=new he,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,cse))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Vte=new ve("MatSnackBarData");class Gz{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Bte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0}),r})(),zte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0}),r})(),Hte=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0}),r})(),Ute=(()=>{var t;class r{constructor(e,s){this.snackBarRef=e,this.data=s}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xq),V(Vte))},t.\u0275cmp=xe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[wf],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,s){1&e&&(P(0,"div",0),Y(1),R(),re(2,ose,3,1,"div",1)),2&e&&(N(),Re(" ",s.data.message,"\n"),N(),an(2,s.hasAction?2:-1))},dependencies:[hp,Pn,Bte,zte,Hte,Er],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),r})();const dse={snackBarState:Vi("state",[Vn("void, hidden",lt({transform:"scale(0.8)",opacity:0})),Vn("visible",lt({transform:"scale(1)",opacity:1})),Cn("* => visible",kn("150ms cubic-bezier(0, 0, 0.2, 1)")),Cn("* => void, * => hidden",kn("75ms cubic-bezier(0.4, 0.0, 1, 1)",lt({opacity:0})))])};let use=0,Kq=(()=>{var t;class r extends gb{constructor(e,s,u,m,b){super(),this._ngZone=e,this._elementRef=s,this._changeDetectorRef=u,this._platform=m,this.snackBarConfig=b,this._document=De(yt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new he,this._onExit=new he,this._onEnter=new he,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+use++,this.attachDomPortal=C=>{this._assertNotAttached();const M=this._portalOutlet.attachDomPortal(C);return this._afterPortalAttached(),M},this._live="assertive"!==b.politeness||b.announcementMessage?"off"===b.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const s=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),s}attachTemplatePortal(e){this._assertNotAttached();const s=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),s}onAnimationEnd(e){const{fromState:s,toState:u}=e;if(("void"===u&&"void"!==s||"hidden"===u)&&this._completeExit(),"visible"===u){const m=this._onEnter;this._ngZone.run(()=>{m.next(),m.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const e=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(b=>e.classList.add(b)):e.classList.add(s)),this._exposeToModals();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}_exposeToModals(){const e=this._liveElementId,s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let u=0;u{const s=e.getAttribute("aria-owns");if(s){const u=s.replace(this._liveElementId,"").trim();u.length>0?e.setAttribute("aria-owns",u):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),s=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&s){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(u=document.activeElement),e.removeAttribute("aria-hidden"),s.appendChild(e),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Ye),V(je),V(dn),V(Jn),V(Gz))},t.\u0275cmp=xe({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,s){if(1&e&&(ft(_c,7),ft(sse,7)),2&e){let u;Ne(u=Ve())&&(s._portalOutlet=u.first),Ne(u=Ve())&&(s._label=u.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,s){1&e&&Z_("@state.done",function(m){return s.onAnimationEnd(m)}),2&e&&cx("@state",s._animationState)},standalone:!0,features:[ze,wf],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1,2)(3,"div",3),re(4,lse,0,0,"ng-template",4),R(),pe(5,"div"),R()()),2&e&&(N(5),$e("aria-live",s._live)("role",s._role)("id",s._liveElementId))},dependencies:[gl,_c],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[dse.snackBarState]}}),r})();const fse=new ve("mat-snack-bar-default-options",{providedIn:"root",factory:function hse(){return new Gz}});let jte=(()=>{var t;class r{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,s,u,m,b,C){this._overlay=e,this._live=s,this._injector=u,this._breakpointObserver=m,this._parentSnackBar=b,this._defaultConfig=C,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Ute,this.snackBarContainerComponent=Kq,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,s){return this._attach(e,s)}openFromTemplate(e,s){return this._attach(e,s)}open(e,s="",u){const m={...this._defaultConfig,...u};return m.data={message:e,action:s},m.announcementMessage===e&&(m.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,m)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,s){const m=mn.create({parent:s&&s.viewContainerRef&&s.viewContainerRef.injector||this._injector,providers:[{provide:Gz,useValue:s}]}),b=new Vu(this.snackBarContainerComponent,s.viewContainerRef,m),C=e.attach(b);return C.instance.snackBarConfig=s,C.instance}_attach(e,s){const u={...new Gz,...this._defaultConfig,...s},m=this._createOverlay(u),b=this._attachSnackBarContainer(m,u),C=new Xq(b,m);if(e instanceof Kn){const M=new yd(e,null,{$implicit:u.data,snackBarRef:C});C.instance=b.attachTemplatePortal(M)}else{const M=this._createInjector(u,C),I=new Vu(e,void 0,M),F=b.attachComponentPortal(I);C.instance=F.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Dt(m.detachments())).subscribe(M=>{m.overlayElement.classList.toggle(this.handsetCssClass,M.matches)}),u.announcementMessage&&b._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(C,u),this._openedSnackBarRef=C,this._openedSnackBarRef}_animateSnackBar(e,s){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),s.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),s.duration&&s.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(s.duration))}_createOverlay(e){const s=new zu;s.direction=e.direction;let u=this._overlay.position().global();const m="rtl"===e.direction,b="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!m||"end"===e.horizontalPosition&&m,C=!b&&"center"!==e.horizontalPosition;return b?u.left("0"):C?u.right("0"):u.centerHorizontally(),"top"===e.verticalPosition?u.top("0"):u.bottom("0"),s.positionStrategy=u,this._overlay.create(s)}_createInjector(e,s){return mn.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Xq,useValue:s},{provide:Vte,useValue:e.data}]})}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Mi),fe(ez),fe(mn),fe(L1),fe(t,12),fe(fse))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),pse=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[jte],imports:[Hu,gl,hp,$t,Ute,Kq,$t]}),r})();const Gte="dark-theme",Wte="light-theme";let pt=(()=>{var t;class r{constructor(e,s,u,m,b,C){this.http=e,this.router=s,this.dialog=u,this.snackbar=m,this.sanitizer=b,this.dateAdapter=C,this.user=new uk(udsData.profile),this.navigation=new Sl(this.router),this.gui=new ise(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return this.config.urls.static+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,s){void 0!==typeof Storage&&sessionStorage.setItem(e,s)}getFromStorage(e){return void 0!==typeof Storage?sessionStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}switchTheme(e){const s=document.getElementsByTagName("html")[0];[Gte,Wte].forEach(u=>{s.classList.contains(u)&&s.classList.remove(u)}),s.classList.add(e?Gte:Wte)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(WC),fe(Xr),fe(nS),fe(jte),fe(dd),fe(aa))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mse=(()=>{var t;class r{constructor(e){this.api=e}canActivate(e,s){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const gS=3e4;var Fb=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}(Fb||{});class Kr{constructor(r,l,e){this.api=r,void 0===e&&(e={}),void 0===e.base&&(e.base=l);const s=(u,m)=>void 0===u?m:u;this.id=l,this.paths={base:e.base,get:s(e.get,e.base),log:s(e.log,e.base),put:s(e.put,e.base),test:s(e.test,e.base+"/test"),delete:s(e.delete,e.base),types:s(e.types,e.base+"/types"),gui:s(e.gui,e.base+"/gui"),tableInfo:s(e.tableInfo,e.base+"/tableinfo")},this.headers=(new Xo).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(r){return this.typedGet(r)}getLogs(r){return this.doGet(this.getPath(this.paths.log,r)+"/log")}overview(r){return this.typedGet("overview"+(void 0!==r?"?filter="+r:""))}summary(r){return this.typedGet("overview?summarize"+(void 0!==r?"&filter="+r:""))}put(r,l){return this.typedPut(r,l)}create(r){return this.typedPut(r)}save(r,l){return this.typedPut(r,l=void 0!==l?l:r.id)}test(r,l){return Yu(this.api.http.post(this.getPath(this.paths.test,r),l,{headers:this.headers}).pipe(Eo(e=>this.handleError(e))),gS)}delete(r){return Yu(this.api.http.delete(this.getPath(this.paths.delete,r),{headers:this.headers}).pipe(Eo(l=>this.handleError(l))),gS)}permision(){return this.api.user.isAdmin?Fb.ALL:Fb.NONE}getPermissions(r){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+r))}addPermission(r,l,e,s){const u=this.getPath("permissions/"+this.paths.base+"/"+r+"/"+l+"/add/"+e);return Yu(this.api.http.put(u,{perm:s},{headers:this.headers}).pipe(Eo(b=>this.handleError(b))),gS)}revokePermission(r){const l=this.getPath("permissions/revoke");return Yu(this.api.http.put(l,{items:r},{headers:this.headers}).pipe(Eo(s=>this.handleError(s))),gS)}types(){return this.doGet(this.getPath(this.paths.types))}gui(r){const l=this.getPath(this.paths.gui+(void 0!==r?"/"+r:""));return this.doGet(l)}callback(r,l){const e=this.getPath("gui/callback/"+r+"?"+l);return this.doGet(e)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(r,l){return new gse(this,r,l)}invoke(r,l){return this.typedGet(r+(l?"?"+l:""))}getPath(r,l){if(void 0===r)throw new Error("Path is undefined");return this.api.restPath(r+(void 0!==l?"/"+l:""))}doGet(r){return Yu(this.api.http.get(r,{headers:this.headers}).pipe(Eo(l=>this.handleError(l))),gS)}typedGet(r){return this.doGet(this.getPath(this.paths.get,r))}typedPut(r,l){return Yu(this.api.http.put(this.getPath(this.paths.put,l),r,{headers:this.headers}).pipe(Eo(e=>this.handleError(e,!0))),gS)}handleError(r,l=!1){let e="";return e=r.error instanceof ErrorEvent?r.error.message:l?django.gettext("Error saving: ")+r.error:`Error ${r.status}: ${r.error}`,this.api.gui.alert(l?django.gettext("Error saving element"):django.gettext("Error handling your request"),e),Eg(()=>new Error(e))}}class gse extends Kr{constructor(r,l,e,s){super(r.api,[r.paths.base,l,e].join("/")),this.parentModel=r,this.parentId=l,this.model=e,this.perm=s}permision(){return this.perm||Fb.ALL}}class vse extends Kr{constructor(r){super(r,"providers"),this.api=r}allServices(){return this.get("allservices")}service(r){return this.get("service/"+r)}maintenance(r){return this.get(r+"/maintenance")}}class _se extends Kr{constructor(r){super(r,"authenticators"),this.api=r}search(r,l,e,s=12){return this.get(r+"/search?type="+encodeURIComponent(l)+"&term="+encodeURIComponent(e)+"&limit="+s)}}class yse extends Kr{constructor(r){super(r,"osmanagers"),this.api=r}}class bse extends Kr{constructor(r){super(r,"transports"),this.api=r}}class wse extends Kr{constructor(r){super(r,"networks"),this.api=r}}class xse extends Kr{constructor(r){super(r,"tunnels/tunnels"),this.api=r}maintenance(r){return this.get(r+"/maintenance")}tunnels(r){return this.get(r+"/tunnels")}assign(r,l){return this.get(r+"/assign/"+l)}}class Cse extends Kr{constructor(r){super(r,"servers/groups"),this.api=r}maintenance(r){return this.get(r+"/maintenance")}}class Sse extends Kr{constructor(r){super(r,"servicespools"),this.api=r}setFallbackAccess(r,l){return this.get(r+"/setFallbackAccess?fallbackAccess="+l)}getFallbackAccess(r){return this.get(r+"/getFallbackAccess")}actionsList(r){return this.get(r+"/actionsList")}listAssignables(r){return this.get(r+"/listAssignables")}createFromAssignable(r,l,e){return this.get(r+"/createFromAssignable?user_id="+encodeURIComponent(l)+"&assignable_id="+encodeURIComponent(e))}}class Dse extends Kr{constructor(r){super(r,"metapools"),this.api=r}setFallbackAccess(r,l){return this.get(r+"/setFallbackAccess?fallbackAccess="+l)}getFallbackAccess(r){return this.get(r+"/getFallbackAccess")}}class Tse extends Kr{constructor(r){super(r,"config"),this.api=r}}class Mse extends Kr{constructor(r){super(r,"gallery/images"),this.api=r}}class Ase extends Kr{constructor(r){super(r,"gallery/servicespoolgroups"),this.api=r}}class Ese extends Kr{constructor(r){super(r,"system"),this.api=r}information(){return this.get("overview")}stats(r,l){let e="stats/"+r;return l&&(e+="/"+l),this.get(e)}flushCache(){return this.doGet(this.getPath("cache","flush"))}}class Ise extends Kr{constructor(r){super(r,"reports"),this.api=r}types(){return Yu(tt([]))}}class kse extends Kr{constructor(r){super(r,"calendars"),this.api=r}}class Pse extends Kr{constructor(r){super(r,"accounts"),this.api=r}timemark(r){return this.get(r+"/timemark")}}class Rse extends Kr{constructor(r){super(r,"actortokens"),this.api=r}}class Ose extends Kr{constructor(r){super(r,"servers/tokens"),this.api=r}}class Lse extends Kr{constructor(r){super(r,"mfa"),this.api=r}}class Fse extends Kr{constructor(r){super(r,"messaging/notifiers"),this.api=r}}let Lt=(()=>{var t;class r{constructor(e){this.api=e,this.providers=new vse(e),this.serverGroups=new Cse(e),this.authenticators=new _se(e),this.mfas=new Lse(e),this.osManagers=new yse(e),this.transports=new bse(e),this.networks=new wse(e),this.tunnels=new xse(e),this.servicesPools=new Sse(e),this.metaPools=new Dse(e),this.gallery=new Mse(e),this.servicesPoolGroups=new Ase(e),this.calendars=new kse(e),this.accounts=new Pse(e),this.system=new Ese(e),this.configuration=new Tse(e),this.actorToken=new Rse(e),this.serversTokens=new Ose(e),this.reports=new Ise(e),this.notifiers=new Fse(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(pt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class Qq extends he{constructor(r=1/0,l=1/0,e=mk){super(),this._bufferSize=r,this._windowTime=l,this._timestampProvider=e,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=l===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,l)}next(r){const{isStopped:l,_buffer:e,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:m}=this;l||(e.push(r),!s&&e.push(u.now()+m)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const l=this._innerSubscribe(r),{_infiniteTimeWindow:e,_buffer:s}=this,u=s.slice();for(let m=0;m{if(e[r]){const s=e[r].currentValue;null!=s&&l(s)}}))}has(r,l){this.subscriptions.add(this.subject.subscribe(e=>{e[r]&&l(e[r].currentValue)}))}notFirst(r,l){this.subscriptions.add(this.subject.subscribe(e=>{e[r]&&!e[r].isFirstChange()&&l(e[r].currentValue)}))}notFirstAndEmpty(r,l){this.subscriptions.add(this.subject.subscribe(e=>{if(e[r]&&!e[r].isFirstChange()){const s=e[r].currentValue;null!=s&&l(s)}}))}}const $te=new ve("NGX_ECHARTS_CONFIG");let Yte=(()=>{class t{constructor(l,e,s){this.el=e,this.ngZone=s,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new Ce,this.optionsError=new Ce,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.chart$=new Qq(1),this.resize$=new he,this.changeFilter=new Bse,this.echarts=l.echarts}ngOnChanges(l){this.changeFilter.doFilter(l)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Vse(t,r=Ds,l){const e=hb(t,r);return function Nse(t,r){return Ae((l,e)=>{const{leading:s=!0,trailing:u=!1}=r??{};let m=!1,b=null,C=null,M=!1;const I=()=>{null==C||C.unsubscribe(),C=null,u&&(q(),M&&e.complete())},F=()=>{C=null,M&&e.complete()},H=Q=>C=ra(t(Q)).subscribe(Bn(e,I,F)),q=()=>{if(m){m=!1;const Q=b;b=null,e.next(Q),!M&&H(Q)}};l.subscribe(Bn(e,Q=>{m=!0,b=Q,(!C||C.closed)&&(s?q():H(Q))},()=>{M=!0,(!(u&&m&&C)||C.closed)&&e.complete()}))})}(()=>e,l)}(100,Ds,{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)),this.changeFilter.notFirstAndEmpty("options",l=>this.onOptionsChange(l)),this.changeFilter.notFirstAndEmpty("merge",l=>this.setOption(l)),this.changeFilter.has("loading",l=>this.toggleLoading(!!l)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}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.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),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(l){this.chart?l?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(e=>l?e.showLoading(this.loadingType,this.loadingOpts):e.hideLoading())}setOption(l,e){if(this.chart)try{this.chart.setOption(l,e)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){var l=this;return Ge(function*(){l.dispose(),yield l.initChart()})()}createChart(){const l=this.el.nativeElement;if(window&&window.getComputedStyle){const e=window.getComputedStyle(l,null).getPropertyValue("height");(!e||"0px"===e)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(l,this.theme,this.initOpts)))}initChart(){var l=this;return Ge(function*(){yield l.onOptionsChange(l.options),l.merge&&l.chart&&l.setOption(l.merge)})()}onOptionsChange(l){var e=this;return Ge(function*(){l&&(e.chart||(e.chart=yield e.createChart(),e.chart$.next(e.chart),e.chartInit.emit(e.chart)),e.setOption(e.options,!0))})()}createLazyEvent(l){return this.chartInit.pipe(Li(e=>new ln(s=>(e.on(l,u=>this.ngZone.run(()=>s.next(u))),()=>{this.chart&&(this.chart.isDisposed()||e.off(l))}))))}}return t.\u0275fac=function(l){return new(l||t)(V($te),V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",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:[nn]}),t})(),zse=(()=>{class t{static forRoot(l){return{ngModule:t,providers:[{provide:$te,useValue:l}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(l){return new(l||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),t})();function Hse(t,r){if(1&t&&(P(0,"div",21)(1,"div",11),pe(2,"img",3),P(3,"div",12),Y(4),R()(),P(5,"div",13)(6,"a",15)(7,"uds-translate"),Y(8,"View service pools"),R()()()()),2&t){const l=Z(2);N(2),z("src",l.api.staticURL("admin/img/icons/logs.png"),Ut),N(2),Re(" ",l.data.restrained," ")}}function Use(t,r){if(1&t){const l=Oe();P(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),pe(5,"img",3),P(6,"div",12),Y(7),R()(),P(8,"div",13)(9,"a",14)(10,"uds-translate"),Y(11,"View authenticators"),R()()()(),P(12,"div",10)(13,"div",11),pe(14,"img",3),P(15,"div",12),Y(16),R()(),P(17,"div",13)(18,"a",15)(19,"uds-translate"),Y(20,"View service pools"),R()()()(),P(21,"div",10)(22,"div",11),pe(23,"img",3),P(24,"div",12),Y(25),R()(),P(26,"div",13)(27,"a",15)(28,"uds-translate"),Y(29,"View service pools"),R()()()(),re(30,Hse,9,2,"div",16),R(),P(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),Y(35,"Assigned services chart"),R()(),P(36,"div",20),J("chartInit",function(s){return oe(l),le(Z().chartInit("assigned",s))}),R()(),P(37,"div",18)(38,"div",19)(39,"uds-translate"),Y(40,"In use services chart"),R()(),P(41,"div",20),J("chartInit",function(s){return oe(l),le(Z().chartInit("inuse",s))}),R()()()()()}if(2&t){const l=Z();N(5),z("src",l.api.staticURL("admin/img/icons/authenticators.png"),Ut),N(2),Re(" ",l.data.users," "),N(7),z("src",l.api.staticURL("admin/img/icons/pools.png"),Ut),N(2),Re(" ",l.data.pools," "),N(7),z("src",l.api.staticURL("admin/img/icons/services.png"),Ut),N(2),Re(" ",l.data.user_services," "),N(5),z("ngIf",l.data.restrained),N(6),z("options",l.assignedChartOpts),N(5),z("options",l.inuseChartOpts)}}function jse(t,r){1&t&&(P(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),Y(4,"UDS Administration"),R()(),P(5,"div",25)(6,"p")(7,"uds-translate"),Y(8,"You are accessing UDS Administration as staff member."),R()(),P(9,"p")(10,"uds-translate"),Y(11,"This means that you have restricted access to elements."),R()(),P(12,"p")(13,"uds-translate"),Y(14,"In order to increase your access privileges, please contact your local UDS administrator. "),R()(),pe(15,"br"),P(16,"p")(17,"uds-translate"),Y(18,"Thank you."),R()()()()())}let Gse=(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(e){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(e=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))});for(const e of["assigned","inuse"])this.rest.system.stats(e).then(s=>{const u={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:s.map(m=>Ms("SHORT_DATE_FORMAT",new Date(m.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:"assigned"===e?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:s.map(m=>m.value)}]};"assigned"===e?this.assignedChartOpts=u:this.inuseChartOpts=u})}}chartInit(e,s){"assigned"===e?this.assignedChartInstance=s:this.inuseChartInstance=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-summary"]],hostBindings:function(e,s){1&e&&J("resize",function(m){return s.onResize(m)},0,ss)},decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"options","chartInit"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),pe(3,"img",3),P(4,"uds-translate"),Y(5,"Dashboard"),R()(),pe(6,"div",4),R(),P(7,"div",5),re(8,Use,42,9,"div",6)(9,jse,19,0,"ng-template",null,7,so),R()()),2&e){const u=pn(10);N(3),z("src",s.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ut),N(5),z("ngIf",s.api.user.isAdmin)("ngIfElse",u)}},dependencies:[xn,mr,oS,Yte,vn],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700;padding:.5rem 1rem}.staff-content[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb 0%,#e2d1c3 100%);box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600 0%,#f9d423 100%);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(60deg,rgb(75,82,102),rgb(70,93,156))}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,rgb(75,82,102),rgb(70,93,156));width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb 0%,#e2d1c3 100%);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600 0%,#f9d423 100%);color:#fff} .dark-theme .info-panel-link{background:steelblue} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']}),r})();class Wse{}function Jq(t){return t&&"function"==typeof t.connect&&!(t instanceof SI)}class qte{applyChanges(r,l,e,s,u){r.forEachOperation((m,b,C)=>{let M,I;if(null==m.previousIndex){const F=e(m,b,C);M=l.createEmbeddedView(F.templateRef,F.context,F.index),I=1}else null==C?(l.remove(b),I=3):(M=l.get(b),l.move(M,C),I=2);u&&u({context:null==M?void 0:M.context,operation:I,record:m})})}detach(){}}class UP{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(r=!1,l,e=!0,s){this._multiple=r,this._emitChanges=e,this.compareWith=s,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new he,l&&l.length&&(r?l.forEach(u=>this._markSelected(u)):this._markSelected(l[0]),this._selectedToEmit.length=0)}select(...r){this._verifyValueAssignment(r),r.forEach(e=>this._markSelected(e));const l=this._hasQueuedChanges();return this._emitChangeEvent(),l}deselect(...r){this._verifyValueAssignment(r),r.forEach(e=>this._unmarkSelected(e));const l=this._hasQueuedChanges();return this._emitChangeEvent(),l}setSelection(...r){this._verifyValueAssignment(r);const l=this.selected,e=new Set(r);r.forEach(u=>this._markSelected(u)),l.filter(u=>!e.has(this._getConcreteValue(u,e))).forEach(u=>this._unmarkSelected(u));const s=this._hasQueuedChanges();return this._emitChangeEvent(),s}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=!0){this._unmarkAll();const l=this._hasQueuedChanges();return r&&this._emitChangeEvent(),l}isSelected(r){return this._selection.has(this._getConcreteValue(r))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(r){r=this._getConcreteValue(r),this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r))}_unmarkSelected(r){r=this._getConcreteValue(r),this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r))}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r))}_verifyValueAssignment(r){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(r,l){if(this.compareWith){l=l??this._selection;for(let e of l)if(this.compareWith(r,e))return e;return r}return r}}const jP=new ve("_ViewRepeater");function Xte(t={}){const{connector:r=(()=>new he),resetOnError:l=!0,resetOnComplete:e=!0,resetOnRefCountZero:s=!0}=t;return u=>{let m,b,C,M=0,I=!1,F=!1;const H=()=>{null==b||b.unsubscribe(),b=void 0},q=()=>{H(),m=C=void 0,I=F=!1},Q=()=>{const ne=m;q(),null==ne||ne.unsubscribe()};return Ae((ne,ae)=>{M++,!F&&!I&&H();const ge=C=C??r();ae.add(()=>{M--,0===M&&!F&&!I&&(b=eZ(Q,s))}),ge.subscribe(ae),!m&&M>0&&(m=new _e({next:se=>ge.next(se),error:se=>{F=!0,H(),b=eZ(q,l,se),ge.error(se)},complete:()=>{I=!0,H(),b=eZ(q,e),ge.complete()}}),ra(ne).subscribe(m))})(u)}}function eZ(t,r,...l){if(!0===r)return void t();if(!1===r)return;const e=new _e({next:()=>{e.unsubscribe(),t()}});return ra(r(...l)).subscribe(e)}class Yse{constructor(r){this._box=r,this._destroyed=new he,this._resizeSubject=new he,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(l=>this._resizeSubject.next(l)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new ln(l=>{var s;const e=this._resizeSubject.subscribe(l);return null==(s=this._resizeObserver)||s.observe(r,{box:this._box}),()=>{var u;null==(u=this._resizeObserver)||u.unobserve(r),e.unsubscribe(),this._elementObservables.delete(r)}}).pipe(bn(l=>l.some(e=>e.target===r)),function $se(t,r,l){let e,s=!1;return t&&"object"==typeof t?({bufferSize:e=1/0,windowTime:r=1/0,refCount:s=!1,scheduler:l}=t):e=t??1/0,Xte({connector:()=>new Qq(e,r,l),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}({bufferSize:1,refCount:!0}),Dt(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let qse=(()=>{var t;class r{constructor(){this._observers=new Map,this._ngZone=De(Ye)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,s){const u=(null==s?void 0:s.box)||"content-box";return this._observers.has(u)||this._observers.set(u,new Yse(u)),this._observers.get(u).observe(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const Zse=["notch"],Xse=["matFormFieldNotchedOutline",""],Kse=["*"],Qse=["textField"],Jse=["iconPrefixContainer"],ele=["textPrefixContainer"];function tle(t,r){1&t&&pe(0,"span",16)}function nle(t,r){if(1&t&&(P(0,"label",14),dt(1,1),re(2,tle,1,0,"span",15),R()),2&t){const l=Z(2);z("floating",l._shouldLabelFloat())("monitorResize",l._hasOutline())("id",l._labelId),$e("for",l._control.id),N(2),an(2,!l.hideRequiredMarker&&l._control.required?2:-1)}}function ile(t,r){1&t&&re(0,nle,3,5,"label",14),2&t&&an(0,Z()._hasFloatingLabel()?0:-1)}function rle(t,r){1&t&&pe(0,"div",17)}function ale(t,r){}function ole(t,r){1&t&&re(0,ale,0,0,"ng-template",9),2&t&&(Z(2),z("ngTemplateOutlet",pn(1)))}function sle(t,r){if(1&t&&(P(0,"div",5),re(1,ole,1,1,null,9),R()),2&t){const l=Z();z("matFormFieldNotchedOutlineOpen",l._shouldLabelFloat()),N(),an(1,l._forceDisplayInfixLabel()?-1:1)}}function lle(t,r){1&t&&(P(0,"div",18,19),dt(2,2),R())}function cle(t,r){1&t&&(P(0,"div",20,21),dt(2,3),R())}function dle(t,r){}function ule(t,r){1&t&&re(0,dle,0,0,"ng-template",9),2&t&&(Z(),z("ngTemplateOutlet",pn(1)))}function hle(t,r){1&t&&(P(0,"div",22),dt(1,4),R())}function fle(t,r){1&t&&(P(0,"div",23),dt(1,5),R())}function ple(t,r){1&t&&pe(0,"div",12)}function mle(t,r){1&t&&(P(0,"div",24),dt(1,6),R()),2&t&&z("@transitionMessages",Z()._subscriptAnimationState)}function gle(t,r){if(1&t&&(P(0,"mat-hint",26),Y(1),R()),2&t){const l=Z(2);z("id",l._hintLabelId),N(),En(l.hintLabel)}}function vle(t,r){if(1&t&&(P(0,"div",25),re(1,gle,2,2,"mat-hint",26),dt(2,7),pe(3,"div",27),dt(4,8),R()),2&t){const l=Z();z("@transitionMessages",l._subscriptAnimationState),N(),an(1,l.hintLabel?1:-1)}}const _le=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],yle=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ci=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-label"]]}),r})();const ble=new ve("MatError");let wle=0,Kte=(()=>{var t;class r{constructor(){this.align="start",this.id="mat-mdc-hint-"+wle++}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("align",null),et("mat-mdc-form-field-hint-end","end"===s.align))},inputs:{align:"align",id:"id"}}),r})();const xle=new ve("MatPrefix"),Qte=new ve("MatSuffix");let vS=(()=>{var t;class r{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[Je([{provide:Qte,useExisting:t}])]}),r})();const Jte=new ve("FloatingLabelParent");let ene=(()=>{var t;class r{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=De(qse),this._ngZone=De(Ye),this._parent=De(Jte),this._resizeSubscription=new bt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Cle(t){if(null!==t.offsetParent)return t.scrollWidth;const l=t.cloneNode(!0);l.style.setProperty("position","absolute"),l.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(l);const e=l.scrollWidth;return l.remove(),e}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je))},t.\u0275dir=ce({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-floating-label--float-above",s.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}}),r})();const tne="mdc-line-ripple--active",Wz="mdc-line-ripple--deactivating";let nne=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._handleTransitionEnd=u=>{const m=this._elementRef.nativeElement.classList,b=m.contains(Wz);"opacity"===u.propertyName&&b&&m.remove(tne,Wz)},s.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Wz),e.add(tne)}deactivate(){this._elementRef.nativeElement.classList.add(Wz)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),r})(),ine=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._ngZone=s,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275cmp=xe({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(e,s){if(1&e&&ft(Zse,5),2&e){let u;Ne(u=Ve())&&(s._notch=u.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-notched-outline--notched",s.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:Xse,ngContentSelectors:Kse,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(e,s){1&e&&(jn(),pe(0,"div",0),P(1,"div",1,2),dt(3),R(),pe(4,"div",3))},encapsulation:2,changeDetection:0}),r})();const Sle={transitionMessages:Vi("transitionMessages",[Vn("enter",lt({opacity:1,transform:"translateY(0%)"})),Cn("void => enter",[lt({opacity:0,transform:"translateY(-5px)"}),kn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let $z=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t}),r})();const _S=new ve("MatFormField"),rne=new ve("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ane=0,ri=(()=>{var t;class r{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ot(e)}get floatLabel(){var e;return this._floatLabel||(null==(e=this._defaults)?void 0:e.floatLabel)||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){var m;const s=this._appearance,u=e||(null==(m=this._defaults)?void 0:m.appearance)||"fill";this._appearance=u,"outline"===this._appearance&&this._appearance!==s&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){var e;return this._subscriptSizing||(null==(e=this._defaults)?void 0:e.subscriptSizing)||"fixed"}set subscriptSizing(e){var s;this._subscriptSizing=e||(null==(s=this._defaults)?void 0:s.subscriptSizing)||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,s,u,m,b,C,M,I){this._elementRef=e,this._changeDetectorRef=s,this._ngZone=u,this._dir=m,this._platform=b,this._defaults=C,this._animationMode=M,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+ane++,this._hintLabelId="mat-mdc-hint-"+ane++,this._subscriptAnimationState="",this._destroyed=new he,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,C&&(C.appearance&&(this.appearance=C.appearance),this._hideRequiredMarker=!(null==C||!C.hideRequiredMarker),C.color&&(this.color=C.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Dt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),xi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){var e,s,u;this._control.focused&&!this._isFocused?(this._isFocused=!0,null==(e=this._lineRipple)||e.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,null==(s=this._lineRipple)||s.deactivate()),null==(u=this._textField)||u.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Dt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Dt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const s=this._control?this._control.ngControl:null;return s&&s[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){var e,s;this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?null==(s=this._notchedOutline)||s._setNotchWidth(this._floatingLabel.getWidth()):null==(e=this._notchedOutline)||e._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const s=this._hintChildren?this._hintChildren.find(m=>"start"===m.align):null,u=this._hintChildren?this._hintChildren.find(m=>"end"===m.align):null;s?e.push(s.id):this._hintLabel&&e.push(this._hintLabelId),u&&e.push(u.id)}else this._errorChildren&&e.push(...this._errorChildren.map(s=>s.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){var H,q;if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const s=null==(H=this._iconPrefixContainer)?void 0:H.nativeElement,u=null==(q=this._textPrefixContainer)?void 0:q.nativeElement,m=(null==s?void 0:s.getBoundingClientRect().width)??0,b=(null==u?void 0:u.getBoundingClientRect().width)??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${m+b}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const s=e.getRootNode();return s&&s!==e}return document.documentElement.contains(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ye),V(Ir),V(Jn),V(rne,8),V(si,8),V(yt))},t.\u0275cmp=xe({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Ci,5),Kt(u,Ci,7),Kt(u,$z,5),Kt(u,xle,5),Kt(u,Qte,5),Kt(u,ble,5),Kt(u,Kte,5)),2&e){let m;Ne(m=Ve())&&(s._labelChildNonStatic=m.first),Ne(m=Ve())&&(s._labelChildStatic=m.first),Ne(m=Ve())&&(s._formFieldControl=m.first),Ne(m=Ve())&&(s._prefixChildren=m),Ne(m=Ve())&&(s._suffixChildren=m),Ne(m=Ve())&&(s._errorChildren=m),Ne(m=Ve())&&(s._hintChildren=m)}},viewQuery:function(e,s){if(1&e&&(ft(Qse,5),ft(Jse,5),ft(ele,5),ft(ene,5),ft(ine,5),ft(nne,5)),2&e){let u;Ne(u=Ve())&&(s._textField=u.first),Ne(u=Ve())&&(s._iconPrefixContainer=u.first),Ne(u=Ve())&&(s._textPrefixContainer=u.first),Ne(u=Ve())&&(s._floatingLabel=u.first),Ne(u=Ve())&&(s._notchedOutline=u.first),Ne(u=Ve())&&(s._lineRipple=u.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,s){2&e&&et("mat-mdc-form-field-label-always-float",s._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",s._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",s._hasIconSuffix)("mat-form-field-invalid",s._control.errorState)("mat-form-field-disabled",s._control.disabled)("mat-form-field-autofilled",s._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===s._animationMode)("mat-form-field-appearance-fill","fill"==s.appearance)("mat-form-field-appearance-outline","outline"==s.appearance)("mat-form-field-hide-placeholder",s._hasFloatingLabel()&&!s._shouldLabelFloat())("mat-focused",s._control.focused)("mat-primary","accent"!==s.color&&"warn"!==s.color)("mat-accent","accent"===s.color)("mat-warn","warn"===s.color)("ng-untouched",s._shouldForward("untouched"))("ng-touched",s._shouldForward("touched"))("ng-pristine",s._shouldForward("pristine"))("ng-dirty",s._shouldForward("dirty"))("ng-valid",s._shouldForward("valid"))("ng-invalid",s._shouldForward("invalid"))("ng-pending",s._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Je([{provide:_S,useExisting:t},{provide:Jte,useExisting:t}])],ngContentSelectors:yle,decls:18,vars:21,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],["class","mat-mdc-form-field-icon-prefix"],["class","mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],["class","mat-mdc-form-field-text-suffix"],["class","mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(e,s){if(1&e&&(jn(_le),re(0,ile,1,1,"ng-template",null,0,so),P(2,"div",1,2),J("click",function(m){return s._control.onContainerClick(m)}),re(4,rle,1,0,"div",3),P(5,"div",4),re(6,sle,2,2,"div",5)(7,lle,3,0,"div",6)(8,cle,3,0,"div",7),P(9,"div",8),re(10,ule,1,1,null,9),dt(11),R(),re(12,hle,2,0,"div",10)(13,fle,2,0,"div",11),R(),re(14,ple,1,0,"div",12),R(),P(15,"div",13),re(16,mle,2,1)(17,vle,5,2),R()),2&e){let u;N(2),et("mdc-text-field--filled",!s._hasOutline())("mdc-text-field--outlined",s._hasOutline())("mdc-text-field--no-label",!s._hasFloatingLabel())("mdc-text-field--disabled",s._control.disabled)("mdc-text-field--invalid",s._control.errorState),N(2),an(4,s._hasOutline()||s._control.disabled?-1:4),N(2),an(6,s._hasOutline()?6:-1),N(),an(7,s._hasIconPrefix?7:-1),N(),an(8,s._hasTextPrefix?8:-1),N(2),an(10,!s._hasOutline()||s._forceDisplayInfixLabel()?10:-1),N(2),an(12,s._hasTextSuffix?12:-1),N(),an(13,s._hasIconSuffix?13:-1),N(),an(14,s._hasOutline()?-1:14),N(),et("mat-mdc-form-field-subscript-dynamic-size","dynamic"===s.subscriptSizing),N(),an(16,"error"===(u=s._getDisplayedMessages())?16:"hint"===u?17:-1)}},dependencies:[pE,Kte,ene,ine,nne],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Sle.transitionMessages]},changeDetection:0}),r})(),Yz=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Er,zk,$t]}),r})();const Mle=["trigger"],Ale=["panel"];function Ele(t,r){if(1&t&&(P(0,"span",9),Y(1),R()),2&t){const l=Z();N(),En(l.placeholder)}}function Ile(t,r){1&t&&dt(0)}function kle(t,r){if(1&t&&(P(0,"span",11),Y(1),R()),2&t){const l=Z(2);N(),En(l.triggerValue)}}function Ple(t,r){if(1&t&&(P(0,"span",10),re(1,Ile,1,0)(2,kle,2,1),R()),2&t){const l=Z();N(),an(1,l.customTrigger?1:2)}}function Rle(t,r){if(1&t){const l=Oe();Ia(),Bd(),P(0,"div",12,13),J("@transformPanel.done",function(s){return oe(l),le(Z()._panelDoneAnimatingStream.next(s.toState))})("keydown",function(s){return oe(l),le(Z()._handleKeydown(s))}),dt(2,1),R()}if(2&t){const l=Z();(function rM(t,r,l){Ar(Bo,So,Qh(Te(),t,r,l),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",l._getPanelTheme(),""),z("ngClass",l.panelClass)("@transformPanel","showing"),$e("id",l.id+"-panel")("aria-multiselectable",l.multiple)("aria-label",l.ariaLabel||null)("aria-labelledby",l._getPanelAriaLabelledby())}}const Ole=[[["mat-select-trigger"]],"*"],Lle=["mat-select-trigger","*"],Fle={transformPanelWrap:Vi("transformPanelWrap",[Cn("* => void",eS("@transformPanel",[Eb()],{optional:!0}))]),transformPanel:Vi("transformPanel",[Vn("void",lt({opacity:0,transform:"scale(1, 0.8)"})),Cn("void => showing",kn("120ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:1,transform:"scale(1, 1)"}))),Cn("* => void",kn("100ms linear",lt({opacity:0})))])};let lne=0;const cne=new ve("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),Vle=new ve("MAT_SELECT_CONFIG"),Ble={provide:cne,deps:[Mi],useFactory:function Nle(t){return()=>t.scrollStrategies.reposition()}},dne=new ve("MatSelectTrigger");class zle{constructor(r,l){this.source=r,this.value=l}}const Hle=sP(W1(lp(Db(class{constructor(t,r,l,e,s){this._elementRef=t,this._defaultErrorStateMatcher=r,this._parentForm=l,this._parentFormGroup=e,this.ngControl=s,this.stateChanges=new he}}))));let Ya=(()=>{var t;class r extends Hle{_scrollOptionIntoView(e){const s=this.options.toArray()[e];if(s){const u=this.panel.nativeElement,m=pP(e,this.options,this.optionGroups),b=s._getHostElement();u.scrollTop=0===e&&1===m?0:X1(b.offsetTop,b.offsetHeight,u.scrollTop,u.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new zle(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ot(e),this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ot(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ot(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=xa(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,s,u,m,b,C,M,I,F,H,q,Q,ne,ae){var ge,se,Be;super(b,m,M,I,H),this._viewportRuler=e,this._changeDetectorRef=s,this._ngZone=u,this._dir=C,this._parentFormField=F,this._liveAnnouncer=ne,this._defaultOptions=ae,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(Fe,Ft)=>Fe===Ft,this._uid="mat-select-"+lne++,this._triggerAriaLabelledBy=null,this._destroy=new he,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+lne++,this._panelDoneAnimatingStream=new he,this._overlayPanelClass=(null==(ge=this._defaultOptions)?void 0:ge.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._hideSingleSelectionIndicator=(null==(se=this._defaultOptions)?void 0:se.hideSingleSelectionIndicator)??!1,this._multiple=!1,this._disableOptionCentering=(null==(Be=this._defaultOptions)?void 0:Be.disableOptionCentering)??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this.optionSelectionChanges=Ag(()=>{const Fe=this.options;return Fe?Fe.changes.pipe(pr(Fe),Li(()=>xi(...Fe.map(Ft=>Ft.onSelectionChange)))):this._ngZone.onStable.pipe(In(1),Li(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(bn(Fe=>Fe),Ee(()=>{})),this._closedStream=this.openedChange.pipe(bn(Fe=>!Fe),Ee(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,this._trackedModal=null,this._skipPredicate=Fe=>!this.panelOpen&&Fe.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ae?void 0:ae.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ae.typeaheadDebounceInterval),this._scrollStrategyFactory=Q,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(q)||0,this.id=this.id}ngOnInit(){this._selectionModel=new UP(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(O1(),Dt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Dt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Dt(this._destroy)).subscribe(e=>{e.added.forEach(s=>s.select()),e.removed.forEach(s=>s.deselect())}),this.options.changes.pipe(pr(null),Dt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),s=this.ngControl;if(e!==this._triggerAriaLabelledBy){const u=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?u.setAttribute("aria-labelledby",e):u.removeAttribute("aria-labelledby")}s&&(this._previousControl!==s.control&&(void 0!==this._previousControl&&null!==s.disabled&&s.disabled!==this.disabled&&(this.disabled=s.disabled),this._previousControl=s.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const s=`${this.id}-panel`;this._trackedModal&&sp(this._trackedModal,"aria-owns",s),F1(e,"aria-owns",s),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(sp(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,s;return this.multiple?(null==(e=this._selectionModel)?void 0:e.selected)||[]:null==(s=this._selectionModel)?void 0:s.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(s=>s.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const s=e.keyCode,u=40===s||38===s||37===s||39===s,m=13===s||32===s,b=this._keyManager;if(!b.isTyping()&&m&&!vr(e)||(this.multiple||e.altKey)&&u)e.preventDefault(),this.open();else if(!this.multiple){const C=this.selected;b.onKeydown(e);const M=this.selected;M&&C!==M&&this._liveAnnouncer.announce(M.viewValue,1e4)}}_handleOpenKeydown(e){const s=this._keyManager,u=e.keyCode,m=40===u||38===u,b=s.isTyping();if(m&&e.altKey)e.preventDefault(),this.close();else if(b||13!==u&&32!==u||!s.activeItem||vr(e))if(!b&&this._multiple&&65===u&&e.ctrlKey){e.preventDefault();const C=this.options.some(M=>!M.disabled&&!M.selected);this.options.forEach(M=>{M.disabled||(C?M.select():M.deselect())})}else{const C=s.activeItemIndex;s.onKeydown(e),this._multiple&&m&&e.shiftKey&&s.activeItem&&s.activeItemIndex!==C&&s.activeItem._selectViaInteraction()}else e.preventDefault(),s.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){var e;this._focused=!1,null==(e=this._keyManager)||e.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(In(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(s=>s.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(s=>this._selectOptionByValue(s)),this._sortValues();else{const s=this._selectOptionByValue(e);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const s=this.options.find(u=>{if(this._selectionModel.isSelected(u))return!1;try{return null!=u.value&&this._compareWith(u.value,e)}catch{return!1}});return s&&this._selectionModel.select(s),s}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof P1?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new $5(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=xi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Dt(e)).subscribe(s=>{this._onSelect(s.source,s.isUserInput),s.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),xi(...this.options.map(s=>s._stateChanges)).pipe(Dt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,s){const u=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(u!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),s&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),s&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),u!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((s,u)=>this.sortComparator?this.sortComparator(s,u,e):e.indexOf(s)-e.indexOf(u)),this.stateChanges.next()}}_propagateChanges(e){let s;s=this.multiple?this.selected.map(u=>u.value):this.selected?this.selected.value:e,this._value=s,this.valueChange.emit(s),this._onChange(s),this.selectionChange.emit(this._getChangeEvent(s)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let s=0;s0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var u;if(this.ariaLabel)return null;const e=null==(u=this._parentFormField)?void 0:u.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var u;if(this.ariaLabel)return null;const e=null==(u=this._parentFormField)?void 0:u.getLabelId();let s=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Nu),V(dn),V(Ye),V(Gu),V(je),V(Ir,8),V(ov,8),V(mS,8),V(_S,8),V(x,10),Ie("tabindex"),V(cne),V(ez),V(Vle,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-select"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,dne,5),Kt(u,Ni,5),Kt(u,fP,5)),2&e){let m;Ne(m=Ve())&&(s.customTrigger=m.first),Ne(m=Ve())&&(s.options=m),Ne(m=Ve())&&(s.optionGroups=m)}},viewQuery:function(e,s){if(1&e&&(ft(Mle,5),ft(Ale,5),ft(H5,5)),2&e){let u;Ne(u=Ve())&&(s.trigger=u.first),Ne(u=Ve())&&(s.panel=u.first),Ne(u=Ve())&&(s._overlayDir=u.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)})("focus",function(){return s._onFocus()})("blur",function(){return s._onBlur()}),2&e&&($e("id",s.id)("tabindex",s.tabIndex)("aria-controls",s.panelOpen?s.id+"-panel":null)("aria-expanded",s.panelOpen)("aria-label",s.ariaLabel||null)("aria-required",s.required.toString())("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState)("aria-activedescendant",s._getAriaActiveDescendant()),et("mat-mdc-select-disabled",s.disabled)("mat-mdc-select-invalid",s.errorState)("mat-mdc-select-required",s.required)("mat-mdc-select-empty",s.empty)("mat-mdc-select-multiple",s.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Je([{provide:$z,useExisting:t},{provide:hP,useExisting:t}]),ze,nn],ngContentSelectors:Lle,decls:11,vars:8,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,s){if(1&e&&(jn(Ole),P(0,"div",0,1),J("click",function(){return s.open()}),P(3,"div",2),re(4,Ele,2,1,"span",3)(5,Ple,3,1),R(),P(6,"div",4)(7,"div",5),Ia(),P(8,"svg",6),pe(9,"path",7),R()()()(),re(10,Rle,3,9,"ng-template",8),J("backdropClick",function(){return s.close()})("attach",function(){return s._onAttached()})("detach",function(){return s.close()})),2&e){const u=pn(1);N(3),$e("id",s._valueId),N(),an(4,s.empty?4:5),N(6),z("cdkConnectedOverlayPanelClass",s._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",s._scrollStrategy)("cdkConnectedOverlayOrigin",s._preferredOverlayOrigin||u)("cdkConnectedOverlayOpen",s.panelOpen)("cdkConnectedOverlayPositions",s._positions)("cdkConnectedOverlayWidth",s._overlayWidth)}},dependencies:[To,H5,P1],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Fle.transformPanel]},changeDetection:0}),r})(),une=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-select-trigger"]],features:[Je([{provide:dne,useExisting:t}])]}),r})(),hne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Ble],imports:[Er,Hu,K1,$t,np,Yz,K1,$t]}),r})();const Ule=["tooltip"],pne=new ve("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition({scrollThrottle:20})}}),Gle={provide:pne,deps:[Mi],useFactory:function jle(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},$le=new ve("mat-tooltip-default-options",{providedIn:"root",factory:function Wle(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mne="tooltip-panel",gne=Ko({passive:!0});let qz=(()=>{var t;class r{get position(){return this._position}set position(e){var s;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null==(s=this._tooltipInstance)||s.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ot(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=xa(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=xa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this._overlay=e,this._elementRef=s,this._scrollDispatcher=u,this._viewContainerRef=m,this._ngZone=b,this._platform=C,this._ariaDescriber=M,this._focusMonitor=I,this._dir=H,this._defaultOptions=q,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Qle,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new he,this._scrollStrategy=F,this._document=Q,q&&(this._showDelay=q.showDelay,this._hideDelay=q.hideDelay,q.position&&(this.position=q.position),q.positionAtOrigin&&(this.positionAtOrigin=q.positionAtOrigin),q.touchGestures&&(this.touchGestures=q.touchGestures)),H.change.pipe(Dt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Dt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([s,u])=>{e.removeEventListener(s,u,gne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,s){var b;if(this.disabled||!this.message||this._isTooltipVisible())return void(null==(b=this._tooltipInstance)||b._cancelPendingAnimations());const u=this._createOverlay(s);this._detach(),this._portal=this._portal||new Vu(this._tooltipComponent,this._viewContainerRef);const m=this._tooltipInstance=u.attach(this._portal).instance;m._triggerElement=this._elementRef.nativeElement,m._mouseLeaveHideDelay=this._hideDelay,m.afterHidden().pipe(Dt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),m.show(e)}hide(e=this.hideDelay){const s=this._tooltipInstance;s&&(s.isVisible()?s.hide(e):(s._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){var m;if(this._overlayRef){const b=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&b._origin instanceof je)return this._overlayRef;this._detach()}const s=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),u=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(s);return u.positionChanges.pipe(Dt(this._destroyed)).subscribe(b=>{this._updateCurrentPositionClass(b.connectionPair),this._tooltipInstance&&b.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:u,panelClass:`${this._cssClassPrefix}-${mne}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Dt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Dt(this._destroyed)).subscribe(()=>{var b;return null==(b=this._tooltipInstance)?void 0:b._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Dt(this._destroyed)).subscribe(b=>{this._isTooltipVisible()&&27===b.keyCode&&!vr(b)&&(b.preventDefault(),b.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!=(m=this._defaultOptions)&&m.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const s=e.getConfig().positionStrategy,u=this._getOrigin(),m=this._getOverlayPosition();s.withPositions([this._addOffset({...u.main,...m.main}),this._addOffset({...u.fallback,...m.fallback})])}_addOffset(e){const u=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=u?-8:8:"end"===e.originX&&(e.offsetX=u?8:-8),e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,s=this.position;let u;"above"==s||"below"==s?u={originX:"center",originY:"above"==s?"top":"bottom"}:"before"==s||"left"==s&&e||"right"==s&&!e?u={originX:"start",originY:"center"}:("after"==s||"right"==s&&e||"left"==s&&!e)&&(u={originX:"end",originY:"center"});const{x:m,y:b}=this._invertPosition(u.originX,u.originY);return{main:u,fallback:{originX:m,originY:b}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,s=this.position;let u;"above"==s?u={overlayX:"center",overlayY:"bottom"}:"below"==s?u={overlayX:"center",overlayY:"top"}:"before"==s||"left"==s&&e||"right"==s&&!e?u={overlayX:"end",overlayY:"center"}:("after"==s||"right"==s&&e||"left"==s&&!e)&&(u={overlayX:"start",overlayY:"center"});const{x:m,y:b}=this._invertPosition(u.overlayX,u.overlayY);return{main:u,fallback:{overlayX:m,overlayY:b}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(In(1),Dt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,s){return"above"===this.position||"below"===this.position?"top"===s?s="bottom":"bottom"===s&&(s="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:s}}_updateCurrentPositionClass(e){const{overlayY:s,originX:u,originY:m}=e;let b;if(b="center"===s?this._dir&&"rtl"===this._dir.value?"end"===u?"left":"right":"start"===u?"left":"right":"bottom"===s&&"top"===m?"above":"below",b!==this._currentPosition){const C=this._overlayRef;if(C){const M=`${this._cssClassPrefix}-${mne}-`;C.removePanelClass(M+this._currentPosition),C.addPanelClass(M+b)}this._currentPosition=b}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let s;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(s=e),this.show(void 0,s)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{var m;const s=null==(m=e.targetTouches)?void 0:m[0],u=s?{x:s.clientX,y:s.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,u),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",s=>{var m;const u=s.relatedTarget;(!u||null==(m=this._overlayRef)||!m.overlayElement.contains(u))&&this.hide()}],["wheel",s=>this._wheelListener(s)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const s=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",s],["touchcancel",s])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([s,u])=>{this._elementRef.nativeElement.addEventListener(s,u,gne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const s=this._document.elementFromPoint(e.clientX,e.clientY),u=this._elementRef.nativeElement;s!==u&&!u.contains(s)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const s=this._elementRef.nativeElement,u=s.style;("on"===e||"INPUT"!==s.nodeName&&"TEXTAREA"!==s.nodeName)&&(u.userSelect=u.msUserSelect=u.webkitUserSelect=u.MozUserSelect="none"),("on"===e||!s.draggable)&&(u.webkitUserDrag="none"),u.touchAction="none",u.webkitTapHighlightColor="transparent"}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(je),V(Ck),V(fi),V(Ye),V(Jn),V(G5),V(uo),V(pne),V(Ir),V($le,8),V(yt))},t.\u0275dir=ce({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,s){2&e&&et("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),r})(),Qle=(()=>{var t;class r{constructor(e,s,u){this._changeDetectorRef=e,this._elementRef=s,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new he,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===u}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const s=this._tooltip.nativeElement,u=this._showAnimation,m=this._hideAnimation;if(s.classList.remove(e?m:u),s.classList.add(e?u:m),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const b=getComputedStyle(s);("0s"===b.getPropertyValue("animation-duration")||"none"===b.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(s.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,s){if(1&e&&ft(Ule,7),2&e){let u;Ne(u=Ve())&&(s._tooltip=u.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,s){1&e&&J("mouseleave",function(m){return s._handleMouseLeave(m)}),2&e&&cr("zoom",s.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,s){1&e&&(P(0,"div",0,1),J("animationend",function(m){return s._handleAnimationEnd(m)}),P(2,"div",2),Y(3),R()()),2&e&&(et("mdc-tooltip--multiline",s._isMultiline),z("ngClass",s.tooltipClass),N(3),En(s.message))},dependencies:[To],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),r})(),tZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Gle],imports:[j1,Er,Hu,$t,$t,np]}),r})();function Jle(t,r){if(1&t&&(P(0,"mat-option",18),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}function ece(t,r){if(1&t){const l=Oe();P(0,"mat-form-field",16)(1,"mat-select",17),J("selectionChange",function(s){return oe(l),le(Z(2)._changePageSize(s.value))}),lf(2,Jle,2,2,"mat-option",18,sf),R()()}if(2&t){const l=Z(2);z("appearance",l._formFieldAppearance)("color",l.color),N(),z("value",l.pageSize)("disabled",l.disabled)("aria-labelledby",l._pageSizeLabelId)("panelClass",l.selectConfig.panelClass||"")("disableOptionCentering",l.selectConfig.disableOptionCentering),N(),cf(l._displayedPageSizeOptions)}}function tce(t,r){if(1&t&&(P(0,"div",19),Y(1),R()),2&t){const l=Z(2);N(),En(l.pageSize)}}function nce(t,r){if(1&t&&(P(0,"div",12)(1,"div",13),Y(2),R(),re(3,ece,4,7,"mat-form-field",14)(4,tce,2,1,"div",15),R()),2&t){const l=Z();N(),$e("id",l._pageSizeLabelId),N(),Re(" ",l._intl.itemsPerPageLabel," "),N(),an(3,l._displayedPageSizeOptions.length>1?3:-1),N(),an(4,l._displayedPageSizeOptions.length<=1?4:-1)}}function ice(t,r){if(1&t){const l=Oe();P(0,"button",20),J("click",function(){return oe(l),le(Z().firstPage())}),Ia(),P(1,"svg",7),pe(2,"path",21),R()()}if(2&t){const l=Z();z("matTooltip",l._intl.firstPageLabel)("matTooltipDisabled",l._previousButtonsDisabled())("matTooltipPosition","above")("disabled",l._previousButtonsDisabled()),$e("aria-label",l._intl.firstPageLabel)}}function rce(t,r){if(1&t){const l=Oe();Ia(),Bd(),P(0,"button",22),J("click",function(){return oe(l),le(Z().lastPage())}),Ia(),P(1,"svg",7),pe(2,"path",23),R()()}if(2&t){const l=Z();z("matTooltip",l._intl.lastPageLabel)("matTooltipDisabled",l._nextButtonsDisabled())("matTooltipPosition","above")("disabled",l._nextButtonsDisabled()),$e("aria-label",l._intl.lastPageLabel)}}let yS=(()=>{var t;class r{constructor(){this.changes=new he,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,s,u)=>{if(0==u||0==s)return`0 of ${u}`;const m=e*s;return`${m+1} \u2013 ${m<(u=Math.max(u,0))?Math.min(m+s,u):m+s} of ${u}`}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const oce={provide:yS,deps:[[new Pa,new Wl,yS]],useFactory:function ace(t){return t||new yS}},lce=new ve("MAT_PAGINATOR_DEFAULT_OPTIONS"),cce=lp(cp(class{}));let dce=0,Zz=(()=>{var t;class r extends cce{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(xa(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=xa(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(xa(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(s=>xa(s)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ot(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ot(e)}constructor(e,s,u){if(super(),this._intl=e,this._changeDetectorRef=s,this._pageSizeLabelId="mat-paginator-page-size-label-"+dce++,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new Ce,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:m,pageSizeOptions:b,hidePageSize:C,showFirstLastButtons:M}=u;null!=m&&(this._pageSize=m),null!=b&&(this._pageSizeOptions=b),null!=C&&(this._hidePageSize=C),null!=M&&(this._showFirstLastButtons=M)}this._formFieldAppearance=(null==u?void 0:u.formFieldAppearance)||"outline"}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-s),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(yS),V(dn),V(lce,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled",color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},exportAs:["matPaginator"],features:[ze],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color"],["class","mat-mdc-paginator-page-size-value"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,nce,5,4,"div",2),P(3,"div",3)(4,"div",4),Y(5),R(),re(6,ice,3,5,"button",5),P(7,"button",6),J("click",function(){return s.previousPage()}),Ia(),P(8,"svg",7),pe(9,"path",8),R()(),Bd(),P(10,"button",9),J("click",function(){return s.nextPage()}),Ia(),P(11,"svg",7),pe(12,"path",10),R()(),re(13,rce,3,5,"button",11),R()()()),2&e&&(N(2),an(2,s.hidePageSize?-1:2),N(3),Re(" ",s._intl.getRangeLabel(s.pageIndex,s.pageSize,s.length)," "),N(),an(6,s.showFirstLastButtons?6:-1),N(),z("matTooltip",s._intl.previousPageLabel)("matTooltipDisabled",s._previousButtonsDisabled())("matTooltipPosition","above")("disabled",s._previousButtonsDisabled()),$e("aria-label",s._intl.previousPageLabel),N(3),z("matTooltip",s._intl.nextPageLabel)("matTooltipDisabled",s._nextButtonsDisabled())("matTooltipPosition","above")("disabled",s._nextButtonsDisabled()),$e("aria-label",s._intl.nextPageLabel),N(3),an(13,s.showFirstLastButtons?13:-1))},dependencies:[wc,ri,Ya,Ni,qz],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),uce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[oce],imports:[hp,hne,tZ]}),r})();const hce=["mat-sort-header",""];function fce(t,r){if(1&t){const l=Oe();P(0,"div",3),J("@arrowPosition.start",function(){return oe(l),le(Z()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return oe(l),le(Z()._disableViewStateAnimation=!1)}),pe(1,"div",4),P(2,"div",5),pe(3,"div",6)(4,"div",7)(5,"div",8),R()()}if(2&t){const l=Z();z("@arrowOpacity",l._getArrowViewState())("@arrowPosition",l._getArrowViewState())("@allowChildren",l._getArrowDirectionState()),N(2),z("@indicator",l._getArrowDirectionState()),N(),z("@leftPointer",l._getArrowDirectionState()),N(),z("@rightPointer",l._getArrowDirectionState())}}const pce=["*"],vne=new ve("MAT_SORT_DEFAULT_OPTIONS"),mce=cp(lp(class{}));let GP=(()=>{var t;class r extends mce{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ot(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new he,this.start="asc",this._direction="",this.sortChange=new Ce}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var b;if(!e)return"";const s=(null==e?void 0:e.disableClear)??this.disableClear??!(null==(b=this._defaultOptions)||!b.disableClear);let u=function gce(t,r){let l=["asc","desc"];return"desc"==t&&l.reverse(),r||l.push(""),l}(e.start||this.start,s),m=u.indexOf(this.direction)+1;return m>=u.length&&(m=0),u[m]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(vne,8))},t.\u0275dir=ce({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ze,nn]}),r})();const lv=G1.ENTERING+" "+qY.STANDARD_CURVE,bS={indicator:Vi("indicator",[Vn("active-asc, asc",lt({transform:"translateY(0px)"})),Vn("active-desc, desc",lt({transform:"translateY(10px)"})),Cn("active-asc <=> active-desc",kn(lv))]),leftPointer:Vi("leftPointer",[Vn("active-asc, asc",lt({transform:"rotate(-45deg)"})),Vn("active-desc, desc",lt({transform:"rotate(45deg)"})),Cn("active-asc <=> active-desc",kn(lv))]),rightPointer:Vi("rightPointer",[Vn("active-asc, asc",lt({transform:"rotate(45deg)"})),Vn("active-desc, desc",lt({transform:"rotate(-45deg)"})),Cn("active-asc <=> active-desc",kn(lv))]),arrowOpacity:Vi("arrowOpacity",[Vn("desc-to-active, asc-to-active, active",lt({opacity:1})),Vn("desc-to-hint, asc-to-hint, hint",lt({opacity:.54})),Vn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",lt({opacity:0})),Cn("* => asc, * => desc, * => active, * => hint, * => void",kn("0ms")),Cn("* <=> *",kn(lv))]),arrowPosition:Vi("arrowPosition",[Cn("* => desc-to-hint, * => desc-to-active",kn(lv,nv([lt({transform:"translateY(-25%)"}),lt({transform:"translateY(0)"})]))),Cn("* => hint-to-desc, * => active-to-desc",kn(lv,nv([lt({transform:"translateY(0)"}),lt({transform:"translateY(25%)"})]))),Cn("* => asc-to-hint, * => asc-to-active",kn(lv,nv([lt({transform:"translateY(25%)"}),lt({transform:"translateY(0)"})]))),Cn("* => hint-to-asc, * => active-to-asc",kn(lv,nv([lt({transform:"translateY(0)"}),lt({transform:"translateY(-25%)"})]))),Vn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",lt({transform:"translateY(0)"})),Vn("hint-to-desc, active-to-desc, desc",lt({transform:"translateY(-25%)"})),Vn("hint-to-asc, active-to-asc, asc",lt({transform:"translateY(25%)"}))]),allowChildren:Vi("allowChildren",[Cn("* <=> *",[eS("@*",Eb(),{optional:!0})])])};let Xz=(()=>{var t;class r{constructor(){this.changes=new he}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();const _ce={provide:Xz,deps:[[new Pa,new Wl,Xz]],useFactory:function vce(t){return t||new Xz}},yce=lp(class{});let _ne=(()=>{var t;class r extends yce{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ot(e)}constructor(e,s,u,m,b,C,M,I){super(),this._intl=e,this._changeDetectorRef=s,this._sort=u,this._columnDef=m,this._focusMonitor=b,this._elementRef=C,this._ariaDescriber=M,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=I&&I.arrowPosition&&(this.arrowPosition=null==I?void 0:I.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const s=!!e;s!==this._showIndicatorHint&&(this._setIndicatorHintVisible(s),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var s,u;this._sortButton&&(null==(s=this._ariaDescriber)||s.removeDescription(this._sortButton,this._sortActionDescription),null==(u=this._ariaDescriber)||u.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=xi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Xz),V(dn),V(GP,8),V("MAT_SORT_HEADER_COLUMN_DEF",8),V(uo),V(je),V(G5,8),V(vne,8))},t.\u0275cmp=xe({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,s){1&e&&J("click",function(){return s._handleClick()})("keydown",function(m){return s._handleKeydown(m)})("mouseenter",function(){return s._setIndicatorHintVisible(!0)})("mouseleave",function(){return s._setIndicatorHintVisible(!1)}),2&e&&($e("aria-sort",s._getAriaSortAttribute()),et("mat-sort-header-disabled",s._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[ze],attrs:hce,ngContentSelectors:pce,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,s){1&e&&(jn(),P(0,"div",0)(1,"div",1),dt(2),R(),re(3,fce,6,6,"div",2),R()),2&e&&(et("mat-sort-header-sorted",s._isSorted())("mat-sort-header-position-before","before"===s.arrowPosition),$e("tabindex",s._isDisabled()?null:0)("role",s._isDisabled()?null:"button"),N(3),an(3,s._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[bS.indicator,bS.leftPointer,bS.rightPointer,bS.arrowOpacity,bS.arrowPosition,bS.allowChildren]},changeDetection:0}),r})(),bce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[_ce],imports:[$t]}),r})();const wce=[[["caption"]],[["colgroup"],["col"]]],xce=["caption","colgroup, col"];function nZ(t){return class extends t{get sticky(){return this._sticky}set sticky(r){const l=this._sticky;this._sticky=Ot(r),this._hasStickyChanged=l!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}}}const wS=new ve("CDK_TABLE");let xS=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkCellDef",""]]}),r})(),CS=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkHeaderCellDef",""]]}),r})(),Kz=(()=>{var t;class r{constructor(e){this.template=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["","cdkFooterCellDef",""]]}),r})();class Tce{}const Mce=nZ(Tce);let mp=(()=>{var t;class r extends Mce{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){super(),this._table=e,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,xS,5),Kt(u,CS,5),Kt(u,Kz,5)),2&e){let m;Ne(m=Ve())&&(s.cell=m.first),Ne(m=Ve())&&(s.headerCell=m.first),Ne(m=Ve())&&(s.footerCell=m.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:["stickyEnd","stickyEnd",jt]},features:[Je([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),na,ze]}),r})();class iZ{constructor(r,l){l.nativeElement.classList.add(...r._columnCssClassName)}}let rZ=(()=>{var t;class r extends iZ{constructor(e,s){super(e,s)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(mp),V(je))},t.\u0275dir=ce({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ze]}),r})(),aZ=(()=>{var t;class r extends iZ{constructor(e,s){var u;if(super(e,s),1===(null==(u=e._table)?void 0:u._elementRef.nativeElement.nodeType)){const m=e._table._elementRef.nativeElement.getAttribute("role");s.nativeElement.setAttribute("role","grid"===m||"treegrid"===m?"gridcell":"cell")}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(mp),V(je))},t.\u0275dir=ce({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ze]}),r})();class bne{constructor(){this.tasks=[],this.endTasks=[]}}const oZ=new ve("_COALESCED_STYLE_SCHEDULER");let wne=(()=>{var t;class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new he}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bne,this._getScheduleObservable().pipe(Dt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new bne;for(const s of e.tasks)s();for(const s of e.endTasks)s()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?nr(Promise.resolve(void 0)):this._ngZone.onStable.pipe(In(1))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),sZ=(()=>{var t;class r{constructor(e,s){this.template=e,this._differs=s}ngOnChanges(e){if(!this._columnsDiffer){const s=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(s).create(),this._columnsDiffer.diff(s)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof WP?e.headerCell.template:this instanceof $P?e.footerCell.template:e.cell.template}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu))},t.\u0275dir=ce({type:t,features:[nn]}),r})();class Ace extends sZ{}const Ece=nZ(Ace);let WP=(()=>{var t;class r extends Ece{constructor(e,s,u){super(e,s),this._table=u}ngOnChanges(e){super.ngOnChanges(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ze,nn]}),r})();class Ice extends sZ{}const kce=nZ(Ice);let $P=(()=>{var t;class r extends kce{constructor(e,s,u){super(e,s),this._table=u}ngOnChanges(e){super.ngOnChanges(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ze,nn]}),r})(),Qz=(()=>{var t;class r extends sZ{constructor(e,s,u){super(e,s),this._table=u}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(tu),V(wS,8))},t.\u0275dir=ce({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ze]}),r})(),gp=(()=>{var t;class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return(t=r).mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(V(fi))},t.\u0275dir=ce({type:t,selectors:[["","cdkCellOutlet",""]]}),r})(),lZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),dZ=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),Jz=(()=>{var t;class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn))},t.\u0275dir=ce({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const xne=["top","bottom","left","right"];class Pce{constructor(r,l,e,s,u=!0,m=!0,b){this._isNativeHtmlTable=r,this._stickCellCss=l,this.direction=e,this._coalescedStyleScheduler=s,this._isBrowser=u,this._needsPositionStickyOnElement=m,this._positionListener=b,this._cachedCellWidths=[],this._borderCellCss={top:`${l}-border-elem-top`,bottom:`${l}-border-elem-bottom`,left:`${l}-border-elem-left`,right:`${l}-border-elem-right`}}clearStickyPositioning(r,l){const e=[];for(const s of r)if(s.nodeType===s.ELEMENT_NODE){e.push(s);for(let u=0;u{for(const s of e)this._removeStickyStyle(s,l)})}updateStickyColumns(r,l,e,s=!0){if(!r.length||!this._isBrowser||!l.some(H=>H)&&!e.some(H=>H))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const u=r[0],m=u.children.length,b=this._getCellWidths(u,s),C=this._getStickyStartColumnPositions(b,l),M=this._getStickyEndColumnPositions(b,e),I=l.lastIndexOf(!0),F=e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const H="rtl"===this.direction,q=H?"right":"left",Q=H?"left":"right";for(const ne of r)for(let ae=0;ael[ae]?ne:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===F?[]:b.slice(F).map((ne,ae)=>e[ae+F]?ne:null).reverse()}))})}stickRows(r,l,e){if(!this._isBrowser)return;const s="bottom"===e?r.slice().reverse():r,u="bottom"===e?l.slice().reverse():l,m=[],b=[],C=[];for(let I=0,F=0;I{var I,F;for(let H=0;H{l.some(s=>!s)?this._removeStickyStyle(e,["bottom"]):this._addStickyStyle(e,"bottom",0,!1)})}_removeStickyStyle(r,l){for(const s of l)r.style[s]="",r.classList.remove(this._borderCellCss[s]);xne.some(s=>-1===l.indexOf(s)&&r.style[s])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,l,e,s){r.classList.add(this._stickCellCss),s&&r.classList.add(this._borderCellCss[l]),r.style[l]=`${e}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const l={top:100,bottom:10,left:1,right:1};let e=0;for(const s of xne)r.style[s]&&(e+=l[s]);return e?`${e}`:""}_getCellWidths(r,l=!0){if(!l&&this._cachedCellWidths.length)return this._cachedCellWidths;const e=[],s=r.children;for(let u=0;u0;u--)l[u]&&(e[u]=s,s+=r[u]);return e}}const uZ=new ve("CDK_SPL");let e4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","rowOutlet",""]]}),r})(),t4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","headerRowOutlet",""]]}),r})(),n4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","footerRowOutlet",""]]}),r})(),r4=(()=>{var t;class r{constructor(e,s){this.viewContainer=e,this.elementRef=s}}return(t=r).\u0275fac=function(e){return new(e||t)(V(fi),V(je))},t.\u0275dir=ce({type:t,selectors:[["","noDataRowOutlet",""]]}),r})(),a4=(()=>{var t;class r{get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,s,u,m,b,C,M,I,F,H,q,Q){this._differs=e,this._changeDetectorRef=s,this._elementRef=u,this._dir=b,this._platform=M,this._viewRepeater=I,this._coalescedStyleScheduler=F,this._viewportRuler=H,this._stickyPositioningListener=q,this._ngZone=Q,this._onDestroy=new he,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ce,this.viewChange=new ye({start:0,end:Number.MAX_VALUE}),m||this._elementRef.nativeElement.setAttribute("role","table"),this._document=C,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,s)=>this.trackBy?this.trackBy(s.dataIndex,s.data):s),this._viewportRuler.change().pipe(Dt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const s=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||s,this._forceRecalculateCellWidths=s,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jq(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const s=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,s,(u,m,b)=>this._getEmbeddedViewArgs(u.item,b),u=>u.item.data,u=>{1===u.operation&&u.context&&this._renderCellTemplateForItem(u.record.item.rowDef,u.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(u=>{s.get(u.currentIndex).context.$implicit=u.item.data}),this._updateNoDataRow(),this._ngZone&&Ye.isInAngularZone()?this._ngZone.onStable.pipe(In(1),Dt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),u=this._elementRef.nativeElement.querySelector("thead");u&&(u.style.display=e.length?"":"none");const m=this._headerRowDefs.map(b=>b.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,m,"top"),this._headerRowDefs.forEach(b=>b.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),u=this._elementRef.nativeElement.querySelector("tfoot");u&&(u.style.display=e.length?"":"none");const m=this._footerRowDefs.map(b=>b.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,m,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,m),this._footerRowDefs.forEach(b=>b.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._getRenderedRows(this._rowOutlet),u=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...s,...u],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((m,b)=>{this._addStickyColumnStyles([m],this._headerRowDefs[b])}),this._rowDefs.forEach(m=>{const b=[];for(let C=0;C{this._addStickyColumnStyles([m],this._footerRowDefs[b])}),Array.from(this._columnDefsByName.values()).forEach(m=>m.resetStickyChanged())}_getAllRenderRows(){const e=[],s=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let u=0;u{const C=u&&u.has(b)?u.get(b):[];if(C.length){const M=C.shift();return M.dataIndex=s,M}return{data:e,rowDef:b,dataIndex:s}})}_cacheColumnDefs(){this._columnDefsByName.clear(),o4(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(s=>{this._columnDefsByName.has(s.name),this._columnDefsByName.set(s.name,s)})}_cacheRowDefs(){this._headerRowDefs=o4(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=o4(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=o4(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(s=>!s.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(b,C)=>b||!!C.getColumnsDiff(),s=this._rowDefs.reduce(e,!1);s&&this._forceRenderDataRows();const u=this._headerRowDefs.reduce(e,!1);u&&this._forceRenderHeaderRows();const m=this._footerRowDefs.reduce(e,!1);return m&&this._forceRenderFooterRows(),s||u||m}_switchDataSource(e){this._data=[],Jq(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Jq(this.dataSource)?e=this.dataSource.connect(this):_I(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=tt(this.dataSource)),this._renderChangeSubscription=e.pipe(Dt(this._onDestroy)).subscribe(s=>{this._data=s||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,s)=>this._renderRow(this._headerRowOutlet,e,s)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,s)=>this._renderRow(this._footerRowOutlet,e,s)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,s){const u=Array.from(s.columns||[]).map(C=>this._columnDefsByName.get(C)),m=u.map(C=>C.sticky),b=u.map(C=>C.stickyEnd);this._stickyStyler.updateStickyColumns(e,m,b,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const s=[];for(let u=0;u!m.when||m.when(s,e));else{let m=this._rowDefs.find(b=>b.when&&b.when(s,e))||this._defaultRowDef;m&&u.push(m)}return u}_getEmbeddedViewArgs(e,s){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:s}}_renderRow(e,s,u,m={}){const b=e.viewContainer.createEmbeddedView(s.template,m,u);return this._renderCellTemplateForItem(s,m),b}_renderCellTemplateForItem(e,s){for(let u of this._getCellTemplates(e))gp.mostRecentCellOutlet&&gp.mostRecentCellOutlet._viewContainer.createEmbeddedView(u,s);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let s=0,u=e.length;s{const u=this._columnDefsByName.get(s);return e.extractCellTemplate(u)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),s=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const u of s){const m=this._document.createElement(u.tag);m.setAttribute("role","rowgroup");for(const b of u.outlets)m.appendChild(b.elementRef.nativeElement);e.appendChild(m)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(s,u)=>s||u.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Pce(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:tt()).pipe(Dt(this._onDestroy)).subscribe(s=>{this._stickyStyler.direction=s,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(s=>!s._table||s._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const s=0===this._rowOutlet.viewContainer.length;if(s===this._isShowingNoDataRow)return;const u=this._noDataRowOutlet.viewContainer;if(s){const m=u.createEmbeddedView(e.templateRef),b=m.rootNodes[0];1===m.rootNodes.length&&(null==b?void 0:b.nodeType)===this._document.ELEMENT_NODE&&(b.setAttribute("role","row"),b.classList.add(e._contentClassName))}else u.clear();this._isShowingNoDataRow=s,this._changeDetectorRef.markForCheck()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(tu),V(dn),V(je),Ie("role"),V(Ir,8),V(yt),V(Jn),V(jP),V(oZ),V(Nu),V(uZ,12),V(Ye,8))},t.\u0275cmp=xe({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Jz,5),Kt(u,mp,5),Kt(u,Qz,5),Kt(u,WP,5),Kt(u,$P,5)),2&e){let m;Ne(m=Ve())&&(s._noDataRow=m.first),Ne(m=Ve())&&(s._contentColumnDefs=m),Ne(m=Ve())&&(s._contentRowDefs=m),Ne(m=Ve())&&(s._contentHeaderRowDefs=m),Ne(m=Ve())&&(s._contentFooterRowDefs=m)}},viewQuery:function(e,s){if(1&e&&(ft(e4,7),ft(t4,7),ft(n4,7),ft(r4,7)),2&e){let u;Ne(u=Ve())&&(s._rowOutlet=u.first),Ne(u=Ve())&&(s._headerRowOutlet=u.first),Ne(u=Ve())&&(s._footerRowOutlet=u.first),Ne(u=Ve())&&(s._noDataRowOutlet=u.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(e,s){2&e&&et("cdk-table-fixed-layout",s.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:["multiTemplateDataRows","multiTemplateDataRows",jt],fixedLayout:["fixedLayout","fixedLayout",jt]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Je([{provide:wS,useExisting:t},{provide:jP,useClass:qte},{provide:oZ,useClass:wne},{provide:uZ,useValue:null}]),na],ngContentSelectors:xce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,s){1&e&&(jn(wce),dt(0),dt(1,1),ao(2,0)(3,1)(4,2)(5,3))},dependencies:[e4,t4,n4,r4],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function o4(t,r){return t.concat(Array.from(r))}let Oce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Sk]}),r})();const Lce=[[["caption"]],[["colgroup"],["col"]]],Fce=["caption","colgroup, col"];let hZ=(()=>{var t;class r extends a4{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,s){2&e&&et("mdc-table-fixed-layout",s.fixedLayout)},exportAs:["matTable"],features:[Je([{provide:a4,useExisting:t},{provide:wS,useExisting:t},{provide:oZ,useClass:wne},{provide:jP,useClass:qte},{provide:uZ,useValue:null}]),ze],ngContentSelectors:Fce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,s){1&e&&(jn(Lce),dt(0),dt(1,1),ao(2,0)(3,1)(4,2)(5,3))},dependencies:[e4,t4,n4,r4],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),r})(),s4=(()=>{var t;class r extends xS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matCellDef",""]],features:[Je([{provide:xS,useExisting:t}]),ze]}),r})(),l4=(()=>{var t;class r extends CS{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matHeaderCellDef",""]],features:[Je([{provide:CS,useExisting:t}]),ze]}),r})(),c4=(()=>{var t;class r extends mp{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Je([{provide:mp,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ze]}),r})(),d4=(()=>{var t;class r extends rZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ze]}),r})(),u4=(()=>{var t;class r extends aZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ze]}),r})(),fZ=(()=>{var t;class r extends WP{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Je([{provide:WP,useExisting:t}]),ze]}),r})(),pZ=(()=>{var t;class r extends Qz{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Je([{provide:Qz,useExisting:t}]),ze]}),r})(),mZ=(()=>{var t;class r extends lZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Je([{provide:lZ,useExisting:t}]),ze],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),gZ=(()=>{var t;class r extends dZ{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Je([{provide:dZ,useExisting:t}]),ze],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,s){1&e&&ao(0,0)},dependencies:[gp],encapsulation:2}),r})(),Gce=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Oce,$t]}),r})();class Sne extends Wse{get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}constructor(r=[]){super(),this._renderData=new ye([]),this._filter=new ye(""),this._internalPageChanges=new he,this._renderChangesSubscription=null,this.sortingDataAccessor=(l,e)=>{const s=l[e];if(hk(s)){const u=Number(s);return u<9007199254740991?u:s}return s},this.sortData=(l,e)=>{const s=e.active,u=e.direction;return s&&""!=u?l.sort((m,b)=>{let C=this.sortingDataAccessor(m,s),M=this.sortingDataAccessor(b,s);const I=typeof C,F=typeof M;I!==F&&("number"===I&&(C+=""),"number"===F&&(M+=""));let H=0;return null!=C&&null!=M?C>M?H=1:C{const s=Object.keys(l).reduce((m,b)=>m+l[b]+"\u25ec","").toLowerCase(),u=e.trim().toLowerCase();return-1!=s.indexOf(u)},this._data=new ye(r),this._updateChangeSubscription()}_updateChangeSubscription(){var b;const r=this._sort?xi(this._sort.sortChange,this._sort.initialized):tt(null),l=this._paginator?xi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):tt(null),s=Pu([this._data,this._filter]).pipe(Ee(([C])=>this._filterData(C))),u=Pu([s,r]).pipe(Ee(([C])=>this._orderData(C))),m=Pu([u,l]).pipe(Ee(([C])=>this._pageData(C)));null==(b=this._renderChangesSubscription)||b.unsubscribe(),this._renderChangesSubscription=m.subscribe(C=>this._renderData.next(C))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(l=>this.filterPredicate(l,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const l=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(l,l+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const l=this.paginator;if(l&&(l.length=r,l.pageIndex>0)){const e=Math.ceil(l.length/l.pageSize)-1||0,s=Math.min(l.pageIndex,e);s!==l.pageIndex&&(l.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var r;null==(r=this._renderChangesSubscription)||r.unsubscribe(),this._renderChangesSubscription=null}}function Dne(t,r){return r?l=>Yf(r.pipe(In(1),function $ce(){return Ae((t,r)=>{t.subscribe(Bn(r,qb))})}()),l.pipe(Dne(t))):Gi((l,e)=>ra(t(l,e)).pipe(In(1),B3(l)))}function h4(t,r=Ds){const l=hb(t,r);return Dne(()=>l)}const Yce=["input"],qce=["label"],Zce=["*"],Xce=new ve("mat-checkbox-default-options",{providedIn:"root",factory:Tne});function Tne(){return{color:"accent",clickAction:"check-indeterminate"}}const Kce={provide:Pr,useExisting:Jt(()=>Ane),multi:!0};class Qce{}let Jce=0;const Mne=Tne();let Ane=(()=>{var t;class r{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const s=new Qce;return s.source=this,s.checked=e,s}_getAnimationTargetElement(){var e;return null==(e=this._inputElement)?void 0:e.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,s,u,m,b,C){this._elementRef=e,this._changeDetectorRef=s,this._ngZone=u,this._animationMode=b,this._options=C,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Mne,this.color=this._options.color||Mne.color,this.tabIndex=parseInt(m)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++Jce}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const s=e!=this._indeterminate;this._indeterminate=e,s&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let s=this._currentCheckState,u=this._getAnimationTargetElement();if(s!==e&&u&&(this._currentAnimationClass&&u.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(s,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){u.classList.add(this._currentAnimationClass);const m=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{u.classList.remove(m)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var s;const e=null==(s=this._options)?void 0:s.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,s){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===s)return this._animationClasses.uncheckedToChecked;if(3==s)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===s?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===s?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===s?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const s=this._inputElement;s&&(s.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ye),Ie("tabindex"),V(si,8),V(Xce,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,s){if(1&e&&(ft(Yce,5),ft(qce,5),ft(bl,5)),2&e){let u;Ne(u=Ve())&&(s._inputElement=u.first),Ne(u=Ve())&&(s._labelElement=u.first),Ne(u=Ve())&&(s.ripple=u.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("tabindex",null)("aria-label",null)("aria-labelledby",null),cu(s.color?"mat-"+s.color:"mat-accent"),et("_mat-animation-noopable","NoopAnimations"===s._animationMode)("mdc-checkbox--disabled",s.disabled)("mat-mdc-checkbox-disabled",s.disabled)("mat-mdc-checkbox-checked",s.checked))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:["required","required",jt],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:["disableRipple","disableRipple",jt],tabIndex:["tabIndex","tabIndex",l=>null==l?void 0:qA(l)],color:"color",checked:["checked","checked",jt],disabled:["disabled","disabled",jt],indeterminate:["indeterminate","indeterminate",jt]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Je([Kce]),na],ngContentSelectors:Zce,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(e,s){if(1&e&&(jn(),P(0,"div",0),J("click",function(m){return s._preventBubblingFromLabel(m)}),P(1,"div",1,2)(3,"div",3),J("click",function(){return s._onTouchTargetClick()}),R(),P(4,"input",4,5),J("blur",function(){return s._onBlur()})("click",function(){return s._onInputClick()})("change",function(m){return s._onInteractionEvent(m)}),R(),pe(6,"div",6),P(7,"div",7),Ia(),P(8,"svg",8),pe(9,"path",9),R(),Bd(),pe(10,"div",10),R(),pe(11,"div",11),R(),P(12,"label",12,13),dt(14),R()()),2&e){const u=pn(2);et("mdc-form-field--align-end","before"==s.labelPosition),N(4),et("mdc-checkbox--selected",s.checked),z("checked",s.checked)("indeterminate",s.indeterminate)("disabled",s.disabled)("id",s.inputId)("required",s.required)("tabIndex",s.disabled?-1:s.tabIndex),$e("aria-label",s.ariaLabel||null)("aria-labelledby",s.ariaLabelledby)("aria-describedby",s.ariaDescribedby)("aria-checked",s.indeterminate?"mixed":null)("name",s.name)("value",s.value),N(7),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),N(),z("for",s.inputId)}},dependencies:[bl],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})(),Ene=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),Ine=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,Ene,$t,Ene]}),r})();const nde=["*"];let f4;function YP(t){var r;return(null==(r=function ide(){if(void 0===f4&&(f4=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(f4=t.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return f4}())?void 0:r.createHTML(t))||t}function kne(t){return Error(`Unable to find icon with the name "${t}"`)}function Pne(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Rne(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Nb{constructor(r,l,e){this.url=r,this.svgText=l,this.options=e}}let p4=(()=>{var t;class r{constructor(e,s,u,m){this._httpClient=e,this._sanitizer=s,this._errorHandler=m,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=u}addSvgIcon(e,s,u){return this.addSvgIconInNamespace("",e,s,u)}addSvgIconLiteral(e,s,u){return this.addSvgIconLiteralInNamespace("",e,s,u)}addSvgIconInNamespace(e,s,u,m){return this._addSvgIconConfig(e,s,new Nb(u,null,m))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,s,u,m){const b=this._sanitizer.sanitize(Qi.HTML,u);if(!b)throw Rne(u);const C=YP(b);return this._addSvgIconConfig(e,s,new Nb("",C,m))}addSvgIconSet(e,s){return this.addSvgIconSetInNamespace("",e,s)}addSvgIconSetLiteral(e,s){return this.addSvgIconSetLiteralInNamespace("",e,s)}addSvgIconSetInNamespace(e,s,u){return this._addSvgIconSetConfig(e,new Nb(s,null,u))}addSvgIconSetLiteralInNamespace(e,s,u){const m=this._sanitizer.sanitize(Qi.HTML,s);if(!m)throw Rne(s);const b=YP(m);return this._addSvgIconSetConfig(e,new Nb("",b,u))}registerFontClassAlias(e,s=e){return this._fontCssClassesByAlias.set(e,s),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const s=this._sanitizer.sanitize(Qi.RESOURCE_URL,e);if(!s)throw Pne(e);const u=this._cachedIconsByUrl.get(s);return u?tt(m4(u)):this._loadSvgIconFromConfig(new Nb(e,null)).pipe(Fi(m=>this._cachedIconsByUrl.set(s,m)),Ee(m=>m4(m)))}getNamedSvgIcon(e,s=""){const u=One(s,e);let m=this._svgIconConfigs.get(u);if(m)return this._getSvgFromConfig(m);if(m=this._getIconConfigFromResolvers(s,e),m)return this._svgIconConfigs.set(u,m),this._getSvgFromConfig(m);const b=this._iconSetConfigs.get(s);return b?this._getSvgFromIconSetConfigs(e,b):Eg(kne(u))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?tt(m4(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ee(s=>m4(s)))}_getSvgFromIconSetConfigs(e,s){const u=this._extractIconWithNameFromAnySet(e,s);return u?tt(u):LP(s.filter(b=>!b.svgText).map(b=>this._loadSvgIconSetFromConfig(b).pipe(Eo(C=>{const I=`Loading icon set URL: ${this._sanitizer.sanitize(Qi.RESOURCE_URL,b.url)} failed: ${C.message}`;return this._errorHandler.handleError(new Error(I)),tt(null)})))).pipe(Ee(()=>{const b=this._extractIconWithNameFromAnySet(e,s);if(!b)throw kne(e);return b}))}_extractIconWithNameFromAnySet(e,s){for(let u=s.length-1;u>=0;u--){const m=s[u];if(m.svgText&&m.svgText.toString().indexOf(e)>-1){const b=this._svgElementFromConfig(m),C=this._extractSvgIconFromSet(b,e,m.options);if(C)return C}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Fi(s=>e.svgText=s),Ee(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?tt(null):this._fetchIcon(e).pipe(Fi(s=>e.svgText=s))}_extractSvgIconFromSet(e,s,u){const m=e.querySelector(`[id="${s}"]`);if(!m)return null;const b=m.cloneNode(!0);if(b.removeAttribute("id"),"svg"===b.nodeName.toLowerCase())return this._setSvgAttributes(b,u);if("symbol"===b.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(b),u);const C=this._svgElementFromString(YP(""));return C.appendChild(b),this._setSvgAttributes(C,u)}_svgElementFromString(e){const s=this._document.createElement("DIV");s.innerHTML=e;const u=s.querySelector("svg");if(!u)throw Error(" tag not found");return u}_toSvgElement(e){const s=this._svgElementFromString(YP("")),u=e.attributes;for(let m=0;mYP(I)),Hf(()=>this._inProgressUrlFetches.delete(b)),Xte());return this._inProgressUrlFetches.set(b,M),M}_addSvgIconConfig(e,s,u){return this._svgIconConfigs.set(One(e,s),u),this}_addSvgIconSetConfig(e,s){const u=this._iconSetConfigs.get(e);return u?u.push(s):this._iconSetConfigs.set(e,[s]),this}_svgElementFromConfig(e){if(!e.svgElement){const s=this._svgElementFromString(e.svgText);this._setSvgAttributes(s,e.options),e.svgElement=s}return e.svgElement}_getIconConfigFromResolvers(e,s){for(let u=0;ur?r.pathname+r.search:""}}}),Lne=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ude=Lne.map(t=>`[${t}]`).join(", "),hde=/^url\(['"]?#(.*?)['"]?\)$/;let fde=(()=>{var t;class r extends sde{get inline(){return this._inline}set inline(e){this._inline=Ot(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const s=this._cleanupFontValue(e);s!==this._fontSet&&(this._fontSet=s,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const s=this._cleanupFontValue(e);s!==this._fontIcon&&(this._fontIcon=s,this._updateFontIconClasses())}constructor(e,s,u,m,b,C){super(e),this._iconRegistry=s,this._location=m,this._errorHandler=b,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=bt.EMPTY,C&&(C.color&&(this.color=this.defaultColor=C.color),C.fontSet&&(this.fontSet=C.fontSet)),u||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const s=e.split(":");switch(s.length){case 1:return["",s[0]];case 2:return s;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const s=this._location.getPathname();s!==this._previousPath&&(this._previousPath=s,this._prependPathToReferences(s))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const s=this._location.getPathname();this._previousPath=s,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(s),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let s=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();s--;){const u=e.childNodes[s];(1!==u.nodeType||"svg"===u.nodeName.toLowerCase())&&u.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,s=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(u=>u.length>0);this._previousFontSetClass.forEach(u=>e.classList.remove(u)),s.forEach(u=>e.classList.add(u)),this._previousFontSetClass=s,this.fontIcon!==this._previousFontIconClass&&!s.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const s=this._elementsWithExternalReferences;s&&s.forEach((u,m)=>{u.forEach(b=>{m.setAttribute(b.name,`url('${e}#${b.value}')`)})})}_cacheChildrenWithExternalReferences(e){const s=e.querySelectorAll(ude),u=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let m=0;m{const C=s[m],M=C.getAttribute(b),I=M?M.match(hde):null;if(I){let F=u.get(C);F||(F=[],u.set(C,F)),F.push({name:b,value:I[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[s,u]=this._splitIconName(e);s&&(this._svgNamespace=s),u&&(this._svgName=u),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(u,s).pipe(In(1)).subscribe(m=>this._setSvgElement(m),m=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${s}:${u}! ${m.message}`))})}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(p4),Ie("aria-hidden"),V(cde),V(Tr),V(lde,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,s){2&e&&($e("data-mat-icon-type",s._usingFontIcon()?"font":"svg")("data-mat-icon-name",s._svgName||s.fontIcon)("data-mat-icon-namespace",s._svgNamespace||s.fontSet)("fontIcon",s._usingFontIcon()?s.fontIcon:null),et("mat-icon-inline",s.inline)("mat-icon-no-color","primary"!==s.color&&"accent"!==s.color&&"warn"!==s.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ze],ngContentSelectors:nde,decls:1,vars:0,template:function(e,s){1&e&&(jn(),dt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),pde=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})();const mde=["determinateSpinner"];function gde(t,r){if(1&t&&(Ia(),P(0,"svg",11),pe(1,"circle",12),R()),2&t){const l=Z();$e("viewBox",l._viewBox()),N(),cr("stroke-dasharray",l._strokeCircumference(),"px")("stroke-dashoffset",l._strokeCircumference()/2,"px")("stroke-width",l._circleStrokeWidth(),"%"),$e("r",l._circleRadius())}}const vde=tv(class{constructor(t){this._elementRef=t}},"primary"),_de=new ve("mat-progress-spinner-default-options",{providedIn:"root",factory:function yde(){return{diameter:Fne}}}),Fne=100;let Nne=(()=>{var t;class r extends vde{constructor(e,s,u){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=Fne,this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,xa(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=xa(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=xa(e)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(si,8),V(_de))},t.\u0275cmp=xe({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,s){if(1&e&&ft(mde,5),2&e){let u;Ne(u=Ve())&&(s._determinateCircle=u.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(e,s){2&e&&($e("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===s.mode?s.value:null)("mode",s.mode),cr("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),et("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===s.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[ze],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,s){if(1&e&&(re(0,gde,2,8,"ng-template",null,0,so),P(2,"div",1,2),Ia(),P(4,"svg",3),pe(5,"circle",4),R()(),Bd(),P(6,"div",5)(7,"div",6)(8,"div",7),ao(9,8),R(),P(10,"div",9),ao(11,8),R(),P(12,"div",10),ao(13,8),R()()()),2&e){const u=pn(1);N(4),$e("viewBox",s._viewBox()),N(),cr("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),$e("r",s._circleRadius()),N(4),z("ngTemplateOutlet",u),N(2),z("ngTemplateOutlet",u),N(2),z("ngTemplateOutlet",u)}},dependencies:[pE],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),r})(),Vne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,$t]}),r})(),Bne=(()=>{var t;class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ot(e)}get inset(){return this._inset}set inset(e){this._inset=Ot(e)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,s){2&e&&($e("aria-orientation",s.vertical?"vertical":"horizontal"),et("mat-divider-vertical",s.vertical)("mat-divider-horizontal",!s.vertical)("mat-divider-inset",s.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,s){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),r})(),zne=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})();const wde=["searchSelectInput"],xde=["innerSelectSearch"];function Cde(t,r){if(1&t){const l=Oe();P(0,"mat-checkbox",10),J("change",function(s){return oe(l),le(Z()._emitSelectAllBooleanToParent(s.checked))}),R()}if(2&t){const l=Z();z("color",null==l.matFormField?null:l.matFormField.color)("checked",l.toggleAllCheckboxChecked)("indeterminate",l.toggleAllCheckboxIndeterminate)("matTooltip",l.toggleAllCheckboxTooltipMessage)("matTooltipPosition",l.toggleAllCheckboxTooltipPosition)}}function Sde(t,r){1&t&&pe(0,"mat-spinner",11)}function Dde(t,r){1&t&&dt(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Tde(t,r){if(1&t&&(P(0,"mat-icon",15),Y(1),R()),2&t){const l=Z(2);z("svgIcon",l.closeSvgIcon),N(),Re(" ",l.closeSvgIcon?null:l.closeIcon," ")}}function Mde(t,r){if(1&t){const l=Oe();P(0,"button",12),J("click",function(){return oe(l),le(Z()._reset(!0))}),re(1,Dde,1,0,"ng-content",13)(2,Tde,2,2,"ng-template",null,14,so),R()}if(2&t){const l=pn(3),e=Z();N(),z("ngIf",e.clearIcon)("ngIfElse",l)}}function Ade(t,r){1&t&&dt(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Ede(t,r){1&t&&Y(0),2&t&&En(Z(2).noEntriesFoundLabel)}function Ide(t,r){if(1&t&&(P(0,"div",16),re(1,Ade,1,0,"ng-content",13)(2,Ede,1,1,"ng-template",null,17,so),R()),2&t){const l=pn(3),e=Z();N(),z("ngIf",e.noEntriesFound)("ngIfElse",l)}}const kde=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Pde=(t,r)=>({"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":r}),Rde=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Ode=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275dir=ce({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();const Lde=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Fde=new ve("mat-selectsearch-default-options");let Nde=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275dir=ce({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),t})(),Vde=(()=>{class t{constructor(l,e,s,u=null,m=null,b){this.matSelect=l,this.changeDetectorRef=e,this._viewportRuler=s,this.matOption=u,this.matFormField=m,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new Ce,this.onTouched=C=>{},this._options$=new ye(null),this.optionsList$=this._options$.pipe(Li(C=>C?C.changes.pipe(Ee(M=>M.toArray()),pr(C.toArray())):tt(null))),this.optionsLength$=this.optionsList$.pipe(Ee(C=>C?C.length:0)),this._formControl=new Vq(""),this._showNoEntriesFound$=Pu([this._formControl.valueChanges,this.optionsLength$]).pipe(Ee(([C,M])=>this.noEntriesFoundLabel&&C&&M===this.getOptionsLengthOffset())),this._onDestroy=new he,this.applyDefaultOptions(b)}get value(){return this._formControl.value}set _options(l){this._options$.next(l)}get _options(){return this._options$.getValue()}applyDefaultOptions(l){if(l)for(const e of Lde)l.hasOwnProperty(e)&&(this[e]=l[e])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(h4(1),Dt(this._onDestroy)).subscribe(l=>{l?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(In(1),Li(l=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Fi(()=>{setTimeout(()=>{const s=this._options.toArray(),u=s[this.getOptionsLengthOffset()],m=this.matSelect._keyManager;m&&this.matSelect.panelOpen&&u&&((!e||!this.matSelect.compareWith(e.value,u.value)||!m.activeItem||!s.find(C=>this.matSelect.compareWith(C.value,m.activeItem.value)))&&m.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=u})}))})).pipe(Dt(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Dt(this._onDestroy)).subscribe(l=>{this.matOption&&(l?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(Dt(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Dt(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(l){this.toggleAll.emit(l)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(l){(l.key&&1===l.key.length||l.keyCode>=65&&l.keyCode<=90||l.keyCode>=48&&l.keyCode<=57||32===l.keyCode||this.preventHomeEndKeyPropagation&&(36===l.keyCode||35===l.keyCode))&&l.stopPropagation(),this.matSelect.multiple&&l.key&&13===l.keyCode&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&27===l.keyCode&&this.value&&(this._reset(!0),l.stopPropagation())}_handleKeyup(l){if(38===l.keyCode||40===l.keyCode){const e=this.matSelect._getAriaActiveDescendant(),s=this._options.toArray().findIndex(u=>u.id===e);-1!==s&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[s]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",e))}}writeValue(l){this._lastExternalInputValue=l,this._formControl.setValue(l),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(l){this._formControl.valueChanges.pipe(bn(e=>e!==this._lastExternalInputValue),Fi(()=>this._lastExternalInputValue=void 0),Dt(this._onDestroy)).subscribe(l)}registerOnTouched(l){this.onTouched=l}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const l=this.matSelect.panel.nativeElement,e=l.scrollTop;this.searchSelectInput.nativeElement.focus(),l.scrollTop=e}_reset(l){this._formControl.setValue(""),l&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(Dt(this._onDestroy)).subscribe(l=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!l||!Array.isArray(l))&&(l=[]);const s=this.matSelect.options.map(u=>u.value);this.previousSelectedValues.forEach(u=>{!l.some(m=>this.matSelect.compareWith(m,u))&&!s.some(m=>this.matSelect.compareWith(m,u))&&(l.push(u),e=!0)})}this.previousSelectedValues=l,e&&this.matSelect._onChange(l)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e,l=this.innerSelectSearch.nativeElement;for(;l=l.parentElement;)if(l.classList.contains("mat-select-panel")){e=l;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){var l;null==(l=this.activeDescendant)||l.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return t.\u0275fac=function(l){return new(l||t)(V(Ya),V(dn),V(Nu),V(Ni,8),V(ri,8),V(Fde,8))},t.\u0275cmp=xe({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(l,e,s){if(1&l&&(Kt(s,Ode,5),Kt(s,Nde,5)),2&l){let u;Ne(u=Ve())&&(e.clearIcon=u.first),Ne(u=Ve())&&(e.noEntriesFound=u.first)}},viewQuery:function(l,e){if(1&l&&(ft(wde,7,je),ft(xde,7,je)),2&l){let s;Ne(s=Ve())&&(e.searchSelectInput=s.first),Ne(s=Ve())&&(e.innerSelectSearch=s.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[Je([{provide:Pr,useExisting:Jt(()=>t),multi:!0}])],ngContentSelectors:Rde,decls:13,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(l,e){1&l&&(jn(kde),pe(0,"input",0),P(1,"div",1,2)(3,"div",3),re(4,Cde,1,5,"mat-checkbox",4),P(5,"input",5,6),J("keydown",function(u){return e._handleKeydown(u)})("keyup",function(u){return e._handleKeyup(u)})("blur",function(){return e.onBlur()}),R(),re(7,Sde,1,0,"mat-spinner",7)(8,Mde,4,2,"button",8),dt(9),R(),pe(10,"mat-divider"),R(),re(11,Ide,4,2,"div",9),nl(12,"async")),2&l&&(N(),z("ngClass",Ix(11,Pde,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),N(3),z("ngIf",e._isToggleAllCheckboxVisible()),N(),z("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),$e("aria-label",e.ariaLabel),N(2),z("ngIf",e.searching),N(),z("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),N(3),z("ngIf",ng(12,9,e._showNoEntriesFound$)))},dependencies:[To,xn,$i,A,Hq,wc,Ane,fde,Nne,qz,Bne,gE],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),t})(),Bde=(()=>{class t{}return t.\u0275fac=function(l){return new(l||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[Er,xte,hp,Ine,pde,Vne,tZ,zne]}),t})();function zde(t,r){if(1&t){const l=Oe();P(0,"mat-option")(1,"ngx-mat-select-search",1),J("ngModelChange",function(s){return oe(l),le(Z().changed.emit(s))}),R()()}if(2&t){const l=Z();N(),z("placeholderLabel",l.placeholderLabel)("noEntriesFoundLabel",l.noEntriesFoundLabel)}}let Cc=(()=>{var t;class r{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new Ce,this.notIfLessThan=7}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"placeholderLabel","noEntriesFoundLabel","ngModelChange"]],template:function(e,s){1&e&&re(0,zde,2,2,"mat-option",0),2&e&&z("ngIf",s.options&&s.options.length>s.notIfLessThan)},dependencies:[xn,A,ii,Ni,Vde]}),r})();function Hde(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New user permission for"),R())}function Ude(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New group permission for"),R())}function jde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}function Gde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}function Wde(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),En(l.text)}}let $de=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.done=new wl}static launch(e,s,u){return Ge(function*(){const m=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(r,{width:m,data:{type:s,item:u},disableClose:!0}).componentInstance.done})()}ngOnInit(){var e=this;return Ge(function*(){const s=yield e.rest.authenticators.summary();for(const u of s)e.authenticators.push({id:u.id,text:u.name})})()}changeAuth(e){var s=this;return Ge(function*(){s.entities.length=0,s.entity="";const u=yield s.rest.authenticators.detail(e,s.data.type+"s").summary();for(const m of u)s.entities.push({id:m.id,text:m.name})})()}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){const e=new Array;return this.entities.forEach(s=>{(!this.filterUser||s.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(s)}),e}getFieldLabel(e){return"user"===e?django.gettext("User"):"group"===e?django.gettext("Group"):"auth"===e?django.gettext("Authenticator"):django.gettext("Permission")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"options","changed"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,Hde,2,0,"uds-translate",1),pe(2,"b",2),re(3,Ude,2,0,"ng-template",null,3,so),R(),P(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),J("valueChange",function(m){return s.changeAuth(m)})("ngModelChange",function(m){return s.authenticator=m}),re(9,jde,2,2,"mat-option",6),R()(),P(10,"mat-form-field")(11,"mat-select",7),J("ngModelChange",function(m){return s.entity=m}),P(12,"uds-cond-select-search",8),J("changed",function(m){return s.filterUser=m}),R(),re(13,Gde,2,2,"mat-option",6),R()(),P(14,"mat-form-field")(15,"mat-select",7),J("ngModelChange",function(m){return s.permission=m}),re(16,Wde,2,2,"mat-option",6),R()()()(),P(17,"mat-dialog-actions")(18,"button",9),J("click",function(){return s.cancel()}),P(19,"uds-translate"),Y(20,"Cancel"),R()(),P(21,"button",10),J("click",function(){return s.save()}),P(22,"uds-translate"),Y(23,"Ok"),R()()()),2&e){const u=pn(4);N(),z("ngIf","user"===s.data.type)("ngIfElse",u),N(),z("innerHTML",s.data.item.name,zr),N(6),z("placeholder",s.getFieldLabel("auth"))("ngModel",s.authenticator),N(),z("ngForOf",s.authenticators),N(2),z("placeholder",s.getFieldLabel(s.data.type))("ngModel",s.entity),N(),z("options",s.entities),N(),z("ngForOf",s.filteredEntities()),N(2),z("placeholder",s.getFieldLabel("perm"))("ngModel",s.permission),N(),z("ngForOf",s.permissions)}},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ya,Ni,vn,Cc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function Yde(t,r){if(1&t){const l=Oe();P(0,"div",11)(1,"div",12),Y(2),R(),P(3,"div",13),Y(4),P(5,"a",14),J("click",function(){const u=oe(l).$implicit;return le(Z(2).revokePermission(u))}),P(6,"i",15),Y(7,"close"),R()()()()}if(2&t){const l=r.$implicit;N(2),eg(" ",l.entity_name,"@",l.auth_name," "),N(2),Re(" ",l.perm_name," \xa0")}}function qde(t,r){if(1&t){const l=Oe();P(0,"div",7)(1,"div",8)(2,"div",9),J("click",function(s){const m=oe(l).$implicit;return Z().newPermission(m),le(s.preventDefault())}),P(3,"uds-translate"),Y(4,"New permission..."),R()(),re(5,Yde,8,3,"div",10),R()()}if(2&t){const l=r.$implicit;N(5),z("ngForOf",l)}}const Zde=(t,r)=>[t,r];let Xde=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.dialogRef=s,this.data=u,this.userPermissions=[],this.groupPermissions=[]}static launch(e,s,u){const m=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(r,{width:m,data:{rest:s,item:u},disableClose:!1})}ngOnInit(){var e=this;return Ge(function*(){yield e.reload()})()}reload(){var e=this;return Ge(function*(){const s=yield e.data.rest.getPermissions(e.data.item.id);e.updatePermissions(s)})()}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(const s of e)"user"===s.type?this.userPermissions.push(s):this.groupPermissions.push(s)}revokePermission(e){var s=this;return Ge(function*(){(yield s.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+""))&&(yield s.data.rest.revokePermission([e.id]),s.reload())})()}newPermission(e){var s=this;return Ge(function*(){const u=e===s.userPermissions?"user":"group",m=yield $de.launch(s.api,u,s.data.item);m&&(yield s.data.rest.addPermission(s.data.item.id,u+"s",m.entity,m.permissision),s.reload())})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Permissions for"),R(),Y(3,"\xa0"),pe(4,"b",1),R(),P(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),Y(8,"Users"),R(),P(9,"uds-translate",3),Y(10,"Groups"),R()(),P(11,"div",4),re(12,qde,6,1,"div",5),R()(),P(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),Y(16,"Ok"),R()()()),2&e&&(N(4),z("innerHTML",s.data.item.name,zr),N(8),z("ngForOf",Ix(2,Zde,s.userPermissions,s.groupPermissions)))},dependencies:[mi,Pn,Io,zi,Ai,Hi,vn],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();var vZ=Dn(897);const jne=t=>(void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'),Gne=t=>{let r="";t.columns.forEach(s=>{r+=jne(s.title)+","}),r=r.slice(0,-1)+"\r\n";const l=t.dataSource.data;for(const s of l){for(const u of t.columns){let m=s[u.name];switch(u.type){case $a.DATE:m=Ms("SHORT_DATE_FORMAT",m);break;case $a.DATETIME:m=Ms("SHORT_DATETIME_FORMAT",m);break;case $a.DATETIMESEC:m=Ms("SHORT_DATE_FORMAT",m," H:i:s");break;case $a.TIME:m=Ms("TIME_FORMAT",m)}r+=jne(m)+","}r=r.slice(0,-1)+"\r\n"}const e=new Blob([r],{type:"text/csv"});setTimeout(()=>{(0,vZ.saveAs)(e,t.title+".csv")})};class Qde{constructor(r,l){this._document=l;const e=this._textarea=this._document.createElement("textarea"),s=e.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",e.setAttribute("aria-hidden","true"),e.value=r,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){const r=this._textarea;let l=!1;try{if(r){const e=this._document.activeElement;r.select(),r.setSelectionRange(0,r.value.length),l=this._document.execCommand("copy"),e&&e.focus()}}catch{}return l}destroy(){const r=this._textarea;r&&(r.remove(),this._textarea=void 0)}}let Jde=(()=>{var t;class r{constructor(e){this._document=e}copy(e){const s=this.beginCopy(e),u=s.copy();return s.destroy(),u}beginCopy(e){return new Qde(e,this._document)}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),eue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const tue=["mat-menu-item",""];function nue(t,r){1&t&&(Ia(),P(0,"svg",3),pe(1,"polygon",4),R())}const iue=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],rue=["mat-icon, [matMenuItemIcon]","*"];function aue(t,r){if(1&t){const l=Oe();P(0,"div",0),J("keydown",function(s){return oe(l),le(Z()._handleKeydown(s))})("click",function(){return oe(l),le(Z().closed.emit("click"))})("@transformMenu.start",function(s){return oe(l),le(Z()._onAnimationStart(s))})("@transformMenu.done",function(s){return oe(l),le(Z()._onAnimationDone(s))}),P(1,"div",1),dt(2),R()()}if(2&t){const l=Z();z("id",l.panelId)("ngClass",l._classList)("@transformMenu",l._panelAnimationState),$e("aria-label",l.ariaLabel||null)("aria-labelledby",l.ariaLabelledby||null)("aria-describedby",l.ariaDescribedby||null)}}const oue=["*"],_Z=new ve("MAT_MENU_PANEL");let qP=(()=>{var t;class r{constructor(e,s,u,m,b){var C;this._elementRef=e,this._document=s,this._focusMonitor=u,this._parentMenu=m,this._changeDetectorRef=b,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new he,this._focused=new he,this._highlighted=!1,this._triggersSubmenu=!1,null==(C=null==m?void 0:m.addItem)||C.call(m,this)}focus(e,s){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,s):this._getHostElement().focus(s),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var u;const e=this._elementRef.nativeElement.cloneNode(!0),s=e.querySelectorAll("mat-icon, .material-icons");for(let m=0;m{var t;class r{constructor(e,s,u,m,b,C,M){this._template=e,this._componentFactoryResolver=s,this._appRef=u,this._injector=m,this._viewContainerRef=b,this._document=C,this._changeDetectorRef=M,this._attached=new he}attach(e={}){var u;this._portal||(this._portal=new yd(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new g5(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const s=this._template.elementRef.nativeElement;s.parentNode.insertBefore(this._outlet.outletElement,s),null==(u=this._changeDetectorRef)||u.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Kn),V(ls),V(ol),V(mn),V(fi),V(yt),V(dn))},t.\u0275dir=ce({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Je([{provide:Wne,useExisting:t}])]}),r})();const g4={transformMenu:Vi("transformMenu",[Vn("void",lt({opacity:0,transform:"scale(0.8)"})),Cn("void => enter",kn("120ms cubic-bezier(0, 0, 0.2, 1)",lt({opacity:1,transform:"scale(1)"}))),Cn("* => void",kn("100ms 25ms linear",lt({opacity:0})))]),fadeInItems:Vi("fadeInItems",[Vn("showing",lt({opacity:1})),Cn("void => *",[lt({opacity:0}),kn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lue=0;const cue=new ve("mat-menu-default-options",{providedIn:"root",factory:function due(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let SS=(()=>{var t;class r{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){const s=this._previousPanelClass;s&&s.length&&s.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,s,u,m){this._elementRef=e,this._ngZone=s,this._changeDetectorRef=m,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new yu,this._classList={},this._panelAnimationState="void",this._animationDone=new he,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+lue++,this.overlayPanelClass=u.overlayPanelClass||"",this._xPosition=u.xPosition,this._yPosition=u.yPosition,this.backdropClass=u.backdropClass,this.overlapTrigger=u.overlapTrigger,this.hasBackdrop=u.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qk(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(pr(this._directDescendantItems),Li(e=>xi(...e.map(s=>s._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var u;const s=this._keyManager;if("enter"===this._panelAnimationState&&null!=(u=s.activeItem)&&u._hasFocus()){const m=e.toArray(),b=Math.max(0,Math.min(m.length-1,s.activeItemIndex||0));m[b]&&!m[b].disabled?s.setActiveItem(b):s.setNextItemActive()}})}ngOnDestroy(){var e,s;null==(e=this._keyManager)||e.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),null==(s=this._firstItemFocusSubscription)||s.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(pr(this._directDescendantItems),Li(s=>xi(...s.map(u=>u._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const s=e.keyCode,u=this._keyManager;switch(s){case 27:vr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===s||40===s)&&u.setFocusOrigin("keyboard"),void u.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){var s;null==(s=this._firstItemFocusSubscription)||s.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(In(1)).subscribe(()=>{let u=null;if(this._directDescendantItems.length&&(u=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!u||!u.contains(document.activeElement)){const m=this._keyManager;m.setFocusOrigin(e).setFirstItemActive(),!m.activeItem&&u&&u.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const s=Math.min(this._baseElevation+e,24),u=`${this._elevationPrefix}${s}`,m=Object.keys(this._classList).find(b=>b.startsWith(this._elevationPrefix));(!m||m===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(e=this.xPosition,s=this.yPosition){var m;const u=this._classList;u["mat-menu-before"]="before"===e,u["mat-menu-after"]="after"===e,u["mat-menu-above"]="above"===s,u["mat-menu-below"]="below"===s,null==(m=this._changeDetectorRef)||m.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(pr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(s=>s._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye),V(cue),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-menu"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Wne,5),Kt(u,qP,5),Kt(u,qP,4)),2&e){let m;Ne(m=Ve())&&(s.lazyContent=m.first),Ne(m=Ve())&&(s._allItems=m),Ne(m=Ve())&&(s.items=m)}},viewQuery:function(e,s){if(1&e&&ft(Kn,5),2&e){let u;Ne(u=Ve())&&(s.templateRef=u.first)}},hostVars:3,hostBindings:function(e,s){2&e&&$e("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",jt],hasBackdrop:["hasBackdrop","hasBackdrop",l=>null==l?null:jt(l)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Je([{provide:_Z,useExisting:t}]),na],ngContentSelectors:oue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(e,s){1&e&&(jn(),re(0,aue,3,6,"ng-template"))},dependencies:[To],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[g4.transformMenu,g4.fadeInItems]},changeDetection:0}),r})();const $ne=new ve("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),hue={provide:$ne,deps:[Mi],useFactory:function uue(t){return()=>t.scrollStrategies.reposition()}},Yne=Ko({passive:!0});let qne=(()=>{var t;class r{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){var s;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(u=>{this._destroyMenu(u),("click"===u||"tab"===u)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(u)})),null==(s=this._menuItemInstance)||s._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,s,u,m,b,C,M,I,F){this._overlay=e,this._element=s,this._viewContainerRef=u,this._menuItemInstance=C,this._dir=M,this._focusMonitor=I,this._ngZone=F,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=bt.EMPTY,this._hoverSubscription=bt.EMPTY,this._menuCloseSubscription=bt.EMPTY,this._changeDetectorRef=De(dn),this._handleTouchStart=H=>{Jk(H)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=m,this._parentMaterialMenu=b instanceof SS?b:void 0,s.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yne)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Yne),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const s=this._createOverlay(e),u=s.getConfig(),m=u.positionStrategy;this._setPosition(e,m),u.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,s.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof SS&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Dt(e.close)).subscribe(()=>{m.withLockedPosition(!1).reapplyLastPosition(),m.withLockedPosition(!0)}))}closeMenu(){var e;null==(e=this.menu)||e.close.emit()}focus(e,s){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,s):this._element.nativeElement.focus(s)}updatePosition(){var e;null==(e=this._overlayRef)||e.updatePosition()}_destroyMenu(e){var u;if(!this._overlayRef||!this.menuOpen)return;const s=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,s instanceof SS?(s._resetAnimation(),s.lazyContent?s._animationDone.pipe(bn(m=>"void"===m.toState),In(1),Dt(s.lazyContent._attached)).subscribe({next:()=>s.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==(u=null==s?void 0:s.lazyContent)||u.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let s=0,u=e.parentMenu;for(;u;)s++,u=u.parentMenu;e.setElevation(s)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const s=this._getOverlayConfig(e);this._subscribeToPositions(e,s.positionStrategy),this._overlayRef=this._overlay.create(s),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new zu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,s){e.setPositionClasses&&s.positionChanges.subscribe(u=>{const m="start"===u.connectionPair.overlayX?"after":"before",b="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(m,b)):e.setPositionClasses(m,b)})}_setPosition(e,s){let[u,m]="before"===e.xPosition?["end","start"]:["start","end"],[b,C]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[M,I]=[b,C],[F,H]=[u,m],q=0;if(this.triggersSubmenu()){if(H=u="before"===e.xPosition?"start":"end",m=F="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Q=this._parentMaterialMenu.items.first;this._parentInnerPadding=Q?Q._getHostElement().offsetTop:0}q="bottom"===b?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(M="top"===b?"bottom":"top",I="top"===C?"bottom":"top");s.withPositions([{originX:u,originY:M,overlayX:F,overlayY:b,offsetY:q},{originX:m,originY:M,overlayX:H,overlayY:b,offsetY:q},{originX:u,originY:I,overlayX:F,overlayY:C,offsetY:-q},{originX:m,originY:I,overlayX:H,overlayY:C,offsetY:-q}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),s=this._overlayRef.detachments();return xi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:tt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(bn(b=>b!==this._menuItemInstance),bn(()=>this._menuOpen)):tt(),s)}_handleMousedown(e){Qk(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const s=e.keyCode;(13===s||32===s)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===s&&"ltr"===this.dir||37===s&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(bn(e=>e===this._menuItemInstance&&!e.disabled),h4(0,w1)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof SS&&this.menu._isAnimating?this.menu._animationDone.pipe(In(1),h4(0,w1),Dt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new yd(e.templateRef,this._viewContainerRef)),this._portal}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(je),V(fi),V($ne),V(_Z,8),V(qP,10),V(Ir,8),V(uo),V(Ye))},t.\u0275dir=ce({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(e,s){1&e&&J("click",function(m){return s._handleClick(m)})("mousedown",function(m){return s._handleMousedown(m)})("keydown",function(m){return s._handleKeydown(m)}),2&e&&$e("aria-haspopup",s.menu?"menu":null)("aria-expanded",s.menuOpen)("aria-controls",s.menuOpen?s.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),r})(),fue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[hue],imports:[Er,Wu,$t,Hu,np,$t]}),r})();const Zne=Ko({passive:!0});let pue=(()=>{var t;class r{constructor(e,s){this._platform=e,this._ngZone=s,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ao;const s=ml(e),u=this._monitoredElements.get(s);if(u)return u.subject;const m=new he,b="cdk-text-field-autofilled",C=M=>{"cdk-text-field-autofill-start"!==M.animationName||s.classList.contains(b)?"cdk-text-field-autofill-end"===M.animationName&&s.classList.contains(b)&&(s.classList.remove(b),this._ngZone.run(()=>m.next({target:M.target,isAutofilled:!1}))):(s.classList.add(b),this._ngZone.run(()=>m.next({target:M.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{s.addEventListener("animationstart",C,Zne),s.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(s,{subject:m,unlisten:()=>{s.removeEventListener("animationstart",C,Zne)}}),m}stopMonitoring(e){const s=ml(e),u=this._monitoredElements.get(s);u&&(u.unlisten(),u.subject.complete(),s.classList.remove("cdk-text-field-autofill-monitored"),s.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(s))}ngOnDestroy(){this._monitoredElements.forEach((e,s)=>this.stopMonitoring(s))}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(Jn),fe(Ye))},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})(),mue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})();const Xne=new ve("MAT_INPUT_VALUE_ACCESSOR"),gue=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let vue=0;const _ue=Db(class{constructor(t,r,l,e){this._defaultErrorStateMatcher=t,this._parentForm=r,this._parentFormGroup=l,this.ngControl=e,this.stateChanges=new he}});let Sa=(()=>{var t;class r extends _ue{get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&x1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ot(e)}constructor(e,s,u,m,b,C,M,I,F,H){super(C,m,b,u),this._elementRef=e,this._platform=s,this._autofillMonitor=I,this._formField=H,this._uid="mat-input-"+vue++,this.focused=!1,this.stateChanges=new he,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ne=>x1().has(ne)),this._iOSKeyupListener=ne=>{const ae=ne.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};const q=this._elementRef.nativeElement,Q=q.nodeName.toLowerCase();this._inputValueAccessor=M||q,this._previousNativeValue=this.value,this.id=this.id,s.IOS&&F.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Q,this._isTextarea="textarea"===Q,this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=q.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=e,e?s.setAttribute("placeholder",e):s.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){gue.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,s=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(x,10),V(ov,8),V(mS,8),V(Gu),V(Xne,10),V(pue),V(Ye),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,s){1&e&&J("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),2&e&&(Ba("id",s.id)("disabled",s.disabled)("required",s.required),$e("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),et("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Je([{provide:$z,useExisting:t}]),ze,nn]}),r})(),yue=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Yz,Yz,mue,$t]}),r})(),bue=(()=>{var t;class r{transform(e,s){let u;return u=void 0===s?(m,b)=>m>b?1:-1:(m,b)=>m[s]>b[s]?1:-1,e.sort(u)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ua({name:"sort",type:t,pure:!0}),r})();const wue=["trigger"];function xue(t,r){1&t&&pe(0,"img",36),2&t&&z("src",Z().icon,Ut)}function Cue(t,r){if(1&t){const l=Oe();P(0,"button",46),J("click",function(){const u=oe(l).$implicit,m=Z(5);return le(m.newAction.emit({param:u,table:m}))}),R()}if(2&t){const l=r.$implicit,e=Z(5);z("innerHTML",e.api.safeString(e.api.gui.icon(l.icon)+l.name),zr)}}function Sue(t,r){if(1&t&&(An(0),P(1,"button",42),Y(2),R(),P(3,"mat-menu",43,44),re(5,Cue,1,1,"button",45),nl(6,"sort"),R(),On()),2&t){const l=r.$implicit,e=pn(4);N(),z("matMenuTriggerFor",e),N(),En(l.key),N(),z("overlapTrigger",!1),N(2),z("ngForOf",lA(6,4,l.value,"name"))}}function Due(t,r){if(1&t&&(An(0),P(1,"mat-menu",37,38),re(3,Sue,7,7,"ng-container",39),nl(4,"keyvalue"),R(),P(5,"a",40)(6,"i",17),Y(7,"insert_drive_file"),R(),P(8,"span",41)(9,"uds-translate"),Y(10,"New"),R()(),P(11,"i",17),Y(12,"arrow_drop_down"),R()(),On()),2&t){const l=pn(2),e=Z(3);N(),z("overlapTrigger",!1),N(2),z("ngForOf",ng(4,3,e.grpTypes)),N(2),z("matMenuTriggerFor",l)}}function Tue(t,r){if(1&t){const l=Oe();P(0,"button",48),J("click",function(){const u=oe(l).$implicit,m=Z(4);return le(m.newAction.emit({param:u,table:m}))}),R()}if(2&t){const l=r.$implicit,e=Z(4);z("innerHTML",e.api.safeString(e.api.gui.icon(l.icon)+l.name),zr)}}function Mue(t,r){if(1&t&&(An(0),P(1,"mat-menu",37,38),re(3,Tue,1,1,"button",47),nl(4,"sort"),R(),P(5,"a",40)(6,"i",17),Y(7,"insert_drive_file"),R(),P(8,"span",41)(9,"uds-translate"),Y(10,"New"),R()(),P(11,"i",17),Y(12,"arrow_drop_down"),R()(),On()),2&t){const l=pn(2),e=Z(3);N(),z("overlapTrigger",!1),N(2),z("ngForOf",lA(4,3,e.oTypes,"name")),N(2),z("matMenuTriggerFor",l)}}function Aue(t,r){if(1&t&&(An(0),re(1,Due,13,5,"ng-container",8)(2,Mue,13,6,"ng-container",8),On()),2&t){const l=Z(2);N(),z("ngIf",l.newGrouped),N(),z("ngIf",!l.newGrouped)}}function Eue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",49),J("click",function(){oe(l);const s=Z(2);return le(s.newAction.emit({param:void 0,table:s}))}),P(2,"i",17),Y(3,"insert_drive_file"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"New"),R()()(),On()}}function Iue(t,r){if(1&t&&(An(0),re(1,Aue,3,2,"ng-container",8)(2,Eue,7,0,"ng-container",8),On()),2&t){const l=Z();N(),z("ngIf",void 0!==l.oTypes&&0!==l.oTypes.length),N(),z("ngIf",void 0!==l.oTypes&&0===l.oTypes.length)}}function kue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",50),J("click",function(){oe(l);const s=Z();return le(s.emitIfSelection(s.editAction))}),P(2,"i",17),Y(3,"edit"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Edit"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",1!==l.selection.selected.length)}}function Pue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",50),J("click",function(){return oe(l),le(Z().permissions())}),P(2,"i",17),Y(3,"perm_identity"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Permissions"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",1!==l.selection.selected.length)}}function Rue(t,r){if(1&t){const l=Oe();P(0,"a",52),J("click",function(){const u=oe(l).$implicit;return le(Z(2).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(2).isCustomDisabled(l))("innerHTML",l.html,zr)}}function Oue(t,r){if(1&t&&(An(0),re(1,Rue,1,2,"a",51),On()),2&t){const l=Z();N(),z("ngForOf",l.getcustomButtons())}}function Lue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",53),J("click",function(){return oe(l),le(Z().export())}),P(2,"i",17),Y(3,"import_export"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Export"),R()()(),On()}}function Fue(t,r){if(1&t){const l=Oe();An(0),P(1,"a",54),J("click",function(){oe(l);const s=Z();return le(s.emitIfSelection(s.deleteAction,!0))}),P(2,"i",17),Y(3,"delete_forever"),R(),P(4,"span",41)(5,"uds-translate"),Y(6,"Delete"),R()()(),On()}if(2&t){const l=Z();N(),z("disabled",l.selection.isEmpty())}}function Nue(t,r){if(1&t){const l=Oe();P(0,"button",55),J("click",function(){oe(l);const s=Z();return s.filterText="",le(s.applyFilter())}),P(1,"i",17),Y(2,"clear"),R()()}}function Vue(t,r){1&t&&pe(0,"mat-header-cell")}function Bue(t,r){1&t&&(P(0,"i",61),Y(1,"check_box"),R())}function zue(t,r){1&t&&(P(0,"i",62),Y(1,"check_box_outline_blank"),R())}function Hue(t,r){if(1&t){const l=Oe();P(0,"mat-cell",58),J("click",function(s){const m=oe(l).$implicit;return le(Z(2).clickRow(m,s))}),re(1,Bue,2,0,"i",59)(2,zue,2,0,"ng-template",null,60,so),R()}if(2&t){const l=r.$implicit,e=pn(3),s=Z(2);N(),z("ngIf",s.selection.isSelected(l))("ngIfElse",e)}}function Uue(t,r){1&t&&(An(0,56),re(1,Vue,1,0,"mat-header-cell",22)(2,Hue,4,2,"mat-cell",57),On())}function jue(t,r){1&t&&pe(0,"mat-header-cell")}function Gue(t,r){if(1&t){const l=Oe();P(0,"mat-cell")(1,"div",63),J("click",function(s){const m=oe(l).$implicit,b=Z();return b.detailAction.emit({param:m,table:b}),le(s.stopPropagation())}),P(2,"i",17),Y(3,"subdirectory_arrow_right"),R()()()}}function Wue(t,r){if(1&t&&(P(0,"mat-header-cell",67),Y(1),R()),2&t){const l=Z().$implicit;N(),En(l.title)}}function $ue(t,r){if(1&t){const l=Oe();P(0,"mat-cell",68),J("click",function(s){const m=oe(l).$implicit;return le(Z(2).clickRow(m,s))})("contextmenu",function(s){const m=oe(l).$implicit,b=Z().$implicit;return le(Z().onContextMenu(m,b,s))}),pe(1,"div",69),R()}if(2&t){const l=r.$implicit,e=Z().$implicit,s=Z();N(),z("innerHtml",s.getRowColumn(l,e),zr)}}function Yue(t,r){1&t&&(An(0,64),re(1,Wue,2,1,"mat-header-cell",65)(2,$ue,2,1,"mat-cell",66),On()),2&t&&_u("matColumnDef",r.$implicit.name)}function que(t,r){1&t&&pe(0,"mat-header-row")}function Zue(t,r){if(1&t&&pe(0,"mat-row",70),2&t){const l=r.$implicit;z("ngClass",Z().rowClass(l))}}function Xue(t,r){if(1&t&&(P(0,"div",71),Y(1),P(2,"uds-translate"),Y(3,"Selected items"),R()()),2&t){const l=Z();N(),Re(" ",l.selection.selected.length," ")}}function Kue(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){return oe(l),le(Z(2).copyToClipboard())}),P(1,"i",76),Y(2,"content_copy"),R(),P(3,"uds-translate"),Y(4,"Copy"),R()()}}function Que(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){oe(l);const s=Z().item,u=Z();return le(u.detailAction.emit({param:s,table:u}))}),P(1,"i",76),Y(2,"subdirectory_arrow_right"),R(),P(3,"uds-translate"),Y(4,"Detail"),R()()}}function Jue(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){oe(l);const s=Z(2);return le(s.emitIfSelection(s.editAction))}),P(1,"i",76),Y(2,"edit"),R(),P(3,"uds-translate"),Y(4,"Edit"),R()()}}function ehe(t,r){if(1&t){const l=Oe();P(0,"button",75),J("click",function(){return oe(l),le(Z(2).permissions())}),P(1,"i",76),Y(2,"perm_identity"),R(),P(3,"uds-translate"),Y(4,"Permissions"),R()()}}function the(t,r){if(1&t){const l=Oe();P(0,"button",77),J("click",function(){const u=oe(l).$implicit;return le(Z(2).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(2).isCustomDisabled(l))("innerHTML",l.html,zr)}}function nhe(t,r){if(1&t){const l=Oe();P(0,"button",78),J("click",function(){oe(l);const s=Z(2);return le(s.emitIfSelection(s.deleteAction))}),P(1,"i",76),Y(2,"delete_forever"),R(),P(3,"uds-translate"),Y(4,"Delete"),R()()}}function ihe(t,r){if(1&t){const l=Oe();P(0,"button",77),J("click",function(){const u=oe(l).$implicit;return le(Z(3).emitCustom(u))}),R()}if(2&t){const l=r.$implicit;z("disabled",Z(3).isCustomDisabled(l))("innerHTML",l.html,zr)}}function rhe(t,r){if(1&t&&(An(0),pe(1,"mat-divider"),re(2,ihe,1,2,"button",73),On()),2&t){const l=Z(2);N(2),z("ngForOf",l.getCustomAccelerators())}}function ahe(t,r){if(1&t&&re(0,Kue,5,0,"button",72)(1,Que,5,0,"button",72)(2,Jue,5,0,"button",72)(3,ehe,5,0,"button",72)(4,the,1,2,"button",73)(5,nhe,5,0,"button",74)(6,rhe,3,1,"ng-container",8),2&t){const l=Z();z("ngIf",!0===l.allowCopy),N(),z("ngIf",l.detailAction.observed),N(),z("ngIf",l.editAction.observed),N(),z("ngIf",!0===l.hasPermissions),N(),z("ngForOf",l.getCustomMenu()),N(),z("ngIf",l.deleteAction.observed),N(),z("ngIf",l.hasAccelerators)}}const ohe=()=>[5,10,25,100,1e3];let hi=(()=>{var t;class r{constructor(e,s){this.api=e,this.clipboard=s,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new Ce,this.rowSelected=new Ce,this.newAction=new Ce,this.editAction=new Ce,this.deleteAction=new Ce,this.customButtonAction=new Ce,this.detailAction=new Ce,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new UP(!0,[]),this.lastSel=null,this.dataSource=new Sne([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){var e=this;return Ge(function*(){e.hasCustomButtons=!(void 0===e.customButtons||0===e.customButtons.length||!e.customButtonAction.observed)&&e.getcustomButtons().length>0,e.hasAccelerators=e.getCustomAccelerators().length>0,e.hasButtons=e.hasCustomButtons||e.detailAction.observed||e.editAction.observed||e.hasPermissions||e.deleteAction.observed,e.hasActions=e.hasButtons||void 0!==e.customButtons&&e.customButtons.length>0,e.tableId=e.tableId||e.rest.id,e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.dataSource.sortingDataAccessor=(b,C)=>{if(!(C in b))return"";let M=b[C];return"number"==typeof M?M:"string"==typeof M?M.toLocaleLowerCase():(null===M&&(M=7226578800),M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),(""+M).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},e.dataSource.filterPredicate=(b,C)=>{try{e.columns.forEach(M=>{if((""+b[M.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(C))throw Error()})}catch{return!0}return!1},e.dataSource.sort.active=e.api.getFromStorage(e.tableId+"sort-column")||"name",e.dataSource.sort.direction=e.api.getFromStorage(e.tableId+"sort-direction")||"asc",e.filterText=e.api.getFromStorage(e.tableId+"filterValue")||"",e.applyFilter(),e.selection=new UP(!0===e.multiSelect,[]);const s=e.rest.permision();s&Fb.MANAGEMENT||(e.newAction.unsubscribe(),e.editAction.unsubscribe(),e.deleteAction.unsubscribe(),e.customButtonAction.unsubscribe()),s!==Fb.ALL&&(e.hasPermissions=!1),void 0!==e.icon&&(e.icon=e.api.staticURL("admin/img/icons/"+e.icon+".png"));const u=yield e.rest.types(),m=yield e.rest.tableInfo();yield e.initialize(m,u)})()}initialize(e,s){var u=this;return Ge(function*(){u.oTypes=s,u.types=new Map,u.grpTypes=new Map;for(const b of s)if(u.types.set(b.type,b),void 0!==b.group){u.grpTypes.has(b.group)||u.grpTypes.set(b.group,[]);const C=u.grpTypes.get(b.group);void 0!==C&&C.push(b)}u.rowStyleInfo=void 0!==e["row-style"]&&void 0!==e["row-style"].field?e["row-style"]:null,u.title=e.title,u.subtitle=e.subtitle||"",u.hasButtons&&u.displayedColumns.push("selection-column");const m=[];for(const b of e.fields)for(const C in b)if(b.hasOwnProperty(C)){const M=b[C];m.push({name:C,title:M.title,type:void 0===M.type?$a.ALPHANUMERIC:M.type,dict:M.dict}),(void 0===M.visible||M.visible)&&u.displayedColumns.push(C)}u.columns=m,u.detailAction.observed&&u.displayedColumns.push("detail-column"),yield u.overview()})()}overview(){var e=this;return Ge(function*(){if(!e.loading){e.selection.clear(),e.dataSource.data=[],e.loading=!0;try{const s=yield e.rest.overview();if(e.onItem)for(const u of s)e.onItem(u);e.dataSource.data=s,e.loaded.emit({param:e.firstLoad,table:e}),e.firstLoad=!1}finally{e.loading=!1}}})()}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==gi.ONLY_MENU&&e.type!==gi.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==gi.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===gi.ACCELERATOR):[]}getRowColumn(e,s){let u=e[s.name];switch(s.type){case $a.IMAGE:return this.api.safeString(this.api.gui.icon(u,"48px"));case $a.DATE:u=Ms("SHORT_DATE_FORMAT",u);break;case $a.DATETIME:u=Ms("SHORT_DATETIME_FORMAT",u);break;case $a.TIME:u=Ms("TIME_FORMAT",u);break;case $a.DATETIMESEC:u=Ms("SHORT_DATE_FORMAT",u," H:i:s");break;case $a.ICON:try{u=this.api.gui.icon(this.types.get(e.type).icon)+u}catch{}return this.api.safeString(u);case $a.CALLBACK:break;case $a.DICTIONARY:try{u=s.dict[u]}catch{u=""}}return u}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage(this.tableId+"sort-column",e.active),this.api.putOnStorage(this.tableId+"sort-direction",e.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(e){const s=[];return this.selection.isSelected(e)&&s.push("selected"),null!==this.rowStyleInfo&&s.push(this.rowStyleInfo.prefix+e[this.rowStyleInfo.field]),s}emitIfSelection(e,s=!1){const u=this.selection.selected.length;u>0&&(!0===s||1===u)&&e.emit({table:this,param:u})}isCustomDisabled(e){switch(e.type){case void 0:case gi.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===e.disabled;case gi.MULTI_SELECT:return this.selection.isEmpty()||!0===e.disabled;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==gi.ALWAYS||(e.type===gi.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,s){const u=(new Date).getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-s.x)<16&&Math.abs(this.lastClickInfo.y-s.y)<16&&u-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(e),void(this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:u,x:s.x,y:s.y},this.doSelect(e,s)}doSelect(e,s){if(s.ctrlKey)this.lastSel=e,this.selection.toggle(e);else if(s.shiftKey){if(this.selection.isEmpty())this.selection.toggle(e);else if(this.selection.clear(),this.lastSel!==e){let u=!1;const m=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(const b of m){if((b===e||b===this.lastSel)&&(u=!u,!1===u)){this.selection.select(b);break}u&&this.selection.select(b)}}}else this.lastSel!==e&&this.selection.clear(),this.lastSel=e,this.selection.toggle(e);this.rowSelected.emit({param:null,table:this})}onContextMenu(e,s,u){u.preventDefault();let m=e[s.name];m.changingThisBreaksApplicationSecurity&&(m=m.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+m,this.hasActions&&(this.selection.clear(),this.selection.select(e),this.contextMenuPosition.x=u.clientX+"px",this.contextMenuPosition.y=u.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e,s){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((m,b)=>{if(m[e]===s){const C=Math.floor(b/this.paginator.pageSize);this.selection.select(m),this.paginator.pageIndex=C,this.paginator.page.next({pageIndex:C,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){Gne(this)}permissions(){this.selection.selected.length&&Xde.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault()}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Jde))},t.\u0275cmp=xe({type:t,selectors:[["uds-table"]],viewQuery:function(e,s){if(1&e&&(ft(wue,7),ft(Zz,7),ft(GP,7)),2&e){let u;Ne(u=Ve())&&(s.contextMenu=u.first),Ne(u=Ve())&&(s.paginator=u.first),Ne(u=Ve())&&(s.sort=u.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"innerHTML","click"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],["uncheck",""],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),re(3,xue,1,1,"img",3),Y(4),R(),P(5,"div",4),Y(6),R()(),P(7,"div",5)(8,"div",6)(9,"div",7),re(10,Iue,3,2,"ng-container",8)(11,kue,7,1,"ng-container",8)(12,Pue,7,1,"ng-container",8)(13,Oue,2,1,"ng-container",8)(14,Lue,7,0,"ng-container",8)(15,Fue,7,1,"ng-container",8),R(),P(16,"div",9)(17,"div",10)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"Filter"),R()(),P(22,"input",11),J("keyup",function(){return s.applyFilter()})("ngModelChange",function(m){return s.filterText=m}),R(),re(23,Nue,3,0,"button",12),R()(),P(24,"div",13),pe(25,"mat-paginator",14),R(),P(26,"div",15)(27,"a",16),J("click",function(){return s.overview()}),P(28,"i",17),Y(29,"autorenew"),R()()()()(),P(30,"div",18),J("keydown",function(m){return s.keyDown(m)}),P(31,"mat-table",19),J("matSortChange",function(m){return s.sortChanged(m)}),re(32,Uue,3,0,"ng-container",20),An(33,21),re(34,jue,1,0,"mat-header-cell",22)(35,Gue,4,0,"mat-cell",23),On(),re(36,Yue,3,1,"ng-container",24)(37,que,1,0,"mat-header-row",25)(38,Zue,1,1,"mat-row",26),R(),P(39,"div",27)(40,"div",28),pe(41,"mat-progress-spinner",29),R()()(),P(42,"div",30),Y(43," \xa0 "),re(44,Xue,4,1,"div",31),R()(),pe(45,"div",32,33),P(47,"mat-menu",null,34),re(49,ahe,7,7,"ng-template",35),R()()),2&e){const u=pn(48);N(3),z("ngIf",void 0!==s.icon),N(),Re(" ",s.title," "),N(2),Re(" ",s.subtitle," "),N(4),z("ngIf",s.newAction.observed),N(),z("ngIf",s.editAction.observed),N(),z("ngIf",!0===s.hasPermissions),N(),z("ngIf",s.hasCustomButtons),N(),z("ngIf",!0===s.allowExport),N(),z("ngIf",s.deleteAction.observed),N(7),z("ngModel",s.filterText),N(),z("ngIf",s.filterText),N(2),z("pageSize",s.pageSize)("hidePageSize",!0)("pageSizeOptions",Ex(27,ohe))("showFirstLastButtons",!0),N(6),z("dataSource",s.dataSource),N(),z("ngIf",s.hasButtons),N(4),z("ngForOf",s.columns),N(),z("matHeaderRowDef",s.displayedColumns),N(),z("matRowDefColumns",s.displayedColumns),N(),z("hidden",!s.loading),N(5),z("ngIf",s.hasButtons&&s.selection.selected.length>0),N(),cr("left",s.contextMenuPosition.x)("top",s.contextMenuPosition.y),z("matMenuTriggerFor",u)}},dependencies:[To,mi,xn,$i,A,ii,oS,Rz,wc,SS,qP,sue,qne,ri,Ci,vS,Sa,hZ,l4,fZ,c4,s4,pZ,d4,u4,mZ,gZ,Zz,GP,_ne,Nne,Bne,vn,vV,bue],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-mdc-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']}),r})();const Kne='pause'+django.gettext("Maintenance")+"",she='pause'+django.gettext("Exit maintenance mode")+"",lhe='pause'+django.gettext("Enter maintenance mode")+"";let Qne=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:Kne,type:gi.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.rest.providers.maintenance(s.id).then(()=>{e.table.overview()})})}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?Kne:s.selection.selected[0].maintenance_mode?she:lhe}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.onMaintenance(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("rowSelected",function(m){return s.onRowSelect(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.providers)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]}),r})();class Vb{constructor(r,l,e,s){this.title=r,this.data=l,this.columns=e,this.id=s,this.columnsDefinition=Array.from(e,u=>{const m={};return m[u.field]={visible:!0,title:u.title,type:void 0===u.type?$a.ALPHANUMERIC:u.type},m})}get(r){return Promise.resolve({})}getLogs(r){return Promise.resolve([])}overview(r){return Promise.resolve("function"==typeof this.data?this.data():this.data)}summary(r){return this.overview()}put(r,l){return Promise.resolve()}create(r){return Promise.resolve()}save(r,l){return Promise.resolve()}test(r,l){return Promise.resolve("")}delete(r){return Promise.resolve()}permision(){return Fb.ALL}getPermissions(r){return Promise.resolve([])}addPermission(r,l,e,s){return Promise.resolve({})}revokePermission(r){return Promise.resolve()}types(){return Promise.resolve([])}gui(r){return Promise.resolve({})}callback(r,l){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(r,l){return null}invoke(r,l){return Promise.resolve({})}}function che(t,r){if(1&t){const l=Oe();P(0,"button",24),J("click",function(){oe(l);const s=Z();return s.filterText="",le(s.applyFilter())}),P(1,"i",8),Y(2,"close"),R()()}}function dhe(t,r){if(1&t&&(P(0,"mat-header-cell",28),Y(1),R()),2&t){const l=Z().$implicit;N(),En(l)}}function uhe(t,r){if(1&t&&(P(0,"mat-cell"),pe(1,"div",29),R()),2&t){const l=r.$implicit,e=Z().$implicit,s=Z();N(),z("innerHtml",s.getRowColumn(l,e),zr)}}function hhe(t,r){1&t&&(An(0,25),re(1,dhe,2,1,"mat-header-cell",26)(2,uhe,2,1,"mat-cell",27),On()),2&t&&z("matColumnDef",r.$implicit)}function fhe(t,r){1&t&&pe(0,"mat-header-row")}function phe(t,r){if(1&t&&pe(0,"mat-row",30),2&t){const l=r.$implicit;z("ngClass",Z().rowClass(l))}}const mhe=()=>[5,10,25,100,1e3];let DS=(()=>{var t;class r{constructor(e){this.api=e,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Sne([]),this.selection=new UP}ngOnInit(){this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc";for(const e of this.displayedColumns)this.columns.push({name:e,title:e,type:"date"===e?$a.DATETIMESEC:$a.ALPHANUMERIC});this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){var e=this;return Ge(function*(){e.dataSource.data=yield e.rest.getLogs(e.itemId)})()}selectElement(e,s){}getRowColumn(e,s){let u=e[s];return"date"===s?u=Ms("SHORT_DATE_FORMAT",u," H:i:s"):"level"===s&&(u=(t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[t]||"OTHER"))(u)),u}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Gne(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault()}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-logs-table"]],viewQuery:function(e,s){if(1&e&&(ft(Zz,7),ft(GP,7)),2&e){let u;Ne(u=Ve())&&(s.paginator=u.first),Ne(u=Ve())&&(s.sort=u.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"div",2),pe(3,"img",3),Y(4," \xa0"),P(5,"uds-translate"),Y(6,"Logs"),R()()(),P(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),J("click",function(){return s.export()}),P(11,"i",8),Y(12,"import_export"),R(),P(13,"span",9)(14,"uds-translate"),Y(15,"Export"),R()()()(),P(16,"div",10)(17,"div",11)(18,"uds-translate"),Y(19,"Filter"),R(),Y(20,"\xa0 "),P(21,"mat-form-field")(22,"input",12),J("keyup",function(){return s.applyFilter()})("ngModelChange",function(m){return s.filterText=m}),R(),re(23,che,3,0,"button",13),R()(),P(24,"div",14),pe(25,"mat-paginator",15),R(),P(26,"div",16)(27,"a",17),J("click",function(){return s.overview()}),P(28,"i",8),Y(29,"autorenew"),R()()()()(),P(30,"div",18),J("keydown",function(m){return s.keyDown(m)}),P(31,"mat-table",19),J("matSortChange",function(m){return s.sortChanged(m)}),re(32,hhe,3,1,"ng-container",20)(33,fhe,1,0,"mat-header-row",21)(34,phe,1,1,"mat-row",22),R()(),pe(35,"div",23),R()()),2&e&&(N(3),z("src",s.api.staticURL("admin/img/icons/logs.png"),Ut),N(19),z("ngModel",s.filterText),N(),z("ngIf",s.filterText),N(2),z("pageSize",s.pageSize)("hidePageSize",!0)("pageSizeOptions",Ex(11,mhe))("showFirstLastButtons",!0),N(6),z("dataSource",s.dataSource),N(),z("ngForOf",s.displayedColumns),N(),z("matHeaderRowDef",s.displayedColumns),N(),z("matRowDefColumns",s.displayedColumns))},dependencies:[To,mi,xn,$i,A,ii,oS,Pn,Rz,wc,ri,vS,Sa,hZ,l4,fZ,c4,s4,pZ,d4,u4,mZ,gZ,Zz,GP,_ne,vn],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]}),r})();function ghe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services pools"),R())}function vhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}const _he=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}];let yhe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.customButtons=[Sl.getGotoButton(Yq,"id")],this.servicePools={},this.logs={},this.services=m.services,this.service=m.service}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:u,services:s},disableClose:!1})}ngOnInit(){this.servicePools=new Vb(django.gettext("Service pools"),()=>this.services.invoke(this.service.id+"/servicepools"),_he,this.service.id+"infopsls")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),re(7,ghe,2,0,"ng-template",1),pe(8,"uds-table",2),R(),P(9,"mat-tab"),re(10,vhe,2,0,"ng-template",1),P(11,"div",3),pe(12,"uds-logs-table",4),R()()()(),P(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),Y(16,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.service.name,"\n"),N(5),z("rest",s.servicePools)("customButtons",s.customButtons)("pageSize",6),N(4),z("rest",s.services)("itemId",s.service.id)("tableId","serviceInfo-d-log"+s.service.id)("pageSize",5))},dependencies:[Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi,DS],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),r})();function bhe(t,r){if(1&t&&(P(0,"div",3),pe(1,"div",4)(2,"div",5),R()),2&t){const l=r.$implicit;N(),z("innerHTML",l.gui.label,zr),N(),z("innerHTML",l.value,zr)}}let TS=(()=>{var t;class r{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;const e=this.gui.filter(s=>s.gui.type!==Ca.HIDDEN);for(const s of e){const u=this.value[s.name];switch(s.gui.type){case Ca.CHECKBOX:s.value=u?django.gettext("Yes"):django.gettext("No");break;case Ca.PASSWORD:s.value=django.gettext("(hidden)");break;case Ca.CHOICE:{const m=OP.locateChoice(u,s);s.value=m.text;break}case Ca.MULTI_CHOICE:s.value=django.gettext("Selected items :")+u.length;break;case Ca.IMAGECHOICE:{const m=OP.locateChoice(u,s);m.img&&(s.value=this.api.safeString(this.api.gui.icon(m.img)+" "+m.text));break}case Ca.INFO:continue;default:s.value=u}(""===s.value||null==s.value)&&(s.value="(empty)")}return e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),re(2,bhe,3,2,"div",2),R(),pe(3,"div"),R()),2&e&&(N(2),z("ngForOf",s.processFields()))},dependencies:[mi],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),r})();function whe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function xhe(t,r){if(1&t&&pe(0,"uds-information",15),2&t){const l=Z(2);z("value",l.provider)("gui",l.gui)}}function Che(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services"),R())}function She(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Usage"),R())}function Dhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function The(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,whe,2,0,"ng-template",9),P(5,"div",10),re(6,xhe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Che,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNewService(s))})("editAction",function(s){return oe(l),le(Z().onEditService(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteService(s))})("customButtonAction",function(s){return oe(l),le(Z().onInformation(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()(),P(11,"mat-tab"),re(12,She,2,0,"ng-template",9),P(13,"div",10)(14,"uds-table",13),J("deleteAction",function(s){return oe(l),le(Z().onDeleteUsage(s))}),R()()(),P(15,"mat-tab"),re(16,Dhe,2,0,"ng-template",9),P(17,"div",10),pe(18,"uds-logs-table",14),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.provider&&l.gui),N(4),z("rest",l.services)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","providers-d-services"+l.provider.id),N(4),z("rest",l.usage)("multiSelect",!0)("allowExport",!0)("pageSize",l.api.config.admin.page_size)("tableId","providers-d-usage"+l.provider.id),N(4),z("rest",l.services.parentModel)("itemId",l.provider.id)("tableId","providers-d-log"+l.provider.id)}}const Mhe=t=>["/services","providers",t];let Jne=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){const e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(s=>{this.provider=s,this.services.parentModel.gui(s.type).then(u=>{this.gui=u})}))}onInformation(e){yhe.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){this.api.gui.forms.typedNewForm(e,django.gettext("New service"),!1)}onEditService(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit service"),!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("service");if(void 0!==s){this.selectedTab=1;const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-provider-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,The,19,17,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,Mhe,s.services.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/services.png"),Ut),N(),Re(" \xa0",null==s.provider?null:s.provider.name," "),N(),z("ngIf",null!==s.provider))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS]}),r})(),eie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.serverGroups)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();function Ahe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Ehe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services"),R())}function Ihe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,Ahe,2,0,"ng-template",9),P(5,"div",10),pe(6,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Ehe,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNew(s))})("rowSelected",function(s){return oe(l),le(Z().onRowSelect(s))})("deleteAction",function(s){return oe(l),le(Z().onDelete(s))})("customButtonAction",function(s){return oe(l),le(Z().onMaintenance(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("value",l.server)("gui",l.gui),N(4),z("rest",l.servers)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","servers-d-servers"+l.server.id)}}const khe=t=>["/services","servers",t],tie='pause'+django.gettext("Maintenance")+"",Phe='pause'+django.gettext("Exit maintenance mode")+"",Rhe='pause'+django.gettext("Enter maintenance mode")+"";let Ohe=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:tie,type:gi.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("server");s&&(e.servers=e.rest.serverGroups.detail(s,"servers"),e.server=yield e.servers.parentModel.get(s),e.gui=yield e.servers.parentModel.gui(e.server.type))})()}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.servers.get(s.id+"/maintenance").then(()=>{e.table.overview()})})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"))}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?tie:s.selection.selected[0].maintenance_mode?Phe:Rhe}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("server");if(void 0!==s){const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-server-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","rowSelected","deleteAction","customButtonAction","loaded"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Ihe,11,9,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,khe,s.servers.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/servers.png"),Ut),N(),Re(" \xa0",null==s.server?null:s.server.name," "),N(),z("ngIf",null!==s.server))},dependencies:[xn,mr,As,Es,Cl,vn,hi,TS],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]}),r})(),nie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){var e=this;return Ge(function*(){e.route.snapshot.paramMap.get("authenticator")})()}onDetail(e){var s=this;return Ge(function*(){s.api.navigation.gotoAuthenticatorDetail(e.param.id)})()}onNew(e){var s=this;return Ge(function*(){s.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})()}onEdit(e){var s=this;return Ge(function*(){s.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})()}onDelete(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})()}onLoad(e){var s=this;return Ge(function*(){!0===e.param&&e.table.selectElement("id",s.route.snapshot.paramMap.get("authenticator"))})()}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",s.processElement)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),iie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})();const Lhe=["panel"];function Fhe(t,r){if(1&t){const l=Oe();P(0,"div",0,1),J("@panelAnimation.done",function(s){return oe(l),le(Z()._animationDone.next(s))}),dt(2),R()}if(2&t){const l=r.id,e=Z();z("id",e.id)("ngClass",e._classList)("@panelAnimation",e.isOpen?"visible":"hidden"),$e("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby(l))}}const Nhe=["*"],Vhe=Vi("panelAnimation",[Vn("void, hidden",lt({opacity:0,transform:"scaleY(0.8)"})),Cn(":enter, hidden => visible",[_P([kn("0.03s linear",lt({opacity:1})),kn("0.12s cubic-bezier(0, 0, 0.2, 1)",lt({transform:"scaleY(1)"}))])]),Cn(":leave, visible => hidden",[kn("0.075s linear",lt({opacity:0}))])]);let Bhe=0;class zhe{constructor(r,l){this.source=r,this.option=l}}const rie=new ve("mat-autocomplete-default-options",{providedIn:"root",factory:function Hhe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let yZ=(()=>{var t;class r{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}set classList(e){this._classList=e&&e.length?fk(e).reduce((s,u)=>(s[u]=!0,s),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,s,u,m){this._changeDetectorRef=e,this._elementRef=s,this._defaults=u,this._activeOptionChanges=bt.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Ce,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+Bhe++,this.inertGroups=(null==m?void 0:m.SAFARI)||!1,this.autoActiveFirstOption=!!u.autoActiveFirstOption,this.autoSelectActiveOption=!!u.autoSelectActiveOption,this.requireSelection=!!u.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new $5(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const s=new zhe(this,e);this.optionSelected.emit(s)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(rie),V(Jn))},t.\u0275cmp=xe({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,Ni,5),Kt(u,fP,5)),2&e){let m;Ne(m=Ve())&&(s.options=m),Ne(m=Ve())&&(s.optionGroups=m)}},viewQuery:function(e,s){if(1&e&&(ft(Kn,7),ft(Lhe,5)),2&e){let u;Ne(u=Ve())&&(s.template=u.first),Ne(u=Ve())&&(s.panel=u.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:["autoActiveFirstOption","autoActiveFirstOption",jt],autoSelectActiveOption:["autoSelectActiveOption","autoSelectActiveOption",jt],requireSelection:["requireSelection","requireSelection",jt],panelWidth:"panelWidth",disableRipple:["disableRipple","disableRipple",jt],classList:["class","classList"],hideSingleSelectionIndicator:["hideSingleSelectionIndicator","hideSingleSelectionIndicator",jt]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Je([{provide:hP,useExisting:t}]),na],ngContentSelectors:Nhe,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,s){1&e&&(jn(),re(0,Fhe,3,5,"ng-template"))},dependencies:[To],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Vhe]},changeDetection:0}),r})();const Uhe={provide:Pr,useExisting:Jt(()=>v4),multi:!0},aie=new ve("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),Ghe={provide:aie,deps:[Mi],useFactory:function jhe(t){return()=>t.scrollStrategies.reposition()}};let v4=(()=>{var t;class r{constructor(e,s,u,m,b,C,M,I,F,H,q){this._element=e,this._overlay=s,this._viewContainerRef=u,this._zone=m,this._changeDetectorRef=b,this._dir=M,this._formField=I,this._document=F,this._viewportRuler=H,this._defaults=q,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=bt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new he,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Ag(()=>{const Q=this.autocomplete?this.autocomplete.options:null;return Q?Q.changes.pipe(pr(Q),Li(()=>xi(...Q.map(ne=>ne.onSelectionChange)))):this._zone.onStable.pipe(In(1),Li(()=>this.optionSelections))}),this._handlePanelKeydown=Q=>{(27===Q.keyCode&&!vr(Q)||38===Q.keyCode&&vr(Q,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Q.stopPropagation(),Q.preventDefault())},this._trackedModal=null,this._scrollStrategy=C}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&F1(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&sp(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return xi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(bn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(bn(()=>this._overlayAttached)):tt()).pipe(Ee(e=>e instanceof hz?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return xi(vd(this._document,"click"),vd(this._document,"auxclick"),vd(this._document,"touchend")).pipe(bn(e=>{const s=vc(e),u=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,m=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&s!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!u||!u.contains(s))&&(!m||!m.contains(s))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(s)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const s=e.keyCode,u=vr(e);if(27===s&&!u&&e.preventDefault(),this.activeOption&&13===s&&this.panelOpen&&!u)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const m=this.autocomplete._keyManager.activeItem,b=38===s||40===s;9===s||b&&!u&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):b&&this._canOpen()&&this.openPanel(),(b||this.autocomplete._keyManager.activeItem!==m)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){var m,b,C;let s=e.target,u=s.value;if("number"===s.type&&(u=""==u?null:parseFloat(u)),this._previousValue!==u){if(this._previousValue=u,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(u),u){if(this.panelOpen&&!this.autocomplete.requireSelection){const M=null==(m=this.autocomplete.options)?void 0:m.find(I=>I.selected);M&&u!==((null==(C=(b=this.autocomplete).displayWith)?void 0:C.call(b,M))??M.value)&&M.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);this._canOpen()&&this._document.activeElement===e.target&&this.openPanel()}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return xi(this._zone.onStable.pipe(In(1)),this.autocomplete.options.changes.pipe(Fi(()=>this._positionStrategy.reapplyLastPosition()),h4(0))).pipe(Li(()=>(this._zone.run(()=>{const u=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),u!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),In(1)).subscribe(u=>this._setValueAndClose(u))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const s=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;null==e&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(s??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const s=this.autocomplete,u=e?e.source:this._pendingAutoselectedOption;u?(this._clearPreviousSelectedOption(u),this._assignOptionValue(u.value),this._onChange(u.value),s._emitSelectEvent(u),this._element.nativeElement.focus()):s.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),s._animationDone?s._animationDone.pipe(In(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,s){var u,m;null==(m=null==(u=this.autocomplete)?void 0:u.options)||m.forEach(b=>{b!==e&&b.selected&&b.deselect(s)})}_attachOverlay(){var u,m;let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new yd(this.autocomplete.template,this._viewContainerRef,{id:null==(u=this._formField)?void 0:u.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._valueOnAttach=this._element.nativeElement.value,this._closingActionsSubscription=this._subscribeToClosingActions());const s=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(null==(m=this._formField)?void 0:m.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&s!==this.panelOpen&&this._emitOpened()}_updatePanelState(){var e,s;if(this.autocomplete._setVisibility(),this.panelOpen){const u=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=u.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=u.outsidePointerEvents().subscribe())}else null==(e=this._keydownSubscription)||e.unsubscribe(),null==(s=this._outsideClickSubscription)||s.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){var e;return new zu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:null==(e=this._defaults)?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const s=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],u=this._aboveClass,m=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:u},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:u}];let b;b="above"===this.position?m:"below"===this.position?s:[...s,...m],e.withPositions(b)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let s=-1;for(let u=0;u .cdk-overlay-container [aria-modal="true"]');if(!e)return;const s=this.autocomplete.id;this._trackedModal&&sp(this._trackedModal,"aria-owns",s),F1(e,"aria-owns",s),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(sp(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Mi),V(fi),V(Ye),V(dn),V(aie),V(Ir,8),V(_S,9),V(yt,8),V(Nu),V(rie,8))},t.\u0275dir=ce({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,s){1&e&&J("focusin",function(){return s._handleFocus()})("blur",function(){return s._onTouched()})("input",function(m){return s._handleInput(m)})("keydown",function(m){return s._handleKeydown(m)})("click",function(){return s._handleClick()}),2&e&&$e("autocomplete",s.autocompleteAttribute)("role",s.autocompleteDisabled?null:"combobox")("aria-autocomplete",s.autocompleteDisabled?null:"list")("aria-activedescendant",s.panelOpen&&s.activeOption?s.activeOption.id:null)("aria-expanded",s.autocompleteDisabled?null:s.panelOpen.toString())("aria-controls",s.autocompleteDisabled||!s.panelOpen||null==s.autocomplete?null:s.autocomplete.id)("aria-haspopup",s.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled",jt]},exportAs:["matAutocompleteTrigger"],features:[Je([Uhe]),na,nn]}),r})(),Whe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Ghe],imports:[Hu,K1,$t,Er,np,K1,$t]}),r})();function $he(t,r){if(1&t&&(P(0,"div")(1,"uds-translate"),Y(2,"Edit user"),R(),Y(3),R()),2&t){const l=Z();N(3),Re(" ",l.user.name," ")}}function Yhe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New user"),R())}function qhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",19),J("ngModelChange",function(s){return oe(l),le(Z().user.name=s)}),R()()}if(2&t){const l=Z();N(2),Re(" ",l.authenticator.type_info.label_username," "),N(),z("ngModel",l.user.name)("disabled",l.user.id)}}function Zhe(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),eg(" ",l.id," (",l.name,") ")}}function Xhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",20),J("ngModelChange",function(s){return oe(l),le(Z().user.name=s)})("input",function(s){return oe(l),le(Z().filterUser(s))}),R(),P(4,"mat-autocomplete",null,21),re(6,Zhe,2,3,"mat-option",16),R()()}if(2&t){const l=pn(5),e=Z();N(2),Re(" ",e.authenticator.type_info.label_username," "),N(),z("ngModel",e.user.name)("matAutocomplete",l),N(3),z("ngForOf",e.users)}}function Khe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",23),J("ngModelChange",function(s){return oe(l),le(Z().user.password=s)}),R()()}if(2&t){const l=Z();N(2),Re(" ",l.authenticator.type_info.label_password," "),N(),z("ngModel",l.user.password)}}function Qhe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"MFA"),R()(),P(4,"input",24),J("ngModelChange",function(s){return oe(l),le(Z().user.mfa_data=s)}),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.user.mfa_data)}}function Jhe(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let oie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.groups=[],this.onSave=new Ce(!0),this.users=[],this.authenticator=m.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},void 0!==m.user&&(this.user.id=m.user.id,this.user.name=m.user.name)}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:s,user:u},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin="admin"===e,this.user.staff_member="admin"===e||"staff"===e}filterUser(e){this.rest.authenticators.search(this.authenticator.id,"user",e.target.value,100).then(u=>{this.users.length=0,u.forEach(m=>{this.users.push(m)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-user"]],decls:61,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"],["type","text","matInput","",3,"ngModel","ngModelChange"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,$he,4,1,"div",1)(2,Yhe,2,0,"ng-template",null,2,so),R(),P(4,"mat-dialog-content")(5,"div",3),re(6,qhe,4,3,"mat-form-field",4)(7,Xhe,7,4,"mat-form-field",4),P(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),Y(11,"Real name"),R()(),P(12,"input",5),J("ngModelChange",function(m){return s.user.real_name=m}),R()(),P(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),Y(16,"Comments"),R()(),P(17,"input",6),J("ngModelChange",function(m){return s.user.comments=m}),R()(),P(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"State"),R()(),P(22,"mat-select",7),J("ngModelChange",function(m){return s.user.state=m}),P(23,"mat-option",8)(24,"uds-translate"),Y(25,"Enabled"),R()(),P(26,"mat-option",9)(27,"uds-translate"),Y(28,"Disabled"),R()(),P(29,"mat-option",10)(30,"uds-translate"),Y(31,"Blocked"),R()()()(),P(32,"mat-form-field")(33,"mat-label")(34,"uds-translate"),Y(35,"Role"),R()(),P(36,"mat-select",11),J("ngModelChange",function(m){return s.user.role=m})("valueChange",function(m){return s.roleChanged(m)}),P(37,"mat-option",12)(38,"uds-translate"),Y(39,"Admin"),R()(),P(40,"mat-option",13)(41,"uds-translate"),Y(42,"Staff member"),R()(),P(43,"mat-option",14)(44,"uds-translate"),Y(45,"User"),R()()()(),re(46,Khe,4,2,"mat-form-field",4)(47,Qhe,5,1,"mat-form-field",4),P(48,"mat-form-field")(49,"mat-label")(50,"uds-translate"),Y(51,"Groups"),R()(),P(52,"mat-select",15),J("ngModelChange",function(m){return s.user.groups=m}),re(53,Jhe,2,2,"mat-option",16),R()()()(),P(54,"mat-dialog-actions")(55,"button",17)(56,"uds-translate"),Y(57,"Cancel"),R()(),P(58,"button",18),J("click",function(){return s.save()}),P(59,"uds-translate"),Y(60,"Ok"),R()()()),2&e){const u=pn(3);N(),z("ngIf",s.user.id)("ngIfElse",u),N(5),z("ngIf",!1===s.authenticator.type_info.search_users_supported||s.user.id),N(),z("ngIf",!0===s.authenticator.type_info.search_users_supported&&!s.user.id),N(5),z("ngModel",s.user.real_name),N(5),z("ngModel",s.user.comments),N(5),z("ngModel",s.user.state),N(14),z("ngModel",s.user.role),N(10),z("ngIf",s.authenticator.type_info.needsPassword),N(),z("ngIf",!s.authenticator.type_info.is_external),N(5),z("ngModel",s.user.groups),N(),z("ngForOf",s.groups)}},dependencies:[mi,xn,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,yZ,v4,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function efe(t,r){if(1&t&&(P(0,"div")(1,"uds-translate"),Y(2,"Edit group"),R(),Y(3),R()),2&t){const l=Z();N(3),Re(" ",l.group.name," ")}}function tfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New group"),R())}function nfe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",13),J("ngModelChange",function(s){return oe(l),le(Z(2).group.name=s)}),R()()}if(2&t){const l=Z(2);N(2),Re(" ",l.authenticator.type_info.label_groupname," "),N(),z("ngModel",l.group.name)("disabled",l.group.id)}}function ife(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),eg(" ",l.id," (",l.name,") ")}}function rfe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",14),J("ngModelChange",function(s){return oe(l),le(Z(2).group.name=s)})("input",function(s){return oe(l),le(Z(2).filterGroup(s))}),R(),P(4,"mat-autocomplete",null,15),re(6,ife,2,3,"mat-option",16),R()()}if(2&t){const l=pn(5),e=Z(2);N(2),Re(" ",e.authenticator.type_info.label_groupname," "),N(),z("ngModel",e.group.name)("matAutocomplete",l),N(3),z("ngForOf",e.fltrGroup)}}function afe(t,r){if(1&t&&(An(0),re(1,nfe,4,3,"mat-form-field",12)(2,rfe,7,4,"mat-form-field",12),On()),2&t){const l=Z();N(),z("ngIf",!1===l.authenticator.type_info.search_groups_supported||l.group.id),N(),z("ngIf",!0===l.authenticator.type_info.search_groups_supported&&!l.group.id)}}function ofe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"Meta group name"),R()(),P(4,"input",13),J("ngModelChange",function(s){return oe(l),le(Z().group.name=s)}),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.group.name)("disabled",l.group.id)}}function sfe(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function lfe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Service Pools"),R()(),P(5,"mat-select",18),J("ngModelChange",function(s){return oe(l),le(Z().group.pools=s)}),re(6,sfe,2,2,"mat-option",16),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.group.pools),N(),z("ngForOf",l.servicePools)}}function cfe(t,r){if(1&t&&(P(0,"mat-option",17),Y(1),R()),2&t){const l=Z().$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function dfe(t,r){if(1&t&&(An(0),re(1,cfe,2,2,"mat-option",20),On()),2&t){const l=r.$implicit;N(),z("ngIf","group"===l.type)}}function ufe(t,r){if(1&t){const l=Oe();P(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),Y(3,"Match mode"),R()(),P(4,"mat-select",6),J("ngModelChange",function(s){return oe(l),le(Z().group.meta_if_any=s)}),P(5,"mat-option",17)(6,"uds-translate"),Y(7,"Any group"),R()(),P(8,"mat-option",17)(9,"uds-translate"),Y(10,"All groups"),R()()()(),P(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),Y(14,"Selected Groups"),R()(),P(15,"mat-select",18),J("ngModelChange",function(s){return oe(l),le(Z().group.groups=s)}),re(16,dfe,2,1,"ng-container",19),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.group.meta_if_any),N(),z("value",!0),N(3),z("value",!1),N(7),z("ngModel",l.group.groups),N(),z("ngForOf",l.groups)}}let sie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=m.authenticator,this.group={id:void 0,type:m.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},void 0!==m.group&&(this.group.id=m.group.id,this.group.type=m.group.type,this.group.name=m.group.name)}static launch(e,s,u,m){const b=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:b,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:s,groupType:u,group:m},disableClose:!0}).componentInstance.onSave}ngOnInit(){const e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).then(s=>{this.group=s},s=>{this.dialogRef.close()}),"meta"===this.group.type?e.summary().then(s=>this.groups=s):this.rest.servicesPools.summary().then(s=>this.servicePools=s)}filterGroup(e){this.rest.authenticators.search(this.authenticator.id,"group",e.target.value,100).then(u=>{this.fltrGroup.length=0,u.forEach(m=>{this.fltrGroup.push(m)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,efe,4,1,"div",1)(2,tfe,2,0,"ng-template",null,2,so),R(),P(4,"mat-dialog-content")(5,"div",3),re(6,afe,3,2,"ng-container",1)(7,ofe,5,2,"ng-template",null,4,so),P(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),Y(12,"Comments"),R()(),P(13,"input",5),J("ngModelChange",function(m){return s.group.comments=m}),R()(),P(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),Y(17,"State"),R()(),P(18,"mat-select",6),J("ngModelChange",function(m){return s.group.state=m}),P(19,"mat-option",7)(20,"uds-translate"),Y(21,"Enabled"),R()(),P(22,"mat-option",8)(23,"uds-translate"),Y(24,"Disabled"),R()()()(),P(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),Y(28,"Skip MFA"),R()(),P(29,"mat-select",6),J("ngModelChange",function(m){return s.group.skip_mfa=m}),P(30,"mat-option",7)(31,"uds-translate"),Y(32,"Enabled"),R()(),P(33,"mat-option",8)(34,"uds-translate"),Y(35,"Disabled"),R()()()(),re(36,lfe,7,2,"ng-container",1)(37,ufe,17,5,"ng-template",null,9,so),R()(),P(39,"mat-dialog-actions")(40,"button",10)(41,"uds-translate"),Y(42,"Cancel"),R()(),P(43,"button",11),J("click",function(){return s.save()}),P(44,"uds-translate"),Y(45,"Ok"),R()()()),2&e){const u=pn(3),m=pn(8),b=pn(38);N(),z("ngIf",s.group.id)("ngIfElse",u),N(5),z("ngIf","group"===s.group.type)("ngIfElse",m),N(7),z("ngModel",s.group.comments),N(5),z("ngModel",s.group.state),N(11),z("ngModel",s.group.skip_mfa),N(7),z("ngIf","group"===s.group.type)("ngIfElse",b)}},dependencies:[mi,xn,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,yZ,v4,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),r})();function hfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function ffe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,hfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.group)("pageSize",6)}}function pfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services Pools"),R())}function mfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,pfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.servicesPools)("pageSize",6)}}function gfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned Services"),R())}function vfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,gfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.userServices)("pageSize",6)}}const _fe=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yfe=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],bfe=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}];let wfe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.group={},this.servicesPools={},this.userServices={},this.users=m.users,this.user=m.user}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:s,user:u},disableClose:!1})}ngOnInit(){this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).then(e=>{this.group=new Vb(django.gettext("Groups"),()=>this.rest.authenticators.detail(this.users.parentId,"groups").overview().then(b=>b.filter(C=>e.groups.includes(C.id))),_fe,this.user.id+"infogrp"),this.servicesPools=new Vb(django.gettext("Services Pools"),()=>this.users.invoke(this.user.id+"/servicesPools"),yfe,this.user.id+"infopool"),this.userServices=new Vb(django.gettext("Assigned services"),()=>this.users.invoke(this.user.id+"/userServices").then(b=>b.map(C=>(C.in_use=this.api.boolAsHumanString(C.in_use),C))),bfe,this.user.id+"userservpool")})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"mat-tab-group"),re(6,ffe,3,2,"mat-tab",1)(7,mfe,3,2,"mat-tab",1)(8,vfe,3,2,"mat-tab",1),R()(),P(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),Y(12,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.user.name,"\n"),N(3),z("ngIf",s.group),N(),z("ngIf",s.servicesPools),N(),z("ngIf",s.userServices))},dependencies:[xn,Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function xfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Services Pools"),R())}function Cfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,xfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.servicesPools)("pageSize",6)}}function Sfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Users"),R())}function Dfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Sfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.users)("pageSize",6)}}function Tfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Mfe(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Tfe,2,0,"ng-template",3),pe(2,"uds-table",4),R()),2&t){const l=Z();N(2),z("rest",l.groups)("pageSize",6)}}const Afe=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Efe=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:$a.DATETIME}],Ife=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}];let kfe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.users={},this.groups={},this.servicesPools={}}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:u,groups:s},disableClose:!1})}ngOnInit(){const e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");if(this.servicesPools=new Vb(django.gettext("Service pools"),()=>e.invoke(this.data.group.id+"/servicesPools"),Afe,this.data.group.id+"infopls"),this.users=new Vb(django.gettext("Users"),()=>e.invoke(this.data.group.id+"/users").then(m=>m.map(b=>(b.state="A"===b.state?django.gettext("Enabled"):"I"===b.state?django.gettext("Disabled"):django.gettext("Blocked"),b))),Efe,this.data.group.id+"infousr"),"meta"===this.data.group.type){const m=()=>e.overview().then(b=>b.filter(C=>this.data.group.groups.includes(C.id)));this.groups=new Vb(django.gettext("Groups"),m,Ife,this.data.group.id+"infogrps")}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Information for"),R()(),P(3,"mat-dialog-content")(4,"mat-tab-group"),re(5,Cfe,3,2,"mat-tab",1)(6,Dfe,3,2,"mat-tab",1)(7,Mfe,3,2,"mat-tab",1),R()(),P(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),Y(11,"Ok"),R()()()),2&e&&(N(5),z("ngIf",s.servicesPools),N(),z("ngIf",s.users),N(),z("ngIf",s.groups))},dependencies:[xn,Pn,Io,zi,Ai,Hi,As,Es,Cl,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function Pfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Rfe(t,r){if(1&t&&pe(0,"uds-information",16),2&t){const l=Z(2);z("value",l.authenticator)("gui",l.gui)}}function Ofe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Users"),R())}function Lfe(t,r){if(1&t){const l=Oe();P(0,"uds-table",17),J("loaded",function(s){return oe(l),le(Z(2).onLoad(s))})("newAction",function(s){return oe(l),le(Z(2).onNewUser(s))})("editAction",function(s){return oe(l),le(Z(2).onEditUser(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteUser(s))})("customButtonAction",function(s){return oe(l),le(Z(2).onUserCustom(s))}),R()}if(2&t){const l=Z(2);z("rest",l.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+l.authenticator.id)("customButtons",l.usersCustomButtons)("pageSize",l.api.config.admin.page_size)}}function Ffe(t,r){if(1&t){const l=Oe();P(0,"uds-table",18),J("loaded",function(s){return oe(l),le(Z(2).onLoad(s))})("editAction",function(s){return oe(l),le(Z(2).onEditUser(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteUser(s))})("customButtonAction",function(s){return oe(l),le(Z(2).onUserCustom(s))}),R()}if(2&t){const l=Z(2);z("rest",l.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+l.authenticator.id)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)}}function Nfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Vfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function Bfe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,Pfe,2,0,"ng-template",9),P(5,"div",10),re(6,Rfe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Ofe,2,0,"ng-template",9),P(9,"div",10),re(10,Lfe,1,6,"uds-table",12)(11,Ffe,1,6,"uds-table",13),R()(),P(12,"mat-tab"),re(13,Nfe,2,0,"ng-template",9),P(14,"div",10)(15,"uds-table",14),J("loaded",function(s){return oe(l),le(Z().onLoad(s))})("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("editAction",function(s){return oe(l),le(Z().onEditGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))})("customButtonAction",function(s){return oe(l),le(Z().onGroupInformation(s))}),R()()(),P(16,"mat-tab"),re(17,Vfe,2,0,"ng-template",9),P(18,"div",10),pe(19,"uds-logs-table",15),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.authenticator&&l.gui),N(4),z("ngIf",l.authenticator.type_info.create_users_supported),N(),z("ngIf",!l.authenticator.type_info.create_users_supported),N(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("tableId","authenticators-d-groups"+l.authenticator.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.rest.authenticators)("itemId",l.authenticator.id)("tableId","authenticators-d-log"+l.authenticator.id)}}const zfe=t=>["/authenticators",t];let bZ=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:gi.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:gi.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){const e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(s=>{this.authenticator=s,this.rest.authenticators.gui(s.type).then(u=>{this.gui=u})}))}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("user"),u=this.route.snapshot.paramMap.get("group");e.table.selectElement("id",s||u)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){oie.launch(this.api,this.authenticator).subscribe(s=>e.table.overview())}onEditUser(e){oie.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){sie.launch(this.api,this.authenticator,e.param.type).subscribe(s=>e.table.overview())}onEditGroup(e){sie.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){var s=this;"info"===e.param.id?wfe.launch(this.api,this.users,e.table.selection.selected[0]):"clean-related"===e.param.id&&this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0).then(u=>Ge(function*(){u&&(yield s.users.invoke(e.table.selection.selected[0].id+"/cleanRelated"),s.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.overview())}))}onGroupInformation(e){kfe.launch(this.api,this.groups,e.table.selection.selected[0])}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Bfe,20,14,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,zfe,s.authenticator?s.authenticator.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/services.png"),Ut),N(),Re(" \xa0",null==s.authenticator?null:s.authenticator.name," "),N(),z("ngIf",s.authenticator))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS]}),r})(),lie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),cie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.map(s=>s.id).join(", ")}catch{e.allowed_oss=""}}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",s.processElement)("pageSize",s.api.config.admin.page_size))},dependencies:[hi],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),r})(),die=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})(),uie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.tunnels)("onItem",s.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();function Hfe(t,r){if(1&t&&(P(0,"mat-option",7),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Ufe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=m.availableTunnelServers,this.tunnelId=m.tunnelId}static launch(e,s,u){return Ge(function*(){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:s,availableTunnelServers:u},disableClose:!1}).componentInstance.done})()}ngOnInit(){return Ge(function*(){})()}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;const e=new Array;for(const s of this.availTunnelServers)s.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(s);return e}save(){var e=this;return Ge(function*(){""!==e.serverId?(e.dialogRef.close(),e.done.resolve(!0),yield e.rest.tunnels.assign(e.tunnelId,e.serverId)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"))})()}cancel(){var e=this;return Ge(function*(){e.dialogRef.close(),e.done.resolve(!1)})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Assign new server to tunnel group"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Tunnel"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.serverId=m}),P(10,"uds-cond-select-search",3),J("changed",function(m){return s.tunnelFilter=m}),R(),re(11,Hfe,2,2,"mat-option",4),R()()()(),P(12,"mat-dialog-actions")(13,"button",5),J("click",function(){return s.cancel()}),P(14,"uds-translate"),Y(15,"Cancel"),R()(),P(16,"button",6),J("click",function(){return s.save()}),P(17,"uds-translate"),Y(18,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.serverId),N(),z("options",s.availTunnelServers),N(),z("ngForOf",s.filteredTunnels()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function jfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Gfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Tunnel servers"),R())}function Wfe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,jfe,2,0,"ng-template",9),P(5,"div",10),pe(6,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Gfe,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNew(s))})("rowSelected",function(s){return oe(l),le(Z().onRowSelect(s))})("deleteAction",function(s){return oe(l),le(Z().onDelete(s))})("customButtonAction",function(s){return oe(l),le(Z().onMaintenance(s))})("loaded",function(s){return oe(l),le(Z().onLoad(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("value",l.tunnel)("gui",l.gui),N(4),z("rest",l.servers)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtons)("pageSize",l.api.config.admin.page_size)("tableId","tunnels-d-servers"+l.tunnel.id)}}const $fe=t=>["/connectivity","tunnels",t],hie='pause'+django.gettext("Maintenance")+"",Yfe='pause'+django.gettext("Exit maintenance mode")+"",qfe='pause'+django.gettext("Enter maintenance mode")+"";let Zfe=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"maintenance",html:hie,type:gi.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("tunnel");s&&(e.servers=e.rest.tunnels.detail(s,"servers"),e.tunnel=yield e.servers.parentModel.get(s),e.gui=yield e.servers.parentModel.gui(),console.log(e.gui),console.log(e.tunnel))})()}onMaintenance(e){const s=e.table.selection.selected[0],u=s.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+s.name,u).then(m=>{m&&this.servers.get(s.id+"/maintenance").then(()=>{e.table.overview()})})}onNew(e){var s=this;return Ge(function*(){const u=yield s.rest.tunnels.tunnels(s.tunnel.id);0==u.length?s.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):!0===(yield Ufe.launch(s.api,s.tunnel.id,u))&&e.table.overview()})()}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){const s=e.table;this.customButtons[0].html=s.selection.selected.length>1||0===s.selection.selected.length?hie:s.selection.selected[0].maintenance_mode?Yfe:qfe}onLoad(e){if(!0===e.param){const s=this.route.snapshot.paramMap.get("tunnel");if(void 0!==s){const u=e.table;u.dataSource.data.forEach(m=>{m.id===s&&u.selection.select(m)})}}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-tunnels-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","rowSelected","deleteAction","customButtonAction","loaded"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Wfe,11,9,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,$fe,s.servers.parentId)),N(4),z("src",s.api.staticURL("admin/img/icons/tunnels.png"),Ut),N(),Re(" \xa0",null==s.tunnel?null:s.tunnel.name," "),N(),z("ngIf",null!==s.tunnel))},dependencies:[xn,mr,As,Es,Cl,vn,hi,TS],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]}),r})(),fie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[Sl.getGotoButton("provider","provider_id"),Sl.getGotoButton("service","provider_id","service_id"),Sl.getGotoButton("osmanager","osmanager_id"),Sl.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}ngOnInit(){return Ge(function*(){})()}onChange(e){var s=this;return Ge(function*(){const u=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===e.on||"service_id"===e.on.field.name){if(""===e.all.service_id.value){e.all.osmanager_id.gui.choices=[];for(const b of u)e.all[b].gui.readonly=!0;return void(e.all.cache_l2_srvs.gui.readonly=!0)}const m=yield s.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!m.info.can_reset,e.all.osmanager_id.gui.choices=[],s.editing||(e.all.osmanager_id.gui.readonly=!m.info.needs_manager),!0===m.info.needs_manager){const b=yield s.rest.osManagers.overview(),C=[];for(const M of b)for(const I of M.servicesTypes)m.info.services_type_provided.includes(I)&&C.push({id:M.id,text:M.name});e.all.osmanager_id.value=C.length>0?e.all.osmanager_id.value||C[0].id:"",e.all.osmanager_id.gui.choices=C}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(const b of u)e.all[b].gui.readonly=!m.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=!1===m.info.uses_cache||!1===m.info.uses_cache_l2,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!m.info.needs_publication)}})()}onNew(e){var s=this;return Ge(function*(){s.editing=!1,yield s.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Ca.CHECKBOX,order:150,default:"true"}}],s.onChange.bind(s))})()}onEdit(e){var s=this;return Ge(function*(){return s.editing=!0,s.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,s.onChange.bind(s))})()}onDelete(e){var s=this;return Ge(function*(){return s.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"))})()}processElement(e){e.visible=this.api.boolAsHumanString(e.visible),e.show_transports=this.api.boolAsHumanString(e.show_transports),e.restrained?(e.name='warning '+this.api.gui.icon(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",s.processElement)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]}),r})();function Xfe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Kfe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let pie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=m.userService,this.userServices=m.userServices}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:s,userServices:u},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.authId=e.userService.owner_info.auth_id||"",e.userId=e.userService.owner_info.user_id||"",e.auths=yield e.rest.authenticators.summary(),e.authChanged()})()}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;const e=new Array;return this.users.forEach(s=>{(""===this.userFilter||s.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(s)}),e}save(){""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){var e=this;return Ge(function*(){e.users=e.authId?yield e.rest.authenticators.detail(e.authId,"users").summary():[]})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"options","changed"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Change owner of assigned service"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Authenticator"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),re(10,Xfe,2,2,"mat-option",3),R()(),P(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),Y(14,"User"),R()(),P(15,"mat-select",4),J("ngModelChange",function(m){return s.userId=m}),P(16,"uds-cond-select-search",5),J("changed",function(m){return s.userFilter=m}),R(),re(17,Kfe,2,2,"mat-option",3),R()()()(),P(18,"mat-dialog-actions")(19,"button",6),J("click",function(){return s.cancel()}),P(20,"uds-translate"),Y(21,"Cancel"),R()(),P(22,"button",7),J("click",function(){return s.save()}),P(23,"uds-translate"),Y(24,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.authId),N(),z("ngForOf",s.auths),N(5),z("ngModel",s.userId),N(),z("options",s.users),N(),z("ngForOf",s.filteredUsers()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function Qfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New access rule for"),R())}function Jfe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit access rule for"),R())}function epe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Default fallback access for"),R())}function tpe(t,r){if(1&t&&(P(0,"mat-option",11),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function npe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Priority"),R()(),P(5,"input",8),J("ngModelChange",function(s){return oe(l),le(Z().accessRule.priority=s)}),R()(),P(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Calendar"),R()(),P(10,"mat-select",3),J("ngModelChange",function(s){return oe(l),le(Z().accessRule.calendarId=s)}),P(11,"uds-cond-select-search",9),J("changed",function(s){return oe(l),le(Z().calendarsFilter=s)}),R(),re(12,tpe,2,2,"mat-option",10),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.accessRule.priority),N(5),z("ngModel",l.accessRule.calendarId),N(),z("options",l.calendars),N(),z("ngForOf",l.filtered(l.calendars,l.calendarsFilter))}}let _4=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.calendars=[],this.calendarsFilter="",this.pool=m.pool,this.model=m.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},m.accessRule&&(this.accessRule.id=m.accessRule.id)}static launch(e,s,u,m){const b=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(r,{width:b,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:s,model:u,accessRule:m},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(e=>{this.calendars=e}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}save(){const e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0),re(1,Qfe,2,0,"uds-translate",1)(2,Jfe,2,0,"uds-translate",1)(3,epe,2,0,"uds-translate",1),Y(4),R(),P(5,"mat-dialog-content")(6,"div",2),re(7,npe,13,4,"ng-container",1),P(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),Y(11,"Action"),R()(),P(12,"mat-select",3),J("ngModelChange",function(m){return s.accessRule.access=m}),P(13,"mat-option",4),Y(14," ALLOW "),R(),P(15,"mat-option",5),Y(16," DENY "),R()()()()(),P(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),Y(20,"Cancel"),R()(),P(21,"button",7),J("click",function(){return s.save()}),P(22,"uds-translate"),Y(23,"Ok"),R()()()),2&e&&(N(),z("ngIf",void 0===s.accessRule.id),N(),z("ngIf",void 0!==s.accessRule.id&&-1!==s.accessRule.id),N(),z("ngIf",-1===s.accessRule.id),N(),Re(" ",s.pool.name,"\n"),N(3),z("ngIf",-1!==s.accessRule.id),N(5),z("ngModel",s.accessRule.access))},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function ipe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function rpe(t,r){if(1&t&&(An(0),Y(1),On()),2&t){const l=Z().$implicit;N(),Re(" (",l.comments,")")}}function ape(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),re(2,rpe,2,1,"ng-container",9),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name,""),N(),z("ngIf",l.comments)}}let mie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=m.pool,this.model=m.model}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:s,model:u},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.auths=yield e.rest.authenticators.summary()})()}changeAuth(e){var s=this;return Ge(function*(){s.groupId="",s.authChanged()})()}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){var e=this;return Ge(function*(){""!==e.groupId&&""!==e.authId?(yield e.model.create({id:e.groupId}),e.dialogRef.close(),e.done.resolve(!0)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))})()}cancel(){var e=this;return Ge(function*(){e.dialogRef.close(),e.done.resolve(!1)})()}authChanged(){var e=this;return Ge(function*(){e.groups=e.authId?yield e.rest.authenticators.detail(e.authId,"groups").summary():[]})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-add-group"]],decls:27,vars:7,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New group for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Authenticator"),R()(),P(10,"mat-select",2),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),P(11,"uds-cond-select-search",3),J("changed",function(m){return s.authFilter=m}),R(),re(12,ipe,2,2,"mat-option",4),R()(),P(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),Y(16,"Group"),R()(),P(17,"mat-select",5),J("ngModelChange",function(m){return s.groupId=m}),P(18,"uds-cond-select-search",3),J("changed",function(m){return s.groupFilter=m}),R(),re(19,ape,3,3,"mat-option",4),R()()()(),P(20,"mat-dialog-actions")(21,"button",6),J("click",function(){return s.cancel()}),P(22,"uds-translate"),Y(23,"Cancel"),R()(),P(24,"button",7),J("click",function(){return s.save()}),P(25,"uds-translate"),Y(26,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.pool.name,""),N(7),z("ngModel",s.authId),N(),z("options",s.auths),N(),z("ngForOf",s.filteredAuths()),N(5),z("ngModel",s.groupId),N(),z("options",s.groups),N(),z("ngForOf",s.filteredGroups()))},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})();function ope(t,r){if(1&t&&(An(0),Y(1),On()),2&t){const l=Z().$implicit;N(),Re(" (",l.comments,")")}}function spe(t,r){if(1&t&&(P(0,"mat-option",7),Y(1),re(2,ope,2,1,"ng-container",8),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name,""),N(),z("ngIf",l.comments)}}let lpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.transports=(yield e.rest.transports.summary()).filter(s=>e.servicePool.info.allowed_protocols.includes(s.protocol))})()}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){var e=this;return Ge(function*(){""!==e.transportId?(yield e.rest.servicesPools.detail(e.servicePool.id,"transports").create({id:e.transportId}),e.done.resolve(!0),e.dialogRef.close()):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))})()}cancel(){var e=this;return Ge(function*(){e.done.resolve(!1),e.dialogRef.close()})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New transport for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Transport"),R()(),P(10,"mat-select",2),J("ngModelChange",function(m){return s.transportId=m}),P(11,"uds-cond-select-search",3),J("changed",function(m){return s.transportsFilter=m}),R(),re(12,spe,3,3,"mat-option",4),R()()()(),P(13,"mat-dialog-actions")(14,"button",5),J("click",function(){return s.cancel()}),P(15,"uds-translate"),Y(16,"Cancel"),R()(),P(17,"button",6),J("click",function(){return s.save()}),P(18,"uds-translate"),Y(19,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,""),N(7),z("ngModel",s.transportId),N(),z("options",s.transports),N(),z("ngForOf",s.filteredTransports()))},dependencies:[mi,xn,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),cpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.reason="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){}save(){this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"New publication for"),R(),Y(3),R(),P(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),Y(9,"Comments"),R()(),P(10,"input",2),J("ngModelChange",function(m){return s.reason=m}),R()()()(),P(11,"mat-dialog-actions")(12,"button",3),J("click",function(){return s.cancel()}),P(13,"uds-translate"),Y(14,"Cancel"),R()(),P(15,"button",4),J("click",function(){return s.save()}),P(16,"uds-translate"),Y(17,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,"\n"),N(7),z("ngModel",s.reason))},dependencies:[$i,A,ii,Pn,zi,Ai,Hi,ri,Ci,Sa,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),dpe=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.changeLogPubs={},this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1})}ngOnInit(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Changelog of"),R(),Y(3),R(),P(4,"mat-dialog-content"),pe(5,"uds-table",1,2),R(),P(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),Y(10,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.servicePool.name,"\n"),N(2),z("rest",s.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+s.servicePool.id))},dependencies:[Pn,Io,zi,Ai,Hi,vn,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();const upe=["switch"];function hpe(t,r){1&t&&(P(0,"div",12),Ia(),P(1,"svg",13),pe(2,"path",14),R(),P(3,"svg",15),pe(4,"path",16),R()())}const fpe=["*"],ppe=new ve("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),mpe={provide:Pr,useExisting:Jt(()=>ZP),multi:!0};class gie{constructor(r,l){this.source=r,this.checked=l}}let gpe=0,ZP=(()=>{var t;class r{_createChangeEvent(e){return new gie(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,s,u,m,b,C){this._elementRef=e,this._focusMonitor=s,this._changeDetectorRef=u,this.defaults=b,this._onChange=M=>{},this._onTouched=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(m)||0,this.color=b.color||"accent",this._noopAnimations="NoopAnimations"===C,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++gpe,this.hideIcon=b.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new gie(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(uo),V(dn),Ie("tabindex"),V(ppe),V(si,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,s){if(1&e&&ft(upe,5),2&e){let u;Ne(u=Ve())&&(s._switchElement=u.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(e,s){2&e&&(Ba("id",s.id),$e("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),cu(s.color?"mat-"+s.color:""),et("mat-mdc-slide-toggle-focused",s._focused)("mat-mdc-slide-toggle-checked",s.checked)("_mat-animation-noopable",s._noopAnimations))},inputs:{disabled:["disabled","disabled",jt],disableRipple:["disableRipple","disableRipple",jt],color:"color",tabIndex:["tabIndex","tabIndex",l=>null==l?0:qA(l)],name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:["required","required",jt],checked:["checked","checked",jt],hideIcon:["hideIcon","hideIcon",jt]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Je([mpe]),na],ngContentSelectors:fpe,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(e,s){if(1&e&&(jn(),P(0,"div",0)(1,"button",1,2),J("click",function(){return s._handleClick()}),pe(3,"div",3),P(4,"div",4)(5,"div",5)(6,"div",6),pe(7,"div",7),R(),P(8,"div",8),pe(9,"div",9),R(),re(10,hpe,5,0,"div",10),R()()(),P(11,"label",11),J("click",function(m){return m.stopPropagation()}),dt(12),R()()),2&e){const u=pn(2);et("mdc-form-field--align-end","before"==s.labelPosition),N(),et("mdc-switch--selected",s.checked)("mdc-switch--unselected",!s.checked)("mdc-switch--checked",s.checked)("mdc-switch--disabled",s.disabled),z("tabIndex",s.disabled?-1:s.tabIndex)("disabled",s.disabled),$e("id",s.buttonId)("name",s.name)("aria-label",s.ariaLabel)("aria-labelledby",s._getAriaLabelledBy())("aria-describedby",s.ariaDescribedby)("aria-required",s.required||null)("aria-checked",s.checked),N(8),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),N(),an(10,s.hideIcon?-1:10),N(),z("for",s.buttonId),$e("id",s._labelId)}},dependencies:[bl],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0}),r})();const vpe={provide:Ei,useExisting:Jt(()=>vie),multi:!0};let vie=(()=>{var t;class r extends jz{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Je([vpe]),ze]}),r})(),_ie=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),_pe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[_ie,$t,Wu,_ie,$t]}),r})();function ype(t,r){1&t&&(An(0),P(1,"uds-translate"),Y(2,"Edit action for"),R(),On())}function bpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New action for"),R())}function wpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function xpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.description," ")}}function Cpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Spe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Transport"),R()(),P(5,"mat-select",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),P(6,"uds-cond-select-search",5),J("changed",function(s){return oe(l),le(Z().transportsFilter=s)}),R(),re(7,Cpe,2,2,"mat-option",6),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.paramValue),N(),z("options",l.transports),N(),z("ngForOf",l.filtered(l.transports,l.transportsFilter))}}function Dpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Tpe(t,r){if(1&t&&(P(0,"mat-option",13),Y(1),R()),2&t){const l=r.$implicit;z("value",Z(2).authenticator+"@"+l.id),N(),Re(" ",l.name," ")}}function Mpe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),Y(4,"Authenticator"),R()(),P(5,"mat-select",9),J("ngModelChange",function(s){return oe(l),le(Z().authenticator=s)})("valueChange",function(s){return oe(l),le(Z().authenticatorChangedTo(s))}),re(6,Dpe,2,2,"mat-option",6),R()(),P(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),Y(10,"Group"),R()(),P(11,"mat-select",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),P(12,"uds-cond-select-search",5),J("changed",function(s){return oe(l),le(Z().groupsFilter=s)}),R(),re(13,Tpe,2,2,"mat-option",6),R()(),On()}if(2&t){const l=Z();N(5),z("ngModel",l.authenticator),N(),z("ngForOf",l.authenticators),N(5),z("ngModel",l.paramValue),N(),z("options",l.groups),N(),z("ngForOf",l.filtered(l.groups,l.groupsFilter))}}function Ape(t,r){if(1&t){const l=Oe();An(0),P(1,"div",14)(2,"span",15),Y(3),R(),Y(4,"\xa0 "),P(5,"mat-slide-toggle",4),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),R()(),On()}if(2&t){const l=Z();N(3),En(l.parameter.description),N(2),z("ngModel",l.paramValue)}}function Epe(t,r){if(1&t){const l=Oe();An(0),P(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",16),J("ngModelChange",function(s){return oe(l),le(Z().paramValue=s)}),R()(),On()}if(2&t){const l=Z();N(3),Re(" ",l.parameter.description," "),N(),z("type",l.parameter.type)("ngModel",l.paramValue)}}const Ipe=()=>["transport","group","bool"];let yie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=m.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},void 0!==m.scheduledAction&&(this.scheduledAction.id=m.scheduledAction.id)}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s,scheduledAction:u},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.summary().then(e=>this.authenticators=e),this.rest.transports.summary().then(e=>this.transports=e),this.rest.calendars.summary().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,this.actionList.forEach(s=>{this.paramsDict[s.id]=s.params[0]}),void 0!==this.scheduledAction.id&&this.rest.servicesPools.detail(this.servicePool.id,"actions").get(this.scheduledAction.id).then(s=>{this.scheduledAction=s,this.actionChangedTo(this.scheduledAction.action)})})}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){let s=this.paramValue.split("@");2!==s.length&&(s=["",""]),this.authenticator=s[0],this.authenticatorChangedTo(this.authenticator)}}authenticatorChangedTo(e){var s=this;return Ge(function*(){e&&(s.groups=yield s.rest.authenticators.detail(e,"groups").summary())})()}save(){var e=this;return Ge(function*(){e.scheduledAction.params={},e.parameter&&(e.scheduledAction.params[e.parameter.name]=e.paramValue),yield e.rest.servicesPools.detail(e.servicePool.id,"actions").save(e.scheduledAction),e.dialogRef.close(),e.onSave.emit(!0)})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:40,vars:15,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"toggle"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"mat-form-field-infix"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,ype,3,0,"ng-container",1)(2,bpe,2,0,"ng-template",null,2,so),Y(4),R(),P(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),Y(10,"Calendar"),R()(),P(11,"mat-select",4),J("ngModelChange",function(m){return s.scheduledAction.calendar_id=m}),P(12,"uds-cond-select-search",5),J("changed",function(m){return s.calendarsFilter=m}),R(),re(13,wpe,2,2,"mat-option",6),R()(),P(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),Y(17,"Events offset (minutes)"),R()(),P(18,"input",7),J("ngModelChange",function(m){return s.scheduledAction.events_offset=m}),R()(),P(19,"div",8)(20,"mat-slide-toggle",4),J("ngModelChange",function(m){return s.scheduledAction.at_start=m}),P(21,"uds-translate"),Y(22,"At the beginning of the interval?"),R()()(),P(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),Y(26,"Action"),R()(),P(27,"mat-select",9),J("ngModelChange",function(m){return s.scheduledAction.action=m})("valueChange",function(m){return s.actionChangedTo(m)}),re(28,xpe,2,2,"mat-option",6),R()(),re(29,Spe,8,3,"ng-container",10)(30,Mpe,14,5,"ng-container",10)(31,Ape,6,2,"ng-container",10)(32,Epe,5,3,"ng-container",10),R()(),P(33,"mat-dialog-actions")(34,"button",11)(35,"uds-translate"),Y(36,"Cancel"),R()(),P(37,"button",12),J("click",function(){return s.save()}),P(38,"uds-translate"),Y(39,"Ok"),R()()()),2&e){const u=pn(3);N(),z("ngIf",void 0!==s.scheduledAction.id)("ngIfElse",u),N(3),Re(" ",s.servicePool.name,"\n"),N(7),z("ngModel",s.scheduledAction.calendar_id),N(),z("options",s.calendars),N(),z("ngForOf",s.filtered(s.calendars,s.calendarsFilter)),N(5),z("ngModel",s.scheduledAction.events_offset),N(2),z("ngModel",s.scheduledAction.at_start),N(7),z("ngModel",s.scheduledAction.action),N(),z("ngForOf",s.actionList),N(),z("ngIf","transport"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf","group"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf","bool"===(null==s.parameter?null:s.parameter.type)),N(),z("ngIf",(null==s.parameter?null:s.parameter.type)&&!Ex(14,Ipe).includes(s.parameter.type))}},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,ZP,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),wZ=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.userService=m.userService,this.model=m.model}static launch(e,s,u){const m=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:s,model:u},disableClose:!1})}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Logs of"),R(),Y(3),R(),P(4,"mat-dialog-content"),pe(5,"uds-logs-table",1),R(),P(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),Y(9,"Ok"),R()()()),2&e&&(N(3),Re(" ",s.userService.name,"\n"),N(2),z("rest",s.model)("itemId",s.userService.id)("tableId","servicePools-d-uslog"+s.userService.id))},dependencies:[Pn,Io,zi,Ai,Hi,vn,DS],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})();function kpe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}function Ppe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}function Rpe(t,r){if(1&t&&(P(0,"mat-option",8),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Ope=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=m.servicePool}static launch(e,s){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.authId="",e.userId="";const s=yield e.rest.authenticators.summary(),u=yield e.rest.servicesPools.listAssignables(e.servicePool.id);e.auths=s,e.assignablesServices=u})()}changeAuth(e){var s=this;return Ge(function*(){s.userId="",s.authChanged()})()}filteredUsers(){if(!this.userFilter)return this.users;const e=new Array;return this.users.forEach(s=>{s.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(s)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;const e=new Array;return this.assignablesServices.forEach(s=>{s.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(s)}),e}save(){var e=this;return Ge(function*(){""!==e.userId&&""!==e.authId?e.rest.servicesPools.createFromAssignable(e.servicePool.id,e.userId,e.serviceId).then(s=>{e.dialogRef.close(),e.done.resolve(!0)}):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))})()}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){var e=this;return Ge(function*(){e.authId&&(e.users=yield e.rest.authenticators.detail(e.authId,"users").summary())})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0)(1,"uds-translate"),Y(2,"Assign service to user manually"),R()(),P(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Service"),R()(),P(9,"mat-select",2),J("ngModelChange",function(m){return s.serviceId=m}),P(10,"uds-cond-select-search",3),J("changed",function(m){return s.assignablesServicesFilter=m}),R(),re(11,kpe,2,2,"mat-option",4),R()(),P(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),Y(15,"Authenticator"),R()(),P(16,"mat-select",5),J("ngModelChange",function(m){return s.authId=m})("selectionChange",function(m){return s.changeAuth(m)}),re(17,Ppe,2,2,"mat-option",4),R()(),P(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),Y(21,"User"),R()(),P(22,"mat-select",2),J("ngModelChange",function(m){return s.userId=m}),P(23,"uds-cond-select-search",3),J("changed",function(m){return s.userFilter=m}),R(),re(24,Rpe,2,2,"mat-option",4),R()()()(),P(25,"mat-dialog-actions")(26,"button",6),J("click",function(){return s.cancel()}),P(27,"uds-translate"),Y(28,"Cancel"),R()(),P(29,"button",7),J("click",function(){return s.save()}),P(30,"uds-translate"),Y(31,"Ok"),R()()()),2&e&&(N(9),z("ngModel",s.serviceId),N(),z("options",s.assignablesServices),N(),z("ngForOf",s.filteredAssignables()),N(5),z("ngModel",s.authId),N(),z("ngForOf",s.auths),N(5),z("ngModel",s.userId),N(),z("options",s.users),N(),z("ngForOf",s.filteredUsers()))},dependencies:[mi,A,ii,Pn,zi,Ai,Hi,ri,Ci,Ya,Ni,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]}),r})(),Lpe=(()=>{var t;class r{constructor(e){this.rest=e,this.poolUuid="",this.options={},this.chart=null}onResize(e){this.chart&&this.chart.resize()}ngOnInit(){var e=this;return Ge(function*(){const s=yield e.rest.system.stats("complete",e.poolUuid);e.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:s.assigned.map(u=>Ms("SHORT_DATETIME_FORMAT",new Date(u.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:s.assigned.map(u=>u.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:s.cached.map(u=>u.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:s.inuse.map(u=>u.value)}]}})()}chartInit(e){this.chart=e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(e,s){1&e&&J("resize",function(m){return s.onResize(m)},0,ss)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),J("chartInit",function(m){return s.chartInit(m)}),R()()),2&e&&(N(),z("options",s.options))},dependencies:[Yte]}),r})();function Fpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function Npe(t,r){if(1&t&&pe(0,"uds-information",21),2&t){const l=Z(2);z("value",l.servicePool)("gui",l.gui)}}function Vpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned services"),R())}function Bpe(t,r){if(1&t){const l=Oe();P(0,"uds-table",22),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomAssigned(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteAssigned(s))}),R()}if(2&t){const l=Z(2);z("rest",l.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",l.processsAssignedElement)("tableId","servicePools-d-services"+l.servicePool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size)}}function zpe(t,r){if(1&t){const l=Oe();P(0,"uds-table",23),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomAssigned(s))})("newAction",function(s){return oe(l),le(Z(2).onNewAssigned(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteAssigned(s))}),R()}if(2&t){const l=Z(2);z("rest",l.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",l.processsAssignedElement)("tableId","servicePools-d-services"+l.servicePool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size)}}function Hpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Cache"),R())}function Upe(t,r){if(1&t){const l=Oe();P(0,"mat-tab"),re(1,Hpe,2,0,"ng-template",9),P(2,"div",10)(3,"uds-table",24),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomCached(s))})("deleteAction",function(s){return oe(l),le(Z(2).onDeleteCache(s))}),R()()()}if(2&t){const l=Z(2);N(3),z("rest",l.cache)("multiSelect",!0)("allowExport",!0)("onItem",l.processsCacheElement)("tableId","servicePools-d-cache"+l.servicePool.id)("customButtons",l.customButtonsCachedServices)("pageSize",l.api.config.admin.page_size)}}function jpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function Gpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Transports"),R())}function Wpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Publications"),R())}function $pe(t,r){if(1&t){const l=Oe();P(0,"mat-tab"),re(1,Wpe,2,0,"ng-template",9),P(2,"div",10)(3,"uds-table",25),J("customButtonAction",function(s){return oe(l),le(Z(2).onCustomPublication(s))})("newAction",function(s){return oe(l),le(Z(2).onNewPublication(s))})("rowSelected",function(s){return oe(l),le(Z(2).onPublicationRowSelect(s))}),R()()()}if(2&t){const l=Z(2);N(3),z("rest",l.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+l.servicePool.id)("customButtons",l.customButtonsPublication)("pageSize",l.api.config.admin.page_size)}}function Ype(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Scheduled actions"),R())}function qpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Access calendars"),R())}function Zpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Charts"),R())}function Xpe(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function Kpe(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,Fpe,2,0,"ng-template",9),P(5,"div",10),re(6,Npe,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,Vpe,2,0,"ng-template",9),P(9,"div",10),re(10,Bpe,1,7,"uds-table",12)(11,zpe,1,7,"ng-template",null,13,so),R()(),re(13,Upe,4,7,"mat-tab",14),P(14,"mat-tab"),re(15,jpe,2,0,"ng-template",9),P(16,"div",10)(17,"uds-table",15),J("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))}),R()()(),P(18,"mat-tab"),re(19,Gpe,2,0,"ng-template",9),P(20,"div",10)(21,"uds-table",16),J("newAction",function(s){return oe(l),le(Z().onNewTransport(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteTransport(s))}),R()()(),re(22,$pe,4,6,"mat-tab",14),P(23,"mat-tab"),re(24,Ype,2,0,"ng-template",9),P(25,"div",10)(26,"uds-table",17),J("customButtonAction",function(s){return oe(l),le(Z().onCustomScheduleAction(s))})("newAction",function(s){return oe(l),le(Z().onNewScheduledAction(s))})("editAction",function(s){return oe(l),le(Z().onEditScheduledAction(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteScheduledAction(s))}),R()()(),P(27,"mat-tab"),re(28,qpe,2,0,"ng-template",9),P(29,"div",10)(30,"uds-table",18),J("newAction",function(s){return oe(l),le(Z().onNewAccessCalendar(s))})("editAction",function(s){return oe(l),le(Z().onEditAccessCalendar(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAccessCalendar(s))})("loaded",function(s){return oe(l),le(Z().onAccessCalendarLoad(s))}),R()()(),P(31,"mat-tab"),re(32,Zpe,2,0,"ng-template",9),P(33,"div",10),pe(34,"uds-service-pools-charts",19),R()(),P(35,"mat-tab"),re(36,Xpe,2,0,"ng-template",9),P(37,"div",10),pe(38,"uds-logs-table",20),R()()()()()}if(2&t){const l=pn(12),e=Z();N(2),z("selectedIndex",e.selectedTab)("@.disabled",!0),N(4),z("ngIf",e.servicePool&&e.gui),N(4),z("ngIf",!1===e.servicePool.info.must_assign_manually)("ngIfElse",l),N(3),z("ngIf",e.cache),N(4),z("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size),N(4),z("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size),N(),z("ngIf",e.publications),N(4),z("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size),N(4),z("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size),N(4),z("poolUuid",e.servicePool.id),N(4),z("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}const Qpe=t=>["/pools","service-pools",t],xZ='event'+django.gettext("Logs")+"",Jpe='computer'+django.gettext("VNC")+"",eme='schedule'+django.gettext("Launch now")+"",bie='perm_identity'+django.gettext("Change owner")+"",tme='perm_identity'+django.gettext("Assign service")+"",nme='cancel'+django.gettext("Cancel")+"",ime='event'+django.gettext("Changelog")+"";let wie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtonsScheduledAction=[{id:"launch-action",html:eme,type:gi.SINGLE_SELECT},Sl.getGotoButton(Zq,"calendarId")],this.customButtonAccessCalendars=[Sl.getGotoButton(Zq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:bie,type:gi.SINGLE_SELECT},{id:"log",html:xZ,type:gi.SINGLE_SELECT},Sl.getGotoButton(qq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:xZ,type:gi.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:nme,type:gi.SINGLE_SELECT},{id:"changelog",html:ime,type:gi.ALWAYS}],this.customButtonsGroups=[Sl.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Sl.getGotoButton("transport","id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(s=>["E","R","M","S","C"].includes(s.state)).forEach(s=>e.table.selection.deselect(s)),e.table.selection.isEmpty()}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("pool");if(!s)return;e.assignedServices=e.rest.servicesPools.detail(s,"services"),e.groups=e.rest.servicesPools.detail(s,"groups"),e.transports=e.rest.servicesPools.detail(s,"transports"),e.scheduledActions=e.rest.servicesPools.detail(s,"actions"),e.accessCalendars=e.rest.servicesPools.detail(s,"access");const u=yield e.rest.servicesPools.get(s),m=(yield e.rest.servicesPools.gui()).filter(b=>!(!1===u.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(b.name)||!1===u.info.uses_cache_l2&&"cache_l2_srvs"===b.name||!1===u.info.needs_manager&&"osmanager_id"===b.name));e.servicePool=u,e.gui=m,e.cache=u.info.uses_cache?e.rest.servicesPools.detail(s,"cache"):null,e.publications=u.info.needs_publication?e.rest.servicesPools.detail(s,"publications"):null,e.api.config.admin.vnc_userservices&&e.customButtonsAssignedServices.push({id:"vnc",html:Jpe,type:gi.ONLY_MENU}),e.servicePool.info.can_list_assignables&&e.customButtonsAssignedServices.push({id:"assign-service",html:tme,type:gi.ALWAYS})})()}onNewAssigned(e){}vnc(e){const u=new Blob(["[connection]\nhost="+e.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(()=>{(0,vZ.saveAs)(u,e.ip+".vnc")},100)}onCustomAssigned(e){var s=this;return Ge(function*(){const u=e.table.selection.selected[0];if("change-owner"===e.param.id){if(["E","R","M","S","C"].includes(u.state))return;!0===(yield pie.launch(s.api,u,s.assignedServices))&&e.table.overview()}else"log"===e.param.id?wZ.launch(s.api,u,s.assignedServices):"assign-service"===e.param.id?!0===(yield Ope.launch(s.api,s.servicePool))&&e.table.overview():"vnc"===e.param.id&&s.vnc(u)})()}onCustomCached(e){"log"===e.param.id&&this.cache&&wZ.launch(this.api,e.table.selection.selected[0],this.cache)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,"U"===e.state&&(e.state=""!==e.os_state&&"U"!==e.os_state?"Z":"U")}onDeleteAssigned(e){r.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){r.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,"U"===e.state&&(e.state=""!==e.os_state&&"U"!==e.os_state?"Z":"U")}onNewGroup(e){var s=this;return Ge(function*(){!0===(yield mie.launch(s.api,s.servicePool,s.groups))&&e.table.overview()})()}onDeleteGroup(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})()}onNewTransport(e){var s=this;return Ge(function*(){!0===(yield lpe.launch(s.api,s.servicePool))&&e.table.overview()})()}onDeleteTransport(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})()}onNewPublication(e){var s=this;return Ge(function*(){!0===(yield cpe.launch(s.api,s.servicePool))&&e.table.overview()})()}onPublicationRowSelect(e){1===e.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))}onCustomPublication(e){"cancel-publication"===e.param.id?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(s=>{s&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(u=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})}):"changelog"===e.param.id&&dpe.launch(this.api,this.servicePool)}onNewScheduledAction(e){yie.launch(this.api,this.servicePool).subscribe(s=>e.table.overview())}onEditScheduledAction(e){yie.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteScheduledAction(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))}onCustomScheduleAction(e){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(s=>{s&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})})}onNewAccessCalendar(e){_4.launch(this.api,this.servicePool,this.accessCalendars).subscribe(s=>e.table.overview())}onEditAccessCalendar(e){_4.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteAccessCalendar(e){-1!==e.table.selection.selected[0].id?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(s=>{const u=e.table.dataSource.data.filter(m=>!0);u.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:s}),e.table.dataSource.data=u})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,Kpe,39,38,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,Qpe,s.servicePool?s.servicePool.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/pools.png"),Ut),N(),Re(" \xa0",null==s.servicePool?null:s.servicePool.name," "),N(),z("ngIf",null!==s.servicePool))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS,Lpe],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]}),r})(),xie=(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"))}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){e.visible=this.api.boolAsHumanString(e.visible),e.name=this.api.safeString(this.api.gui.icon(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("detailAction",function(m){return s.onDetail(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()()),2&e&&(N(),z("rest",s.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",s.processElement)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),r})();function rme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New member pool"),R())}function ame(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit member pool"),R())}function ome(t,r){if(1&t){const l=Oe();P(0,"uds-cond-select-search",11),J("changed",function(s){return oe(l),le(Z().servicePoolsFilter=s)}),R()}}function sme(t,r){if(1&t&&(P(0,"mat-option",12),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.name," ")}}let Cie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.done=new wl,this.servicePools=[],this.servicePoolsFilter="",this.model=m.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},m.memberPool&&(this.memberPool.id=m.memberPool.id)}static launch(e,s,u){const m=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:m,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:u,model:s},disableClose:!1}).componentInstance.done}ngOnInit(){var e=this;return Ge(function*(){e.servicePools=yield e.rest.servicesPools.summary(),e.memberPool.id&&(e.memberPool=yield e.model.get(e.memberPool.id))})()}filtered(e,s){return s?e.filter(u=>u.name.toLocaleLowerCase().includes(s.toLocaleLowerCase())):e}save(){var e=this;return Ge(function*(){e.memberPool.pool_id?(yield e.model.save(e.memberPool),e.dialogRef.close(),e.done.resolve(!0)):e.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))})()}cancel(){this.dialogRef.close(),this.done.resolve(!1)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(e,s){1&e&&(P(0,"h4",0),re(1,rme,2,0,"uds-translate",1)(2,ame,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Priority"),R()(),P(9,"input",3),J("ngModelChange",function(m){return s.memberPool.priority=m}),R()(),P(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),Y(13,"Service pool"),R()(),P(14,"mat-select",4),J("ngModelChange",function(m){return s.memberPool.pool_id=m}),re(15,ome,1,0,"uds-cond-select-search",5)(16,sme,2,2,"mat-option",6),R()(),P(17,"div",7)(18,"span",8)(19,"uds-translate"),Y(20,"Enabled?"),R()(),P(21,"mat-slide-toggle",4),J("ngModelChange",function(m){return s.memberPool.enabled=m}),Y(22),R()()()(),P(23,"mat-dialog-actions")(24,"button",9),J("click",function(){return s.cancel()}),P(25,"uds-translate"),Y(26,"Cancel"),R()(),P(27,"button",10),J("click",function(){return s.save()}),P(28,"uds-translate"),Y(29,"Ok"),R()()()),2&e&&(N(),z("ngIf",!(null!=s.memberPool&&s.memberPool.id)),N(),z("ngIf",null==s.memberPool?null:s.memberPool.id),N(7),z("ngModel",s.memberPool.priority),N(5),z("ngModel",s.memberPool.pool_id),N(),z("ngIf",s.servicePools.length>10),N(),z("ngForOf",s.filtered(s.servicePools,s.servicePoolsFilter)),N(5),z("ngModel",s.memberPool.enabled),N(),Re(" ",s.api.boolAsHumanString(s.memberPool.enabled)," "))},dependencies:[mi,xn,$i,sv,A,ii,Pn,zi,Ai,Hi,ri,Ci,Sa,Ya,Ni,ZP,vn,Cc],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),r})();function lme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Summary"),R())}function cme(t,r){if(1&t&&pe(0,"uds-information",17),2&t){const l=Z(2);z("value",l.metaPool)("gui",l.gui)}}function dme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Service pools"),R())}function ume(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Assigned services"),R())}function hme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Groups"),R())}function fme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Access calendars"),R())}function pme(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Logs"),R())}function mme(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),J("selectedIndexChange",function(s){return oe(l),le(Z().selectedTab=s)}),P(3,"mat-tab"),re(4,lme,2,0,"ng-template",9),P(5,"div",10),re(6,cme,1,2,"uds-information",11),R()(),P(7,"mat-tab"),re(8,dme,2,0,"ng-template",9),P(9,"div",10)(10,"uds-table",12),J("newAction",function(s){return oe(l),le(Z().onNewMemberPool(s))})("editAction",function(s){return oe(l),le(Z().onEditMemberPool(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteMemberPool(s))}),R()()(),P(11,"mat-tab"),re(12,ume,2,0,"ng-template",9),P(13,"div",10)(14,"uds-table",13),J("customButtonAction",function(s){return oe(l),le(Z().onCustomAssigned(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAssigned(s))}),R()()(),P(15,"mat-tab"),re(16,hme,2,0,"ng-template",9),P(17,"div",10)(18,"uds-table",14),J("newAction",function(s){return oe(l),le(Z().onNewGroup(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteGroup(s))}),R()()(),P(19,"mat-tab"),re(20,fme,2,0,"ng-template",9),P(21,"div",10)(22,"uds-table",15),J("newAction",function(s){return oe(l),le(Z().onNewAccessCalendar(s))})("editAction",function(s){return oe(l),le(Z().onEditAccessCalendar(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteAccessCalendar(s))})("loaded",function(s){return oe(l),le(Z().onAccessCalendarLoad(s))}),R()()(),P(23,"mat-tab"),re(24,pme,2,0,"ng-template",9),P(25,"div",10),pe(26,"uds-logs-table",16),R()()()()()}if(2&t){const l=Z();N(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),N(4),z("ngIf",l.metaPool&&l.gui),N(4),z("rest",l.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("customButtons",l.customButtons)("tableId","metaPools-d-members"+l.metaPool.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+l.metaPool.id)("customButtons",l.customButtonsAssignedServices)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+l.metaPool.id)("pageSize",l.api.config.admin.page_size),N(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+l.metaPool.id)("pageSize",l.api.config.admin.page_size)("onItem",l.processsCalendarItem),N(4),z("rest",l.rest.metaPools)("itemId",l.metaPool.id)("tableId","metaPools-d-log"+l.metaPool.id)("pageSize",l.api.config.admin.page_size)}}const gme=t=>["/pools","meta-pools",t];let vme=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.customButtons=[Sl.getGotoButton(Yq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:bie,type:gi.SINGLE_SELECT},{id:"log",html:xZ,type:gi.SINGLE_SELECT},Sl.getGotoButton(qq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){var e=this;return Ge(function*(){const s=e.route.snapshot.paramMap.get("metapool");if(!s)return;const u=yield e.rest.metaPools.get(s),m=yield e.rest.metaPools.gui();e.memberPools=e.rest.metaPools.detail(s,"pools"),e.memberUserServices=e.rest.metaPools.detail(s,"services"),e.groups=e.rest.metaPools.detail(s,"groups"),e.accessCalendars=e.rest.metaPools.detail(s,"access"),e.metaPool=u,e.gui=m})()}onNewMemberPool(e){var s=this;return Ge(function*(){!0===(yield Cie.launch(s.api,s.memberPools))&&e.table.overview()})()}onEditMemberPool(e){var s=this;return Ge(function*(){!0===(yield Cie.launch(s.api,s.memberPools,e.table.selection.selected[0]))&&e.table.overview()})()}onDeleteMemberPool(e){var s=this;return Ge(function*(){s.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})()}onCustomAssigned(e){var s=this;return Ge(function*(){const u=e.table.selection.selected[0];if("change-owner"===e.param.id){if(["E","R","M","S","C"].includes(u.state))return;!0===(yield pie.launch(s.api,u,s.memberUserServices))&&e.table.overview()}else"log"===e.param.id&&wZ.launch(s.api,u,s.memberUserServices)})()}onDeleteAssigned(e){var s=this;return Ge(function*(){wie.cleanInvalidSelections(e)||s.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})()}onNewGroup(e){var s=this;return Ge(function*(){!0===(yield mie.launch(s.api,s.metaPool.id,s.groups))&&e.table.overview()})()}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){_4.launch(this.api,this.metaPool,this.accessCalendars).subscribe(s=>e.table.overview())}onEditAccessCalendar(e){_4.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(s=>e.table.overview())}onDeleteAccessCalendar(e){-1!==e.table.selection.selected[0].id?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(s=>{const u=e.table.dataSource.data.filter(m=>!0);u.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:s}),e.table.dataSource.data=u})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,mme,27,31,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,gme,s.metaPool?s.metaPool.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/metas.png"),Ut),N(),Re(" ",null==s.metaPool?null:s.metaPool.name," "),N(),z("ngIf",s.metaPool))},dependencies:[xn,mr,As,Es,Cl,vn,hi,DS,TS],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),r})(),Sie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.overview())}onEdit(e){var s=this;return Ge(function*(){s.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})()}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),r})(),Die=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",s.api.config.admin.page_size)},dependencies:[hi]}),r})();const _me=["mat-calendar-body",""];function yme(t,r){if(1&t&&(P(0,"tr",0)(1,"td",2),Y(2),R()()),2&t){const l=Z();N(),cr("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),$e("colspan",l.numCols),N(),Re(" ",l.label," ")}}function bme(t,r){if(1&t&&(P(0,"td",2),Y(1),R()),2&t){const l=Z(2);cr("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),$e("colspan",l._firstRowOffset),N(),Re(" ",l._firstRowOffset>=l.labelMinRequiredCells?l.label:""," ")}}function wme(t,r){if(1&t){const l=Oe();P(0,"td",5)(1,"button",6),J("click",function(s){const m=oe(l).$implicit;return le(Z(2)._cellClicked(m,s))})("focus",function(s){const m=oe(l).$implicit;return le(Z(2)._emitActiveDateChange(m,s))}),P(2,"span",7),Y(3),R(),pe(4,"span",8),R()()}if(2&t){const l=r.$implicit,e=r.$index,s=Z().$index,u=Z();cr("width",u._cellWidth)("padding-top",u._cellPadding)("padding-bottom",u._cellPadding),$e("data-mat-row",s)("data-mat-col",e),N(),et("mat-calendar-body-disabled",!l.enabled)("mat-calendar-body-active",u._isActiveCell(s,e))("mat-calendar-body-range-start",u._isRangeStart(l.compareValue))("mat-calendar-body-range-end",u._isRangeEnd(l.compareValue))("mat-calendar-body-in-range",u._isInRange(l.compareValue))("mat-calendar-body-comparison-bridge-start",u._isComparisonBridgeStart(l.compareValue,s,e))("mat-calendar-body-comparison-bridge-end",u._isComparisonBridgeEnd(l.compareValue,s,e))("mat-calendar-body-comparison-start",u._isComparisonStart(l.compareValue))("mat-calendar-body-comparison-end",u._isComparisonEnd(l.compareValue))("mat-calendar-body-in-comparison-range",u._isInComparisonRange(l.compareValue))("mat-calendar-body-preview-start",u._isPreviewStart(l.compareValue))("mat-calendar-body-preview-end",u._isPreviewEnd(l.compareValue))("mat-calendar-body-in-preview",u._isInPreview(l.compareValue)),z("ngClass",l.cssClasses)("tabindex",u._isActiveCell(s,e)?0:-1),$e("aria-label",l.ariaLabel)("aria-disabled",!l.enabled||null)("aria-pressed",u._isSelected(l.compareValue))("aria-current",u.todayValue===l.compareValue?"date":null)("aria-describedby",u._getDescribedby(l.compareValue)),N(),et("mat-calendar-body-selected",u._isSelected(l.compareValue))("mat-calendar-body-comparison-identical",u._isComparisonIdentical(l.compareValue))("mat-calendar-body-today",u.todayValue===l.compareValue),N(),Re(" ",l.displayValue," ")}}function xme(t,r){if(1&t&&(P(0,"tr",3),re(1,bme,2,6,"td",4),lf(2,wme,5,48,"td",9,sf),R()),2&t){const l=r.$implicit,e=r.$index,s=Z();N(),an(1,0===e&&s._firstRowOffset?1:-1),N(),cf(l)}}function Cme(t,r){if(1&t&&(P(0,"th",4)(1,"span",5),Y(2),R(),P(3,"span",6),Y(4),R()()),2&t){const l=r.$implicit;N(2),En(l.long),N(2),En(l.narrow)}}const Sme=["*"];function Dme(t,r){}function Tme(t,r){if(1&t){const l=Oe();P(0,"mat-month-view",2),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("_userSelection",function(s){return oe(l),le(Z()._dateSelected(s))})("dragStarted",function(s){return oe(l),le(Z()._dragStarted(s))})("dragEnded",function(s){return oe(l),le(Z()._dragEnded(s))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)("comparisonStart",l.comparisonStart)("comparisonEnd",l.comparisonEnd)("startDateAccessibleName",l.startDateAccessibleName)("endDateAccessibleName",l.endDateAccessibleName)("activeDrag",l._activeDrag)}}function Mme(t,r){if(1&t){const l=Oe();P(0,"mat-year-view",3),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("monthSelected",function(s){return oe(l),le(Z()._monthSelectedInYearView(s))})("selectedChange",function(s){return oe(l),le(Z()._goToDateInView(s,"month"))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)}}function Ame(t,r){if(1&t){const l=Oe();P(0,"mat-multi-year-view",4),J("activeDateChange",function(s){return oe(l),le(Z().activeDate=s)})("yearSelected",function(s){return oe(l),le(Z()._yearSelectedInMultiYearView(s))})("selectedChange",function(s){return oe(l),le(Z()._goToDateInView(s,"year"))}),R()}if(2&t){const l=Z();z("activeDate",l.activeDate)("selected",l.selected)("dateFilter",l.dateFilter)("maxDate",l.maxDate)("minDate",l.minDate)("dateClass",l.dateClass)}}function Eme(t,r){}const Ime=["button"];function kme(t,r){1&t&&(Ia(),P(0,"svg",3),pe(1,"path",4),R())}const Pme=[[["","matDatepickerToggleIcon",""]]],Rme=["[matDatepickerToggleIcon]"];let XP=(()=>{var t;class r{constructor(){this.changes=new he,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,s){return`${e} \u2013 ${s}`}formatYearRangeLabel(e,s){return`${e} to ${s}`}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac,providedIn:"root"}),r})();class CZ{constructor(r,l,e,s,u={},m=r,b){this.value=r,this.displayValue=l,this.ariaLabel=e,this.enabled=s,this.cssClasses=u,this.compareValue=m,this.rawValue=b}}let Ome=1;const Tie=Ko({passive:!1,capture:!0}),cv=Ko({passive:!0,capture:!0}),y4=Ko({passive:!0});let MS=(()=>{var t;class r{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,s){this._elementRef=e,this._ngZone=s,this._platform=De(Jn),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Ce,this.previewChange=new Ce,this.activeDateChange=new Ce,this.dragStarted=new Ce,this.dragEnded=new Ce,this._didDragSinceMouseDown=!1,this._enterHandler=u=>{if(this._skipNextFocus&&"focus"===u.type)this._skipNextFocus=!1;else if(u.target&&this.isRange){const m=this._getCellFromElement(u.target);m&&this._ngZone.run(()=>this.previewChange.emit({value:m.enabled?m:null,event:u}))}},this._touchmoveHandler=u=>{if(!this.isRange)return;const m=Mie(u),b=m?this._getCellFromElement(m):null;m!==u.target&&(this._didDragSinceMouseDown=!0),DZ(u.target)&&u.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:null!=b&&b.enabled?b:null,event:u}))},this._leaveHandler=u=>{null!==this.previewEnd&&this.isRange&&("blur"!==u.type&&(this._didDragSinceMouseDown=!0),u.target&&this._getCellFromElement(u.target)&&(!u.relatedTarget||!this._getCellFromElement(u.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:u})))},this._mousedownHandler=u=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const m=u.target&&this._getCellFromElement(u.target);!m||!this._isInRange(m.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:m.rawValue,event:u})})},this._mouseupHandler=u=>{if(!this.isRange)return;const m=DZ(u.target);m?m.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const b=this._getCellFromElement(m);this.dragEnded.emit({value:(null==b?void 0:b.rawValue)??null,event:u})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:u})})},this._touchendHandler=u=>{const m=Mie(u);m&&this._mouseupHandler({target:m})},this._id="mat-calendar-body-"+Ome++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,s.runOutsideAngular(()=>{const u=e.nativeElement;u.addEventListener("touchmove",this._touchmoveHandler,Tie),u.addEventListener("mouseenter",this._enterHandler,cv),u.addEventListener("focus",this._enterHandler,cv),u.addEventListener("mouseleave",this._leaveHandler,cv),u.addEventListener("blur",this._leaveHandler,cv),u.addEventListener("mousedown",this._mousedownHandler,y4),u.addEventListener("touchstart",this._mousedownHandler,y4),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,s){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:s})}_emitActiveDateChange(e,s){e.enabled&&this.activeDateChange.emit({value:e.value,event:s})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const s=e.numCols,{rows:u,numCols:m}=this;(e.rows||s)&&(this._firstRowOffset=u&&u.length&&u[0].length?m-u[0].length:0),(e.cellAspectRatio||s||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/m+"%"),(s||!this._cellWidth)&&(this._cellWidth=100/m+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Tie),e.removeEventListener("mouseenter",this._enterHandler,cv),e.removeEventListener("focus",this._enterHandler,cv),e.removeEventListener("mouseleave",this._leaveHandler,cv),e.removeEventListener("blur",this._leaveHandler,cv),e.removeEventListener("mousedown",this._mousedownHandler,y4),e.removeEventListener("touchstart",this._mousedownHandler,y4),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,s){let u=e*this.numCols+s;return e&&(u-=this._firstRowOffset),u==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(In(1)).subscribe(()=>{setTimeout(()=>{const s=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");s&&(e||(this._skipNextFocus=!0),s.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return TZ(e,this.startValue,this.endValue)}_isRangeEnd(e){return MZ(e,this.startValue,this.endValue)}_isInRange(e){return AZ(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return TZ(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,s,u){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let m=this.rows[s][u-1];if(!m){const b=this.rows[s-1];m=b&&b[b.length-1]}return m&&!this._isRangeEnd(m.compareValue)}_isComparisonBridgeEnd(e,s,u){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let m=this.rows[s][u+1];if(!m){const b=this.rows[s+1];m=b&&b[0]}return m&&!this._isRangeStart(m.compareValue)}_isComparisonEnd(e){return MZ(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return AZ(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return TZ(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return MZ(e,this.previewStart,this.previewEnd)}_isInPreview(e){return AZ(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const s=DZ(e);if(s){const u=s.getAttribute("data-mat-row"),m=s.getAttribute("data-mat-col");if(u&&m)return this.rows[parseInt(u)][parseInt(m)]}return null}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Ye))},t.\u0275cmp=xe({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[nn],attrs:_me,decls:7,vars:5,consts:[["aria-hidden","true"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"]],template:function(e,s){1&e&&(re(0,yme,3,6,"tr",0),lf(1,xme,4,1,"tr",3,sf),P(3,"label",1),Y(4),R(),P(5,"label",1),Y(6),R()),2&e&&(an(0,s._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),r})();function SZ(t){return"TD"===(null==t?void 0:t.nodeName)}function DZ(t){var l;let r;return SZ(t)?r=t:SZ(t.parentNode)?r=t.parentNode:SZ(null==(l=t.parentNode)?void 0:l.parentNode)&&(r=t.parentNode.parentNode),null!=(null==r?void 0:r.getAttribute("data-mat-row"))?r:null}function TZ(t,r,l){return null!==l&&r!==l&&t=r&&t===l}function AZ(t,r,l,e){return e&&null!==r&&null!==l&&r!==l&&t>=r&&t<=l}function Mie(t){const r=t.changedTouches[0];return document.elementFromPoint(r.clientX,r.clientY)}class Jo{constructor(r,l){this.start=r,this.end=l}}let dv=(()=>{var t;class r{constructor(e,s){this.selection=e,this._adapter=s,this._selectionChanged=new he,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,s){const u=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:s,oldValue:u})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return(t=r).\u0275fac=function(e){gm()},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Lme=(()=>{var t;class r extends dv{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new r(this._adapter);return e.updateSelection(this.selection,this),e}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(aa))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})();const Aie={provide:dv,deps:[[new Pa,new Wl,dv],aa],useFactory:function Nme(t,r){return t||new Lme(r)}},b4=new ve("MAT_DATE_RANGE_SELECTION_STRATEGY");let Eie=(()=>{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){const s=this._activeDate,u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),this._hasSameMonthAndYear(s,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u,m,b){this._changeDetectorRef=e,this._dateFormats=s,this._dateAdapter=u,this._dir=m,this._rangeStrategy=b,this._rerenderSubscription=bt.EMPTY,this.activeDrag=null,this.selectedChange=new Ce,this._userSelection=new Ce,this.dragStarted=new Ce,this.dragEnded=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnChanges(e){const s=e.comparisonStart||e.comparisonEnd;s&&!s.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const s=e.value,u=this._getDateFromDayOfMonth(s);let m,b;this._selected instanceof Jo?(m=this._getDateInCurrentMonth(this._selected.start),b=this._getDateInCurrentMonth(this._selected.end)):m=b=this._getDateInCurrentMonth(this._selected),(m!==s||b!==s)&&this.selectedChange.emit(u),this._userSelection.emit({value:u,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!vr(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(s,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:s}){var u,m;if(this._rangeStrategy){const b=s?s.rawValue:null,C=this._rangeStrategy.createPreview(b,this.selected,e);if(this._previewStart=this._getCellCompareValue(C.start),this._previewEnd=this._getCellCompareValue(C.end),this.activeDrag&&b){const M=null==(m=(u=this._rangeStrategy).createDrag)?void 0:m.call(u,this.activeDrag.value,this.selected,b,e);M&&(this._previewStart=this._getCellCompareValue(M.start),this._previewEnd=this._getCellCompareValue(M.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){var s,u;if(this.activeDrag)if(e.value){const m=null==(u=null==(s=this._rangeStrategy)?void 0:s.createDrag)?void 0:u.call(s,this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:m??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),s=this._dateAdapter.getDayOfWeekNames("narrow");let m=this._dateAdapter.getDayOfWeekNames("long").map((b,C)=>({long:b,narrow:s[C]}));this._weekdays=m.slice(e).concat(m.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),s=this._dateAdapter.getDateNames();this._weeks=[[]];for(let u=0,m=this._firstWeekOffset;u=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,s){return!(!e||!s||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(s)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(s))}_getCellCompareValue(e){if(e){const s=this._dateAdapter.getYear(e),u=this._dateAdapter.getMonth(e),m=this._dateAdapter.getDate(e);return new Date(s,u,m).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Jo?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(dp,8),V(aa,8),V(Ir,8),V(b4,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,s){if(1&e&&ft(MS,5),2&e){let u;Ne(u=Ve())&&(s._matCalendarBody=u.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[nn],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,s){1&e&&(P(0,"table",0)(1,"thead",1)(2,"tr"),lf(3,Cme,5,2,"th",4,sf),R(),P(5,"tr"),pe(6,"th",2),R()(),P(7,"tbody",3),J("selectedValueChange",function(m){return s._dateSelected(m)})("activeDateChange",function(m){return s._updateActiveDate(m)})("previewChange",function(m){return s._previewChanged(m)})("dragStarted",function(m){return s.dragStarted.emit(m)})("dragEnded",function(m){return s._dragEnded(m)})("keyup",function(m){return s._handleCalendarBodyKeyup(m)})("keydown",function(m){return s._handleCalendarBodyKeydown(m)}),R()()),2&e&&(N(3),cf(s._weekdays),N(4),z("label",s._monthLabel)("rows",s._weeks)("todayValue",s._todayDate)("startValue",s._rangeStart)("endValue",s._rangeEnd)("comparisonStart",s._comparisonRangeStart)("comparisonEnd",s._comparisonRangeEnd)("previewStart",s._previewStart)("previewEnd",s._previewEnd)("isRange",s._isRange)("labelMinRequiredCells",3)("activeCell",s._dateAdapter.getDate(s.activeDate)-1)("startDateAccessibleName",s.startDateAccessibleName)("endDateAccessibleName",s.endDateAccessibleName))},dependencies:[MS],encapsulation:2,changeDetection:0}),r})();const Dl=24;let Iie=(()=>{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){let s=this._activeDate;const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),kie(this._dateAdapter,s,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u){this._changeDetectorRef=e,this._dateAdapter=s,this._dir=u,this._rerenderSubscription=bt.EMPTY,this.selectedChange=new Ce,this.yearSelected=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const s=this._dateAdapter.getYear(this._activeDate)-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let u=0,m=[];uthis._createCellForYear(b))),m=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const s=e.value,u=this._dateAdapter.createDate(s,0,1),m=this._getDateFromYear(s);this.yearSelected.emit(u),this.selectedChange.emit(m)}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Dl-KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-Dl:-Dl);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*Dl:Dl);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(s,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return KP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const s=this._dateAdapter.getMonth(this.activeDate),u=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,s,1));return this._dateAdapter.createDate(e,s,Math.min(this._dateAdapter.getDate(this.activeDate),u))}_createCellForYear(e){const s=this._dateAdapter.createDate(e,0,1),u=this._dateAdapter.getYearName(s),m=this.dateClass?this.dateClass(s,"multi-year"):void 0;return new CZ(e,u,u,this._shouldEnableYear(e),m)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{var t;class r{get activeDate(){return this._activeDate}set activeDate(e){let s=this._activeDate;const u=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(u,this.minDate,this.maxDate),this._dateAdapter.getYear(s)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,s,u,m){this._changeDetectorRef=e,this._dateFormats=s,this._dateAdapter=u,this._dir=m,this._rerenderSubscription=bt.EMPTY,this.selectedChange=new Ce,this.monthSelected=new Ce,this.activeDateChange=new Ce,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const s=e.value,u=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),s,1);this.monthSelected.emit(u);const m=this._getDateFromMonth(s);this.selectedChange.emit(m)}_updateActiveDate(e){const u=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(u,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const s=this._activeDate,u=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,u?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,u?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(s,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(s=>s.map(u=>this._createCellForMonth(u,e[u]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),u=this._dateAdapter.getNumDaysInMonth(s);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),u))}_createCellForMonth(e,s){const u=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),m=this._dateAdapter.format(u,this._dateFormats.display.monthYearA11yLabel),b=this.dateClass?this.dateClass(u,"year"):void 0;return new CZ(e,s.toLocaleUpperCase(),m,this._shouldEnableMonth(e),b)}_shouldEnableMonth(e){const s=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(s,e)||this._isYearAndMonthBeforeMinDate(s,e))return!1;if(!this.dateFilter)return!0;for(let m=this._dateAdapter.createDate(s,e,1);this._dateAdapter.getMonth(m)==e;m=this._dateAdapter.addCalendarDays(m,1))if(this.dateFilter(m))return!0;return!1}_isYearAndMonthAfterMaxDate(e,s){if(this.maxDate){const u=this._dateAdapter.getYear(this.maxDate),m=this._dateAdapter.getMonth(this.maxDate);return e>u||e===u&&s>m}return!1}_isYearAndMonthBeforeMinDate(e,s){if(this.minDate){const u=this._dateAdapter.getYear(this.minDate),m=this._dateAdapter.getMonth(this.minDate);return e{var t;class r{constructor(e,s,u,m,b){this._intl=e,this.calendar=s,this._dateAdapter=u,this._dateFormats=m,this._id="mat-calendar-header-"+Ume++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>b.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Dl)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Dl)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,s){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(s)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(s):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(s):kie(this._dateAdapter,e,s,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const s=this._dateAdapter.getYear(this.calendar.activeDate)-KP(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),u=s+Dl-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(s,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(u,0,1))]}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(Jt(()=>kZ)),V(aa,8),V(dp,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Sme,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(e,s){1&e&&(jn(),P(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){return s.currentPeriodClicked()}),P(3,"span",3),Y(4),R(),Ia(),P(5,"svg",4),pe(6,"polygon",5),R()(),Bd(),pe(7,"div",6),dt(8),P(9,"button",7),J("click",function(){return s.previousClicked()}),R(),P(10,"button",8),J("click",function(){return s.nextClicked()}),R()()(),P(11,"label",9),Y(12),R()),2&e&&(N(2),$e("aria-label",s.periodButtonLabel)("aria-describedby",s._periodButtonLabelId),N(2),En(s.periodButtonText),N(),et("mat-calendar-invert","month"!==s.calendar.currentView),N(4),z("disabled",!s.previousEnabled()),$e("aria-label",s.prevButtonLabel),N(),z("disabled",!s.nextEnabled()),$e("aria-label",s.nextButtonLabel),N(),z("id",s._periodButtonLabelId),N(),En(s.periodButtonDescription))},dependencies:[Pn,wc],encapsulation:2,changeDetection:0}),r})(),kZ=(()=>{var t;class r{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const s=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),s&&this.viewChanged.emit(s)}constructor(e,s,u,m){this._dateAdapter=s,this._dateFormats=u,this._changeDetectorRef=m,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Ce,this.yearSelected=new Ce,this.monthSelected=new Ce,this.viewChanged=new Ce(!0),this._userSelection=new Ce,this._userDragDrop=new Ce,this._activeDrag=null,this.stateChanges=new he,this._intlChanges=e.changes.subscribe(()=>{m.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Vu(this.headerComponent||jme),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const s=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,u=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,m=s||u||e.dateFilter;if(m&&!m.firstChange){const b=this._getCurrentViewComponent();b&&(this._changeDetectorRef.detectChanges(),b._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const s=e.value;(this.selected instanceof Jo||s&&!this._dateAdapter.sameDate(s,this.selected))&&this.selectedChange.emit(s),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,s){this.activeDate=e,this.currentView=s}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(aa,8),V(dp,8),V(dn))},t.\u0275cmp=xe({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,s){if(1&e&&(ft(Eie,5),ft(Rie,5),ft(Iie,5)),2&e){let u;Ne(u=Ve())&&(s.monthView=u.first),Ne(u=Ve())&&(s.yearView=u.first),Ne(u=Ve())&&(s.multiYearView=u.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Je([Aie]),nn],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,s){if(1&e&&(re(0,Dme,0,0,"ng-template",0),P(1,"div",1),re(2,Tme,1,11)(3,Mme,1,6)(4,Ame,1,6),R()),2&e){let u;z("cdkPortalOutlet",s._calendarHeaderPortal),N(2),an(2,"month"===(u=s.currentView)?2:"year"===u?3:"multi-year"===u?4:-1)}},dependencies:[U1,_c,Eie,Rie,Iie],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),r})();const Oie={transformPanel:Vi("transformPanel",[Cn("void => enter-dropdown",kn("120ms cubic-bezier(0, 0, 0.2, 1)",nv([lt({opacity:0,transform:"scale(1, 0.8)"}),lt({opacity:1,transform:"scale(1, 1)"})]))),Cn("void => enter-dialog",kn("150ms cubic-bezier(0, 0, 0.2, 1)",nv([lt({opacity:0,transform:"scale(0.7)"}),lt({transform:"none",opacity:1})]))),Cn("* => void",kn("100ms linear",lt({opacity:0})))]),fadeInCalendar:Vi("fadeInCalendar",[Vn("void",lt({opacity:0})),Vn("enter",lt({opacity:1})),Cn("void => *",kn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Gme=0;const Lie=new ve("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const t=De(Mi);return()=>t.scrollStrategies.reposition()}}),$me={provide:Lie,deps:[Mi],useFactory:function Wme(t){return()=>t.scrollStrategies.reposition()}},Yme=tv(class{constructor(t){this._elementRef=t}});let qme=(()=>{var t;class r extends Yme{constructor(e,s,u,m,b,C){super(e),this._changeDetectorRef=s,this._globalModel=u,this._dateAdapter=m,this._rangeSelectionStrategy=b,this._subscriptions=new bt,this._animationDone=new he,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=C.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const s=this._model.selection,u=e.value,m=s instanceof Jo;if(m&&this._rangeSelectionStrategy){const b=this._rangeSelectionStrategy.selectionFinished(u,s,e.event);this._model.updateSelection(b,this)}else u&&(m||!this._dateAdapter.sameDate(u,s))&&this._model.add(u);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,s){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,s&&this._changeDetectorRef.detectChanges()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(dv),V(aa),V(b4,8),V(XP))},t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,s){if(1&e&&ft(kZ,5),2&e){let u;Ne(u=Ve())&&(s._calendar=u.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,s){1&e&&Z_("@transformPanel.start",function(m){return s._handleAnimationEvent(m)})("@transformPanel.done",function(m){return s._handleAnimationEvent(m)}),2&e&&(cx("@transformPanel",s._animationState),et("mat-datepicker-content-touch",s.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ze],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,s){if(1&e&&(P(0,"div",0)(1,"mat-calendar",1),J("yearSelected",function(m){return s.datepicker._selectYear(m)})("monthSelected",function(m){return s.datepicker._selectMonth(m)})("viewChanged",function(m){return s.datepicker._viewChanged(m)})("_userSelection",function(m){return s._handleUserSelection(m)})("_userDragDrop",function(m){return s._handleUserDragDrop(m)}),R(),re(2,Eme,0,0,"ng-template",2),P(3,"button",3),J("focus",function(){return s._closeButtonFocused=!0})("blur",function(){return s._closeButtonFocused=!1})("click",function(){return s.datepicker.close()}),Y(4),R()()),2&e){let u;et("mat-datepicker-content-container-with-custom-header",s.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",s._actionsPortal),$e("aria-modal",!0)("aria-labelledby",null!==(u=s._dialogLabelId)&&void 0!==u?u:void 0),N(),z("id",s.datepicker.id)("ngClass",s.datepicker.panelClass)("startAt",s.datepicker.startAt)("startView",s.datepicker.startView)("minDate",s.datepicker._getMinDate())("maxDate",s.datepicker._getMaxDate())("dateFilter",s.datepicker._getDateFilter())("headerComponent",s.datepicker.calendarHeaderComponent)("selected",s._getSelected())("dateClass",s.datepicker.dateClass)("comparisonStart",s.comparisonStart)("comparisonEnd",s.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",s.startDateAccessibleName)("endDateAccessibleName",s.endDateAccessibleName),N(),z("cdkPortalOutlet",s._actionsPortal),N(),et("cdk-visually-hidden",!s._closeButtonFocused),z("color",s.color||"primary"),N(),En(s._closeButtonText)}},dependencies:[To,Pn,RY,_c,kZ],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Oie.transformPanel,Oie.fadeInCalendar]},changeDetection:0}),r})(),Fie=(()=>{var t;class r{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ot(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const s=Ot(e);s!==this._disabled&&(this._disabled=s,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ot(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=fk(e)}get opened(){return this._opened}set opened(e){Ot(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,s,u,m,b,C,M){this._overlay=e,this._ngZone=s,this._viewContainerRef=u,this._dateAdapter=b,this._dir=C,this._model=M,this._inputStateChanges=bt.EMPTY,this._document=De(yt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Ce,this.monthSelected=new Ce,this.viewChanged=new Ce(!0),this.openedStream=new Ce,this.closedStream=new Ce,this._opened=!1,this.id="mat-datepicker-"+Gme++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new he,this._scrollStrategy=m}ngOnChanges(e){const s=e.xPosition||e.yPosition;if(s&&!s.firstChange&&this._overlayRef){const u=this._overlayRef.getConfig().positionStrategy;u instanceof N5&&(this._setConnectedPositions(u),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){var s;this._actionsPortal=e,null==(s=this._componentRef)||s.instance._assignActions(e,!0)}removeActions(e){var s;e===this._actionsPortal&&(this._actionsPortal=null,null==(s=this._componentRef)||s.instance._assignActions(null,!0))}open(){var e;this._opened||this.disabled||null!=(e=this._componentRef)&&e.instance._isAnimating||(this._focusedElementBeforeOpen=pb(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){var u;if(!this._opened||null!=(u=this._componentRef)&&u.instance._isAnimating)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,s=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:m,location:b}=this._componentRef;m._startExitAnimation(),m._animationDone.pipe(In(1)).subscribe(()=>{const C=this._document.activeElement;e&&(!C||C===this._document.activeElement||b.nativeElement.contains(C))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(s):s()}_applyPendingSelection(){var e,s;null==(s=null==(e=this._componentRef)?void 0:e.instance)||s._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,s=new Vu(qme,this._viewContainerRef),u=this._overlayRef=this._overlay.create(new zu({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(u).subscribe(m=>{m&&m.preventDefault(),this.close()}),u.keydownEvents().subscribe(m=>{const b=m.keyCode;(38===b||40===b||37===b||39===b||33===b||34===b)&&m.preventDefault()}),this._componentRef=u.attach(s),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(In(1)).subscribe(()=>u.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const s="end"===this.xPosition?"end":"start",u="start"===s?"end":"start",m="above"===this.yPosition?"bottom":"top",b="top"===m?"bottom":"top";return e.withPositions([{originX:s,originY:b,overlayX:s,overlayY:m},{originX:s,originY:m,overlayX:s,overlayY:b},{originX:u,originY:b,overlayX:u,overlayY:m},{originX:u,originY:m,overlayX:u,overlayY:b}])}_getCloseStream(e){const s=["ctrlKey","shiftKey","metaKey"];return xi(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(bn(u=>27===u.keyCode&&!vr(u)||this.datepickerInput&&vr(u,"altKey")&&38===u.keyCode&&s.every(m=>!vr(u,m)))))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Mi),V(Ye),V(fi),V(Lie),V(aa,8),V(Ir,8),V(dv))},t.\u0275dir=ce({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[nn]}),r})(),Nie=(()=>{var t;class r extends Fie{}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Je([Aie,{provide:Fie,useExisting:t}]),ze],decls:0,vars:0,template:function(e,s){},encapsulation:2,changeDetection:0}),r})();class w4{constructor(r,l){this.target=r,this.targetElement=l,this.value=this.target.value}}let Zme=(()=>{var t;class r{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const s=Ot(e),u=this._elementRef.nativeElement;this._disabled!==s&&(this._disabled=s,this.stateChanges.next(void 0)),s&&this._isInitialized&&u.blur&&u.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(s=>{if(this._shouldHandleChangeEvent(s)){const u=this._getValueFromModel(s.selection);this._lastValueValid=this._isValidValue(u),this._cvaOnChange(u),this._onTouched(),this._formatValue(u),this.dateInput.emit(new w4(this,this._elementRef.nativeElement)),this.dateChange.emit(new w4(this,this._elementRef.nativeElement))}})}constructor(e,s,u){this._elementRef=e,this._dateAdapter=s,this._dateFormats=u,this.dateChange=new Ce,this.dateInput=new Ce,this.stateChanges=new he,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=bt.EMPTY,this._localeSubscription=bt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value));return!b||this._matchesFilter(b)?null:{matDatepickerFilter:!0}},this._minValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),C=this._getMinDate();return!C||!b||this._dateAdapter.compareDate(C,b)<=0?null:{matDatepickerMin:{min:C,actual:b}}},this._maxValidator=m=>{const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),C=this._getMaxDate();return!C||!b||this._dateAdapter.compareDate(C,b)>=0?null:{matDatepickerMax:{max:C,actual:b}}},this._lastValueValid=!1,this._localeSubscription=s.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Xme(t,r){const l=Object.keys(t);for(let e of l){const{previousValue:s,currentValue:u}=t[e];if(!r.isDateInstance(s)||!r.isDateInstance(u))return!0;if(!r.sameDate(s,u))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){vr(e,"altKey")&&40===e.keyCode&&["ctrlKey","shiftKey","metaKey"].every(m=>!vr(e,m))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const s=this._lastValueValid;let u=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(u),u=this._dateAdapter.getValidDateOrNull(u);const m=!this._dateAdapter.sameDate(u,this.value);!u||m?this._cvaOnChange(u):(e&&!this.value&&this._cvaOnChange(u),s!==this._lastValueValid&&this._validatorOnChange()),m&&(this._assignValue(u),this.dateInput.emit(new w4(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new w4(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const s=this._getDateFilter();return!s||s(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(aa,8),V(dp,8))},t.\u0275dir=ce({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[nn]}),r})();const Kme={provide:Pr,useExisting:Jt(()=>x4),multi:!0},Qme={provide:Ei,useExisting:Jt(()=>x4),multi:!0};let x4=(()=>{var t;class r extends Zme{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(s,this._min)||(this._min=s,this._validatorOnChange())}get max(){return this._max}set max(e){const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(s,this._max)||(this._max=s,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const s=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==s&&this._validatorOnChange()}constructor(e,s,u,m){super(e,s,u),this._formField=m,this._closedSubscription=bt.EMPTY,this._validator=hS.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(aa,8),V(dp,8),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,s){1&e&&J("input",function(m){return s._onInput(m.target.value)})("change",function(){return s._onChange()})("blur",function(){return s._onBlur()})("keydown",function(m){return s._onKeydown(m)}),2&e&&(Ba("disabled",s.disabled),$e("aria-haspopup",s._datepicker?"dialog":null)("aria-owns",(null==s._datepicker?null:s._datepicker.opened)&&s._datepicker.id||null)("min",s.min?s._dateAdapter.toIso8601(s.min):null)("max",s.max?s._dateAdapter.toIso8601(s.max):null)("data-mat-calendar",s._datepicker?s._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Je([Kme,Qme,{provide:Xne,useExisting:t}]),ze]}),r})(),Jme=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),r})(),Vie=(()=>{var t;class r{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ot(e)}constructor(e,s,u){this._intl=e,this._changeDetectorRef=s,this._stateChanges=bt.EMPTY;const m=Number(u);this.tabIndex=m||0===m?m:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:tt(),s=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:tt(),u=this.datepicker?xi(this.datepicker.openedStream,this.datepicker.closedStream):tt();this._stateChanges.unsubscribe(),this._stateChanges=xi(this._intl.changes,e,s,u).subscribe(()=>this._changeDetectorRef.markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(XP),V(dn),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Jme,5),2&e){let m;Ne(m=Ve())&&(s._customIcon=m.first)}},viewQuery:function(e,s){if(1&e&&ft(Ime,5),2&e){let u;Ne(u=Ve())&&(s._button=u.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,s){1&e&&J("click",function(m){return s._open(m)}),2&e&&($e("tabindex",null)("data-mat-calendar",s.datepicker?s.datepicker.id:null),et("mat-datepicker-toggle-active",s.datepicker&&s.datepicker.opened)("mat-accent",s.datepicker&&"accent"===s.datepicker.color)("mat-warn",s.datepicker&&"warn"===s.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[nn],ngContentSelectors:Rme,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,s){1&e&&(jn(Pme),P(0,"button",0,1),re(2,kme,2,0,":svg:svg",2),dt(3),R()),2&e&&(z("disabled",s.disabled)("disableRipple",s.disableRipple),$e("aria-haspopup",s.datepicker?"dialog":null)("aria-label",s.ariaLabel||s._intl.openCalendarLabel)("tabindex",s.disabled?-1:s.tabIndex),N(2),an(2,s._customIcon?-1:2))},dependencies:[wc],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),r})(),nge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[XP,$me],imports:[Er,hp,Hu,j1,gl,$t,np]}),r})();const ige=["button"],rge=["*"],zie=new ve("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Hie=new ve("MatButtonToggleGroup"),age={provide:Pr,useExisting:Jt(()=>Gie),multi:!0};let Uie=0;class jie{constructor(r,l){this.source=r,this.value=l}}let Gie=(()=>{var t;class r{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(s=>s.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}constructor(e,s){this._changeDetector=e,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+Uie++,this.valueChange=new Ce,this.change=new Ce,this.appearance=s&&s.appearance?s.appearance:"standard"}ngOnInit(){this._selectionModel=new UP(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const s=new jie(e,this.value);this._rawValue=s.value,this._controlValueAccessorChangeFn(s.value),this.change.emit(s)}_syncButtonToggle(e,s,u=!1,m=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?s?this._selectionModel.select(e):this._selectionModel.deselect(e):m=!0,m?Promise.resolve().then(()=>this._updateModelValue(e,u)):this._updateModelValue(e,u)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(s=>null!=e.value&&s===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(s=>this._selectValue(s))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const s=this._buttonToggles.find(u=>null!=u.value&&u.value===e);s&&(s.checked=!0,this._selectionModel.select(s))}_updateModelValue(e,s){s&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){var e;null==(e=this._buttonToggles)||e.forEach(s=>s._markForCheck())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(zie,8))},t.\u0275dir=ce({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,Wie,5),2&e){let m;Ne(m=Ve())&&(s._buttonToggles=m)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,s){2&e&&($e("aria-disabled",s.disabled),et("mat-button-toggle-vertical",s.vertical)("mat-button-toggle-group-appearance-standard","standard"===s.appearance))},inputs:{appearance:"appearance",name:"name",vertical:["vertical","vertical",jt],value:"value",multiple:["multiple","multiple",jt],disabled:["disabled","disabled",jt]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Je([age,{provide:Hie,useExisting:t}]),na]}),r})(),Wie=(()=>{var t;class r{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}constructor(e,s,u,m,b,C){this._changeDetectorRef=s,this._elementRef=u,this._focusMonitor=m,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ce;const M=Number(b);this.tabIndex=M||0===M?M:null,this.buttonToggleGroup=e,this.appearance=C&&C.appearance?C.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+Uie++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new jie(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Hie,8),V(dn),V(je),V(uo),Ie("tabindex"),V(zie,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(e,s){if(1&e&&ft(ige,5),2&e){let u;Ne(u=Ve())&&(s._buttonElement=u.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,s){1&e&&J("focus",function(){return s.focus()}),2&e&&($e("aria-label",null)("aria-labelledby",null)("id",s.id)("name",null),et("mat-button-toggle-standalone",!s.buttonToggleGroup)("mat-button-toggle-checked",s.checked)("mat-button-toggle-disabled",s.disabled)("mat-button-toggle-appearance-standard","standard"===s.appearance))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:["disableRipple","disableRipple",jt],appearance:"appearance",checked:["checked","checked",jt],disabled:["disabled","disabled",jt]},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[na],ngContentSelectors:rge,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,s){if(1&e&&(jn(),P(0,"button",0,1),J("click",function(){return s._onButtonClick()}),P(2,"span",2),dt(3),R()(),pe(4,"span",3)(5,"span",4)),2&e){const u=pn(1);z("id",s.buttonId)("disabled",s.disabled||null),$e("tabindex",s.disabled?-1:s.tabIndex)("aria-pressed",s.checked)("name",s._getButtonName())("aria-label",s.ariaLabel)("aria-labelledby",s.ariaLabelledby),N(5),z("matRippleTrigger",u)("matRippleDisabled",s.disableRipple||s.disabled)}},dependencies:[bl],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-text-font)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-text-font)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),r})(),oge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,Wu,$t]}),r})();function sge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit rule"),R())}function lge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New rule"),R())}function cge(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function dge(t,r){if(1&t&&(P(0,"mat-option",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function uge(t,r){if(1&t&&(P(0,"mat-button-toggle",22),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.value," ")}}function hge(t,r){if(1&t){const l=Oe();P(0,"div",23)(1,"span",24)(2,"uds-translate"),Y(3,"Weekdays"),R()(),P(4,"mat-button-toggle-group",25),J("ngModelChange",function(s){return oe(l),le(Z().wDays=s)}),re(5,uge,2,2,"mat-button-toggle",8),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.wDays),N(),z("ngForOf",l.weekDays)}}function fge(t,r){if(1&t){const l=Oe();P(0,"mat-form-field",9)(1,"mat-label")(2,"uds-translate"),Y(3,"Repeat every"),R()(),P(4,"input",6),J("ngModelChange",function(s){return oe(l),le(Z().rule.interval=s)}),R(),P(5,"div",26),Y(6),R()()}if(2&t){const l=Z();N(4),z("ngModel",l.rule.interval),N(2),Re("\xa0",l.frequency(),"")}}const C4={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},S4={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},$ie=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Yie=(t,r=!1)=>{const l=new Array;for(let e=0;e<7;e++)1&t&&l.push($ie[e].substr(0,r?100:3)),t>>=1;return l.length?l.join(", "):django.gettext("(no days)")};let qie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.dunits=Object.keys(S4).map(b=>({id:b,value:S4[b]})),this.freqs=Object.keys(C4).map(b=>({id:b,value:C4[b][2]})),this.weekDays=$ie.map((b,C)=>({id:1<{if(this.rule=e,this.startDate=new Date(1e3*this.rule.start),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(1e3*this.rule.end):null,"WEEKDAYS"===this.rule.frequency){const s=[];for(let u=0;u<7;u++)this.rule.interval&1<this.rule.interval+=s),0===this.rule.interval)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD");const s=EP(django.get_format("SHORT_DATE_FORMAT")),u=this.updateRuleData();if(null===u){e=django.gettext("This rule will be valid every"),e+="WEEKDAYS"===this.rule.frequency?" "+Yie(this.rule.interval,!0)+" "+django.gettext("of any week"):" "+ +this.rule.interval+" "+this.frequency();const m=new Date(1e3*this.rule.start);e+=", "+django.gettext("from")+" "+iv(s,m),e+=this.rule.end?" "+django.gettext("until")+" "+iv(s,new Date(1e3*this.rule.end)):" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+m.toTimeString().split(":").slice(0,2).join(":"),e+=+this.rule.duration>0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+S4[this.rule.duration_unit]:django.gettext("with no duration")}return e.replace("$FIELD",u)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(e,s){if(1&e&&(P(0,"h4",0),re(1,sge,2,0,"uds-translate",1)(2,lge,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Name"),R()(),P(9,"input",3),J("ngModelChange",function(m){return s.rule.name=m}),R()(),P(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),Y(13,"Comments"),R()(),P(14,"input",3),J("ngModelChange",function(m){return s.rule.comments=m}),R()(),P(15,"h3")(16,"uds-translate"),Y(17,"Event"),R()(),P(18,"mat-form-field",4)(19,"mat-label")(20,"uds-translate"),Y(21,"Start time"),R()(),P(22,"input",5),J("ngModelChange",function(m){return s.startTime=m}),R()(),P(23,"mat-form-field",4)(24,"mat-label")(25,"uds-translate"),Y(26,"Duration"),R()(),P(27,"input",6),J("ngModelChange",function(m){return s.rule.duration=m}),R()(),P(28,"mat-form-field",4)(29,"mat-label")(30,"uds-translate"),Y(31,"Duration units"),R()(),P(32,"mat-select",7),J("ngModelChange",function(m){return s.rule.duration_unit=m}),re(33,cge,2,2,"mat-option",8),R()(),P(34,"h3"),Y(35," Repetition "),R(),P(36,"mat-form-field",9)(37,"mat-label")(38,"uds-translate"),Y(39," Start date "),R()(),P(40,"input",10),J("ngModelChange",function(m){return s.startDate=m}),R(),pe(41,"mat-datepicker-toggle",11)(42,"mat-datepicker",null,12),R(),P(44,"mat-form-field",9)(45,"mat-label")(46,"uds-translate"),Y(47," Repeat until date "),R()(),P(48,"input",13),J("ngModelChange",function(m){return s.endDate=m}),R(),pe(49,"mat-datepicker-toggle",11)(50,"mat-datepicker",null,14),R(),P(52,"div",15)(53,"mat-form-field",9)(54,"mat-label")(55,"uds-translate"),Y(56,"Frequency"),R()(),P(57,"mat-select",16),J("ngModelChange",function(m){return s.rule.frequency=m})("valueChange",function(){return s.rule.interval=1}),re(58,dge,2,2,"mat-option",8),R()(),re(59,hge,6,2,"div",17)(60,fge,7,2,"mat-form-field",18),R(),P(61,"h3")(62,"uds-translate"),Y(63,"Summary"),R()(),P(64,"div",19),Y(65),R()()(),P(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),Y(69,"Cancel"),R()(),P(70,"button",21),J("click",function(){return s.save()}),P(71,"uds-translate"),Y(72,"Ok"),R()()()),2&e){const u=pn(43),m=pn(51);N(),z("ngIf",s.rule.id),N(),z("ngIf",!s.rule.id),N(7),z("ngModel",s.rule.name),N(5),z("ngModel",s.rule.comments),N(8),z("ngModel",s.startTime),N(5),z("ngModel",s.rule.duration),N(5),z("ngModel",s.rule.duration_unit),N(),z("ngForOf",s.dunits),N(7),z("matDatepicker",u)("ngModel",s.startDate),N(),z("for",u),N(7),z("matDatepicker",m)("ngModel",s.endDate)("placeholder",s.FOREVER_STRING),N(),z("for",m),N(8),z("ngModel",s.rule.frequency),N(),z("ngForOf",s.freqs),N(),z("ngIf","WEEKDAYS"===s.rule.frequency),N(),z("ngIf","WEEKDAYS"!==s.rule.frequency)("ngIfAnd","NEVER"!==s.rule.frequency),N(5),Re(" ",s.summary()," "),N(5),z("disabled",null!==s.updateRuleData()||""===s.rule.name)}},dependencies:[mi,xn,$i,sv,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,vS,Sa,Ya,Ni,Nie,x4,Vie,Gie,Wie,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),r})();function mge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Rules"),R())}function gge(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,mge,2,0,"ng-template",9),P(5,"div",10)(6,"uds-table",11),J("newAction",function(s){return oe(l),le(Z().onNewRule(s))})("editAction",function(s){return oe(l),le(Z().onEditRule(s))})("deleteAction",function(s){return oe(l),le(Z().onDeleteRule(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("rest",l.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("tableId","calendars-d-rules"+l.calendar.id)("pageSize",l.api.config.admin.page_size)}}const vge=t=>["/pools","calendars",t];let _ge=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.calendarRules={}}ngOnInit(){const e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(s=>{this.calendar=s,this.calendarRules=this.rest.calendars.detail(s.id,"rules")})}onNewRule(e){qie.launch(this.api,this.calendarRules).subscribe(()=>e.table.overview())}onEditRule(e){qie.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.overview())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){(t=>{t.interval="WEEKDAYS"===t.frequency?Yie(t.interval):t.interval+" "+C4[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+S4[t.duration_unit]})(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,gge,7,7,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,vge,s.calendar?s.calendar.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/calendars.png"),Ut),N(),Re(" ",null==s.calendar?null:s.calendar.name," "),N(),z("ngIf",s.calendar))},dependencies:[xn,mr,As,Es,Cl,vn,hi],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),r})();const yge='event'+django.gettext("Set time mark")+"";let Zie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.cButtons=[{id:"timemark",html:yge,type:gi.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){const s=e.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",s.name)).then(u=>{u&&this.rest.accounts.timemark(s.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=78793200===e.time_mark?django.gettext("No time mark"):Ms("SHORT_DATE_FORMAT",e.time_mark)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.onTimeMark(m)})("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("detailAction",function(m){return s.onDetail(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)("onItem",s.processElement)},dependencies:[hi]}),r})();function bge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Account usage"),R())}function wge(t,r){if(1&t){const l=Oe();P(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),re(4,bge,2,0,"ng-template",9),P(5,"div",10)(6,"uds-table",11),J("deleteAction",function(s){return oe(l),le(Z().onDeleteUsage(s))}),R()()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(4),z("rest",l.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",l.processElement)("tableId","account-d-usage"+l.account.id)}}const xge=t=>["/pools","accounts",t];let Cge=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u,this.accountUsage={}}ngOnInit(){const e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(s=>{this.account=s,this.accountUsage=this.rest.accounts.detail(s.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),Y(4,"arrow_back"),R()(),Y(5," \xa0"),pe(6,"img",4),Y(7),R(),re(8,wge,7,6,"div",5),R()),2&e&&(N(2),z("routerLink",dc(4,xge,s.account?s.account.id:"")),N(4),z("src",s.api.staticURL("admin/img/icons/accounts.png"),Ut),N(),Re(" ",null==s.account?null:s.account.name," "),N(),z("ngIf",s.account))},dependencies:[xn,mr,As,Es,Cl,vn,hi]}),r})();function Sge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"New image for"),R())}function Dge(t,r){1&t&&(P(0,"uds-translate"),Y(1,"Edit for"),R())}let Xie=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.onSave=new Ce(!0),this.preview="",this.image={id:void 0,data:"",name:""},m.image&&(this.image.id=m.image.id)}static launch(e,s=null){const u=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(r,{width:u,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:s},disableClose:!0}).componentInstance.onSave}onFileChanged(e){const s=e.target;if(!s.files||0===s.files.length)return;const u=s.files[0];if(u.size>262144)return void this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));if(!["image/jpeg","image/png","image/gif"].includes(u.type))return void this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));const m=new FileReader;m.onload=b=>{const C=m.result;this.preview=C,this.image.data=C.substr(C.indexOf("base64,")+7),this.image.name||(this.image.name=u.name)},m.readAsDataURL(u)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){const e=this.api.config.image_size[0],s=this.api.config.image_size[1],u={"width.px":e,"height.px":s,"background-size":e+"px "+s+"px","background-image":"none"};return this.preview&&(u["background-image"]="url("+this.preview+")"),u}save(){this.image.name&&this.image.data?this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,s){if(1&e){const u=Oe();P(0,"h4",0),re(1,Sge,2,0,"uds-translate",1)(2,Dge,2,0,"uds-translate",1),R(),P(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),Y(8,"Image name"),R()(),P(9,"input",3),J("ngModelChange",function(b){return s.image.name=b}),R()(),P(10,"input",4,5),J("change",function(b){return s.onFileChanged(b)}),R(),P(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),Y(15,"Image (click to change)"),R()(),P(16,"input",6),J("click",function(){return oe(u),le(pn(11).click())}),R(),P(17,"div",7),J("click",function(){return oe(u),le(pn(11).click())}),pe(18,"div",8),R()(),P(19,"div",9)(20,"uds-translate"),Y(21,' For optimal results, use "squared" images. '),R(),P(22,"uds-translate"),Y(23," The image will be resized on upload to "),R(),Y(24),R()()(),P(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),Y(28,"Cancel"),R()(),P(29,"button",11),J("click",function(){return s.save()}),P(30,"uds-translate"),Y(31,"Ok"),R()()()}2&e&&(N(),z("ngIf",!s.image.id),N(),z("ngIf",s.image.id),N(7),z("ngModel",s.image.name),N(7),z("hidden",!0),N(2),z("ngStyle",s.background()),N(6),eg(" ",s.api.config.image_size[0],"x",s.api.config.image_size[1]," "))},dependencies:[xn,fE,$i,A,ii,Pn,Io,zi,Ai,Hi,ri,Ci,Sa,vn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),r})(),Kie=(()=>{var t;class r{constructor(e,s,u){this.route=e,this.rest=s,this.api=u}ngOnInit(){}onNew(e){Xie.launch(this.api).subscribe(()=>e.table.overview())}onEdit(e){Xie.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.overview())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){!0===e.param&&e.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Wn),V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)})("loaded",function(m){return s.onLoad(m)}),R()),2&e&&z("rest",s.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),r})();const Tge='assessment'+django.gettext("Generate report")+"";function Ege(t,r){1&t&&Y(0),2&t&&Re(" ",Z().$implicit," ")}function Ige(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",18),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("type",s.config[e][l].crypt?"password":"text")("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function kge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"textarea",19),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Pge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",20),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Rge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),Y(3),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(2),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help),N(),Re(" ",l," ")}}function Oge(t,r){if(1&t&&(P(0,"mat-option",24),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}function Lge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"mat-select",22),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),re(5,Oge,2,2,"mat-option",23),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),Re(" ",l," "),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help),N(),z("ngForOf",s.config[e][l].params)}}function Fge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",25),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Nge(t,r){1&t&&ao(0)}function Vge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",26),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function Bge(t,r){if(1&t){const l=Oe();P(0,"div")(1,"mat-form-field")(2,"mat-label"),Y(3),R(),P(4,"input",27),J("ngModelChange",function(s){oe(l);const u=Z(2).$implicit,m=Z().$implicit;return le(Z(2).config[m][u].value=s)}),R()()()}if(2&t){const l=Z(2).$implicit,e=Z().$implicit,s=Z(2);N(3),En(l),N(),z("ngModel",s.config[e][l].value)("matTooltip",s.config[e][l].help)}}function zge(t,r){if(1&t&&(An(0,15),re(1,Ige,5,4,"div",16)(2,kge,5,3,"div",16)(3,Pge,5,3,"div",16)(4,Rge,4,3,"div",16)(5,Lge,6,4,"div",16)(6,Fge,5,3,"div",16)(7,Nge,1,0,"ng-container",16)(8,Vge,5,3,"div",16)(9,Bge,5,3,"div",17),On()),2&t){const l=Z().$implicit,e=Z().$implicit;z("ngSwitch",Z(2).config[e][l].type),N(),z("ngSwitchCase",0),N(),z("ngSwitchCase",1),N(),z("ngSwitchCase",2),N(),z("ngSwitchCase",3),N(),z("ngSwitchCase",4),N(),z("ngSwitchCase",5),N(),z("ngSwitchCase",6),N(),z("ngSwitchCase",7)}}function Hge(t,r){if(1&t&&(P(0,"div",13),re(1,zge,10,9,"ng-container",14),R()),2&t){const l=r.$implicit,e=Z().$implicit,s=Z(2);N(),z("ngIf",s.config[e][l])}}function Uge(t,r){if(1&t&&(P(0,"mat-tab"),re(1,Ege,1,1,"ng-template",10),P(2,"div",11),re(3,Hge,2,1,"div",12),R()()),2&t){const l=r.$implicit,e=Z(2);N(3),z("ngForOf",e.configElements(l))}}function jge(t,r){if(1&t){const l=Oe();P(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),re(3,Uge,4,1,"mat-tab",7),R(),P(4,"div",8)(5,"button",9),J("click",function(){return oe(l),le(Z().save())}),P(6,"uds-translate"),Y(7,"Save"),R()()()()()}if(2&t){const l=Z();N(2),z("@.disabled",!0),N(),z("ngForOf",l.sections())}}const Qie=["UDS","Security"],Jie=["UDS ID"],Gge=[{path:"",canActivate:[mse],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Gse},{path:"services/providers",component:Qne},{path:"services/providers/:provider/detail",component:Jne},{path:"services/providers/:provider",component:Qne},{path:"services/providers/:provider/detail/:service",component:Jne},{path:"services/servers",component:eie},{path:"services/servers/:server/detail",component:Ohe},{path:"services/servers/:server",component:eie},{path:"authenticators",component:nie},{path:"authenticators/:authenticator/detail",component:bZ},{path:"authenticators/:authenticator",component:nie},{path:"authenticators/:authenticator/detail/groups/:group",component:bZ},{path:"authenticators/:authenticator/detail/users/:user",component:bZ},{path:"mfas",component:iie},{path:"mfas/:mfa",component:iie},{path:"osmanagers",component:lie},{path:"osmanagers/:osmanager",component:lie},{path:"connectivity/transports",component:cie},{path:"connectivity/transports/:transport",component:cie},{path:"connectivity/networks",component:die},{path:"connectivity/networks/:network",component:die},{path:"connectivity/tunnels",component:uie},{path:"connectivity/tunnels/:tunnel",component:uie},{path:"connectivity/tunnels/:tunnel/detail",component:Zfe},{path:"pools/service-pools",component:fie},{path:"pools/service-pools/:pool",component:fie},{path:"pools/service-pools/:pool/detail",component:wie},{path:"pools/meta-pools",component:xie},{path:"pools/meta-pools/:metapool",component:xie},{path:"pools/meta-pools/:metapool/detail",component:vme},{path:"pools/pool-groups",component:Sie},{path:"pools/pool-groups/:poolgroup",component:Sie},{path:"pools/calendars",component:Die},{path:"pools/calendars/:calendar",component:Die},{path:"pools/calendars/:calendar/detail",component:_ge},{path:"pools/accounts",component:Zie},{path:"pools/accounts/:account",component:Zie},{path:"pools/accounts/:account/detail",component:Cge},{path:"tools/gallery",component:Kie},{path:"tools/gallery/:image",component:Kie},{path:"tools/reports",component:(()=>{var t;class r{constructor(e,s){this.rest=e,this.api=s,this.customButtons=[{id:"genreport",html:Tge,type:gi.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){var s=this;return Ge(function*(){const u=new wl;s.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:u});const m=yield u;s.api.gui.snackbar.open(django.gettext("Generating report..."));const b=yield s.rest.reports.save(m,e.table.selection.selected[0].id),C=b.encoded?window.atob(b.data):b.data,M=C.length,I=new Uint8Array(M);for(let H=0;H{(0,vZ.saveAs)(F,b.filename)})})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(e,s){1&e&&(P(0,"uds-table",0),J("customButtonAction",function(m){return s.generateReport(m)}),R()),2&e&&z("rest",s.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",s.customButtons)("pageSize",s.api.config.admin.page_size)},dependencies:[hi],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),r})()},{path:"tools/notifiers",component:(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","newAction","editAction","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("newAction",function(m){return s.onNew(m)})("editAction",function(m){return s.onEdit(m)})("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/tokens/actor",component:(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onDelete(e){var s=this;return Ge(function*(){yield s.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/tokens/server",component:(()=>{var t;class r{constructor(e,s,u){this.api=e,this.route=s,this.rest=u}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Wn),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(e,s){1&e&&(P(0,"div")(1,"uds-table",0),J("deleteAction",function(m){return s.onDelete(m)}),R()()),2&e&&(N(),z("rest",s.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",s.api.config.admin.page_size))},dependencies:[hi]}),r})()},{path:"tools/configuration",component:(()=>{var t;class r{constructor(e,s){this.rest=e,this.api=s}ngOnInit(){this.rest.configuration.overview().then(e=>{this.config=e;for(const s in this.config)if(this.config.hasOwnProperty(s))for(const u in this.config[s])if(this.config[s].hasOwnProperty(u)){const m=this.config[s][u];7===m.type?m.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===m.type&&(m.value=!!["1",1,!0].includes(m.value)),m.original_value=m.value}})}sections(){let e=[];for(const s in this.config)this.config.hasOwnProperty(s)&&!Qie.includes(s)&&e.push(s);return e=e.sort((s,u)=>s.localeCompare(u)),e.unshift.apply(e,Qie),e}configElements(e){let s=[];const u=this.config[e];if(u)for(const m in u)u.hasOwnProperty(m)&&("UDS"!==e||!Jie.includes(m))&&s.push(m);return s=s.sort((m,b)=>m.localeCompare(b)),"UDS"===e&&s.unshift.apply(s,Jie),s}save(){const e={};for(const s in this.config)if(this.config.hasOwnProperty(s))for(const u in this.config[s])if(this.config[s].hasOwnProperty(u)){const m=this.config[s][u];if(m.original_value!==m.value){m.original_value=m.value,e[s]||(e[s]={});let b=m.value;3===m.type&&(b=["1",1,!0].includes(m.value)?"1":"0"),e[s][u]={value:b}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(Lt),V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","matTooltip","ngModelChange"],["matInput","",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","number",3,"ngModel","matTooltip","ngModelChange"],[1,"toggle"],[3,"ngModel","matTooltip","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","password",3,"ngModel","matTooltip","ngModelChange"],["matInput","","type","text",3,"ngModel","matTooltip","ngModelChange"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"div",1),pe(2,"img",2),Y(3,"\xa0"),P(4,"uds-translate"),Y(5,"UDS Configuration"),R()(),re(6,jge,8,2,"div",3),R()),2&e&&(N(2),z("src",s.api.staticURL("admin/img/icons/configuration.png"),Ut),N(4),z("ngIf",s.config))},dependencies:[mi,xn,_g,gC,Zo,$i,sv,A,ii,Pn,qz,ri,Ci,Sa,Ya,Ni,As,Es,Cl,ZP,vn],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),r})()}]}];let Wge=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[e5.forRoot(Gge,{}),e5]}),r})();function ere(t){return new be(3e3,!1)}function uv(t){switch(t.length){case 0:return new $u;case 1:return t[0];default:return new yP(t)}}function tre(t,r,l=new Map,e=new Map){const s=[],u=[];let m=-1,b=null;if(r.forEach(C=>{const M=C.get("offset"),I=M==m,F=I&&b||new Map;C.forEach((H,q)=>{let Q=q,ne=H;if("offset"!==q)switch(Q=t.normalizePropertyName(Q,s),ne){case"!":ne=l.get(q);break;case wd:ne=e.get(q);break;default:ne=t.normalizeStyleValue(q,Q,ne,s)}F.set(Q,ne)}),I||u.push(F),b=F,m=M}),s.length)throw function pve(t){return new be(3502,!1)}();return u}function RZ(t,r,l,e){switch(r){case"start":t.onStart(()=>e(l&&OZ(l,"start",t)));break;case"done":t.onDone(()=>e(l&&OZ(l,"done",t)));break;case"destroy":t.onDestroy(()=>e(l&&OZ(l,"destroy",t)))}}function OZ(t,r,l){const u=LZ(t.element,t.triggerName,t.fromState,t.toState,r||t.phaseName,l.totalTime??t.totalTime,!!l.disabled),m=t._data;return null!=m&&(u._data=m),u}function LZ(t,r,l,e,s="",u=0,m){return{element:t,triggerName:r,fromState:l,toState:e,phaseName:s,totalTime:u,disabled:!!m}}function Tl(t,r,l){let e=t.get(r);return e||t.set(r,e=l),e}function nre(t){const r=t.indexOf(":");return[t.substring(1,r),t.slice(r+1)]}const Tve=(()=>typeof document>"u"?null:document.documentElement)();function FZ(t){const r=t.parentNode||t.host||null;return r===Tve?null:r}let Bb=null,ire=!1;function rre(t,r){for(;r;){if(r===t)return!0;r=FZ(r)}return!1}function are(t,r,l){if(l)return Array.from(t.querySelectorAll(r));const e=t.querySelector(r);return e?[e]:[]}let NZ=(()=>{var t;class r{validateStyleProperty(e){return function Ave(t){Bb||(Bb=function Eve(){return typeof document<"u"?document.body:null}()||{},ire=!!Bb.style&&"WebkitAppearance"in Bb.style);let r=!0;return Bb.style&&!function Mve(t){return"ebkit"==t.substring(1,6)}(t)&&(r=t in Bb.style,!r&&ire&&(r="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Bb.style)),r}(e)}matchesElement(e,s){return!1}containsElement(e,s){return rre(e,s)}getParentElement(e){return FZ(e)}query(e,s,u){return are(e,s,u)}computeStyle(e,s,u){return u||""}animate(e,s,u,m,b,C=[],M){return new $u(u,m)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),VZ=(()=>{class r{}return r.NOOP=new NZ,r})();class BZ{}const kve=1e3,zZ="ng-enter",D4="ng-leave",T4="ng-trigger",M4=".ng-trigger",sre="ng-animating",HZ=".ng-animating";function vp(t){if("number"==typeof t)return t;const r=t.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:UZ(parseFloat(r[1]),r[2])}function UZ(t,r){return"s"===r?t*kve:t}function A4(t,r,l){return t.hasOwnProperty("duration")?t:function Rve(t,r,l){let s,u=0,m="";if("string"==typeof t){const b=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===b)return r.push(ere()),{duration:0,delay:0,easing:""};s=UZ(parseFloat(b[1]),b[2]);const C=b[3];null!=C&&(u=UZ(parseFloat(C),b[4]));const M=b[5];M&&(m=M)}else s=t;if(!l){let b=!1,C=r.length;s<0&&(r.push(function $ge(){return new be(3100,!1)}()),b=!0),u<0&&(r.push(function Yge(){return new be(3101,!1)}()),b=!0),b&&r.splice(C,0,ere())}return{duration:s,delay:u,easing:m}}(t,r,l)}function QP(t,r={}){return Object.keys(t).forEach(l=>{r[l]=t[l]}),r}function lre(t){const r=new Map;return Object.keys(t).forEach(l=>{r.set(l,t[l])}),r}function hv(t,r=new Map,l){if(l)for(let[e,s]of l)r.set(e,s);for(let[e,s]of t)r.set(e,s);return r}function Ku(t,r,l){r.forEach((e,s)=>{const u=GZ(s);l&&!l.has(s)&&l.set(s,t.style[u]),t.style[u]=e})}function zb(t,r){r.forEach((l,e)=>{const s=GZ(e);t.style[s]=""})}function JP(t){return Array.isArray(t)?1==t.length?t[0]:function aq(t,r=null){return{type:2,steps:t,options:r}}(t):t}const jZ=new RegExp("{{\\s*(.+?)\\s*}}","g");function dre(t){let r=[];if("string"==typeof t){let l;for(;l=jZ.exec(t);)r.push(l[1]);jZ.lastIndex=0}return r}function eR(t,r,l){const e=t.toString(),s=e.replace(jZ,(u,m)=>{let b=r[m];return null==b&&(l.push(function Zge(t){return new be(3003,!1)}()),b=""),b.toString()});return s==e?t:s}function E4(t){const r=[];let l=t.next();for(;!l.done;)r.push(l.value),l=t.next();return r}const Fve=/-+([a-z0-9])/g;function GZ(t){return t.replace(Fve,(...r)=>r[1].toUpperCase())}function Ml(t,r,l){switch(r.type){case 7:return t.visitTrigger(r,l);case 0:return t.visitState(r,l);case 1:return t.visitTransition(r,l);case 2:return t.visitSequence(r,l);case 3:return t.visitGroup(r,l);case 4:return t.visitAnimate(r,l);case 5:return t.visitKeyframes(r,l);case 6:return t.visitStyle(r,l);case 8:return t.visitReference(r,l);case 9:return t.visitAnimateChild(r,l);case 10:return t.visitAnimateRef(r,l);case 11:return t.visitQuery(r,l);case 12:return t.visitStagger(r,l);default:throw function Xge(t){return new be(3004,!1)}()}}function ure(t,r){return window.getComputedStyle(t)[r]}const Bve=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class hre extends BZ{normalizePropertyName(r,l){return GZ(r)}normalizeStyleValue(r,l,e,s){let u="";const m=e.toString().trim();if(Bve.has(l)&&0!==e&&"0"!==e)if("number"==typeof e)u="px";else{const b=e.match(/^[+-]?[\d\.]+([a-z]*)$/);b&&0==b[1].length&&s.push(function Kge(t,r){return new be(3005,!1)}())}return m+u}}const I4="*";function zve(t,r){const l=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(e=>function Hve(t,r,l){if(":"==t[0]){const C=function Uve(t,r){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,e)=>parseFloat(e)>parseFloat(l);case":decrement":return(l,e)=>parseFloat(e) *"}}(t,l);if("function"==typeof C)return void r.push(C);t=C}const e=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==e||e.length<4)return l.push(function cve(t){return new be(3015,!1)}()),r;const s=e[1],u=e[2],m=e[3];r.push(fre(s,m));"<"==u[0]&&!(s==I4&&m==I4)&&r.push(fre(m,s))}(e,l,r)):l.push(t),l}const k4=new Set(["true","1"]),P4=new Set(["false","0"]);function fre(t,r){const l=k4.has(t)||P4.has(t),e=k4.has(r)||P4.has(r);return(s,u)=>{let m=t==I4||t==s,b=r==I4||r==u;return!m&&l&&"boolean"==typeof s&&(m=s?k4.has(t):P4.has(t)),!b&&e&&"boolean"==typeof u&&(b=u?k4.has(r):P4.has(r)),m&&b}}const jve=new RegExp("s*:selfs*,?","g");function WZ(t,r,l,e){return new Gve(t).build(r,l,e)}class Gve{constructor(r){this._driver=r}build(r,l,e){const s=new Yve(l);return this._resetContextStyleTimingState(s),Ml(this,JP(r),s)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,l){let e=l.queryCount=0,s=l.depCount=0;const u=[],m=[];return"@"==r.name.charAt(0)&&l.errors.push(function Qge(){return new be(3006,!1)}()),r.definitions.forEach(b=>{if(this._resetContextStyleTimingState(l),0==b.type){const C=b,M=C.name;M.toString().split(/\s*,\s*/).forEach(I=>{C.name=I,u.push(this.visitState(C,l))}),C.name=M}else if(1==b.type){const C=this.visitTransition(b,l);e+=C.queryCount,s+=C.depCount,m.push(C)}else l.errors.push(function Jge(){return new be(3007,!1)}())}),{type:7,name:r.name,states:u,transitions:m,queryCount:e,depCount:s,options:null}}visitState(r,l){const e=this.visitStyle(r.styles,l),s=r.options&&r.options.params||null;if(e.containsDynamicStyles){const u=new Set,m=s||{};e.styles.forEach(b=>{b instanceof Map&&b.forEach(C=>{dre(C).forEach(M=>{m.hasOwnProperty(M)||u.add(M)})})}),u.size&&(E4(u.values()),l.errors.push(function eve(t,r){return new be(3008,!1)}()))}return{type:0,name:r.name,style:e,options:s?{params:s}:null}}visitTransition(r,l){l.queryCount=0,l.depCount=0;const e=Ml(this,JP(r.animation),l);return{type:1,matchers:zve(r.expr,l.errors),animation:e,queryCount:l.queryCount,depCount:l.depCount,options:Hb(r.options)}}visitSequence(r,l){return{type:2,steps:r.steps.map(e=>Ml(this,e,l)),options:Hb(r.options)}}visitGroup(r,l){const e=l.currentTime;let s=0;const u=r.steps.map(m=>{l.currentTime=e;const b=Ml(this,m,l);return s=Math.max(s,l.currentTime),b});return l.currentTime=s,{type:3,steps:u,options:Hb(r.options)}}visitAnimate(r,l){const e=function Zve(t,r){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return $Z(A4(t,r).duration,0,"");const l=t;if(l.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=$Z(0,0,"");return u.dynamic=!0,u.strValue=l,u}const s=A4(l,r);return $Z(s.duration,s.delay,s.easing)}(r.timings,l.errors);l.currentAnimateTimings=e;let s,u=r.styles?r.styles:lt({});if(5==u.type)s=this.visitKeyframes(u,l);else{let m=r.styles,b=!1;if(!m){b=!0;const M={};e.easing&&(M.easing=e.easing),m=lt(M)}l.currentTime+=e.duration+e.delay;const C=this.visitStyle(m,l);C.isEmptyStep=b,s=C}return l.currentAnimateTimings=null,{type:4,timings:e,style:s,options:null}}visitStyle(r,l){const e=this._makeStyleAst(r,l);return this._validateStyleAst(e,l),e}_makeStyleAst(r,l){const e=[],s=Array.isArray(r.styles)?r.styles:[r.styles];for(let b of s)"string"==typeof b?b===wd?e.push(b):l.errors.push(new be(3002,!1)):e.push(lre(b));let u=!1,m=null;return e.forEach(b=>{if(b instanceof Map&&(b.has("easing")&&(m=b.get("easing"),b.delete("easing")),!u))for(let C of b.values())if(C.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:e,easing:m,offset:r.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(r,l){const e=l.currentAnimateTimings;let s=l.currentTime,u=l.currentTime;e&&u>0&&(u-=e.duration+e.delay),r.styles.forEach(m=>{"string"!=typeof m&&m.forEach((b,C)=>{const M=l.collectedStyles.get(l.currentQuerySelector),I=M.get(C);let F=!0;I&&(u!=s&&u>=I.startTime&&s<=I.endTime&&(l.errors.push(function nve(t,r,l,e,s){return new be(3010,!1)}()),F=!1),u=I.startTime),F&&M.set(C,{startTime:u,endTime:s}),l.options&&function Lve(t,r,l){const e=r.params||{},s=dre(t);s.length&&s.forEach(u=>{e.hasOwnProperty(u)||l.push(function qge(t){return new be(3001,!1)}())})}(b,l.options,l.errors)})})}visitKeyframes(r,l){const e={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function ive(){return new be(3011,!1)}()),e;let u=0;const m=[];let b=!1,C=!1,M=0;const I=r.steps.map(ge=>{const se=this._makeStyleAst(ge,l);let Be=null!=se.offset?se.offset:function qve(t){if("string"==typeof t)return null;let r=null;if(Array.isArray(t))t.forEach(l=>{if(l instanceof Map&&l.has("offset")){const e=l;r=parseFloat(e.get("offset")),e.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const l=t;r=parseFloat(l.get("offset")),l.delete("offset")}return r}(se.styles),Fe=0;return null!=Be&&(u++,Fe=se.offset=Be),C=C||Fe<0||Fe>1,b=b||Fe0&&u{const Be=H>0?se==q?1:H*se:m[se],Fe=Be*ae;l.currentTime=Q+ne.delay+Fe,ne.duration=Fe,this._validateStyleAst(ge,l),ge.offset=Be,e.styles.push(ge)}),e}visitReference(r,l){return{type:8,animation:Ml(this,JP(r.animation),l),options:Hb(r.options)}}visitAnimateChild(r,l){return l.depCount++,{type:9,options:Hb(r.options)}}visitAnimateRef(r,l){return{type:10,animation:this.visitReference(r.animation,l),options:Hb(r.options)}}visitQuery(r,l){const e=l.currentQuerySelector,s=r.options||{};l.queryCount++,l.currentQuery=r;const[u,m]=function Wve(t){const r=!!t.split(/\s*,\s*/).find(l=>":self"==l);return r&&(t=t.replace(jve,"")),t=t.replace(/@\*/g,M4).replace(/@\w+/g,l=>M4+"-"+l.slice(1)).replace(/:animating/g,HZ),[t,r]}(r.selector);l.currentQuerySelector=e.length?e+" "+u:u,Tl(l.collectedStyles,l.currentQuerySelector,new Map);const b=Ml(this,JP(r.animation),l);return l.currentQuery=null,l.currentQuerySelector=e,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:m,animation:b,originalSelector:r.selector,options:Hb(r.options)}}visitStagger(r,l){l.currentQuery||l.errors.push(function sve(){return new be(3013,!1)}());const e="full"===r.timings?{duration:0,delay:0,easing:"full"}:A4(r.timings,l.errors,!0);return{type:12,animation:Ml(this,JP(r.animation),l),timings:e,options:null}}}class Yve{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hb(t){return t?(t=QP(t)).params&&(t.params=function $ve(t){return t?QP(t):null}(t.params)):t={},t}function $Z(t,r,l){return{duration:t,delay:r,easing:l}}function YZ(t,r,l,e,s,u,m=null,b=!1){return{type:1,element:t,keyframes:r,preStyleProps:l,postStyleProps:e,duration:s,delay:u,totalTime:s+u,easing:m,subTimeline:b}}class R4{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,l){let e=this._map.get(r);e||this._map.set(r,e=[]),e.push(...l)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const Qve=new RegExp(":enter","g"),e_e=new RegExp(":leave","g");function qZ(t,r,l,e,s,u=new Map,m=new Map,b,C,M=[]){return(new t_e).buildKeyframes(t,r,l,e,s,u,m,b,C,M)}class t_e{buildKeyframes(r,l,e,s,u,m,b,C,M,I=[]){M=M||new R4;const F=new ZZ(r,l,M,s,u,I,[]);F.options=C;const H=C.delay?vp(C.delay):0;F.currentTimeline.delayNextStep(H),F.currentTimeline.setStyles([m],null,F.errors,C),Ml(this,e,F);const q=F.timelines.filter(Q=>Q.containsAnimation());if(q.length&&b.size){let Q;for(let ne=q.length-1;ne>=0;ne--){const ae=q[ne];if(ae.element===l){Q=ae;break}}Q&&!Q.allowOnlyTimelineStyles()&&Q.setStyles([b],null,F.errors,C)}return q.length?q.map(Q=>Q.buildKeyframes()):[YZ(l,[],[],[],0,H,"",!1)]}visitTrigger(r,l){}visitState(r,l){}visitTransition(r,l){}visitAnimateChild(r,l){const e=l.subInstructions.get(l.element);if(e){const s=l.createSubContext(r.options),u=l.currentTimeline.currentTime,m=this._visitSubInstructions(e,s,s.options);u!=m&&l.transformIntoNewTimeline(m)}l.previousNode=r}visitAnimateRef(r,l){const e=l.createSubContext(r.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([r.options,r.animation.options],l,e),this.visitReference(r.animation,e),l.transformIntoNewTimeline(e.currentTimeline.currentTime),l.previousNode=r}_applyAnimationRefDelays(r,l,e){for(const s of r){const u=null==s?void 0:s.delay;if(u){const m="number"==typeof u?u:vp(eR(u,(null==s?void 0:s.params)??{},l.errors));e.delayNextStep(m)}}}_visitSubInstructions(r,l,e){let u=l.currentTimeline.currentTime;const m=null!=e.duration?vp(e.duration):null,b=null!=e.delay?vp(e.delay):null;return 0!==m&&r.forEach(C=>{const M=l.appendInstructionToTimeline(C,m,b);u=Math.max(u,M.duration+M.delay)}),u}visitReference(r,l){l.updateOptions(r.options,!0),Ml(this,r.animation,l),l.previousNode=r}visitSequence(r,l){const e=l.subContextCount;let s=l;const u=r.options;if(u&&(u.params||u.delay)&&(s=l.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=O4);const m=vp(u.delay);s.delayNextStep(m)}r.steps.length&&(r.steps.forEach(m=>Ml(this,m,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>e&&s.transformIntoNewTimeline()),l.previousNode=r}visitGroup(r,l){const e=[];let s=l.currentTimeline.currentTime;const u=r.options&&r.options.delay?vp(r.options.delay):0;r.steps.forEach(m=>{const b=l.createSubContext(r.options);u&&b.delayNextStep(u),Ml(this,m,b),s=Math.max(s,b.currentTimeline.currentTime),e.push(b.currentTimeline)}),e.forEach(m=>l.currentTimeline.mergeTimelineCollectedStyles(m)),l.transformIntoNewTimeline(s),l.previousNode=r}_visitTiming(r,l){if(r.dynamic){const e=r.strValue;return A4(l.params?eR(e,l.params,l.errors):e,l.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,l){const e=l.currentAnimateTimings=this._visitTiming(r.timings,l),s=l.currentTimeline;e.delay&&(l.incrementTime(e.delay),s.snapshotCurrentStyles());const u=r.style;5==u.type?this.visitKeyframes(u,l):(l.incrementTime(e.duration),this.visitStyle(u,l),s.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=r}visitStyle(r,l){const e=l.currentTimeline,s=l.currentAnimateTimings;!s&&e.hasCurrentStyleProperties()&&e.forwardFrame();const u=s&&s.easing||r.easing;r.isEmptyStep?e.applyEmptyStep(u):e.setStyles(r.styles,u,l.errors,l.options),l.previousNode=r}visitKeyframes(r,l){const e=l.currentAnimateTimings,s=l.currentTimeline.duration,u=e.duration,b=l.createSubContext().currentTimeline;b.easing=e.easing,r.styles.forEach(C=>{b.forwardTime((C.offset||0)*u),b.setStyles(C.styles,C.easing,l.errors,l.options),b.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(b),l.transformIntoNewTimeline(s+u),l.previousNode=r}visitQuery(r,l){const e=l.currentTimeline.currentTime,s=r.options||{},u=s.delay?vp(s.delay):0;u&&(6===l.previousNode.type||0==e&&l.currentTimeline.hasCurrentStyleProperties())&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=O4);let m=e;const b=l.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,l.errors);l.currentQueryTotal=b.length;let C=null;b.forEach((M,I)=>{l.currentQueryIndex=I;const F=l.createSubContext(r.options,M);u&&F.delayNextStep(u),M===l.element&&(C=F.currentTimeline),Ml(this,r.animation,F),F.currentTimeline.applyStylesToKeyframe(),m=Math.max(m,F.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(m),C&&(l.currentTimeline.mergeTimelineCollectedStyles(C),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=r}visitStagger(r,l){const e=l.parentContext,s=l.currentTimeline,u=r.timings,m=Math.abs(u.duration),b=m*(l.currentQueryTotal-1);let C=m*l.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":C=b-C;break;case"full":C=e.currentStaggerTime}const I=l.currentTimeline;C&&I.delayNextStep(C);const F=I.currentTime;Ml(this,r.animation,l),l.previousNode=r,e.currentStaggerTime=s.currentTime-F+(s.startTime-e.currentTimeline.startTime)}}const O4={};class ZZ{constructor(r,l,e,s,u,m,b,C){this._driver=r,this.element=l,this.subInstructions=e,this._enterClassName=s,this._leaveClassName=u,this.errors=m,this.timelines=b,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=O4,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new L4(this._driver,l,0),b.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,l){if(!r)return;const e=r;let s=this.options;null!=e.duration&&(s.duration=vp(e.duration)),null!=e.delay&&(s.delay=vp(e.delay));const u=e.params;if(u){let m=s.params;m||(m=this.options.params={}),Object.keys(u).forEach(b=>{(!l||!m.hasOwnProperty(b))&&(m[b]=eR(u[b],m,this.errors))})}}_copyOptions(){const r={};if(this.options){const l=this.options.params;if(l){const e=r.params={};Object.keys(l).forEach(s=>{e[s]=l[s]})}}return r}createSubContext(r=null,l,e){const s=l||this.element,u=new ZZ(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,e||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(r),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(r){return this.previousNode=O4,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,l,e){const s={duration:l??r.duration,delay:this.currentTimeline.currentTime+(e??0)+r.delay,easing:""},u=new n_e(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,l,e,s,u,m){let b=[];if(s&&b.push(this.element),r.length>0){r=(r=r.replace(Qve,"."+this._enterClassName)).replace(e_e,"."+this._leaveClassName);let M=this._driver.query(this.element,r,1!=e);0!==e&&(M=e<0?M.slice(M.length+e,M.length):M.slice(0,e)),b.push(...M)}return!u&&0==b.length&&m.push(function lve(t){return new be(3014,!1)}()),b}}class L4{constructor(r,l,e,s){this._driver=r,this.element=l,this.startTime=e,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const l=1===this._keyframes.size&&this._pendingStyles.size;this.duration||l?(this.forwardTime(this.currentTime+r),l&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,l){return this.applyStylesToKeyframe(),new L4(this._driver,r,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,l){this._localTimelineStyles.set(r,l),this._globalTimelineStyles.set(r,l),this._styleSummary.set(r,{time:this.currentTime,value:l})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[l,e]of this._globalTimelineStyles)this._backFill.set(l,e||wd),this._currentKeyframe.set(l,wd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,l,e,s){l&&this._previousKeyframe.set("easing",l);const u=s&&s.params||{},m=function i_e(t,r){const l=new Map;let e;return t.forEach(s=>{if("*"===s){e=e||r.keys();for(let u of e)l.set(u,wd)}else hv(s,l)}),l}(r,this._globalTimelineStyles);for(let[b,C]of m){const M=eR(C,u,e);this._pendingStyles.set(b,M),this._localTimelineStyles.has(b)||this._backFill.set(b,this._globalTimelineStyles.get(b)??wd),this._updateStyle(b,M)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,l)=>{this._currentKeyframe.set(l,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,l)=>{this._currentKeyframe.has(l)||this._currentKeyframe.set(l,r)}))}snapshotCurrentStyles(){for(let[r,l]of this._localTimelineStyles)this._pendingStyles.set(r,l),this._updateStyle(r,l)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let l in this._currentKeyframe)r.push(l);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((l,e)=>{const s=this._styleSummary.get(e);(!s||l.time>s.time)&&this._updateStyle(e,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,l=new Set,e=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((b,C)=>{const M=hv(b,new Map,this._backFill);M.forEach((I,F)=>{"!"===I?r.add(F):I===wd&&l.add(F)}),e||M.set("offset",C/this.duration),s.push(M)});const u=r.size?E4(r.values()):[],m=l.size?E4(l.values()):[];if(e){const b=s[0],C=new Map(b);b.set("offset",0),C.set("offset",1),s=[b,C]}return YZ(this.element,s,u,m,this.duration,this.startTime,this.easing,!1)}}class n_e extends L4{constructor(r,l,e,s,u,m,b=!1){super(r,l,m.delay),this.keyframes=e,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=b,this.timings={duration:m.duration,delay:m.delay,easing:m.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:l,duration:e,easing:s}=this.timings;if(this._stretchStartingKeyframe&&l){const u=[],m=e+l,b=l/m,C=hv(r[0]);C.set("offset",0),u.push(C);const M=hv(r[0]);M.set("offset",gre(b)),u.push(M);const I=r.length-1;for(let F=1;F<=I;F++){let H=hv(r[F]);const q=H.get("offset");H.set("offset",gre((l+q*e)/m)),u.push(H)}e=m,l=0,s="",r=u}return YZ(this.element,r,this.preStyleProps,this.postStyleProps,e,l,s,!0)}}function gre(t,r=3){const l=Math.pow(10,r-1);return Math.round(t*l)/l}function vre(t,r,l,e,s,u,m,b,C,M,I,F,H){return{type:0,element:t,triggerName:r,isRemovalTransition:s,fromState:l,fromStyles:u,toState:e,toStyles:m,timelines:b,queriedElements:C,preStyleProps:M,postStyleProps:I,totalTime:F,errors:H}}const XZ={};class _re{constructor(r,l,e){this._triggerName=r,this.ast=l,this._stateStyles=e}match(r,l,e,s){return function r_e(t,r,l,e,s){return t.some(u=>u(r,l,e,s))}(this.ast.matchers,r,l,e,s)}buildStyles(r,l,e){let s=this._stateStyles.get("*");return void 0!==r&&(s=this._stateStyles.get(null==r?void 0:r.toString())||s),s?s.buildStyles(l,e):new Map}build(r,l,e,s,u,m,b,C,M,I){var Qu;const F=[],H=this.ast.options&&this.ast.options.params||XZ,Q=this.buildStyles(e,b&&b.params||XZ,F),ne=C&&C.params||XZ,ae=this.buildStyles(s,ne,F),ge=new Set,se=new Map,Be=new Map,Fe="void"===s,Ft={params:a_e(ne,H),delay:null==(Qu=this.ast.options)?void 0:Qu.delay},Sn=I?[]:qZ(r,l,this.ast.animation,u,m,Q,ae,Ft,M,F);let ai=0;if(Sn.forEach(Al=>{ai=Math.max(Al.duration+Al.delay,ai)}),F.length)return vre(l,this._triggerName,e,s,Fe,Q,ae,[],[],se,Be,ai,F);Sn.forEach(Al=>{const iR=Al.element,rR=Tl(se,iR,new Set);Al.preStyleProps.forEach(kS=>rR.add(kS));const aR=Tl(Be,iR,new Set);Al.postStyleProps.forEach(kS=>aR.add(kS)),iR!==l&&ge.add(iR)});const fo=E4(ge.values());return vre(l,this._triggerName,e,s,Fe,Q,ae,Sn,fo,se,Be,ai)}}function a_e(t,r){const l=QP(r);for(const e in t)t.hasOwnProperty(e)&&null!=t[e]&&(l[e]=t[e]);return l}class o_e{constructor(r,l,e){this.styles=r,this.defaultParams=l,this.normalizer=e}buildStyles(r,l){const e=new Map,s=QP(this.defaultParams);return Object.keys(r).forEach(u=>{const m=r[u];null!==m&&(s[u]=m)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((m,b)=>{m&&(m=eR(m,s,l));const C=this.normalizer.normalizePropertyName(b,l);m=this.normalizer.normalizeStyleValue(b,C,m,l),e.set(b,m)})}),e}}class l_e{constructor(r,l,e){this.name=r,this.ast=l,this._normalizer=e,this.transitionFactories=[],this.states=new Map,l.states.forEach(s=>{this.states.set(s.name,new o_e(s.style,s.options&&s.options.params||{},e))}),yre(this.states,"true","1"),yre(this.states,"false","0"),l.transitions.forEach(s=>{this.transitionFactories.push(new _re(r,s,this.states))}),this.fallbackTransition=function c_e(t,r,l){return new _re(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(m,b)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,l,e,s){return this.transitionFactories.find(m=>m.match(r,l,e,s))||null}matchStyles(r,l,e){return this.fallbackTransition.buildStyles(r,l,e)}}function yre(t,r,l){t.has(r)?t.has(l)||t.set(l,t.get(r)):t.has(l)&&t.set(r,t.get(l))}const d_e=new R4;class u_e{constructor(r,l,e){this.bodyNode=r,this._driver=l,this._normalizer=e,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,l){const e=[],u=WZ(this._driver,l,e,[]);if(e.length)throw function mve(t){return new be(3503,!1)}();this._animations.set(r,u)}_buildPlayer(r,l,e){const s=r.element,u=tre(this._normalizer,r.keyframes,l,e);return this._driver.animate(s,u,r.duration,r.delay,r.easing,[],!0)}create(r,l,e={}){const s=[],u=this._animations.get(r);let m;const b=new Map;if(u?(m=qZ(this._driver,l,u,zZ,D4,new Map,new Map,e,d_e,s),m.forEach(I=>{const F=Tl(b,I.element,new Map);I.postStyleProps.forEach(H=>F.set(H,null))})):(s.push(function gve(){return new be(3300,!1)}()),m=[]),s.length)throw function vve(t){return new be(3504,!1)}();b.forEach((I,F)=>{I.forEach((H,q)=>{I.set(q,this._driver.computeStyle(F,q,wd))})});const M=uv(m.map(I=>{const F=b.get(I.element);return this._buildPlayer(I,new Map,F)}));return this._playersById.set(r,M),M.onDestroy(()=>this.destroy(r)),this.players.push(M),M}destroy(r){const l=this._getPlayer(r);l.destroy(),this._playersById.delete(r);const e=this.players.indexOf(l);e>=0&&this.players.splice(e,1)}_getPlayer(r){const l=this._playersById.get(r);if(!l)throw function _ve(t){return new be(3301,!1)}();return l}listen(r,l,e,s){const u=LZ(l,"","","");return RZ(this._getPlayer(r),e,u,s),()=>{}}command(r,l,e,s){if("register"==e)return void this.register(r,s[0]);if("create"==e)return void this.create(r,l,s[0]||{});const u=this._getPlayer(r);switch(e){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const bre="ng-animate-queued",KZ="ng-animate-disabled",g_e=[],wre={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},v_e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Td="__ng_removed";class QZ{get params(){return this.options.params}constructor(r,l=""){this.namespaceId=l;const e=r&&r.hasOwnProperty("value");if(this.value=function w_e(t){return t??null}(e?r.value:r),e){const u=QP(r);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(r){const l=r.params;if(l){const e=this.options.params;Object.keys(l).forEach(s=>{null==e[s]&&(e[s]=l[s])})}}}const tR="void",JZ=new QZ(tR);class __e{constructor(r,l,e){this.id=r,this.hostElement=l,this._engine=e,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Sc(l,this._hostClassName)}listen(r,l,e,s){if(!this._triggers.has(l))throw function yve(t,r){return new be(3302,!1)}();if(null==e||0==e.length)throw function bve(t){return new be(3303,!1)}();if(!function x_e(t){return"start"==t||"done"==t}(e))throw function wve(t,r){return new be(3400,!1)}();const u=Tl(this._elementListeners,r,[]),m={name:l,phase:e,callback:s};u.push(m);const b=Tl(this._engine.statesByElement,r,new Map);return b.has(l)||(Sc(r,T4),Sc(r,T4+"-"+l),b.set(l,JZ)),()=>{this._engine.afterFlush(()=>{const C=u.indexOf(m);C>=0&&u.splice(C,1),this._triggers.has(l)||b.delete(l)})}}register(r,l){return!this._triggers.has(r)&&(this._triggers.set(r,l),!0)}_getTrigger(r){const l=this._triggers.get(r);if(!l)throw function xve(t){return new be(3401,!1)}();return l}trigger(r,l,e,s=!0){const u=this._getTrigger(l),m=new eX(this.id,l,r);let b=this._engine.statesByElement.get(r);b||(Sc(r,T4),Sc(r,T4+"-"+l),this._engine.statesByElement.set(r,b=new Map));let C=b.get(l);const M=new QZ(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&C&&M.absorbOptions(C.options),b.set(l,M),C||(C=JZ),M.value!==tR&&C.value===M.value){if(!function D_e(t,r){const l=Object.keys(t),e=Object.keys(r);if(l.length!=e.length)return!1;for(let s=0;s{zb(r,ae),Ku(r,ge)})}return}const H=Tl(this._engine.playersByElement,r,[]);H.forEach(ne=>{ne.namespaceId==this.id&&ne.triggerName==l&&ne.queued&&ne.destroy()});let q=u.matchTransition(C.value,M.value,r,M.params),Q=!1;if(!q){if(!s)return;q=u.fallbackTransition,Q=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:l,transition:q,fromState:C,toState:M,player:m,isFallbackTransition:Q}),Q||(Sc(r,bre),m.onStart(()=>{AS(r,bre)})),m.onDone(()=>{let ne=this.players.indexOf(m);ne>=0&&this.players.splice(ne,1);const ae=this._engine.playersByElement.get(r);if(ae){let ge=ae.indexOf(m);ge>=0&&ae.splice(ge,1)}}),this.players.push(m),H.push(m),m}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(l=>l.delete(r)),this._elementListeners.forEach((l,e)=>{this._elementListeners.set(e,l.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const l=this._engine.playersByElement.get(r);l&&(l.forEach(e=>e.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,l){const e=this._engine.driver.query(r,M4,!0);e.forEach(s=>{if(s[Td])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(m=>m.triggerLeaveAnimation(s,l,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>e.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,l,e,s){const u=this._engine.statesByElement.get(r),m=new Map;if(u){const b=[];if(u.forEach((C,M)=>{if(m.set(M,C.value),this._triggers.has(M)){const I=this.trigger(r,M,tR,s);I&&b.push(I)}}),b.length)return this._engine.markElementAsRemoved(this.id,r,!0,l,m),e&&uv(b).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const l=this._elementListeners.get(r),e=this._engine.statesByElement.get(r);if(l&&e){const s=new Set;l.forEach(u=>{const m=u.name;if(s.has(m))return;s.add(m);const C=this._triggers.get(m).fallbackTransition,M=e.get(m)||JZ,I=new QZ(tR),F=new eX(this.id,m,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:m,transition:C,fromState:M,toState:I,player:F,isFallbackTransition:!0})})}}removeNode(r,l){const e=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,l),this.triggerLeaveAnimation(r,l,!0))return;let s=!1;if(e.totalAnimations){const u=e.players.length?e.playersByQueriedElement.get(r):[];if(u&&u.length)s=!0;else{let m=r;for(;m=m.parentNode;)if(e.statesByElement.get(m)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)e.markElementAsRemoved(this.id,r,!1,l);else{const u=r[Td];(!u||u===wre)&&(e.afterFlush(()=>this.clearElementCache(r)),e.destroyInnerAnimations(r),e._onRemovalComplete(r,l))}}insertNode(r,l){Sc(r,this._hostClassName)}drainQueuedTransitions(r){const l=[];return this._queue.forEach(e=>{const s=e.player;if(s.destroyed)return;const u=e.element,m=this._elementListeners.get(u);m&&m.forEach(b=>{if(b.name==e.triggerName){const C=LZ(u,e.triggerName,e.fromState.value,e.toState.value);C._data=r,RZ(e.player,b.phase,C,b.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):l.push(e)}),this._queue=[],l.sort((e,s)=>{const u=e.transition.ast.depCount,m=s.transition.ast.depCount;return 0==u||0==m?u-m:this._engine.driver.containsElement(e.element,s.element)?1:-1})}destroy(r){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}}class y_e{_onRemovalComplete(r,l){this.onRemovalComplete(r,l)}constructor(r,l,e){this.bodyNode=r,this.driver=l,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,u)=>{}}get queuedPlayers(){const r=[];return this._namespaceList.forEach(l=>{l.players.forEach(e=>{e.queued&&r.push(e)})}),r}createNamespace(r,l){const e=new __e(r,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(e,l):(this.newHostElements.set(l,e),this.collectEnterElement(l)),this._namespaceLookup[r]=e}_balanceNamespaceList(r,l){const e=this._namespaceList,s=this.namespacesByHostElement;if(e.length-1>=0){let m=!1,b=this.driver.getParentElement(l);for(;b;){const C=s.get(b);if(C){const M=e.indexOf(C);e.splice(M+1,0,r),m=!0;break}b=this.driver.getParentElement(b)}m||e.unshift(r)}else e.push(r);return s.set(l,r),r}register(r,l){let e=this._namespaceLookup[r];return e||(e=this.createNamespace(r,l)),e}registerTrigger(r,l,e){let s=this._namespaceLookup[r];s&&s.register(l,e)&&this.totalAnimations++}destroy(r,l){r&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const e=this._fetchNamespace(r);this.namespacesByHostElement.delete(e.hostElement);const s=this._namespaceList.indexOf(e);s>=0&&this._namespaceList.splice(s,1),e.destroy(l),delete this._namespaceLookup[r]}))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const l=new Set,e=this.statesByElement.get(r);if(e)for(let s of e.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&l.add(u)}return l}trigger(r,l,e,s){if(F4(l)){const u=this._fetchNamespace(r);if(u)return u.trigger(l,e,s),!0}return!1}insertNode(r,l,e,s){if(!F4(l))return;const u=l[Td];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const m=this.collectedLeaveElements.indexOf(l);m>=0&&this.collectedLeaveElements.splice(m,1)}if(r){const m=this._fetchNamespace(r);m&&m.insertNode(l,e)}s&&this.collectEnterElement(l)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,l){l?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Sc(r,KZ)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),AS(r,KZ))}removeNode(r,l,e){if(F4(l)){const s=r?this._fetchNamespace(r):null;s?s.removeNode(l,e):this.markElementAsRemoved(r,l,!1,e);const u=this.namespacesByHostElement.get(l);u&&u.id!==r&&u.removeNode(l,e)}else this._onRemovalComplete(l,e)}markElementAsRemoved(r,l,e,s,u){this.collectedLeaveElements.push(l),l[Td]={namespaceId:r,setForRemoval:s,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:u}}listen(r,l,e,s,u){return F4(l)?this._fetchNamespace(r).listen(l,e,s,u):()=>{}}_buildInstruction(r,l,e,s,u){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,e,s,r.fromState.options,r.toState.options,l,u)}destroyInnerAnimations(r){let l=this.driver.query(r,M4,!0);l.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(r,HZ,!0),l.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(r){const l=this.playersByElement.get(r);l&&l.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(r){const l=this.playersByQueriedElement.get(r);l&&l.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return uv(this.players).onDone(()=>r());r()})}processLeaveNode(r){var e;const l=r[Td];if(l&&l.setForRemoval){if(r[Td]=wre,l.namespaceId){this.destroyInnerAnimations(r);const s=this._fetchNamespace(l.namespaceId);s&&s.clearElementCache(r)}this._onRemovalComplete(r,l.setForRemoval)}null!=(e=r.classList)&&e.contains(KZ)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(r=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,s)=>this._balanceNamespaceList(e,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],l.length?uv(l).onDone(()=>{e.forEach(s=>s())}):e.forEach(s=>s())}}reportError(r){throw function Cve(t){return new be(3402,!1)}()}_flushAnimations(r,l){const e=new R4,s=[],u=new Map,m=[],b=new Map,C=new Map,M=new Map,I=new Set;this.disabledNodes.forEach(ut=>{I.add(ut);const Tt=this.driver.query(ut,".ng-animate-queued",!0);for(let Nt=0;Nt{const Nt=zZ+ne++;Q.set(Tt,Nt),ut.forEach($n=>Sc($n,Nt))});const ae=[],ge=new Set,se=new Set;for(let ut=0;utge.add($n)):se.add(Tt))}const Be=new Map,Fe=Sre(H,Array.from(ge));Fe.forEach((ut,Tt)=>{const Nt=D4+ne++;Be.set(Tt,Nt),ut.forEach($n=>Sc($n,Nt))}),r.push(()=>{q.forEach((ut,Tt)=>{const Nt=Q.get(Tt);ut.forEach($n=>AS($n,Nt))}),Fe.forEach((ut,Tt)=>{const Nt=Be.get(Tt);ut.forEach($n=>AS($n,Nt))}),ae.forEach(ut=>{this.processLeaveNode(ut)})});const Ft=[],Sn=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(l).forEach(Nt=>{const $n=Nt.player,qa=Nt.element;if(Ft.push($n),this.collectedEnterElements.length){const ko=qa[Td];if(ko&&ko.setForMove){if(ko.previousTriggersValues&&ko.previousTriggersValues.has(Nt.triggerName)){const Ub=ko.previousTriggersValues.get(Nt.triggerName),Dc=this.statesByElement.get(Nt.element);if(Dc&&Dc.has(Nt.triggerName)){const H4=Dc.get(Nt.triggerName);H4.value=Ub,Dc.set(Nt.triggerName,H4)}}return void $n.destroy()}}const Ju=!F||!this.driver.containsElement(F,qa),El=Be.get(qa),fv=Q.get(qa),_r=this._buildInstruction(Nt,e,fv,El,Ju);if(_r.errors&&_r.errors.length)return void Sn.push(_r);if(Ju)return $n.onStart(()=>zb(qa,_r.fromStyles)),$n.onDestroy(()=>Ku(qa,_r.toStyles)),void s.push($n);if(Nt.isFallbackTransition)return $n.onStart(()=>zb(qa,_r.fromStyles)),$n.onDestroy(()=>Ku(qa,_r.toStyles)),void s.push($n);const Gre=[];_r.timelines.forEach(ko=>{ko.stretchStartingKeyframe=!0,this.disabledNodes.has(ko.element)||Gre.push(ko)}),_r.timelines=Gre,e.append(qa,_r.timelines),m.push({instruction:_r,player:$n,element:qa}),_r.queriedElements.forEach(ko=>Tl(b,ko,[]).push($n)),_r.preStyleProps.forEach((ko,Ub)=>{if(ko.size){let Dc=C.get(Ub);Dc||C.set(Ub,Dc=new Set),ko.forEach((H4,cX)=>Dc.add(cX))}}),_r.postStyleProps.forEach((ko,Ub)=>{let Dc=M.get(Ub);Dc||M.set(Ub,Dc=new Set),ko.forEach((H4,cX)=>Dc.add(cX))})});if(Sn.length){const ut=[];Sn.forEach(Tt=>{ut.push(function Sve(t,r){return new be(3505,!1)}())}),Ft.forEach(Tt=>Tt.destroy()),this.reportError(ut)}const ai=new Map,fo=new Map;m.forEach(ut=>{const Tt=ut.element;e.has(Tt)&&(fo.set(Tt,Tt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,ai))}),s.forEach(ut=>{const Tt=ut.element;this._getPreviousPlayers(Tt,!1,ut.namespaceId,ut.triggerName,null).forEach($n=>{Tl(ai,Tt,[]).push($n),$n.destroy()})});const Qu=ae.filter(ut=>Tre(ut,C,M)),Al=new Map;Cre(Al,this.driver,se,M,wd).forEach(ut=>{Tre(ut,C,M)&&Qu.push(ut)});const rR=new Map;q.forEach((ut,Tt)=>{Cre(rR,this.driver,new Set(ut),C,"!")}),Qu.forEach(ut=>{const Tt=Al.get(ut),Nt=rR.get(ut);Al.set(ut,new Map([...(null==Tt?void 0:Tt.entries())??[],...(null==Nt?void 0:Nt.entries())??[]]))});const aR=[],kS=[],jre={};m.forEach(ut=>{const{element:Tt,player:Nt,instruction:$n}=ut;if(e.has(Tt)){if(I.has(Tt))return Nt.onDestroy(()=>Ku(Tt,$n.toStyles)),Nt.disabled=!0,Nt.overrideTotalTime($n.totalTime),void s.push(Nt);let qa=jre;if(fo.size>1){let El=Tt;const fv=[];for(;El=El.parentNode;){const _r=fo.get(El);if(_r){qa=_r;break}fv.push(El)}fv.forEach(_r=>fo.set(_r,qa))}const Ju=this._buildAnimation(Nt.namespaceId,$n,ai,u,rR,Al);if(Nt.setRealPlayer(Ju),qa===jre)aR.push(Nt);else{const El=this.playersByElement.get(qa);El&&El.length&&(Nt.parentPlayer=uv(El)),s.push(Nt)}}else zb(Tt,$n.fromStyles),Nt.onDestroy(()=>Ku(Tt,$n.toStyles)),kS.push(Nt),I.has(Tt)&&s.push(Nt)}),kS.forEach(ut=>{const Tt=u.get(ut.element);if(Tt&&Tt.length){const Nt=uv(Tt);ut.setRealPlayer(Nt)}}),s.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Ju.destroyed);qa.length?C_e(this,Tt,qa):this.processLeaveNode(Tt)}return ae.length=0,aR.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Tt=this.players.indexOf(ut);this.players.splice(Tt,1)}),ut.play()}),aR}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,l,e,s,u){let m=[];if(l){const b=this.playersByQueriedElement.get(r);b&&(m=b)}else{const b=this.playersByElement.get(r);if(b){const C=!u||u==tR;b.forEach(M=>{M.queued||!C&&M.triggerName!=s||m.push(M)})}}return(e||s)&&(m=m.filter(b=>!(e&&e!=b.namespaceId||s&&s!=b.triggerName))),m}_beforeAnimationBuild(r,l,e){const u=l.element,m=l.isRemovalTransition?void 0:r,b=l.isRemovalTransition?void 0:l.triggerName;for(const C of l.timelines){const M=C.element,I=M!==u,F=Tl(e,M,[]);this._getPreviousPlayers(M,I,m,b,l.toState).forEach(q=>{const Q=q.getRealPlayer();Q.beforeDestroy&&Q.beforeDestroy(),q.destroy(),F.push(q)})}zb(u,l.fromStyles)}_buildAnimation(r,l,e,s,u,m){const b=l.triggerName,C=l.element,M=[],I=new Set,F=new Set,H=l.timelines.map(Q=>{const ne=Q.element;I.add(ne);const ae=ne[Td];if(ae&&ae.removedBeforeQueried)return new $u(Q.duration,Q.delay);const ge=ne!==C,se=function S_e(t){const r=[];return Dre(t,r),r}((e.get(ne)||g_e).map(ai=>ai.getRealPlayer())).filter(ai=>!!ai.element&&ai.element===ne),Be=u.get(ne),Fe=m.get(ne),Ft=tre(this._normalizer,Q.keyframes,Be,Fe),Sn=this._buildPlayer(Q,Ft,se);if(Q.subTimeline&&s&&F.add(ne),ge){const ai=new eX(r,b,ne);ai.setRealPlayer(Sn),M.push(ai)}return Sn});M.forEach(Q=>{Tl(this.playersByQueriedElement,Q.element,[]).push(Q),Q.onDone(()=>function b_e(t,r,l){let e=t.get(r);if(e){if(e.length){const s=e.indexOf(l);e.splice(s,1)}0==e.length&&t.delete(r)}return e}(this.playersByQueriedElement,Q.element,Q))}),I.forEach(Q=>Sc(Q,sre));const q=uv(H);return q.onDestroy(()=>{I.forEach(Q=>AS(Q,sre)),Ku(C,l.toStyles)}),F.forEach(Q=>{Tl(s,Q,[]).push(q)}),q}_buildPlayer(r,l,e){return l.length>0?this.driver.animate(r.element,l,r.duration,r.delay,r.easing,e):new $u(r.duration,r.delay)}}class eX{constructor(r,l,e){this.namespaceId=r,this.triggerName=l,this.element=e,this._player=new $u,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((l,e)=>{l.forEach(s=>RZ(r,e,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const l=this._player;l.triggerCallback&&r.onStart(()=>l.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,l){Tl(this._queuedCallbacks,r,[]).push(l)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const l=this._player;l.triggerCallback&&l.triggerCallback(r)}}function F4(t){return t&&1===t.nodeType}function xre(t,r){const l=t.style.display;return t.style.display=r??"none",l}function Cre(t,r,l,e,s){const u=[];l.forEach(C=>u.push(xre(C)));const m=[];e.forEach((C,M)=>{const I=new Map;C.forEach(F=>{const H=r.computeStyle(M,F,s);I.set(F,H),(!H||0==H.length)&&(M[Td]=v_e,m.push(M))}),t.set(M,I)});let b=0;return l.forEach(C=>xre(C,u[b++])),m}function Sre(t,r){const l=new Map;if(t.forEach(b=>l.set(b,[])),0==r.length)return l;const s=new Set(r),u=new Map;function m(b){if(!b)return 1;let C=u.get(b);if(C)return C;const M=b.parentNode;return C=l.has(M)?M:s.has(M)?1:m(M),u.set(b,C),C}return r.forEach(b=>{const C=m(b);1!==C&&l.get(C).push(b)}),l}function Sc(t,r){var l;null==(l=t.classList)||l.add(r)}function AS(t,r){var l;null==(l=t.classList)||l.remove(r)}function C_e(t,r,l){uv(l).onDone(()=>t.processLeaveNode(r))}function Dre(t,r){for(let l=0;ls.add(u)):r.set(t,e),l.delete(t),!0}class nR{constructor(r,l,e){this._driver=l,this._normalizer=e,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new y_e(r.body,l,e),this._timelineEngine=new u_e(r.body,l,e),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(r,l,e,s,u){const m=r+"-"+s;let b=this._triggerCache[m];if(!b){const C=[],I=WZ(this._driver,u,C,[]);if(C.length)throw function fve(t,r){return new be(3404,!1)}();b=function s_e(t,r,l){return new l_e(t,r,l)}(s,I,this._normalizer),this._triggerCache[m]=b}this._transitionEngine.registerTrigger(l,s,b)}register(r,l){this._transitionEngine.register(r,l)}destroy(r,l){this._transitionEngine.destroy(r,l)}onInsert(r,l,e,s){this._transitionEngine.insertNode(r,l,e,s)}onRemove(r,l,e){this._transitionEngine.removeNode(r,l,e)}disableAnimations(r,l){this._transitionEngine.markElementAsDisabled(r,l)}process(r,l,e,s){if("@"==e.charAt(0)){const[u,m]=nre(e);this._timelineEngine.command(u,l,m,s)}else this._transitionEngine.trigger(r,l,e,s)}listen(r,l,e,s,u){if("@"==e.charAt(0)){const[m,b]=nre(e);return this._timelineEngine.listen(m,l,b,u)}return this._transitionEngine.listen(r,l,e,s,u)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(r){this._transitionEngine.afterFlushAnimationsDone(r)}}let M_e=(()=>{class r{constructor(e,s,u){this._element=e,this._startStyles=s,this._endStyles=u,this._state=0;let m=r.initialStylesByElement.get(e);m||r.initialStylesByElement.set(e,m=new Map),this._initialStyles=m}start(){this._state<1&&(this._startStyles&&Ku(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ku(this._element,this._initialStyles),this._endStyles&&(Ku(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(zb(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zb(this._element,this._endStyles),this._endStyles=null),Ku(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function tX(t){let r=null;return t.forEach((l,e)=>{(function A_e(t){return"display"===t||"position"===t})(e)&&(r=r||new Map,r.set(e,l))}),r}class Mre{constructor(r,l,e,s){this.element=r,this.keyframes=l,this.options=e,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map;const l=()=>this._onFinish();this.domPlayer.addEventListener("finish",l),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",l)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const l=[];return r.forEach(e=>{l.push(Object.fromEntries(e))}),l}_triggerWebAnimation(r,l,e){return r.animate(this._convertKeyframesToObject(l),e)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,s)=>{"offset"!==s&&r.set(s,this._finished?e:ure(this.element,s))}),this.currentSnapshot=r}triggerCallback(r){const l="start"===r?this._onStartFns:this._onDoneFns;l.forEach(e=>e()),l.length=0}}class Are{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,l){return!1}containsElement(r,l){return rre(r,l)}getParentElement(r){return FZ(r)}query(r,l,e){return are(r,l,e)}computeStyle(r,l,e){return window.getComputedStyle(r)[l]}animate(r,l,e,s,u,m=[]){const C={duration:e,delay:s,fill:0==s?"both":"forwards"};u&&(C.easing=u);const M=new Map,I=m.filter(q=>q instanceof Mre);(function Nve(t,r){return 0===t||0===r})(e,s)&&I.forEach(q=>{q.currentSnapshot.forEach((Q,ne)=>M.set(ne,Q))});let F=function Ove(t){return t.length?t[0]instanceof Map?t:t.map(r=>lre(r)):[]}(l).map(q=>hv(q));F=function Vve(t,r,l){if(l.size&&r.length){let e=r[0],s=[];if(l.forEach((u,m)=>{e.has(m)||s.push(m),e.set(m,u)}),s.length)for(let u=1;um.set(b,ure(t,b)))}}return r}(r,F,M);const H=function T_e(t,r){let l=null,e=null;return Array.isArray(r)&&r.length?(l=tX(r[0]),r.length>1&&(e=tX(r[r.length-1]))):r instanceof Map&&(l=tX(r)),l||e?new M_e(t,l,e):null}(r,F);return new Mre(r,F,C,H)}}const Ere="@.disabled";class Ire{constructor(r,l,e,s){this.namespaceId=r,this.delegate=l,this.engine=e,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(r){var l,e;null==(e=(l=this.delegate).destroyNode)||e.call(l,r)}destroy(){var r;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null==(r=this._onDestroy)||r.call(this)}createElement(r,l){return this.delegate.createElement(r,l)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,l){this.delegate.appendChild(r,l),this.engine.onInsert(this.namespaceId,l,r,!1)}insertBefore(r,l,e,s=!0){this.delegate.insertBefore(r,l,e),this.engine.onInsert(this.namespaceId,l,r,s)}removeChild(r,l,e){this.engine.onRemove(this.namespaceId,l,this.delegate)}selectRootElement(r,l){return this.delegate.selectRootElement(r,l)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,l,e,s){this.delegate.setAttribute(r,l,e,s)}removeAttribute(r,l,e){this.delegate.removeAttribute(r,l,e)}addClass(r,l){this.delegate.addClass(r,l)}removeClass(r,l){this.delegate.removeClass(r,l)}setStyle(r,l,e,s){this.delegate.setStyle(r,l,e,s)}removeStyle(r,l,e){this.delegate.removeStyle(r,l,e)}setProperty(r,l,e){"@"==l.charAt(0)&&l==Ere?this.disableAnimations(r,!!e):this.delegate.setProperty(r,l,e)}setValue(r,l){this.delegate.setValue(r,l)}listen(r,l,e){return this.delegate.listen(r,l,e)}disableAnimations(r,l){this.engine.disableAnimations(r,l)}}class E_e extends Ire{constructor(r,l,e,s,u){super(l,e,s,u),this.factory=r,this.namespaceId=l}setProperty(r,l,e){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Ere?this.disableAnimations(r,e=void 0===e||!!e):this.engine.process(this.namespaceId,r,l.slice(1),e):this.delegate.setProperty(r,l,e)}listen(r,l,e){if("@"==l.charAt(0)){const s=function I_e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(r);let u=l.slice(1),m="";return"@"!=u.charAt(0)&&([u,m]=function k_e(t){const r=t.indexOf(".");return[t.substring(0,r),t.slice(r+1)]}(u)),this.engine.listen(this.namespaceId,s,u,m,b=>{this.factory.scheduleListenerCallback(b._data||-1,e,b)})}return this.delegate.listen(r,l,e)}}class P_e{constructor(r,l,e){this.delegate=r,this.engine=l,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,l.onRemovalComplete=(s,u)=>{const m=null==u?void 0:u.parentNode(s);m&&u.removeChild(m,s)}}createRenderer(r,l){var M;const s=this.delegate.createRenderer(r,l);if(!r||null==(M=null==l?void 0:l.data)||!M.animation){const I=this._rendererCache;let F=I.get(s);return F||(F=new Ire("",s,this.engine,()=>I.delete(s)),I.set(s,F)),F}const u=l.id,m=l.id+"-"+this._currentId;this._currentId++,this.engine.register(m,r);const b=I=>{Array.isArray(I)?I.forEach(b):this.engine.registerTrigger(u,m,r,I.name,I)};return l.data.animation.forEach(b),new E_e(this,m,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(r,l,e){if(r>=0&&rl(e));const s=this._animationCallbacksBuffer;0==s.length&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(u=>{const[m,b]=u;m(b)}),this._animationCallbacksBuffer=[]})}),s.push([l,e])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const kre=[{provide:BZ,useFactory:function O_e(){return new hre}},{provide:nR,useClass:(()=>{var t;class r extends nR{constructor(e,s,u,m){super(e,s,u)}ngOnDestroy(){this.flush()}}return(t=r).\u0275fac=function(e){return new(e||t)(fe(yt),fe(VZ),fe(BZ),fe(ol))},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})()},{provide:yw,useFactory:function L_e(t,r,l){return new P_e(t,r,l)},deps:[PE,nR,Ye]}],nX=[{provide:VZ,useFactory:()=>new Are},{provide:si,useValue:"BrowserAnimations"},...kre],Pre=[{provide:VZ,useClass:NZ},{provide:si,useValue:"NoopAnimations"},...kre];let F_e=(()=>{var t;class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?Pre:nX}}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:nX,imports:[zy]}),r})();function N_e(t,r){1&t&&(P(0,"span",7),dt(1,1),R())}function V_e(t,r){1&t&&(P(0,"span",8),dt(1,2),R())}const Rre=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ore=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function H_e(t,r){1&t&&pe(0,"span",7)}function U_e(t,r){1&t&&(P(0,"span",8),dt(1),R())}function j_e(t,r){1&t&&dt(0,1)}function G_e(t,r){1&t&&pe(0,"span",9)}function W_e(t,r){1&t&&re(0,j_e,1,0)(1,G_e,1,0),2&t&&an(0,Z().contentEditInput?0:1)}function $_e(t,r){1&t&&dt(0,2)}function Y_e(t,r){1&t&&(P(0,"span",10),dt(1,3),R())}const q_e=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Z_e=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],iX=["*"],V4=new ve("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rX=new ve("MatChipAvatar"),aX=new ve("MatChipTrailingIcon"),oX=new ve("MatChipRemove"),B4=new ve("MatChip");class X_e{}const K_e=W1(X_e,-1);let ES=(()=>{var t;class r extends K_e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=Ot(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,s){super(),this._elementRef=e,this._parentChip=s,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(B4))},t.\u0275dir=ce({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,s){1&e&&J("click",function(m){return s._handleClick(m)})("keydown",function(m){return s._handleKeydown(m)}),2&e&&($e("tabindex",s._getTabindex())("disabled",s._getDisabledAttribute())("aria-disabled",s.disabled),et("mdc-evolution-chip__action--primary",s._isPrimary)("mdc-evolution-chip__action--presentational",!s.isInteractive)("mdc-evolution-chip__action--trailing",!s._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ze]}),r})(),Nre=(()=>{var t;class r extends ES{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return(t=r).\u0275fac=(()=>{let l;return function(s){return(l||(l=rn(t)))(s||t)}})(),t.\u0275dir=ce({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,s){2&e&&$e("aria-hidden",null)},features:[Je([{provide:oX,useExisting:t}]),ze]}),r})(),eye=0;const tye=W1(tv(sP(lp(class{constructor(t){this._elementRef=t}})),"primary"),-1);let IS=(()=>{var t;class r extends tye{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=Ot(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=Ot(e)}get ripple(){var e;return null==(e=this._rippleLoader)?void 0:e.getRipple(this._elementRef.nativeElement)}set ripple(e){var s;null==(s=this._rippleLoader)||s.attachRipple(this._elementRef.nativeElement,e)}constructor(e,s,u,m,b,C,M,I){var F;super(s),this._changeDetectorRef=e,this._ngZone=u,this._focusMonitor=m,this._globalRippleOptions=M,this._onFocus=new he,this._onBlur=new he,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+eye++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Ce,this.destroyed=new Ce,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=De(J1),this._document=b,this._animationsDisabled="NoopAnimations"===C,null!=I&&(this.tabIndex=parseInt(I)??this.defaultTabIndex),this._monitorFocus(),null==(F=this._rippleLoader)||F.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=xi(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){var e,s;this._focusMonitor.stopMonitoring(this._elementRef),null==(e=this._rippleLoader)||e.destroyRipple(this._elementRef.nativeElement),null==(s=this._actionChanges)||s.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){var e;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!(null==(e=this._globalRippleOptions)||!e.disabled)}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(s=>{const u=s._elementRef.nativeElement;return u===e||u.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const s=null!==e;s!==this._hasFocusInternal&&(this._hasFocusInternal=s,s?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(In(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(Ye),V(uo),V(yt),V(si,8),V(Z1,8),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,s,u){if(1&e&&(Kt(u,rX,5),Kt(u,aX,5),Kt(u,oX,5),Kt(u,rX,5),Kt(u,aX,5),Kt(u,oX,5)),2&e){let m;Ne(m=Ve())&&(s.leadingIcon=m.first),Ne(m=Ve())&&(s.trailingIcon=m.first),Ne(m=Ve())&&(s.removeIcon=m.first),Ne(m=Ve())&&(s._allLeadingIcons=m),Ne(m=Ve())&&(s._allTrailingIcons=m),Ne(m=Ve())&&(s._allRemoveIcons=m)}},viewQuery:function(e,s){if(1&e&&ft(ES,5),2&e){let u;Ne(u=Ve())&&(s.primaryAction=u.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)}),2&e&&(Ba("id",s.id),$e("role",s.role)("tabindex",s.role?s.tabIndex:null)("aria-label",s.ariaLabel),et("mdc-evolution-chip",!s._isBasicChip)("mdc-evolution-chip--disabled",s.disabled)("mdc-evolution-chip--with-trailing-action",s._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",s.leadingIcon)("mdc-evolution-chip--with-primary-icon",s.leadingIcon)("mdc-evolution-chip--with-avatar",s.leadingIcon)("mat-mdc-chip-with-avatar",s.leadingIcon)("mat-mdc-chip-highlighted",s.highlighted)("mat-mdc-chip-disabled",s.disabled)("mat-mdc-basic-chip",s._isBasicChip)("mat-mdc-standard-chip",!s._isBasicChip)("mat-mdc-chip-with-trailing-icon",s._hasTrailingIcon())("_mat-animation-noopable",s._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Je([{provide:B4,useExisting:t}]),ze],ngContentSelectors:Ore,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,s){1&e&&(jn(Rre),pe(0,"span",0),P(1,"span",1)(2,"span",2),re(3,N_e,2,0,"span",3),P(4,"span",4),dt(5),pe(6,"span",5),R()()(),re(7,V_e,2,0,"span",6)),2&e&&(N(2),z("isInteractive",!1),N(),an(3,s.leadingIcon?3:-1),N(4),an(7,s._hasTrailingIcon()?7:-1))},dependencies:[ES],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})(),z4=(()=>{var t;class r{constructor(e,s){this._elementRef=e,this._document=s}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const s=window.getSelection();s.removeAllRanges(),s.addRange(e)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(yt))},t.\u0275dir=ce({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),r})(),sX=(()=>{var t;class r extends IS{constructor(e,s,u,m,b,C,M,I){super(e,s,u,m,b,C,M,I),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Ce,this._isEditing=!1,this.role="row",this._onBlur.pipe(Dt(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const s=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(s),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return(t=r).\u0275fac=function(e){return new(e||t)(V(dn),V(je),V(Ye),V(uo),V(yt),V(si,8),V(Z1,8),Ie("tabindex"))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,s,u){if(1&e&&Kt(u,z4,5),2&e){let m;Ne(m=Ve())&&(s.contentEditInput=m.first)}},viewQuery:function(e,s){if(1&e&&ft(z4,5),2&e){let u;Ne(u=Ve())&&(s.defaultEditInput=u.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,s){1&e&&J("focus",function(m){return s._handleFocus(m)})("dblclick",function(m){return s._handleDoubleclick(m)}),2&e&&(Ba("id",s.id),$e("tabindex",s.disabled?null:-1)("aria-label",null)("aria-description",null)("role",s.role),et("mat-mdc-chip-with-avatar",s.leadingIcon)("mat-mdc-chip-disabled",s.disabled)("mat-mdc-chip-editing",s._isEditing)("mat-mdc-chip-editable",s.editable)("mdc-evolution-chip--disabled",s.disabled)("mdc-evolution-chip--with-trailing-action",s._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",s.leadingIcon)("mdc-evolution-chip--with-primary-icon",s.leadingIcon)("mdc-evolution-chip--with-avatar",s.leadingIcon)("mat-mdc-chip-highlighted",s.highlighted)("mat-mdc-chip-with-trailing-icon",s._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Je([{provide:IS,useExisting:t},{provide:B4,useExisting:t}]),ze],ngContentSelectors:Z_e,decls:10,vars:10,consts:[["class","mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,s){1&e&&(jn(q_e),re(0,H_e,1,0,"span",0),P(1,"span",1),re(2,U_e,2,0,"span",2),P(3,"span",3),re(4,W_e,2,1)(5,$_e,1,0),pe(6,"span",4),R()(),re(7,Y_e,2,0,"span",5),P(8,"span",6),Y(9),R()),2&e&&(an(0,s._isEditing?-1:0),N(),z("tabIndex",s.tabIndex)("disabled",s.disabled),$e("aria-label",s.ariaLabel)("aria-describedby",s._ariaDescriptionId),N(),an(2,s.leadingIcon?2:-1),N(2),an(4,s._isEditing?4:5),N(3),an(7,s._hasTrailingIcon()?7:-1),N(),z("id",s._ariaDescriptionId),N(),En(s.ariaDescription))},dependencies:[ES,z4],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),r})();class nye{constructor(r){}}const iye=W1(nye);let lX=(()=>{var t;class r extends iye{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,s,u){super(e),this._elementRef=e,this._changeDetectorRef=s,this._dir=u,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new he,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new yu}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){var e;null==(e=this._keyManager)||e.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(pr(null),Li(()=>xi(...this._chips.map(e))))}_originatesFromChip(e){let s=e.target;for(;s&&s!==this._elementRef.nativeElement;){if(s.classList.contains("mat-mdc-chip"))return!0;s=s.parentElement}return!1}_setUpFocusManagement(){var e;this._chips.changes.pipe(pr(this._chips)).subscribe(s=>{const u=[];s.forEach(m=>m._getActions().forEach(b=>u.push(b))),this._chipActions.reset(u),this._chipActions.notifyOnChanges()}),this._keyManager=new qk(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(s=>this._skipPredicate(s)),this.chipFocusChanges.pipe(Dt(this._destroyed)).subscribe(({chip:s})=>{const u=s._getSourceAction(document.activeElement);u&&this._keyManager.updateActiveItem(u)}),null==(e=this._dir)||e.change.pipe(Dt(this._destroyed)).subscribe(s=>this._keyManager.withHorizontalOrientation(s))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(pr(null),Dt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Dt(this._destroyed)).subscribe(e=>{const u=this._chips.toArray().indexOf(e.chip);this._isValidIndex(u)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),s=this._chips.toArray()[e];s.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():s.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ir,8))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-set"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,IS,5),2&e){let m;Ne(m=Ve())&&(s._chips=m)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._handleKeydown(m)}),2&e&&$e("role",s.role)},inputs:{disabled:"disabled",role:"role"},features:[ze],ngContentSelectors:iX,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,s){1&e&&(jn(),P(0,"div",0),dt(1),R())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),r})();class oye{constructor(r,l){this.source=r,this.value=l}}class sye extends lX{constructor(r,l,e,s,u,m,b){super(r,l,e),this._defaultErrorStateMatcher=s,this._parentForm=u,this._parentFormGroup=m,this.ngControl=b,this.stateChanges=new he}}const lye=Db(sye);let zre=(()=>{var t;class r extends lye{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ot(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){var e,s;return this._required??(null==(s=null==(e=this.ngControl)?void 0:e.control)?void 0:s.hasValidator(hS.required))??!1}set required(e){this._required=Ot(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,s,u,m,b,C,M){super(e,s,u,C,m,b,M),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Ce,this.valueChange=new Ce,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(Dt(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),xi(this.chipFocusChanges,this._chips.changes).pipe(Dt(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){var s;this._ariaDescribedbyIds=e,null==(s=this._chipInput)||s.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&vr(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(s=>s.value):[];this._value=e,this.change.emit(new oye(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(dn),V(Ir,8),V(ov,8),V(mS,8),V(Gu),V(x,10))},t.\u0275cmp=xe({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,sX,5),2&e){let m;Ne(m=Ve())&&(s._chips=m)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,s){1&e&&J("focus",function(){return s.focus()})("blur",function(){return s._blur()}),2&e&&(Ba("tabIndex",s._chips&&0===s._chips.length?-1:s.tabIndex),$e("role",s.role)("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState),et("mat-mdc-chip-list-disabled",s.disabled)("mat-mdc-chip-list-invalid",s.errorState)("mat-mdc-chip-list-required",s.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Je([{provide:$z,useExisting:t}]),ze],ngContentSelectors:iX,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,s){1&e&&(jn(),P(0,"div",0),dt(1),R())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),r})(),cye=0,Hre=(()=>{var t;class r{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ot(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=Ot(e)}get empty(){return!this.inputElement.value}constructor(e,s,u){this._elementRef=e,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new Ce,this.placeholder="",this.id="mat-mdc-chip-list-input-"+cye++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=s.separatorKeyCodes,u&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const s=this._elementRef.nativeElement;e.length?s.setAttribute("aria-describedby",e.join(" ")):s.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!vr(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(V4),V(_S,8))},t.\u0275dir=ce({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,s){1&e&&J("keydown",function(m){return s._keydown(m)})("keyup",function(m){return s._keyup(m)})("blur",function(){return s._blur()})("focus",function(){return s._focus()})("input",function(){return s._onInput()}),2&e&&(Ba("id",s.id),$e("disabled",s.disabled||null)("placeholder",s.placeholder||null)("aria-invalid",s._chipGrid&&s._chipGrid.ngControl?s._chipGrid.ngControl.invalid:null)("aria-required",s._chipGrid&&s._chipGrid.required||null)("required",s._chipGrid&&s._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[nn]}),r})(),dye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[Gu,{provide:V4,useValue:{separatorKeyCodes:[13]}}],imports:[$t,Wu,$t]}),r})(),uye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({}),r})(),hye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,uye,gl]}),r})();const fye=["*",[["mat-toolbar-row"]]],pye=["*","mat-toolbar-row"],mye=tv(class{constructor(t){this._elementRef=t}});let gye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275dir=ce({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),vye=(()=>{var t;class r extends mye{constructor(e,s,u){super(e),this._platform=s,this._document=u}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(je),V(Jn),V(yt))},t.\u0275cmp=xe({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,s,u){if(1&e&&Kt(u,gye,5),2&e){let m;Ne(m=Ve())&&(s._toolbarRows=m)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,s){2&e&&et("mat-toolbar-multiple-rows",s._toolbarRows.length>0)("mat-toolbar-single-row",0===s._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ze],ngContentSelectors:pye,decls:2,vars:0,template:function(e,s){1&e&&(jn(fye),dt(0),dt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),r})(),_ye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({imports:[$t,$t]}),r})(),yye=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t}),t.\u0275inj=ht({providers:[{provide:rne,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Tb,useValue:udsData.language}],imports:[Er,Zae,xte,_ye,hp,fue,tZ,hye,wz,Yz,yue,hne,nge,sz,Gce,uce,bce,Vne,Ine,koe,dye,oge,_pe,Whe,pse,zne,eue,Bde]}),r})();function bye(t,r){if(1&t){const l=Oe();P(0,"button",6),J("click",function(){const u=oe(l).$implicit;return le(Z().changeLang(u))}),Y(1),R()}if(2&t){const l=r.$implicit;N(),En(l.name)}}function wye(t,r){if(1&t&&(P(0,"button",12)(1,"i",7),Y(2,"face"),R(),Y(3),R()),2&t){const l=Z();z("matMenuTriggerFor",pn(7)),N(3),En(l.api.user.user)}}function xye(t,r){if(1&t&&(P(0,"button",18),Y(1),P(2,"i",7),Y(3,"arrow_drop_down"),R()()),2&t){const l=Z();z("matMenuTriggerFor",pn(7)),N(),Re("",l.api.user.user," ")}}let Cye=(()=>{var t;class r{constructor(e){this.api=e,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;const s=e.config.language;this.langs=[];for(const u of e.config.available_languages)u.id===s?this.lang=u:this.langs.push(u)}ngOnInit(){}changeLang(e){this.lang=e;const s=document.getElementById("id_language");return s&&s.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,s){if(1&e&&(P(0,"form",0),pe(1,"input",1)(2,"input",2),R(),P(3,"mat-menu",null,3),re(5,bye,2,1,"button",4),R(),P(6,"mat-menu",null,5)(8,"button",6),J("click",function(){return s.user()}),P(9,"i",7),Y(10,"home"),R(),P(11,"uds-translate"),Y(12,"User mode"),R()(),P(13,"button",6),J("click",function(){return s.logout()}),P(14,"i",8),Y(15,"exit_to_app"),R(),P(16,"uds-translate"),Y(17,"Logout"),R()()(),P(18,"mat-menu",9,10),re(20,wye,4,2,"button",11),P(21,"button",12)(22,"i",7),Y(23,"language"),R(),Y(24),R()(),P(25,"mat-toolbar",13)(26,"button",14),pe(27,"img",15),R(),pe(28,"span",16),P(29,"div",17)(30,"button",18),Y(31),P(32,"i",7),Y(33,"arrow_drop_down"),R()(),re(34,xye,4,2,"button",19),R(),P(35,"div",20)(36,"button",21)(37,"i",7),Y(38,"menu"),R()()()()),2&e){const u=pn(4),m=pn(19);_u("action",s.api.config.urls.changeLang,Ut),N(),_u("name",s.api.csrfField),_u("value",s.api.csrfToken),N(),_u("value",s.lang.id),N(3),z("ngForOf",s.langs),N(15),z("ngIf",s.api.user.isLogged),N(),z("matMenuTriggerFor",u),N(3),En(s.lang.name),N(3),z("src",s.api.staticURL("admin/img/udsicon.png"),Ut),N(3),z("matMenuTriggerFor",u),N(),Re("",s.lang.name," "),N(3),z("ngIf",s.api.user.isLogged),N(2),z("matMenuTriggerFor",m)}},dependencies:[mi,xn,mr,Bq,E,ov,vye,Pn,wc,SS,qP,qne,vn],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),r})(),Sye=(()=>{var t;class r{constructor(){}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(e,s){1&e&&(P(0,"div"),Y(1,"\xa9 2012-2023 "),P(2,"a",0),Y(3,"Virtual Cable S.L.U."),R()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),r})();function Dye(t,r){if(1&t&&(P(0,"a",27),pe(1,"img",2),P(2,"uds-translate"),Y(3,"Groups"),R()()),2&t){const l=Z();N(),z("src",l.icon("groups"),Ut)}}function Tye(t,r){if(1&t){const l=Oe();P(0,"a",3),J("click",function(){return oe(l),le(Z().toggleConfig())}),pe(1,"img",2),P(2,"span")(3,"uds-translate"),Y(4,"Tools"),R(),P(5,"i",4),Y(6,"arrow_drop_down"),R()()()}if(2&t){const l=Z();N(),z("src",l.icon("tools"),Ut)}}let Mye=(()=>{var t;class r{constructor(e,s){this.api=e,this.rest=s,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){const s=new Map([["connectivity",u=>this.connectivityShown=!!u&&!this.connectivityShown],["pools",u=>this.poolsShown=!!u&&!this.poolsShown],["config",u=>this.configShown=!!u&&!this.configShown],["tokens",u=>this.tokensShown=!!u&&!this.tokensShown],["auths",u=>this.authsShown=!!u&&!this.authsShown],["services",u=>this.servicesShown=!!u&&!this.servicesShown]]);for(const u of s)u[1](u[0]===e)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt))},t.\u0275cmp=xe({type:t,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"a",1),pe(2,"img",2),P(3,"uds-translate"),Y(4,"Summary"),R()(),P(5,"a",3),J("click",function(){return s.toggleServices()}),pe(6,"img",2),P(7,"span")(8,"uds-translate"),Y(9,"Services"),R(),P(10,"i",4),Y(11,"arrow_drop_down"),R()()(),P(12,"div",5)(13,"a",6),pe(14,"img",2),P(15,"uds-translate"),Y(16,"Providers"),R()(),P(17,"a",7),pe(18,"img",2),P(19,"uds-translate"),Y(20,"Servers"),R()()(),P(21,"a",3),J("click",function(){return s.toggleAuths()}),pe(22,"img",2),P(23,"span")(24,"uds-translate"),Y(25,"Authentication"),R(),P(26,"i",4),Y(27,"arrow_drop_down"),R()()(),P(28,"div",5)(29,"a",8),pe(30,"img",2),P(31,"uds-translate"),Y(32,"Authenticators"),R()(),P(33,"a",9),pe(34,"img",2),P(35,"uds-translate"),Y(36,"Multi Factor"),R()()(),P(37,"a",10),pe(38,"img",2),P(39,"uds-translate"),Y(40,"Os Managers"),R()(),P(41,"a",3),J("click",function(){return s.toggleConnectivity()}),pe(42,"img",2),P(43,"span")(44,"uds-translate"),Y(45,"Connectivity"),R(),P(46,"i",4),Y(47,"arrow_drop_down"),R()()(),P(48,"div",5)(49,"a",11),pe(50,"img",2),P(51,"uds-translate"),Y(52,"Transports"),R()(),P(53,"a",12),pe(54,"img",2),P(55,"uds-translate"),Y(56,"Networks"),R()(),P(57,"a",13),pe(58,"img",2),P(59,"uds-translate"),Y(60,"Tunnels"),R()()(),P(61,"a",3),J("click",function(){return s.togglePools()}),pe(62,"img",2),P(63,"span")(64,"uds-translate"),Y(65,"Pools"),R(),P(66,"i",4),Y(67,"arrow_drop_down"),R()()(),P(68,"div",5)(69,"a",14),pe(70,"img",2),P(71,"uds-translate"),Y(72,"Service pools"),R()(),P(73,"a",15),pe(74,"img",2),P(75,"uds-translate"),Y(76,"Meta pools"),R()(),re(77,Dye,4,1,"a",16),P(78,"a",17),pe(79,"img",2),P(80,"uds-translate"),Y(81,"Calendars"),R()(),P(82,"a",18),pe(83,"img",2),P(84,"uds-translate"),Y(85,"Accounting"),R()()(),re(86,Tye,7,1,"a",19),P(87,"div",5)(88,"a",20),pe(89,"img",2),P(90,"uds-translate"),Y(91,"Gallery"),R()(),P(92,"a",21),pe(93,"img",2),P(94,"uds-translate"),Y(95,"Reports"),R()(),P(96,"a",22),pe(97,"img",2),P(98,"uds-translate"),Y(99,"Notifiers"),R()(),P(100,"a",3),J("click",function(){return s.tokensShown=!s.tokensShown}),pe(101,"img",2),P(102,"span")(103,"uds-translate"),Y(104,"Tokens"),R(),P(105,"i",4),Y(106,"arrow_drop_down"),R()()(),P(107,"div",23)(108,"a",24),pe(109,"img",2),P(110,"uds-translate"),Y(111,"Actor"),R()(),P(112,"a",25),pe(113,"img",2),P(114,"uds-translate"),Y(115,"Servers"),R()()(),P(116,"a",26),pe(117,"img",2),P(118,"uds-translate"),Y(119,"Configuration"),R()(),P(120,"a",3),J("click",function(){return s.flushCache()}),pe(121,"img",2),P(122,"uds-translate"),Y(123,"Flush Cache"),R()()()()),2&e&&(N(2),z("src",s.icon("dashboard-monitor"),Ut),N(4),z("src",s.icon("providers"),Ut),N(6),z("hidden",!s.servicesShown),N(2),z("src",s.icon("providers"),Ut),N(4),z("src",s.icon("servers"),Ut),N(4),z("src",s.icon("authentication"),Ut),N(6),z("hidden",!s.authsShown),N(2),z("src",s.icon("authenticators"),Ut),N(4),z("src",s.icon("mfas"),Ut),N(4),z("src",s.icon("osmanagers"),Ut),N(4),z("src",s.icon("connectivity"),Ut),N(6),z("hidden",!s.connectivityShown),N(2),z("src",s.icon("transports"),Ut),N(4),z("src",s.icon("networks"),Ut),N(4),z("src",s.icon("tunnels"),Ut),N(4),z("src",s.icon("poolsmenu"),Ut),N(6),z("hidden",!s.poolsShown),N(2),z("src",s.icon("pools"),Ut),N(4),z("src",s.icon("metas"),Ut),N(3),z("ngIf",s.api.user.isAdmin),N(2),z("src",s.icon("calendars"),Ut),N(4),z("src",s.icon("accounts"),Ut),N(3),z("ngIf",s.api.user.isAdmin),N(),z("hidden",!s.configShown),N(2),z("src",s.icon("gallery"),Ut),N(4),z("src",s.icon("reports"),Ut),N(4),z("src",s.icon("notifiers"),Ut),N(4),z("src",s.icon("tokens"),Ut),N(6),z("hidden",!s.tokensShown),N(2),z("src",s.icon("actors"),Ut),N(4),z("src",s.icon("servers"),Ut),N(4),z("src",s.icon("configuration"),Ut),N(4),z("src",s.icon("flush-cache"),Ut))},dependencies:[xn,mr,oS,vn],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),r})();function Aye(t,r){1&t&&pe(0,"div",1),2&t&&z("innerHTML",Z().messages,zr)}let Eye=(()=>{var t;class r{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){const e=s=>s.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){const s='
';this.messages='
'+s+this.api.notices.map(e).join("
"+s)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(e,s){1&e&&re(0,Aye,1,1,"div",0),2&e&&z("ngIf",s.visible)},dependencies:[xn],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),r})(),Iye=(()=>{var t;class r{constructor(e){this.api=e,this.title="UDS Admin"}get blackTheme(){return"true"===this.api.getFromStorage("blackTheme")}set blackTheme(e){this.api.putOnStorage("blackTheme",e.toString())}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&"b"===e.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-root"]],hostBindings:function(e,s){1&e&&J("keydown",function(m){return s.handleKeyboardEvent(m)},0,Bs)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,s){1&e&&(pe(0,"uds-navbar")(1,"uds-sidebar"),P(2,"div",0)(3,"div",1),pe(4,"uds-notices")(5,"router-outlet"),R(),P(6,"div",2),pe(7,"uds-footer"),R()())},dependencies:[GI,Cye,Sye,Mye,Eye],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),r})(),kye=(()=>{var t;class r extends yS{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275prov=ke({token:t,factory:t.\u0275fac}),r})(),Pye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"input",0),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("maxlength",s.field.gui.length||128)("autocomplete","new-"+s.field.name))},dependencies:[$i,A,xc,HP,ii,ri,Ci,Sa],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})();function Rye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l),N(),Re(" ",l," ")}}let Oye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.values=[]}ngOnInit(){const e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(s=>s.text)}_filter(){const e=this.field.value.toLowerCase();return this.values.filter(s=>s.toLowerCase().includes(e))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(e,s){if(1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-autocomplete",null,0),re(5,Rye,2,2,"mat-option",1),R(),P(6,"input",2),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e){const u=pn(4);N(2),Re(" ",s.field.gui.label," "),N(3),z("ngForOf",s._filter()),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("maxlength",s.field.gui.length||128)("matAutocomplete",u)("autocomplete","new-"+s.field.name)}},dependencies:[mi,$i,A,xc,HP,ii,ri,Ci,Sa,Ni,yZ,v4],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})(),Lye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.default||0)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly))},dependencies:[$i,sv,A,xc,ii,ri,Ci,Sa]}),r})(),Fye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),R(),P(4,"button",2),J("click",function(){return s.passwordType="text"===s.passwordType?"password":"text"}),P(5,"i",3),Y(6),R()()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly)("type",s.passwordType),N(3),En("text"===s.passwordType?"visibility_off":"visibility"))},dependencies:[$i,A,xc,ii,wc,ri,Ci,vS,Sa],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),r})(),Nye=(()=>{var t;class r{constructor(){this.field={}}ngOnInit(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.default||"")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(e,s){}}),r})(),Vye=(()=>{var t;class r{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModel","placeholder","required","readonly","rows","maxlength","ngModelChange"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"textarea",1),J("ngModelChange",function(m){return s.field.value=m}),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!!s.field.gui.required)("readonly",!0===s.field.gui.readonly)("rows",s.field.gui.lines||3)("maxlength",s.field.gui.length||255))},dependencies:[$i,A,xc,HP,ii,ri,Ci,Sa]}),r})();function Bye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}let zye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){const e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",e.length>0&&!e.find(s=>s.id===this.field.value)&&(this.field.value=""),""===this.field.value&&e.length>0&&(this.field.value=e[0].id)}ngOnInit(){this.setValue()}filteredValues(){const e=this.field.gui.choices||[];if(this.setValue(),!this.filter)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"options","placeholderLabel","noEntriesFoundLabel","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("ngModelChange",function(m){return s.field.value=m})("valueChange",function(){return s.changed.emit(s)}),P(4,"uds-cond-select-search",1),J("changed",function(m){return s.filter=m}),R(),re(5,Bye,2,2,"mat-option",2),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.field.gui.tooltip)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(),z("options",s.field.gui.choices)("placeholderLabel",s.placeholderLabel)("noEntriesFoundLabel",s.noEntriesFoundLabel),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,A,xc,ii,ri,Ci,Ya,Ni,Cc]}),r})();function Hye(t,r){if(1&t&&(P(0,"mat-option",3),Y(1),R()),2&t){const l=r.$implicit;z("value",l.id),N(),Re(" ",l.text," ")}}let Uye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){const e=this.field.gui.choices||[];if(!this.filter||0===e.length)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}selectTriggerString(){var u,m;const e=this.field.value||[];let s="";0===e.length&&(s=this.field.gui.tooltip||django.gettext("Select"));for(const b of e)""!==s&&(s+=", "),s+=(null==(m=null==(u=this.field.gui.choices)?void 0:u.find(C=>C.id===b))?void 0:m.text)||b;return s}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("ngModelChange",function(m){return s.field.value=m})("valueChange",function(){return s.changed.emit(s)}),P(4,"mat-select-trigger"),Y(5),R(),P(6,"uds-cond-select-search",1),J("changed",function(m){return s.filter=m}),R(),re(7,Hye,2,2,"mat-option",2),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("ngModel",s.field.value)("placeholder",s.selectTriggerString())("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(2),Re(" ",s.selectTriggerString()," "),N(),z("options",s.field.gui.choices),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,A,xc,ii,ri,Ci,Ya,une,Ni,Cc]}),r})();function jye(t,r){if(1&t){const l=Oe();P(0,"div",12)(1,"div",13),Y(2),R(),P(3,"div",14),Y(4," \xa0"),P(5,"a",15),J("click",function(){const u=oe(l).index;return le(Z().removeElement(u))}),P(6,"i",16),Y(7,"close"),R()()()()}if(2&t){const l=r.$implicit;N(2),Re(" ",l," ")}}let Gye=(()=>{var t;class r{constructor(e,s,u,m){this.api=e,this.rest=s,this.dialogRef=u,this.data=m,this.values=[],this.input="",this.done=new wl,this.data.values.forEach(b=>this.values.push(b))}static launch(e,s,u){const m=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(r,{width:m,data:{title:s,values:u},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){"Enter"===e.code&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt),V(Lt),V(di),V(Bi))},t.\u0275cmp=xe({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(e,s){1&e&&(P(0,"h4",0),Y(1),R(),P(2,"mat-dialog-content")(3,"div",1)(4,"div",2),re(5,jye,8,1,"div",3),R(),P(6,"div",4)(7,"button",5),J("click",function(){return s.removeAll()}),P(8,"uds-translate"),Y(9,"Remove all"),R()()(),P(10,"div",6)(11,"mat-form-field",7)(12,"input",8),J("keyup",function(m){return s.checkKey(m)})("ngModelChange",function(m){return s.input=m}),R(),P(13,"button",9),J("click",function(){return s.addElements()}),P(14,"i",10),Y(15,"add"),R()()()()()(),P(16,"mat-dialog-actions")(17,"button",5),J("click",function(){return s.cancel()}),P(18,"uds-translate"),Y(19,"Cancel"),R()(),P(20,"button",11),J("click",function(){return s.save()}),P(21,"uds-translate"),Y(22,"Ok"),R()()()),2&e&&(N(),Re(" ",s.data.title,"\n"),N(4),z("ngForOf",s.values),N(7),z("ngModel",s.input))},dependencies:[mi,$i,A,ii,Pn,wc,zi,Ai,Hi,ri,vS,Sa,vn],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),r})(),Wye=(()=>{var t;class r{constructor(e){this.api=e,this.field={},this.changed=new Ce}ngOnInit(){}valueEmpty(){return null==this.field.value||0===this.field.value.length}launch(){var e=this;return Ge(function*(){e.valueEmpty()&&(e.field.value=[]),yield Gye.launch(e.api,e.field.gui.label,e.field.value||e.field.gui.default||[]),e.changed.emit({field:e.field})})()}getValue(){if(this.valueEmpty())return"";let e=this.field.value.filter((s,u,m)=>u<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(e,s){1&e&&(P(0,"mat-form-field",0),J("click",function(){return s.launch()}),P(1,"mat-label"),Y(2),R(),pe(3,"input",1),R()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("readonly",!0)("value",s.getValue())("placeholder",s.field.gui.tooltip)("disabled",!0===s.field.gui.readonly))},dependencies:[ri,Ci,Sa],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),r})(),$ye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce}ngOnInit(){this.field.value=(t=>""===t||null==t)(this.field.value)?IP(this.field.gui.default):IP(this.field.value)}getValue(){return IP(this.field.value)?django.gettext("Yes"):django.gettext("No")}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(e,s){1&e&&(P(0,"div",0)(1,"mat-slide-toggle",1),J("ngModelChange",function(m){return s.field.value=m})("change",function(){return s.changed.emit(s)}),Y(2),R()()),2&e&&(N(),z("ngModel",s.field.value)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(),Re(" ",s.field.gui.label," "))},dependencies:[A,xc,ii,vie,ZP]}),r})();function Yye(t,r){if(1&t&&pe(0,"div",5),2&t){const l=Z().$implicit;z("innerHTML",Z().asIcon(l),zr)}}function qye(t,r){if(1&t&&(P(0,"div"),re(1,Yye,1,1,"div",4),R()),2&t){const l=r.$implicit,e=Z();N(),z("ngIf",l.id===e.field.value)}}function Zye(t,r){if(1&t&&(P(0,"mat-option",6),pe(1,"div",5),R()),2&t){const l=r.$implicit,e=Z();z("value",l.id),N(),z("innerHTML",e.asIcon(l),zr)}}let Xye=(()=>{var t;class r{constructor(e){this.api=e,this.field={},this.changed=new Ce,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";const e=this.field.gui.choices||[];""===this.field.value&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon(e.img)+e.text)}filteredValues(){const e=this.field.gui.choices||[];if(!this.filter)return e;const s=this.filter.toLocaleLowerCase();return e.filter(u=>u.text.toLocaleLowerCase().includes(s))}}return(t=r).\u0275fac=function(e){return new(e||t)(V(pt))},t.\u0275cmp=xe({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"options","changed"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(e,s){1&e&&(P(0,"mat-form-field")(1,"mat-label"),Y(2),R(),P(3,"mat-select",0),J("valueChange",function(){return s.changed.emit(s)})("ngModelChange",function(m){return s.field.value=m}),P(4,"mat-select-trigger"),re(5,qye,2,1,"div",1),R(),P(6,"uds-cond-select-search",2),J("changed",function(m){return s.filter=m}),R(),re(7,Zye,2,2,"mat-option",3),R()()),2&e&&(N(2),Re(" ",s.field.gui.label," "),N(),z("placeholder",s.field.gui.tooltip)("ngModel",s.field.value)("required",!0===s.field.gui.required)("disabled",!0===s.field.gui.readonly),N(2),z("ngForOf",s.field.gui.choices),N(),z("options",s.field.gui.choices),N(),z("ngForOf",s.filteredValues()))},dependencies:[mi,xn,A,xc,ii,ri,Ci,Ya,une,Ni,Cc]}),r})(),Kye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=iv("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"","2000-01-01"===this.field.value?this.field.value=iv("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=iv("%Y-12-31"));const e=this.field.value.split("-");3===e.length&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(e,s){if(1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"input",1),J("ngModelChange",function(m){return s.date=m}),R(),pe(4,"mat-datepicker-toggle",2)(5,"mat-datepicker",null,3),R()),2&e){const u=pn(6);N(2),Re(" ",s.field.gui.label," "),N(),z("matDatepicker",u)("ngModel",s.date)("placeholder",s.field.gui.tooltip)("disabled",!0===s.field.gui.readonly),N(),z("for",u)}},dependencies:[$i,A,ii,ri,Ci,vS,Sa,Nie,x4,Vie]}),r})();function Qye(t,r){if(1&t){const l=Oe();P(0,"mat-chip-row",5),J("removed",function(){const u=oe(l).$implicit;return le(Z().remove(u))}),Y(1),P(2,"i",6),Y(3,"cancel"),R()()}if(2&t){const l=r.$implicit;z("removable",!0!==Z().field.gui.readonly),N(),Re(" ",l," ")}}let Jye=(()=>{var t;class r{constructor(){this.field={},this.changed=new Ce,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,s,u)=>{""===e.trim()&&u.splice(s,1)})}add(e){const s=e.input,u=e.value;(u||"").trim()&&this.field.value&&this.field.value.push(u.trim()),s&&(s.value="")}remove(e){if(!this.field.value)return void console.warn("Trying to remove tag from field with no values: "+this.field.name);const s=this.field.value.indexOf(e);s>=0&&this.field.value.splice(s,1)}}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275cmp=xe({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],[3,"disabled","change"],["chipList",""],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(e,s){if(1&e&&(P(0,"mat-form-field",0)(1,"mat-label"),Y(2),R(),P(3,"mat-chip-grid",1,2),J("change",function(){return s.changed.emit(s)}),re(5,Qye,4,2,"mat-chip-row",3),P(6,"input",4),J("matChipInputTokenEnd",function(m){return s.add(m)}),R()()()),2&e){const u=pn(4);N(2),Re(" ",s.field.gui.label," "),N(),z("disabled",!0===s.field.gui.readonly),N(2),z("ngForOf",s.field.value),N(),z("placeholder",s.field.gui.tooltip)("matChipInputFor",u)("matChipInputSeparatorKeyCodes",s.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[mi,ri,Ci,zre,Hre,Nre,sX],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),r})();Dn(396);let ebe=(()=>{var t;class r{}return(t=r).\u0275fac=function(e){return new(e||t)},t.\u0275mod=ot({type:t,bootstrap:[Iye]}),t.\u0275inj=ht({providers:[pt,Lt,{provide:yS,useClass:kye}],imports:[zy,AW,Wge,F_e,yye,zse.forRoot({echarts:()=>Promise.resolve().then(Dn.bind(Dn,707))})]}),r})();(function RF(t,r,l){const e=t.\u0275cmp;e.directiveDefs=l0(r,!1),e.pipeDefs=l0(l,!0)})(Ite,function(){return[_g,gC,qz,Pye,Lye,Fye,Nye,Vye,zye,Uye,Wye,$ye,Xye,Kye,Jye,Oye]},[]),FE().bootstrapModule(ebe).catch(t=>console.log(t))},707:(_p,oa,Dn)=>{"use strict";Dn.r(oa),Dn.d(oa,{Axis:()=>il,ChartView:()=>Rn,ComponentModel:()=>en,ComponentView:()=>li,List:()=>ya,Model:()=>Un,PRIORITY:()=>KL,SeriesModel:()=>Xn,color:()=>Is,connect:()=>ij,dataTool:()=>sj,dependencies:()=>ZU,disConnect:()=>rj,disconnect:()=>oF,dispose:()=>eK,env:()=>tn,extendChartView:()=>pA,extendComponentModel:()=>iK,extendComponentView:()=>ly,extendSeriesModel:()=>jj,format:()=>rr,getCoordinateSystemDimensions:()=>dF,getInstanceByDom:()=>jM,getInstanceById:()=>sF,getMap:()=>oj,graphic:()=>Si,helper:()=>Mt,init:()=>nj,innerDrawElementOnCanvas:()=>lx,matrix:()=>Da,number:()=>Ii,parseGeoJSON:()=>dA,parseGeoJson:()=>dA,registerAction:()=>ys,registerCoordinateSystem:()=>cF,registerLayout:()=>uF,registerLoading:()=>vx,registerLocale:()=>J2,registerMap:()=>fF,registerPostInit:()=>lF,registerPostUpdate:()=>$M,registerPreprocessor:()=>WM,registerProcessor:()=>bf,registerTheme:()=>GM,registerTransform:()=>_x,registerUpdateLifecycle:()=>mx,registerVisual:()=>sc,setCanvasCreator:()=>aj,setPlatformAPI:()=>OS,throttle:()=>ex,time:()=>yr,use:()=>kt,util:()=>pv,vector:()=>ei,version:()=>$L,zrUtil:()=>Po,zrender:()=>Ta});var Po={};Dn.r(Po),Dn.d(Po,{HashMap:()=>HS,RADIAN_TO_DEGREE:()=>yv,assert:()=>be,bind:()=>he,clone:()=>nt,concatArray:()=>wn,createCanvas:()=>X4,createHashMap:()=>Me,createObject:()=>Kb,curry:()=>ct,defaults:()=>Ze,disableUserSelect:()=>US,each:()=>G,eqNaN:()=>Jt,extend:()=>_e,filter:()=>_n,find:()=>hR,guid:()=>VS,hasOwn:()=>Ue,indexOf:()=>Ct,inherits:()=>BS,isArray:()=>ye,isArrayLike:()=>ki,isBuiltInObject:()=>zn,isDom:()=>Pi,isFunction:()=>Xe,isGradientObject:()=>ah,isImagePatternObject:()=>Q4,isNumber:()=>on,isObject:()=>Ee,isPrimitive:()=>Ad,isRegExp:()=>fR,isString:()=>Ae,isStringSafe:()=>Bn,isTypedArray:()=>sa,keys:()=>Wt,logError:()=>wp,map:()=>Se,merge:()=>mt,mergeAll:()=>Xb,mixin:()=>Di,noop:()=>qi,normalizeCssArray:()=>vv,reduce:()=>ln,retrieve:()=>it,retrieve2:()=>gt,retrieve3:()=>Ro,setAsPrimitive:()=>oh,slice:()=>zS,trim:()=>la});var ei={};Dn.r(ei),Dn.d(ei,{add:()=>Jb,applyTransform:()=>ca,clone:()=>Lo,copy:()=>Or,create:()=>Ed,dist:()=>ks,distSquare:()=>kl,distance:()=>Cp,distanceSquare:()=>WS,div:()=>vi,dot:()=>_X,len:()=>lh,lenSquare:()=>Ma,length:()=>mR,lengthSquare:()=>gR,lerp:()=>ch,max:()=>kd,min:()=>Id,mul:()=>vX,negate:()=>rH,normalize:()=>ve,scale:()=>t0,scaleAndAdd:()=>e0,set:()=>Qb,sub:()=>Yt});var Da={};Dn.r(Da),Dn.d(Da,{clone:()=>wR,copy:()=>a0,create:()=>Fo,identity:()=>Tp,invert:()=>dh,mul:()=>Ll,rotate:()=>Rd,scale:()=>Sv,translate:()=>ar});var Is={};Dn.r(Is),Dn.d(Is,{fastLerp:()=>Ep,fastMapToColor:()=>ER,lerp:()=>v0,lift:()=>g0,lum:()=>Ec,mapToColor:()=>fH,modifyAlpha:()=>qn,modifyHSL:()=>Iv,parse:()=>Ea,random:()=>Xa,stringify:()=>No,toHex:()=>zl});var Ta={};Dn.r(Ta),Dn.d(Ta,{dispose:()=>qR,disposeAll:()=>Np,getInstance:()=>Vp,init:()=>k0,registerPainter:()=>wr,version:()=>MH});var Gt={};Dn.r(Gt),Dn.d(Gt,{Arc:()=>aM,BezierCurve:()=>ef,BoundingRect:()=>ce,Circle:()=>ps,CompoundPath:()=>$w,Ellipse:()=>tM,Group:()=>rt,Image:()=>Jr,IncrementalDisplayable:()=>Em,Line:()=>Gr,LinearGradient:()=>Mm,OrientedBoundingRect:()=>du,Path:()=>It,Point:()=>St,Polygon:()=>no,Polyline:()=>io,RadialGradient:()=>oM,Rect:()=>_t,Ring:()=>M_,Sector:()=>jr,Text:()=>Zt,applyTransform:()=>Xs,clipPointsByRect:()=>sM,clipRectByRect:()=>bL,createIcon:()=>Ks,extendPath:()=>_L,extendShape:()=>I_,getShapeClass:()=>Zw,getTransform:()=>rc,groupTransition:()=>Pm,initProps:()=>Nn,isElementRemoved:()=>Hh,lineLineIntersect:()=>Kw,linePolygonIntersect:()=>L_,makeImage:()=>P_,makePath:()=>k_,mergePath:()=>Na,registerShape:()=>gs,removeElement:()=>Hc,removeElementWithFadeOut:()=>lw,resizePath:()=>km,setTooltipConfig:()=>nf,subPixelOptimize:()=>Xw,subPixelOptimizeLine:()=>R_,subPixelOptimizeRect:()=>DU,transformDirection:()=>O_,traverseElements:()=>Kc,updateProps:()=>zt});var Mt={};Dn.r(Mt),Dn.d(Mt,{createDimensions:()=>yF,createList:()=>nK,createScale:()=>lA,createSymbol:()=>ji,createTextStyle:()=>Nj,dataStack:()=>ng,enableHoverEmphasis:()=>Kd,getECData:()=>st,getLayoutRect:()=>Dr,mixinAxisModelCommonMethods:()=>Fj});var Ii={};Dn.r(Ii),Dn.d(Ii,{MAX_SAFE_INTEGER:()=>ZR,asc:()=>Qr,getPercentWithPrecision:()=>Bp,getPixelPrecision:()=>Gv,getPrecision:()=>ka,getPrecisionSafe:()=>wD,isNumeric:()=>Sh,isRadianAroundZero:()=>R0,linearMap:()=>yn,nice:()=>xD,numericToNumber:()=>Gl,parseDate:()=>os,quantile:()=>O0,quantity:()=>kH,quantityExponent:()=>Oc,reformIntervals:()=>sr,remRadian:()=>XR,round:()=>ti});var yr={};Dn.r(yr),Dn.d(yr,{format:()=>Jd,parse:()=>os});var Si={};Dn.r(Si),Dn.d(Si,{Arc:()=>aM,BezierCurve:()=>ef,BoundingRect:()=>ce,Circle:()=>ps,CompoundPath:()=>$w,Ellipse:()=>tM,Group:()=>rt,Image:()=>Jr,IncrementalDisplayable:()=>Em,Line:()=>Gr,LinearGradient:()=>Mm,Polygon:()=>no,Polyline:()=>io,RadialGradient:()=>oM,Rect:()=>_t,Ring:()=>M_,Sector:()=>jr,Text:()=>Zt,clipPointsByRect:()=>sM,clipRectByRect:()=>bL,createIcon:()=>Ks,extendPath:()=>_L,extendShape:()=>I_,getShapeClass:()=>Zw,getTransform:()=>rc,initProps:()=>Nn,makeImage:()=>P_,makePath:()=>k_,mergePath:()=>Na,registerShape:()=>gs,resizePath:()=>km,updateProps:()=>zt});var rr={};Dn.r(rr),Dn.d(rr,{addCommas:()=>rO,capitalFirst:()=>x8,encodeHTML:()=>da,formatTime:()=>oO,formatTpl:()=>vT,getTextRect:()=>zj,getTooltipMarker:()=>xw,normalizeCssArray:()=>jh,toCamelCase:()=>aO,truncateText:()=>bo});var pv={};Dn.r(pv),Dn.d(pv,{bind:()=>he,clone:()=>nt,curry:()=>ct,defaults:()=>Ze,each:()=>G,extend:()=>_e,filter:()=>_n,indexOf:()=>Ct,inherits:()=>BS,isArray:()=>ye,isFunction:()=>Xe,isObject:()=>Ee,isString:()=>Ae,map:()=>Se,merge:()=>mt,reduce:()=>ln});var eh=function(a,i){return(eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])})(a,i)};function de(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=a}eh(a,i),a.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var Y4=function a(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},yp=new function a(){this.browser=new Y4,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(yp.wxa=!0,yp.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yp.worker=!0:typeof navigator>"u"?(yp.node=!0,yp.svgSupported=!0):function q4(a,i){var n=i.browser,o=a.match(/Firefox\/([\d.]+)/),c=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),d=a.match(/Edge?\/([\d.]+)/),h=/micromessenger/i.test(a);o&&(n.firefox=!0,n.version=o[1]),c&&(n.ie=!0,n.version=c[1]),d&&(n.edge=!0,n.version=d[1],n.newEdge=+d[1].split(".")[0]>18),h&&(n.weChat=!0),i.svgSupported=typeof SVGRect<"u",i.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,i.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),i.domSupported=typeof document<"u";var f=document.documentElement.style;i.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),i.transformSupported=i.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,yp);const tn=yp;var a,i,cR=12,PS="sans-serif",Md=cR+"px "+PS,Yb=function RS(a){var i={};if(typeof JSON>"u")return i;for(var n=0;n=0)f=h*n.length;else for(var p=0;p>1)%2;h.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[p]+":0",c[g]+":0",o[1-p]+":auto",c[1-g]+":auto",""].join("!important;"),a.appendChild(h),n.push(h)}return n}(i,d),f=function fe(a,i,n){for(var o=n?"invTrans":"trans",c=i[o],d=i.srcCoords,h=[],f=[],p=!0,g=0;g<4;g++){var v=a[g].getBoundingClientRect(),_=2*g,y=v.left,w=v.top;h.push(y,w),p=p&&d&&y===d[_]&&w===d[_+1],f.push(a[g].offsetLeft,a[g].offsetTop)}return p&&c?c:(i.srcCoords=h,i[o]=n?vR(f,h):vR(h,f))}(h,d,c);if(f)return f(a,n,o),!0}return!1}function ZS(a){return"CANVAS"===a.nodeName.toUpperCase()}var De=/([&<>"'])/g,n0={"&":"&","<":"<",">":">",'"':""","'":"'"};function da(a){return null==a?"":(a+"").replace(De,function(i,n){return n0[n]})}var Cv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,XS=[],lH=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function KS(a,i,n,o){return n=n||{},o?Rl(a,i,n):lH&&null!=i.layerX&&i.layerX!==i.offsetX?(n.zrX=i.layerX,n.zrY=i.layerY):null!=i.offsetX?(n.zrX=i.offsetX,n.zrY=i.offsetY):Rl(a,i,n),n}function Rl(a,i,n){if(tn.domSupported&&a.getBoundingClientRect){var o=i.clientX,c=i.clientY;if(ZS(a)){var d=a.getBoundingClientRect();return n.zrX=o-d.left,void(n.zrY=c-d.top)}if(Pl(XS,a,o,c))return n.zrX=XS[0],void(n.zrY=XS[1])}n.zrX=n.zrY=0}function Sp(a){return a||window.event}function Zi(a,i,n){if(null!=(i=Sp(i)).zrX)return i;var o=i.type;if(o&&o.indexOf("touch")>=0){var h="touchend"!==o?i.targetTouches[0]:i.changedTouches[0];h&&KS(a,h,i,n)}else{KS(a,i,i,n);var d=function Ol(a){var i=a.wheelDelta;if(i)return i;var n=a.deltaX,o=a.deltaY;return null==n||null==o?i:3*Math.abs(0!==o?o:n)*(o>0?-1:o<0?1:n>0?-1:1)}(i);i.zrDelta=d?d/120:-(i.detail||0)/3}var f=i.button;return null==i.which&&void 0!==f&&Cv.test(i.type)&&(i.which=1&f?1:2&f?3:4&f?2:0),i}function Tn(a,i,n,o){a.addEventListener(i,n,o)}function _R(a,i,n,o){a.removeEventListener(i,n,o)}var Ps=function(a){a.preventDefault(),a.stopPropagation(),a.cancelBubble=!0};function QS(a){return 2===a.which||3===a.which}var yR=function(){function a(){this._track=[]}return a.prototype.recognize=function(i,n,o){return this._doTrack(i,n,o),this._recognize(i)},a.prototype.clear=function(){return this._track.length=0,this},a.prototype._doTrack=function(i,n,o){var c=i.touches;if(c){for(var d={points:[],touches:[],target:n,event:i},h=0,f=c.length;h1&&o&&o.length>1){var d=Dp(o)/Dp(c);!isFinite(d)&&(d=1),i.pinchScale=d;var h=function bR(a){return[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]}(o);return i.pinchX=h[0],i.pinchY=h[1],{type:"pinch",target:a[0].target,event:i}}}}};function Fo(){return[1,0,0,1,0,0]}function Tp(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a}function a0(a,i){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a[4]=i[4],a[5]=i[5],a}function Ll(a,i,n){var c=i[1]*n[0]+i[3]*n[1],d=i[0]*n[2]+i[2]*n[3],h=i[1]*n[2]+i[3]*n[3],f=i[0]*n[4]+i[2]*n[5]+i[4],p=i[1]*n[4]+i[3]*n[5]+i[5];return a[0]=i[0]*n[0]+i[2]*n[1],a[1]=c,a[2]=d,a[3]=h,a[4]=f,a[5]=p,a}function ar(a,i,n){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a[4]=i[4]+n[0],a[5]=i[5]+n[1],a}function Rd(a,i,n){var o=i[0],c=i[2],d=i[4],h=i[1],f=i[3],p=i[5],g=Math.sin(n),v=Math.cos(n);return a[0]=o*v+h*g,a[1]=-o*g+h*v,a[2]=c*v+f*g,a[3]=-c*g+v*f,a[4]=v*d+g*p,a[5]=v*p-g*d,a}function Sv(a,i,n){var o=n[0],c=n[1];return a[0]=i[0]*o,a[1]=i[1]*c,a[2]=i[2]*o,a[3]=i[3]*c,a[4]=i[4]*o,a[5]=i[5]*c,a}function dh(a,i){var n=i[0],o=i[2],c=i[4],d=i[1],h=i[3],f=i[5],p=n*h-d*o;return p?(a[0]=h*(p=1/p),a[1]=-d*p,a[2]=-o*p,a[3]=n*p,a[4]=(o*f-h*c)*p,a[5]=(d*c-n*f)*p,a):null}function wR(a){var i=[1,0,0,1,0,0];return a0(i,a),i}var cH=function(){function a(i,n){this.x=i||0,this.y=n||0}return a.prototype.copy=function(i){return this.x=i.x,this.y=i.y,this},a.prototype.clone=function(){return new a(this.x,this.y)},a.prototype.set=function(i,n){return this.x=i,this.y=n,this},a.prototype.equal=function(i){return i.x===this.x&&i.y===this.y},a.prototype.add=function(i){return this.x+=i.x,this.y+=i.y,this},a.prototype.scale=function(i){this.x*=i,this.y*=i},a.prototype.scaleAndAdd=function(i,n){this.x+=i.x*n,this.y+=i.y*n},a.prototype.sub=function(i){return this.x-=i.x,this.y-=i.y,this},a.prototype.dot=function(i){return this.x*i.x+this.y*i.y},a.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},a.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},a.prototype.normalize=function(){var i=this.len();return this.x/=i,this.y/=i,this},a.prototype.distance=function(i){var n=this.x-i.x,o=this.y-i.y;return Math.sqrt(n*n+o*o)},a.prototype.distanceSquare=function(i){var n=this.x-i.x,o=this.y-i.y;return n*n+o*o},a.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},a.prototype.transform=function(i){if(i){var n=this.x,o=this.y;return this.x=i[0]*n+i[2]*o+i[4],this.y=i[1]*n+i[3]*o+i[5],this}},a.prototype.toArray=function(i){return i[0]=this.x,i[1]=this.y,i},a.prototype.fromArray=function(i){this.x=i[0],this.y=i[1]},a.set=function(i,n,o){i.x=n,i.y=o},a.copy=function(i,n){i.x=n.x,i.y=n.y},a.len=function(i){return Math.sqrt(i.x*i.x+i.y*i.y)},a.lenSquare=function(i){return i.x*i.x+i.y*i.y},a.dot=function(i,n){return i.x*n.x+i.y*n.y},a.add=function(i,n,o){i.x=n.x+o.x,i.y=n.y+o.y},a.sub=function(i,n,o){i.x=n.x-o.x,i.y=n.y-o.y},a.scale=function(i,n,o){i.x=n.x*o,i.y=n.y*o},a.scaleAndAdd=function(i,n,o,c){i.x=n.x+o.x*c,i.y=n.y+o.y*c},a.lerp=function(i,n,o,c){var d=1-c;i.x=d*n.x+c*o.x,i.y=d*n.y+c*o.y},a}();const St=cH;var Dv=Math.min,o0=Math.max,uh=new St,hh=new St,xe=new St,fh=new St,Tv=new St,ot=new St,xR=function(){function a(i,n,o,c){o<0&&(i+=o,o=-o),c<0&&(n+=c,c=-c),this.x=i,this.y=n,this.width=o,this.height=c}return a.prototype.union=function(i){var n=Dv(i.x,this.x),o=Dv(i.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?o0(i.x+i.width,this.x+this.width)-n:i.width,this.height=isFinite(this.y)&&isFinite(this.height)?o0(i.y+i.height,this.y+this.height)-o:i.height,this.x=n,this.y=o},a.prototype.applyTransform=function(i){a.applyTransform(this,this,i)},a.prototype.calculateTransform=function(i){var n=this,o=i.width/n.width,c=i.height/n.height,d=[1,0,0,1,0,0];return ar(d,d,[-n.x,-n.y]),Sv(d,d,[o,c]),ar(d,d,[i.x,i.y]),d},a.prototype.intersect=function(i,n){if(!i)return!1;i instanceof a||(i=a.create(i));var o=this,c=o.x,d=o.x+o.width,h=o.y,f=o.y+o.height,p=i.x,g=i.x+i.width,v=i.y,_=i.y+i.height,y=!(dx&&(x=E,St.set(ot,Sx&&(x=k,St.set(ot,0,T=o.x&&i<=o.x+o.width&&n>=o.y&&n<=o.y+o.height},a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.copy=function(i){a.copy(this,i)},a.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},a.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},a.prototype.isZero=function(){return 0===this.width||0===this.height},a.create=function(i){return new a(i.x,i.y,i.width,i.height)},a.copy=function(i,n){i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height},a.applyTransform=function(i,n,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var c=o[0],d=o[3],f=o[5];return i.x=n.x*c+o[4],i.y=n.y*d+f,i.width=n.width*c,i.height=n.height*d,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}uh.x=xe.x=n.x,uh.y=fh.y=n.y,hh.x=fh.x=n.x+n.width,hh.y=xe.y=n.y+n.height,uh.transform(o),fh.transform(o),hh.transform(o),xe.transform(o),i.x=Dv(uh.x,hh.x,xe.x,fh.x),i.y=Dv(uh.y,hh.y,xe.y,fh.y);var p=o0(uh.x,hh.x,xe.x,fh.x),g=o0(uh.y,hh.y,xe.y,fh.y);i.width=p-i.x,i.height=g-i.y}else i!==n&&a.copy(i,n)},a}();const ce=xR;var ua="silent";function Lr(){Ps(this.event)}var ha=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.handler=null,n}return cn(i,a),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Za),ts=function a(i,n){this.x=i,this.y=n},Aa=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],s0=new ce(0,0,0,0),JS=function(a){function i(n,o,c,d,h){var f=a.call(this)||this;return f._hovered=new ts(0,0),f.storage=n,f.painter=o,f.painterRoot=d,f._pointerSize=h,c=c||new ha,f.proxy=null,f.setHandlerProxy(c),f._draggingMgr=new xv(f),f}return cn(i,a),i.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(Aa,function(o){n.on&&n.on(o,this[o],this)},this),n.handler=this),this.proxy=n},i.prototype.mousemove=function(n){var o=n.zrX,c=n.zrY,d=SR(this,o,c),h=this._hovered,f=h.target;f&&!f.__zr&&(f=(h=this.findHover(h.x,h.y)).target);var p=this._hovered=d?new ts(o,c):this.findHover(o,c),g=p.target,v=this.proxy;v.setCursor&&v.setCursor(g?g.cursor:"default"),f&&g!==f&&this.dispatchToElement(h,"mouseout",n),this.dispatchToElement(p,"mousemove",n),g&&g!==f&&this.dispatchToElement(p,"mouseover",n)},i.prototype.mouseout=function(n){var o=n.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",n),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:n})},i.prototype.resize=function(){this._hovered=new ts(0,0)},i.prototype.dispatch=function(n,o){var c=this[n];c&&c.call(this,o)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(n){var o=this.proxy;o.setCursor&&o.setCursor(n)},i.prototype.dispatchToElement=function(n,o,c){var d=(n=n||{}).target;if(!d||!d.silent){for(var h="on"+o,f=function hn(a,i,n){return{type:a,event:n,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Lr}}(o,n,c);d&&(d[h]&&(f.cancelBubble=!!d[h].call(d,f)),d.trigger(o,f),d=d.__hostTarget?d.__hostTarget:d.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(o,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(p){"function"==typeof p[h]&&p[h].call(p,f),p.trigger&&p.trigger(o,f)}))}},i.prototype.findHover=function(n,o,c){var d=this.storage.getDisplayList(),h=new ts(n,o);if(CR(d,h,n,o,c),this._pointerSize&&!h.target){for(var f=[],p=this._pointerSize,g=p/2,v=new ce(n-g,o-g,p,p),_=d.length-1;_>=0;_--){var y=d[_];y!==c&&!y.ignore&&!y.ignoreCoarsePointer&&(!y.parent||!y.parent.ignoreCoarsePointer)&&(s0.copy(y.getBoundingRect()),y.transform&&s0.applyTransform(y.transform),s0.intersect(v)&&f.push(y))}if(f.length)for(var x=Math.PI/12,S=2*Math.PI,D=0;D=0;d--){var h=a[d],f=void 0;if(h!==c&&!h.ignore&&(f=l0(h,n,o))&&(!i.topTarget&&(i.topTarget=h),f!==ua)){i.target=h;break}}}function SR(a,i,n){var o=a.painter;return i<0||i>o.getWidth()||n<0||n>o.getHeight()}G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){JS.prototype[a]=function(i){var d,h,n=i.zrX,o=i.zrY,c=SR(this,n,o);if(("mouseup"!==a||!c)&&(h=(d=this.findHover(n,o)).target),"mousedown"===a)this._downEl=h,this._downPoint=[i.zrX,i.zrY],this._upEl=h;else if("mouseup"===a)this._upEl=h;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||ks(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(d,a,i)}});const Xi=JS;var vt=7;function fa(a,i,n,o){var c=i+1;if(c===n)return 1;if(o(a[c++],a[i])<0){for(;c=0;)c++;return c-i}function ph(a,i,n,o,c){for(o===i&&o++;o>>1])<0?f=p:h=p+1;var g=o-h;switch(g){case 3:a[h+3]=a[h+2];case 2:a[h+2]=a[h+1];case 1:a[h+1]=a[h];break;default:for(;g>0;)a[h+g]=a[h+g-1],g--}a[h]=d}}function oi(a,i,n,o,c,d){var h=0,f=0,p=1;if(d(a,i[n+c])>0){for(f=o-c;p0;)h=p,(p=1+(p<<1))<=0&&(p=f);p>f&&(p=f),h+=c,p+=c}else{for(f=c+1;pf&&(p=f);var g=h;h=c-p,p=c-g}for(h++;h>>1);d(a,i[n+v])>0?h=v+1:p=v}return p}function pa(a,i,n,o,c,d){var h=0,f=0,p=1;if(d(a,i[n+c])<0){for(f=c+1;pf&&(p=f);var g=h;h=c-p,p=c-g}else{for(f=o-c;p=0;)h=p,(p=1+(p<<1))<=0&&(p=f);p>f&&(p=f),h+=c,p+=c}for(h++;h>>1);d(a,i[n+v])<0?p=v:h=v+1}return p}function Ht(a,i,n,o){n||(n=0),o||(o=a.length);var c=o-n;if(!(c<2)){var d=0;if(c<32)return void ph(a,n,o,n+(d=fa(a,n,o,i)),i);var h=function Fl(a,i){var h,f,n=vt,p=0,g=[];function w(D){var T=h[D],A=f[D],E=h[D+1],k=f[D+1];f[D]=A+k,D===p-3&&(h[D+1]=h[D+2],f[D+1]=f[D+2]),p--;var L=pa(a[E],a,T,A,0,i);T+=L,0!=(A-=L)&&0!==(k=oi(a[T+A-1],a,E,k,k-1,i))&&(A<=k?function x(D,T,A,E){var k=0;for(k=0;k=vt||W>=vt);if($)break;U<0&&(U=0),U+=2}if((n=U)<1&&(n=1),1===T){for(k=0;k=0;k--)a[j+k]=a[U+k];if(0===T){K=!0;break}}if(a[B--]=g[O--],1==--E){K=!0;break}if(0!=(X=E-oi(a[L],g,0,E,E-1,i))){for(E-=X,j=1+(B-=X),U=1+(O-=X),k=0;k=vt||X>=vt);if(K)break;W<0&&(W=0),W+=2}if((n=W)<1&&(n=1),1===E){for(j=1+(B-=T),U=1+(L-=T),k=T-1;k>=0;k--)a[j+k]=a[U+k];a[B]=g[O]}else{if(0===E)throw new Error;for(U=B-(E-1),k=0;k=0;k--)a[j+k]=a[U+k];a[B]=g[O]}else for(U=B-(E-1),k=0;k1;){var D=p-2;if(D>=1&&f[D-1]<=f[D]+f[D+1]||D>=2&&f[D-2]<=f[D]+f[D-1])f[D-1]f[D+1])break;w(D)}},forceMergeRuns:function y(){for(;p>1;){var D=p-2;D>0&&f[D-1]=32;)i|=1&a,a>>=1;return a+i}(c);do{if((d=fa(a,n,o,i))f&&(p=f),ph(a,n,n+p,n+d,i),d=p}h.pushRun(n,d),h.mergeRuns(),c-=d,n+=d}while(0!==c);h.forceMergeRuns()}}var ma=1,Ls=4,Ri=!1;function mh(){Ri||(Ri=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gh(a,i){return a.zlevel===i.zlevel?a.z===i.z?a.z2-i.z2:a.z-i.z:a.zlevel-i.zlevel}var Nl=function(){function a(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gh}return a.prototype.traverse=function(i,n){for(var o=0;o0&&(v.__clipPaths=[]),isNaN(v.z)&&(mh(),v.z=0),isNaN(v.z2)&&(mh(),v.z2=0),isNaN(v.zlevel)&&(mh(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var _=i.getDecalElement&&i.getDecalElement();_&&this._updateAndAddDisplayable(_,n,o);var y=i.getTextGuideLine();y&&this._updateAndAddDisplayable(y,n,o);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,n,o)}},a.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},a.prototype.delRoot=function(i){if(i instanceof Array)for(var n=0,o=i.length;n=0&&this._roots.splice(c,1)}},a.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},a.prototype.getRoots=function(){return this._roots},a.prototype.dispose=function(){this._displayList=null,this._roots=null},a}();const Mv=Nl;var eD;eD=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){return setTimeout(a,16)};const Vl=eD;var vh={linear:function(a){return a},quadraticIn:function(a){return a*a},quadraticOut:function(a){return a*(2-a)},quadraticInOut:function(a){return(a*=2)<1?.5*a*a:-.5*(--a*(a-2)-1)},cubicIn:function(a){return a*a*a},cubicOut:function(a){return--a*a*a+1},cubicInOut:function(a){return(a*=2)<1?.5*a*a*a:.5*((a-=2)*a*a+2)},quarticIn:function(a){return a*a*a*a},quarticOut:function(a){return 1- --a*a*a*a},quarticInOut:function(a){return(a*=2)<1?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},quinticIn:function(a){return a*a*a*a*a},quinticOut:function(a){return--a*a*a*a*a+1},quinticInOut:function(a){return(a*=2)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},sinusoidalIn:function(a){return 1-Math.cos(a*Math.PI/2)},sinusoidalOut:function(a){return Math.sin(a*Math.PI/2)},sinusoidalInOut:function(a){return.5*(1-Math.cos(Math.PI*a))},exponentialIn:function(a){return 0===a?0:Math.pow(1024,a-1)},exponentialOut:function(a){return 1===a?1:1-Math.pow(2,-10*a)},exponentialInOut:function(a){return 0===a?0:1===a?1:(a*=2)<1?.5*Math.pow(1024,a-1):.5*(2-Math.pow(2,-10*(a-1)))},circularIn:function(a){return 1-Math.sqrt(1-a*a)},circularOut:function(a){return Math.sqrt(1- --a*a)},circularInOut:function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},elasticIn:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4))},elasticOut:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*a)*Math.sin((a-i)*(2*Math.PI)/.4)+1)},elasticInOut:function(a){var i,n=.1;return 0===a?0:1===a?1:(!n||n<1?(n=1,i=.1):i=.4*Math.asin(1/n)/(2*Math.PI),(a*=2)<1?n*Math.pow(2,10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(a-=1))*Math.sin((a-i)*(2*Math.PI)/.4)*.5+1)},backIn:function(a){var i=1.70158;return a*a*((i+1)*a-i)},backOut:function(a){var i=1.70158;return--a*a*((i+1)*a+i)+1},backInOut:function(a){var i=2.5949095;return(a*=2)<1?a*a*((i+1)*a-i)*.5:.5*((a-=2)*a*((i+1)*a+i)+2)},bounceIn:function(a){return 1-vh.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bounceInOut:function(a){return a<.5?.5*vh.bounceIn(2*a):.5*vh.bounceOut(2*a-1)+.5}};const Od=vh;var Bt=Math.pow,Bl=Math.sqrt,Ld=1e-8,Fs=1e-4,Av=Bl(3),Mc=1/3,Yn=Ed(),po=Ed(),or=Ed();function Ui(a){return a>-Ld&&aLd||a<-Ld}function Ti(a,i,n,o,c){var d=1-c;return d*d*(d*a+3*c*i)+c*c*(c*o+3*d*n)}function Ev(a,i,n,o,c){var d=1-c;return 3*(((i-a)*d+2*(n-i)*c)*d+(o-n)*c*c)}function mo(a,i,n,o,c,d){var h=o+3*(i-n)-a,f=3*(n-2*i+a),p=3*(i-a),g=a-c,v=f*f-3*h*p,_=f*p-9*h*g,y=p*p-3*f*g,w=0;if(Ui(v)&&Ui(_))Ui(f)?d[0]=0:(x=-p/f)>=0&&x<=1&&(d[w++]=x);else{var S=_*_-4*v*y;if(Ui(S)){var D=_/v,T=-D/2;(x=-f/h+D)>=0&&x<=1&&(d[w++]=x),T>=0&&T<=1&&(d[w++]=T)}else if(S>0){var A=Bl(S),E=v*f+1.5*h*(-_+A),k=v*f+1.5*h*(-_-A);(x=(-f-((E=E<0?-Bt(-E,Mc):Bt(E,Mc))+(k=k<0?-Bt(-k,Mc):Bt(k,Mc))))/(3*h))>=0&&x<=1&&(d[w++]=x)}else{var L=(2*v*f-3*h*_)/(2*Bl(v*v*v)),O=Math.acos(L)/3,B=Bl(v),U=Math.cos(O),x=(-f-2*B*U)/(3*h),j=(T=(-f+B*(U+Av*Math.sin(O)))/(3*h),(-f+B*(U-Av*Math.sin(O)))/(3*h));x>=0&&x<=1&&(d[w++]=x),T>=0&&T<=1&&(d[w++]=T),j>=0&&j<=1&&(d[w++]=j)}}return w}function d0(a,i,n,o,c){var d=6*n-12*i+6*a,h=9*i+3*o-3*a-9*n,f=3*i-3*a,p=0;if(Ui(h))c0(d)&&(g=-f/d)>=0&&g<=1&&(c[p++]=g);else{var v=d*d-4*h*f;if(Ui(v))c[0]=-d/(2*h);else if(v>0){var g,_=Bl(v),y=(-d-_)/(2*h);(g=(-d+_)/(2*h))>=0&&g<=1&&(c[p++]=g),y>=0&&y<=1&&(c[p++]=y)}}return p}function Fd(a,i,n,o,c,d){var h=(i-a)*c+a,f=(n-i)*c+i,p=(o-n)*c+n,g=(f-h)*c+h,v=(p-f)*c+f,_=(v-g)*c+g;d[0]=a,d[1]=h,d[2]=g,d[3]=_,d[4]=_,d[5]=v,d[6]=p,d[7]=o}function DR(a,i,n,o,c,d,h,f,p,g,v){var _,x,S,D,T,y=.005,w=1/0;Yn[0]=p,Yn[1]=g;for(var A=0;A<1;A+=.05)po[0]=Ti(a,n,c,h,A),po[1]=Ti(i,o,d,f,A),(D=kl(Yn,po))=0&&D=0&&w<_)g=S,_=w;else{or[0]=Fr(a,n,c,D),or[1]=Fr(i,o,d,D);var T=kl(or,Yn);D<=1&&T<_?(g=D,_=T):v*=.5}}return p&&(p[0]=Fr(a,n,c,g),p[1]=Fr(i,o,d,g)),Bl(_)}function bX(a,i,n,o,c,d,h){for(var f=a,p=i,g=0,v=1/h,_=1;_<=h;_++){var y=_*v,w=Fr(a,n,c,y),x=Fr(i,o,d,y),S=w-f,D=x-p;g+=Math.sqrt(S*S+D*D),f=w,p=x}return g}var wX=/cubic-bezier\(([0-9,\.e ]+)\)/;function TR(a){var i=a&&wX.exec(a);if(i){var n=i[1].split(","),o=+la(n[0]),c=+la(n[1]),d=+la(n[2]),h=+la(n[3]);if(isNaN(o+c+d+h))return;var f=[];return function(p){return p<=0?0:p>=1?1:mo(0,o,d,1,p,f)&&Ti(0,c,h,1,f[0])}}}var xX=function(){function a(i){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=i.loop||!1,this.onframe=i.onframe||qi,this.ondestroy=i.ondestroy||qi,this.onrestart=i.onrestart||qi,i.easing&&this.setEasing(i.easing)}return a.prototype.step=function(i,n){if(this._inited||(this._startTime=i+this._delay,this._inited=!0),!this._paused){var o=this._life,c=i-this._startTime-this._pausedTime,d=c/o;d<0&&(d=0),d=Math.min(d,1);var h=this.easingFunc,f=h?h(d):d;if(this.onframe(f),1===d){if(!this.loop)return!0;this._startTime=i-c%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=n},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused=!1},a.prototype.setEasing=function(i){this.easing=i,this.easingFunc=Xe(i)?i:Od[i]||TR(i)},a}();const CX=xX;var hH=function a(i){this.value=i},SX=function(){function a(){this._len=0}return a.prototype.insert=function(i){var n=new hH(i);return this.insertEntry(n),n},a.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},a.prototype.remove=function(i){var n=i.prev,o=i.next;n?n.next=o:this.head=o,o?o.prev=n:this.tail=n,i.next=i.prev=null,this._len--},a.prototype.len=function(){return this._len},a.prototype.clear=function(){this.head=this.tail=null,this._len=0},a}(),DX=function(){function a(i){this._list=new SX,this._maxSize=10,this._map={},this._maxSize=i}return a.prototype.put=function(i,n){var o=this._list,c=this._map,d=null;if(null==c[i]){var h=o.len(),f=this._lastRemovedEntry;if(h>=this._maxSize&&h>0){var p=o.head;o.remove(p),delete c[p.key],d=p.value,this._lastRemovedEntry=p}f?f.value=n:f=new hH(n),f.key=i,o.insertEntry(f),c[i]=f}return d},a.prototype.get=function(i){var n=this._map[i],o=this._list;if(null!=n)return n!==o.tail&&(o.remove(n),o.insertEntry(n)),n.value},a.prototype.clear=function(){this._list.clear(),this._map={}},a.prototype.len=function(){return this._list.len()},a}();const h0=DX;var rD={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ns(a){return(a=Math.round(a))<0?0:a>255?255:a}function f0(a){return a<0?0:a>1?1:a}function MR(a){var i=a;return i.length&&"%"===i.charAt(i.length-1)?ns(parseFloat(i)/100*255):ns(parseInt(i,10))}function Ap(a){var i=a;return i.length&&"%"===i.charAt(i.length-1)?f0(parseFloat(i)/100):f0(parseFloat(i))}function Ac(a,i,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?a+(i-a)*n*6:2*n<1?i:3*n<2?a+(i-a)*(2/3-n)*6:a}function Nd(a,i,n){return a+(i-a)*n}function nn(a,i,n,o,c){return a[0]=i,a[1]=n,a[2]=o,a[3]=c,a}function p0(a,i){return a[0]=i[0],a[1]=i[1],a[2]=i[2],a[3]=i[3],a}var AR=new h0(20),m0=null;function _h(a,i){m0&&p0(m0,i),m0=AR.put(a,m0||i.slice())}function Ea(a,i){if(a){i=i||[];var n=AR.get(a);if(n)return p0(i,n);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in rD)return p0(i,rD[o]),_h(a,i),i;var d,c=o.length;if("#"===o.charAt(0))return 4===c||5===c?(d=parseInt(o.slice(1,4),16))>=0&&d<=4095?(nn(i,(3840&d)>>4|(3840&d)>>8,240&d|(240&d)>>4,15&d|(15&d)<<4,5===c?parseInt(o.slice(4),16)/15:1),_h(a,i),i):void nn(i,0,0,0,1):7===c||9===c?(d=parseInt(o.slice(1,7),16))>=0&&d<=16777215?(nn(i,(16711680&d)>>16,(65280&d)>>8,255&d,9===c?parseInt(o.slice(7),16)/255:1),_h(a,i),i):void nn(i,0,0,0,1):void 0;var h=o.indexOf("("),f=o.indexOf(")");if(-1!==h&&f+1===c){var p=o.substr(0,h),g=o.substr(h+1,f-(h+1)).split(","),v=1;switch(p){case"rgba":if(4!==g.length)return 3===g.length?nn(i,+g[0],+g[1],+g[2],1):nn(i,0,0,0,1);v=Ap(g.pop());case"rgb":return g.length>=3?(nn(i,MR(g[0]),MR(g[1]),MR(g[2]),3===g.length?v:Ap(g[3])),_h(a,i),i):void nn(i,0,0,0,1);case"hsla":return 4!==g.length?void nn(i,0,0,0,1):(g[3]=Ap(g[3]),aD(g,i),_h(a,i),i);case"hsl":return 3!==g.length?void nn(i,0,0,0,1):(aD(g,i),_h(a,i),i);default:return}}nn(i,0,0,0,1)}}function aD(a,i){var n=(parseFloat(a[0])%360+360)%360/360,o=Ap(a[1]),c=Ap(a[2]),d=c<=.5?c*(o+1):c+o-c*o,h=2*c-d;return nn(i=i||[],ns(255*Ac(h,d,n+1/3)),ns(255*Ac(h,d,n)),ns(255*Ac(h,d,n-1/3)),1),4===a.length&&(i[3]=a[3]),i}function g0(a,i){var n=Ea(a);if(n){for(var o=0;o<3;o++)n[o]=i<0?n[o]*(1-i)|0:(255-n[o])*i+n[o]|0,n[o]>255?n[o]=255:n[o]<0&&(n[o]=0);return No(n,4===n.length?"rgba":"rgb")}}function zl(a){var i=Ea(a);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Ep(a,i,n){if(i&&i.length&&a>=0&&a<=1){n=n||[];var o=a*(i.length-1),c=Math.floor(o),d=Math.ceil(o),h=i[c],f=i[d],p=o-c;return n[0]=ns(Nd(h[0],f[0],p)),n[1]=ns(Nd(h[1],f[1],p)),n[2]=ns(Nd(h[2],f[2],p)),n[3]=f0(Nd(h[3],f[3],p)),n}}var ER=Ep;function v0(a,i,n){if(i&&i.length&&a>=0&&a<=1){var o=a*(i.length-1),c=Math.floor(o),d=Math.ceil(o),h=Ea(i[c]),f=Ea(i[d]),p=o-c,g=No([ns(Nd(h[0],f[0],p)),ns(Nd(h[1],f[1],p)),ns(Nd(h[2],f[2],p)),f0(Nd(h[3],f[3],p))],"rgba");return n?{color:g,leftIndex:c,rightIndex:d,value:o}:g}}var fH=v0;function Iv(a,i,n,o){var c=Ea(a);if(a)return c=function oD(a){if(a){var p,g,i=a[0]/255,n=a[1]/255,o=a[2]/255,c=Math.min(i,n,o),d=Math.max(i,n,o),h=d-c,f=(d+c)/2;if(0===h)p=0,g=0;else{g=f<.5?h/(d+c):h/(2-d-c);var v=((d-i)/6+h/2)/h,_=((d-n)/6+h/2)/h,y=((d-o)/6+h/2)/h;i===d?p=y-_:n===d?p=1/3+v-y:o===d&&(p=2/3+_-v),p<0&&(p+=1),p>1&&(p-=1)}var w=[360*p,g,f];return null!=a[3]&&w.push(a[3]),w}}(c),null!=i&&(c[0]=function TX(a){return(a=Math.round(a))<0?0:a>360?360:a}(i)),null!=n&&(c[1]=Ap(n)),null!=o&&(c[2]=Ap(o)),No(aD(c),"rgba")}function qn(a,i){var n=Ea(a);if(n&&null!=i)return n[3]=f0(i),No(n,"rgba")}function No(a,i){if(a&&a.length){var n=a[0]+","+a[1]+","+a[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(n+=","+a[3]),i+"("+n+")"}}function Ec(a,i){var n=Ea(a);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*i:0}function Xa(){return No([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var kv=Math.round;function Ic(a){var i;if(a&&"transparent"!==a){if("string"==typeof a&&a.indexOf("rgba")>-1){var n=Ea(a);n&&(a="rgb("+n[0]+","+n[1]+","+n[2]+")",i=n[3])}}else a="none";return{color:a,opacity:i??1}}var yh=1e-4;function br(a){return a-yh}function _0(a){return kv(1e3*a)/1e3}function Pv(a){return kv(1e4*a)/1e4}var IR={left:"start",right:"end",center:"middle",middle:"middle"};function Ip(a){return a&&!!a.image}function Rv(a){return Ip(a)||function y0(a){return a&&!!a.svgElement}(a)}function Vd(a){return"linear"===a.type}function Rt(a){return"radial"===a.type}function sD(a){return a&&("linear"===a.type||"radial"===a.type)}function lD(a){return"url(#"+a+")"}function OR(a){var i=a.getGlobalScale(),n=Math.max(i[0],i[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function LR(a){var i=a.x||0,n=a.y||0,o=(a.rotation||0)*yv,c=gt(a.scaleX,1),d=gt(a.scaleY,1),h=a.skewX||0,f=a.skewY||0,p=[];return(i||n)&&p.push("translate("+i+"px,"+n+"px)"),o&&p.push("rotate("+o+")"),(1!==c||1!==d)&&p.push("scale("+c+","+d+")"),(h||f)&&p.push("skew("+kv(h*yv)+"deg, "+kv(f*yv)+"deg)"),p.join(" ")}var mH=tn.hasGlobalWindow&&Xe(window.btoa)?function(a){return window.btoa(unescape(encodeURIComponent(a)))}:typeof Buffer<"u"?function(a){return Buffer.from(a).toString("base64")}:function(a){return null},b0=Array.prototype.slice;function go(a,i,n){return(i-a)*n+a}function cD(a,i,n,o){for(var c=i.length,d=0;do?i:a,d=Math.min(n,o),h=c[d-1]||{color:[0,0,0,0],offset:0},f=d;fh)o.length=h;else for(var p=d;p=1},a.prototype.getAdditiveTrack=function(){return this._additiveTrack},a.prototype.addKeyframe=function(i,n,o){this._needsSort=!0;var c=this.keyframes,d=c.length,h=!1,f=6,p=n;if(ki(n)){var g=function le(a){return ki(a&&a[0])?2:1}(n);f=g,(1===g&&!on(n[0])||2===g&&!on(n[0][0]))&&(h=!0)}else if(on(n)&&!Jt(n))f=0;else if(Ae(n))if(isNaN(+n)){var v=Ea(n);v&&(p=v,f=3)}else f=0;else if(ah(n)){var _=_e({},p);_.colorStops=Se(n.colorStops,function(w){return{offset:w.offset,color:Ea(w.color)}}),Vd(n)?f=4:Rt(n)&&(f=5),p=_}0===d?this.valType=f:(f!==this.valType||6===f)&&(h=!0),this.discrete=this.discrete||h;var y={time:i,value:p,rawValue:n,percent:0};return o&&(y.easing=o,y.easingFunc=Xe(o)?o:Od[o]||TR(o)),c.push(y),y},a.prototype.prepare=function(i,n){var o=this.keyframes;this._needsSort&&o.sort(function(S,D){return S.time-D.time});for(var c=this.valType,d=o.length,h=o[d-1],f=this.discrete,p=Nv(c),g=_H(c),v=0;v=0&&!(h[v].percent<=n);v--);v=y(v,f-2)}else{for(v=_;vn);v++);v=y(v-1,f-2)}x=h[v+1],w=h[v]}if(w&&x){this._lastFr=v,this._lastFrP=n;var D=x.percent-w.percent,T=0===D?1:y((n-w.percent)/D,1);x.easingFunc&&(T=x.easingFunc(T));var A=o?this._additiveValue:g?Nr:i[p];if((Nv(d)||g)&&!A&&(A=this._additiveValue=[]),this.discrete)i[p]=T<1?w.rawValue:x.rawValue;else if(Nv(d))1===d?cD(A,w[c],x[c],T):function gH(a,i,n,o){for(var c=i.length,d=c&&i[0].length,h=0;h0&&p.addKeyframe(0,fn(g),c),this._trackKeys.push(f)}p.addKeyframe(i,fn(n[f]),c)}return this._maxTime=Math.max(this._maxTime,i),this},a.prototype.pause=function(){this._clip.pause(),this._paused=!0},a.prototype.resume=function(){this._clip.resume(),this._paused=!1},a.prototype.isPaused=function(){return!!this._paused},a.prototype.duration=function(i){return this._maxTime=i,this._force=!0,this},a.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var i=this._doneCbs;if(i)for(var n=i.length,o=0;o0)){this._started=1;for(var n=this,o=[],c=this._maxTime||0,d=0;d1){var f=h.pop();d.addKeyframe(f.time,i[c]),d.prepare(this._maxTime,d.getAdditiveTrack())}}}},a}();const is=VR;function _o(){return(new Date).getTime()}var yH=function(a){function i(n){var o=a.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(n=n||{}).stage||{},o}return cn(i,a),i.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},i.prototype.addAnimator=function(n){n.animation=this;var o=n.getClip();o&&this.addClip(o)},i.prototype.removeClip=function(n){if(n.animation){var o=n.prev,c=n.next;o?o.next=c:this._head=c,c?c.prev=o:this._tail=o,n.next=n.prev=n.animation=null}},i.prototype.removeAnimator=function(n){var o=n.getClip();o&&this.removeClip(o),n.animation=null},i.prototype.update=function(n){for(var o=_o()-this._pausedTime,c=o-this._time,d=this._head;d;){var h=d.next;d.step(o,c)&&(d.ondestroy(),this.removeClip(d)),d=h}this._time=o,n||(this.trigger("frame",c),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var n=this;this._running=!0,Vl(function o(){n._running&&(Vl(o),!n._paused&&n.update())})},i.prototype.start=function(){this._running||(this._time=_o(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=_o(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=_o()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var n=this._head;n;){var o=n.next;n.prev=n.next=n.animation=null,n=o}this._head=this._tail=null},i.prototype.isFinished=function(){return null==this._head},i.prototype.animate=function(n,o){o=o||{},this.start();var c=new is(n,o.loop);return this.addAnimator(c),c},i}(Za);const BR=yH;var dD=tn.domSupported,Vv=function(){var a=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:a,touch:["touchstart","touchend","touchmove"],pointer:Se(a,function(c){var d=c.replace("mouse","pointer");return n.hasOwnProperty(d)?d:c})}}(),x0_mouse=["mousemove","mouseup"],x0_pointer=["pointermove","pointerup"],uD=!1;function Bv(a){var i=a.pointerType;return"pen"===i||"touch"===i}function C0(a){a&&(a.zrByTouch=!0)}function fD(a,i){for(var n=i,o=!1;n&&9!==n.nodeType&&!(o=n.domBelongToZr||n!==i&&n===a.painterRoot);)n=n.parentNode;return o}var zR=function a(i,n){this.stopPropagation=qi,this.stopImmediatePropagation=qi,this.preventDefault=qi,this.type=n.type,this.target=this.currentTarget=i.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY},rs={mousedown:function(a){a=Zi(this.dom,a),this.__mayPointerCapture=[a.zrX,a.zrY],this.trigger("mousedown",a)},mousemove:function(a){a=Zi(this.dom,a);var i=this.__mayPointerCapture;i&&(a.zrX!==i[0]||a.zrY!==i[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",a)},mouseup:function(a){a=Zi(this.dom,a),this.__togglePointerCapture(!1),this.trigger("mouseup",a)},mouseout:function(a){fD(this,(a=Zi(this.dom,a)).toElement||a.relatedTarget)||(this.__pointerCapturing&&(a.zrEventControl="no_globalout"),this.trigger("mouseout",a))},wheel:function(a){uD=!0,a=Zi(this.dom,a),this.trigger("mousewheel",a)},mousewheel:function(a){uD||(a=Zi(this.dom,a),this.trigger("mousewheel",a))},touchstart:function(a){C0(a=Zi(this.dom,a)),this.__lastTouchMoment=new Date,this.handler.processGesture(a,"start"),rs.mousemove.call(this,a),rs.mousedown.call(this,a)},touchmove:function(a){C0(a=Zi(this.dom,a)),this.handler.processGesture(a,"change"),rs.mousemove.call(this,a)},touchend:function(a){C0(a=Zi(this.dom,a)),this.handler.processGesture(a,"end"),rs.mouseup.call(this,a),+new Date-+this.__lastTouchMoment<300&&rs.click.call(this,a)},pointerdown:function(a){rs.mousedown.call(this,a)},pointermove:function(a){Bv(a)||rs.mousemove.call(this,a)},pointerup:function(a){rs.mouseup.call(this,a)},pointerout:function(a){Bv(a)||rs.mouseout.call(this,a)}};G(["click","dblclick","contextmenu"],function(a){rs[a]=function(i){i=Zi(this.dom,i),this.trigger(a,i)}});var S0={pointermove:function(a){Bv(a)||S0.mousemove.call(this,a)},pointerup:function(a){S0.mouseup.call(this,a)},mousemove:function(a){this.trigger("mousemove",a)},mouseup:function(a){var i=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",a),i&&(a.zrEventControl="only_globalout",this.trigger("mouseout",a))}};function Vr(a,i,n,o){a.mounted[i]=n,a.listenerOpts[i]=o,Tn(a.domTarget,i,n,o)}function Pc(a){var i=a.mounted;for(var n in i)i.hasOwnProperty(n)&&_R(a.domTarget,n,i[n],a.listenerOpts[n]);a.mounted={}}var _i=function a(i,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=n},Ia=function(a){function i(n,o){var c=a.call(this)||this;return c.__pointerCapturing=!1,c.dom=n,c.painterRoot=o,c._localHandlerScope=new _i(n,rs),dD&&(c._globalHandlerScope=new _i(document,S0)),function pD(a,i){var n=i.domHandlers;tn.pointerEventsSupported?G(Vv.pointer,function(o){Vr(i,o,function(c){n[o].call(a,c)})}):(tn.touchEventsSupported&&G(Vv.touch,function(o){Vr(i,o,function(c){n[o].call(a,c),function wH(a){a.touching=!0,null!=a.touchTimer&&(clearTimeout(a.touchTimer),a.touchTimer=null),a.touchTimer=setTimeout(function(){a.touching=!1,a.touchTimer=null},700)}(i)})}),G(Vv.mouse,function(o){Vr(i,o,function(c){c=Sp(c),i.touching||n[o].call(a,c)})}))}(c,c._localHandlerScope),c}return cn(i,a),i.prototype.dispose=function(){Pc(this._localHandlerScope),dD&&Pc(this._globalHandlerScope)},i.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},i.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,dD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var o=this._globalHandlerScope;n?function xH(a,i){function n(o){Vr(i,o,function c(d){d=Sp(d),fD(a,d.target)||(d=function hD(a,i){return Zi(a.dom,new zR(a,i),!0)}(a,d),i.domHandlers[o].call(a,d))},{capture:!0})}tn.pointerEventsSupported?G(x0_pointer,n):tn.touchEventsSupported||G(x0_mouse,n)}(this,o):Pc(o)}},i}(Za);const CH=Ia;var Bd=1;tn.hasGlobalWindow&&(Bd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zv=Bd,Pp="#333",Ul="#ccc",Hv=Tp;function jl(a){return a>5e-5||a<-5e-5}var Rc=[],bh=[],T0=[1,0,0,1,0,0],mD=Math.abs,Rp=function(){function a(){}return a.prototype.getLocalTransform=function(i){return a.getLocalTransform(this,i)},a.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},a.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},a.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},a.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},a.prototype.needLocalTransform=function(){return jl(this.rotation)||jl(this.x)||jl(this.y)||jl(this.scaleX-1)||jl(this.scaleY-1)||jl(this.skewX)||jl(this.skewY)},a.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,n=this.needLocalTransform(),o=this.transform;n||i?(o=o||[1,0,0,1,0,0],n?this.getLocalTransform(o):Hv(o),i&&(n?Ll(o,i,o):a0(o,i)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&(Hv(o),this.invTransform=null)},a.prototype._resolveGlobalScaleRatio=function(i){var n=this.globalScaleRatio;if(null!=n&&1!==n){this.getGlobalScale(Rc);var o=Rc[0]<0?-1:1,c=Rc[1]<0?-1:1,d=((Rc[0]-o)*n+o)/Rc[0]||0,h=((Rc[1]-c)*n+c)/Rc[1]||0;i[0]*=d,i[1]*=d,i[2]*=h,i[3]*=h}this.invTransform=this.invTransform||[1,0,0,1,0,0],dh(this.invTransform,i)},a.prototype.getComputedTransform=function(){for(var i=this,n=[];i;)n.push(i),i=i.parent;for(;i=n.pop();)i.updateTransform();return this.transform},a.prototype.setLocalTransform=function(i){if(i){var n=i[0]*i[0]+i[1]*i[1],o=i[2]*i[2]+i[3]*i[3],c=Math.atan2(i[1],i[0]),d=Math.PI/2+c-Math.atan2(i[3],i[2]);o=Math.sqrt(o)*Math.cos(d),n=Math.sqrt(n),this.skewX=d,this.skewY=0,this.rotation=-c,this.x=+i[4],this.y=+i[5],this.scaleX=n,this.scaleY=o,this.originX=0,this.originY=0}},a.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,n=this.transform;i&&i.transform&&(Ll(bh,i.invTransform,n),n=bh);var o=this.originX,c=this.originY;(o||c)&&(T0[4]=o,T0[5]=c,Ll(bh,n,T0),bh[4]-=o,bh[5]-=c,n=bh),this.setLocalTransform(n)}},a.prototype.getGlobalScale=function(i){var n=this.transform;return i=i||[],n?(i[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),i[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(i[0]=-i[0]),n[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},a.prototype.transformCoordToLocal=function(i,n){var o=[i,n],c=this.invTransform;return c&&ca(o,o,c),o},a.prototype.transformCoordToGlobal=function(i,n){var o=[i,n],c=this.transform;return c&&ca(o,o,c),o},a.prototype.getLineScale=function(){var i=this.transform;return i&&mD(i[0]-1)>1e-10&&mD(i[3]-1)>1e-10?Math.sqrt(mD(i[0]*i[3]-i[2]*i[1])):1},a.prototype.copyTransform=function(i){HR(this,i)},a.getLocalTransform=function(i,n){n=n||[];var o=i.originX||0,c=i.originY||0,d=i.scaleX,h=i.scaleY,f=i.anchorX,p=i.anchorY,g=i.rotation||0,v=i.x,_=i.y,y=i.skewX?Math.tan(i.skewX):0,w=i.skewY?Math.tan(-i.skewY):0;if(o||c||f||p){var x=o+f,S=c+p;n[4]=-x*d-y*S*h,n[5]=-S*h-w*x*d}else n[4]=n[5]=0;return n[0]=d,n[3]=h,n[1]=w*d,n[2]=y*h,g&&Rd(n,n,g),n[4]+=o+v,n[5]+=c+_,n},a.initDefaultProps=function(){var i=a.prototype;i.scaleX=i.scaleY=i.globalScaleRatio=1,i.x=i.y=i.originX=i.originY=i.skewX=i.skewY=i.rotation=i.anchorX=i.anchorY=0}(),a}(),yo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function HR(a,i){for(var n=0;n=0?parseFloat(a)/100*i:parseFloat(a):a}function Op(a,i,n){var o=i.position||"inside",c=null!=i.distance?i.distance:5,d=n.height,h=n.width,f=d/2,p=n.x,g=n.y,v="left",_="top";if(o instanceof Array)p+=Ka(o[0],n.width),g+=Ka(o[1],n.height),v=null,_=null;else switch(o){case"left":p-=c,g+=f,v="right",_="middle";break;case"right":p+=c+h,g+=f,_="middle";break;case"top":p+=h/2,g-=c,v="center",_="bottom";break;case"bottom":p+=h/2,g+=d+c,v="center";break;case"inside":p+=h/2,g+=f,v="center",_="middle";break;case"insideLeft":p+=c,g+=f,_="middle";break;case"insideRight":p+=h-c,g+=f,v="right",_="middle";break;case"insideTop":p+=h/2,g+=c,v="center";break;case"insideBottom":p+=h/2,g+=d-c,v="center",_="bottom";break;case"insideTopLeft":p+=c,g+=c;break;case"insideTopRight":p+=h-c,g+=c,v="right";break;case"insideBottomLeft":p+=c,g+=d-c,_="bottom";break;case"insideBottomRight":p+=h-c,g+=d-c,v="right",_="bottom"}return(a=a||{}).x=p,a.y=g,a.align=v,a.verticalAlign=_,a}var Lp="__zr_normal__",GR=yo.concat(["ignore"]),WR=ln(yo,function(a,i){return a[i]=!0,a},{ignore:!1}),wh={},DH=new ce(0,0,0,0),as=function(){function a(i){this.id=VS(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return a.prototype._init=function(i){this.attr(i)},a.prototype.drift=function(i,n,o){switch(this.draggable){case"horizontal":n=0;break;case"vertical":i=0}var c=this.transform;c||(c=this.transform=[1,0,0,1,0,0]),c[4]+=i,c[5]+=n,this.decomposeTransform(),this.markRedraw()},a.prototype.beforeUpdate=function(){},a.prototype.afterUpdate=function(){},a.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},a.prototype.updateInnerText=function(i){var n=this._textContent;if(n&&(!n.ignore||i)){this.textConfig||(this.textConfig={});var o=this.textConfig,c=o.local,d=n.innerTransformable,h=void 0,f=void 0,p=!1;d.parent=c?this:null;var g=!1;if(d.copyTransform(n),null!=o.position){var v=DH;v.copy(o.layoutRect?o.layoutRect:this.getBoundingRect()),c||v.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wh,o,v):Op(wh,o,v),d.x=wh.x,d.y=wh.y,h=wh.align,f=wh.verticalAlign;var _=o.origin;if(_&&null!=o.rotation){var y=void 0,w=void 0;"center"===_?(y=.5*v.width,w=.5*v.height):(y=Ka(_[0],v.width),w=Ka(_[1],v.height)),g=!0,d.originX=-d.x+y+(c?0:v.x),d.originY=-d.y+w+(c?0:v.y)}}null!=o.rotation&&(d.rotation=o.rotation);var x=o.offset;x&&(d.x+=x[0],d.y+=x[1],g||(d.originX=-x[0],d.originY=-x[1]));var S=null==o.inside?"string"==typeof o.position&&o.position.indexOf("inside")>=0:o.inside,D=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,A=void 0,E=void 0;S&&this.canBeInsideText()?(A=o.insideStroke,(null==(T=o.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==A||"auto"===A)&&(A=this.getInsideTextStroke(T),E=!0)):(A=o.outsideStroke,(null==(T=o.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==A||"auto"===A)&&(A=this.getOutsideStroke(T),E=!0)),((T=T||"#000")!==D.fill||A!==D.stroke||E!==D.autoStroke||h!==D.align||f!==D.verticalAlign)&&(p=!0,D.fill=T,D.stroke=A,D.autoStroke=E,D.align=h,D.verticalAlign=f,n.setDefaultTextStyle(D)),n.__dirty|=ma,p&&n.dirtyStyle(!0)}},a.prototype.canBeInsideText=function(){return!0},a.prototype.getInsideTextFill=function(){return"#fff"},a.prototype.getInsideTextStroke=function(i){return"#000"},a.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ul:Pp},a.prototype.getOutsideStroke=function(i){var n=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof n&&Ea(n);o||(o=[255,255,255,1]);for(var c=o[3],d=this.__zr.isDarkMode(),h=0;h<3;h++)o[h]=o[h]*c+(d?0:255)*(1-c);return o[3]=1,No(o,"rgba")},a.prototype.traverse=function(i,n){},a.prototype.attrKV=function(i,n){"textConfig"===i?this.setTextConfig(n):"textContent"===i?this.setTextContent(n):"clipPath"===i?this.setClipPath(n):"extra"===i?(this.extra=this.extra||{},_e(this.extra,n)):this[i]=n},a.prototype.hide=function(){this.ignore=!0,this.markRedraw()},a.prototype.show=function(){this.ignore=!1,this.markRedraw()},a.prototype.attr=function(i,n){if("string"==typeof i)this.attrKV(i,n);else if(Ee(i))for(var c=Wt(i),d=0;d0},a.prototype.getState=function(i){return this.states[i]},a.prototype.ensureState=function(i){var n=this.states;return n[i]||(n[i]={}),n[i]},a.prototype.clearStates=function(i){this.useState(Lp,!1,i)},a.prototype.useState=function(i,n,o,c){var d=i===Lp;if(this.hasState()||!d){var f=this.currentStates,p=this.stateTransition;if(!(Ct(f,i)>=0)||!n&&1!==f.length){var g;if(this.stateProxy&&!d&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!d)return void wp("State "+i+" not exists.");d||this.saveCurrentToNormalState(g);var v=!!(g&&g.hoverLayer||c);v&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,n,!o&&!this.__inHover&&p&&p.duration>0,p);var _=this._textContent,y=this._textGuide;return _&&_.useState(i,n,o,v),y&&y.useState(i,n,o,v),d?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ma),g}}},a.prototype.useStates=function(i,n,o){if(i.length){var c=[],d=this.currentStates,h=i.length,f=h===d.length;if(f)for(var p=0;p0,x);var S=this._textContent,D=this._textGuide;S&&S.useStates(i,n,y),D&&D.useStates(i,n,y),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!y&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ma)}else this.clearStates()},a.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var o=this.currentStates.slice();o.splice(n,1),this.useStates(o)}},a.prototype.replaceState=function(i,n,o){var c=this.currentStates.slice(),d=Ct(c,i),h=Ct(c,n)>=0;d>=0?h?c.splice(d,1):c[d]=n:o&&!h&&c.push(n),this.useStates(c)},a.prototype.toggleState=function(i,n){n?this.useState(i,!0):this.removeState(i)},a.prototype._mergeStates=function(i){for(var o,n={},c=0;c=0&&d.splice(h,1)}),this.animators.push(i),o&&o.animation.addAnimator(i),o&&o.wakeUp()},a.prototype.updateDuringAnimation=function(i){this.markRedraw()},a.prototype.stopAnimation=function(i,n){for(var o=this.animators,c=o.length,d=[],h=0;h0&&n.during&&d[0].during(function(x,S){n.during(S)});for(var y=0;y0||c.force&&!h.length){var L,U=void 0,j=void 0,W=void 0;if(f)for(j={},y&&(U={}),k=0;k=0&&(c.splice(d,0,n),this._doAdd(n))}return this},i.prototype.replace=function(n,o){var c=Ct(this._children,n);return c>=0&&this.replaceAt(o,c),this},i.prototype.replaceAt=function(n,o){var c=this._children,d=c[o];if(n&&n!==this&&n.parent!==this&&n!==d){c[o]=n,d.parent=null;var h=this.__zr;h&&d.removeSelfFromZr(h),this._doAdd(n)}return this},i.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var o=this.__zr;o&&o!==n.__zr&&n.addSelfToZr(o),o&&o.refresh()},i.prototype.remove=function(n){var o=this.__zr,c=this._children,d=Ct(c,n);return d<0||(c.splice(d,1),n.parent=null,o&&n.removeSelfFromZr(o),o&&o.refresh()),this},i.prototype.removeAll=function(){for(var n=this._children,o=this.__zr,c=0;c0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},a.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},a.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},a.prototype.refreshHover=function(){this._needsRefreshHover=!0},a.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},a.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},a.prototype.clearAnimation=function(){this.animation.clear()},a.prototype.getWidth=function(){return this.painter.getWidth()},a.prototype.getHeight=function(){return this.painter.getHeight()},a.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},a.prototype.findHover=function(i,n){return this.handler.findHover(i,n)},a.prototype.on=function(i,n,o){return this.handler.on(i,n,o),this},a.prototype.off=function(i,n){this.handler.off(i,n)},a.prototype.trigger=function(i,n){this.handler.trigger(i,n)},a.prototype.clear=function(){for(var i=this.storage.getRoots(),n=0;n0){if(a<=c)return h;if(a>=d)return f}else{if(a>=c)return h;if(a<=d)return f}else{if(a===c)return h;if(a===d)return f}return(a-c)/p*g+h}function Ie(a,i){switch(a){case"center":case"middle":a="50%";break;case"left":case"top":a="0%";break;case"right":case"bottom":a="100%"}return Ae(a)?function AH(a){return a.replace(/^\s+|\s+$/g,"")}(a).match(/%$/)?parseFloat(a)/100*i:parseFloat(a):null==a?NaN:+a}function ti(a,i,n){return null==i&&(i=10),i=Math.min(Math.max(0,i),P0),a=(+a).toFixed(i),n?a:+a}function Qr(a){return a.sort(function(i,n){return i-n}),a}function ka(a){if(a=+a,isNaN(a))return 0;if(a>1e-14)for(var i=1,n=0;n<15;n++,i*=10)if(Math.round(a*i)/i===a)return n;return wD(a)}function wD(a){var i=a.toString().toLowerCase(),n=i.indexOf("e"),o=n>0?+i.slice(n+1):0,c=n>0?n:i.length,d=i.indexOf(".");return Math.max(0,(d<0?0:c-1-d)-o)}function Gv(a,i){var n=Math.log,o=Math.LN10,c=Math.floor(n(a[1]-a[0])/o),d=Math.round(n(Math.abs(i[1]-i[0]))/o),h=Math.min(Math.max(-c+d,0),20);return isFinite(h)?h:20}function Bp(a,i,n){return a[i]&&EH(a,n)[i]||0}function EH(a,i){var n=ln(a,function(w,x){return w+(isNaN(x)?0:x)},0);if(0===n)return[];for(var o=Math.pow(10,i),c=Se(a,function(w){return(isNaN(w)?0:w)/n*o*100}),d=100*o,h=Se(c,function(w){return Math.floor(w)}),f=ln(h,function(w,x){return w+x},0),p=Se(c,function(w,x){return w-h[x]});fg&&(g=p[_],v=_);++h[v],p[v]=0,++f}return Se(h,function(w){return w/o})}function IH(a,i){var n=Math.max(ka(a),ka(i)),o=a+i;return n>P0?o:ti(o,n)}var ZR=9007199254740991;function XR(a){var i=2*Math.PI;return(a%i+i)%i}function R0(a){return a>-rn&&a=10&&i++,i}function xD(a,i){var n=Oc(a),o=Math.pow(10,n),c=a/o;return a=(i?c<1.5?1:c<2.5?2:c<4?3:c<7?5:10:c<1?1:c<2?2:c<3?3:c<5?5:10)*o,n>=-20?+a.toFixed(n<0?-n:0):a}function O0(a,i){var n=(a.length-1)*i+1,o=Math.floor(n),c=+a[o-1],d=n-o;return d?c+d*(a[o]-c):c}function sr(a){a.sort(function(p,g){return f(p,g,0)?-1:1});for(var i=-1/0,n=1,o=0;o=0||d&&Ct(d,p)<0)){var g=o.getShallow(p,i);null!=g&&(h[a[f][0]]=g)}}return h}}var c2=Fc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Mh=function(){function a(){}return a.prototype.getAreaStyle=function(i,n){return c2(this,i,n)},a}(),kD=new h0(50);function PD(a){if("string"==typeof a){var i=kD.get(a);return i&&i.image}return a}function jp(a,i,n,o,c){if(a){if("string"==typeof a){if(i&&i.__zrImageSrc===a||!n)return i;var d=kD.get(a),h={hostEl:n,cb:o,cbPayload:c};return d?!Gp(i=d.image)&&d.pending.push(h):((i=bt.loadImage(a,d2,d2)).__zrImageSrc=a,kD.put(a,i.__cachedImgObj={image:i,pending:[h]})),i}return a}return i}function d2(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=h;p++)f-=h;var g=Vo(n,i);return g>f&&(n="",g=0),f=a-g,c.ellipsis=n,c.ellipsisWidth=g,c.contentWidth=f,c.containerWidth=a,c}function B0(a,i){var n=i.containerWidth,o=i.font,c=i.contentWidth;if(!n)return"";var d=Vo(a,o);if(d<=n)return a;for(var h=0;;h++){if(d<=c||h>=i.maxIterations){a+=i.ellipsis;break}var f=0===h?HH(a,c,i.ascCharWidth,i.cnCharWidth):d>0?Math.floor(a.length*c/d):0;d=Vo(a=a.substr(0,f),o)}return""===a&&(a=i.placeholder),a}function HH(a,i,n,o){for(var c=0,d=0,h=a.length;d0&&x+o.accumWidth>o.width&&(v=i.split("\n"),g=!0),o.accumWidth=x}else{var S=FD(i,p,o.width,o.breakAll,o.accumWidth);o.accumWidth=S.accumWidth+w,_=S.linesWidths,v=S.lines}}else v=i.split("\n");for(var D=0;D=32&&i<=591||i>=880&&i<=4351||i>=4608&&i<=5119||i>=7680&&i<=8303}(a)||!!jd[a]}function FD(a,i,n,o,c){for(var d=[],h=[],f="",p="",g=0,v=0,_=0;_n:c+v+w>n)?v?(f||p)&&(x?(f||(f=p,p="",v=g=0),d.push(f),h.push(v-g),p+=y,f="",v=g+=w):(p&&(f+=p,p="",g=0),d.push(f),h.push(v),f=y,v=w)):x?(d.push(p),h.push(g),p=y,g=w):(d.push(y),h.push(w)):(v+=w,x?(p+=y,g+=w):(p&&(f+=p,p="",g=0),f+=y))}else p&&(f+=p,v+=g),d.push(f),h.push(v),f="",p="",g=0,v=0}return!d.length&&!f&&(f=a,p="",g=0),p&&(f+=p),f&&(d.push(f),h.push(v)),1===d.length&&(v+=c),{accumWidth:v,lines:d,linesWidths:h}}var ND="__zr_style_"+Math.round(10*Math.random()),Ih={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ih[ND]=!0;var h2=["z","z2","invisible"],f2=["invisible"],WH=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype._init=function(n){for(var o=Wt(n),c=0;c1e-4)return f[0]=a-n,f[1]=i-o,p[0]=a+n,void(p[1]=i+o);if(Wd[0]=$p(c)*n+a,Wd[1]=$l(c)*o+i,z0[0]=$p(d)*n+a,z0[1]=$l(d)*o+i,g(f,Wd,z0),v(p,Wd,z0),(c%=Gd)<0&&(c+=Gd),(d%=Gd)<0&&(d+=Gd),c>d&&!h?d+=Gd:cc&&(H0[0]=$p(w)*n+a,H0[1]=$l(w)*o+i,g(f,H0,f),v(p,H0,p))}var ni={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],Bc=[],Yl=[],$d=[],ss=[],Bs=[],U0=Math.min,Yd=Math.max,Br=Math.cos,wo=Math.sin,zs=Math.abs,j0=Math.PI,Ja=2*j0,kh=typeof Float32Array<"u",G0=[];function Zp(a){return Math.round(a/j0*1e8)/1e8%2*j0}function BD(a,i){var n=Zp(a[0]);n<0&&(n+=Ja);var c=a[1];c+=n-a[0],!i&&c-n>=Ja?c=n+Ja:i&&n-c>=Ja?c=n-Ja:!i&&n>c?c=n+(Ja-Zp(n-c)):i&&n0&&(this._ux=zs(o/zv/i)||0,this._uy=zs(o/zv/n)||0)},a.prototype.setDPR=function(i){this.dpr=i},a.prototype.setContext=function(i){this._ctx=i},a.prototype.getContext=function(){return this._ctx},a.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},a.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},a.prototype.moveTo=function(i,n){return this._drawPendingPt(),this.addData(ni.M,i,n),this._ctx&&this._ctx.moveTo(i,n),this._x0=i,this._y0=n,this._xi=i,this._yi=n,this},a.prototype.lineTo=function(i,n){var o=zs(i-this._xi),c=zs(n-this._yi),d=o>this._ux||c>this._uy;if(this.addData(ni.L,i,n),this._ctx&&d&&this._ctx.lineTo(i,n),d)this._xi=i,this._yi=n,this._pendingPtDist=0;else{var h=o*o+c*c;h>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=n,this._pendingPtDist=h)}return this},a.prototype.bezierCurveTo=function(i,n,o,c,d,h){return this._drawPendingPt(),this.addData(ni.C,i,n,o,c,d,h),this._ctx&&this._ctx.bezierCurveTo(i,n,o,c,d,h),this._xi=d,this._yi=h,this},a.prototype.quadraticCurveTo=function(i,n,o,c){return this._drawPendingPt(),this.addData(ni.Q,i,n,o,c),this._ctx&&this._ctx.quadraticCurveTo(i,n,o,c),this._xi=o,this._yi=c,this},a.prototype.arc=function(i,n,o,c,d,h){return this._drawPendingPt(),G0[0]=c,G0[1]=d,BD(G0,h),this.addData(ni.A,i,n,o,o,c=G0[0],(d=G0[1])-c,0,h?0:1),this._ctx&&this._ctx.arc(i,n,o,c,d,h),this._xi=Br(d)*o+i,this._yi=wo(d)*o+n,this},a.prototype.arcTo=function(i,n,o,c,d){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,n,o,c,d),this},a.prototype.rect=function(i,n,o,c){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,n,o,c),this.addData(ni.R,i,n,o,c),this},a.prototype.closePath=function(){this._drawPendingPt(),this.addData(ni.Z);var i=this._ctx,n=this._x0,o=this._y0;return i&&i.closePath(),this._xi=n,this._yi=o,this},a.prototype.fill=function(i){i&&i.fill(),this.toStatic()},a.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},a.prototype.len=function(){return this._len},a.prototype.setData=function(i){var n=i.length;(!this.data||this.data.length!==n)&&kh&&(this.data=new Float32Array(n));for(var o=0;ov.length&&(this._expandData(),v=this.data);for(var _=0;_0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},a.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],n=0;n11&&(this.data=new Float32Array(i)))}},a.prototype.getBoundingRect=function(){Yl[0]=Yl[1]=ss[0]=ss[1]=Number.MAX_VALUE,$d[0]=$d[1]=Bs[0]=Bs[1]=-Number.MAX_VALUE;var h,i=this.data,n=0,o=0,c=0,d=0;for(h=0;ho||zs(E)>c||y===n-1)&&(S=Math.sqrt(A*A+E*E),d=D,h=T);break;case ni.C:var k=i[y++],L=i[y++],T=(D=i[y++],i[y++]),O=i[y++],B=i[y++];S=tD(d,h,k,L,D,T,O,B,10),d=O,h=B;break;case ni.Q:S=bX(d,h,k=i[y++],L=i[y++],D=i[y++],T=i[y++],10),d=D,h=T;break;case ni.A:var U=i[y++],j=i[y++],W=i[y++],$=i[y++],X=i[y++],K=i[y++],ee=K+X;y+=1,y++,x&&(f=Br(X)*W+U,p=wo(X)*$+j),S=Yd(W,$)*U0(Ja,Math.abs(K)),d=Br(ee)*W+U,h=wo(ee)*$+j;break;case ni.R:f=d=i[y++],p=h=i[y++],S=2*i[y++]+2*i[y++];break;case ni.Z:var A=f-d;E=p-h,S=Math.sqrt(A*A+E*E),d=f,h=p}S>=0&&(g[_++]=S,v+=S)}return this._pathLen=v,v},a.prototype.rebuildPath=function(i,n){var f,p,g,v,_,y,x,A,k,L,o=this.data,c=this._ux,d=this._uy,h=this._len,w=n<1,D=0,T=0,E=0;if(!w||(this._pathSegLen||this._calculateLength(),x=this._pathSegLen,A=n*this._pathLen))e:for(var O=0;O0&&(i.lineTo(k,L),E=0),B){case ni.M:f=g=o[O++],p=v=o[O++],i.moveTo(g,v);break;case ni.L:_=o[O++],y=o[O++];var j=zs(_-g),W=zs(y-v);if(j>c||W>d){if(w){if(D+($=x[T++])>A){i.lineTo(g*(1-(X=(A-D)/$))+_*X,v*(1-X)+y*X);break e}D+=$}i.lineTo(_,y),g=_,v=y,E=0}else{var K=j*j+W*W;K>E&&(k=_,L=y,E=K)}break;case ni.C:var ee=o[O++],te=o[O++],ie=o[O++],me=o[O++],ue=o[O++],we=o[O++];if(w){if(D+($=x[T++])>A){Fd(g,ee,ie,ue,X=(A-D)/$,si),Fd(v,te,me,we,X,Bc),i.bezierCurveTo(si[1],Bc[1],si[2],Bc[2],si[3],Bc[3]);break e}D+=$}i.bezierCurveTo(ee,te,ie,me,ue,we),g=ue,v=we;break;case ni.Q:if(ee=o[O++],te=o[O++],ie=o[O++],me=o[O++],w){if(D+($=x[T++])>A){u0(g,ee,ie,X=(A-D)/$,si),u0(v,te,me,X,Bc),i.quadraticCurveTo(si[1],Bc[1],si[2],Bc[2]);break e}D+=$}i.quadraticCurveTo(ee,te,ie,me),g=ie,v=me;break;case ni.A:var Pe=o[O++],Le=o[O++],We=o[O++],Ke=o[O++],Qe=o[O++],At=o[O++],Qt=o[O++],Pt=!o[O++],at=We>Ke?We:Ke,Et=zs(We-Ke)>.001,wt=Qe+At,qe=!1;if(w&&(D+($=x[T++])>A&&(wt=Qe+At*(A-D)/$,qe=!0),D+=$),Et&&i.ellipse?i.ellipse(Pe,Le,We,Ke,Qt,Qe,wt,Pt):i.arc(Pe,Le,at,Qe,wt,Pt),qe)break e;U&&(f=Br(Qe)*We+Pe,p=wo(Qe)*Ke+Le),g=Br(wt)*We+Pe,v=wo(wt)*Ke+Le;break;case ni.R:f=g=o[O],p=v=o[O+1],_=o[O++],y=o[O++];var xt=o[O++],ui=o[O++];if(w){if(D+($=x[T++])>A){var un=A-D;i.moveTo(_,y),i.lineTo(_+U0(un,xt),y),(un-=xt)>0&&i.lineTo(_+xt,y+U0(un,ui)),(un-=ui)>0&&i.lineTo(_+Yd(xt-un,0),y+ui),(un-=xt)>0&&i.lineTo(_,y+Yd(ui-un,0));break e}D+=$}i.rect(_,y,xt,ui);break;case ni.Z:if(w){var $;if(D+($=x[T++])>A){var X;i.lineTo(g*(1-(X=(A-D)/$))+f*X,v*(1-X)+p*X);break e}D+=$}i.closePath(),g=f,v=p}}},a.prototype.clone=function(){var i=new a,n=this.data;return i.data=n.slice?n.slice():Array.prototype.slice.call(n),i._len=this._len,i},a.CMD=ni,a.initDefaultProps=function(){var i=a.prototype;i._saveData=!0,i._ux=0,i._uy=0,i._pendingPtDist=0,i._version=0}(),a}();const Hs=YH;function Ph(a,i,n,o,c,d,h){if(0===c)return!1;var p,f=c;if(h>i+f&&h>o+f||ha+f&&d>n+f||di+_&&v>o+_&&v>d+_&&v>f+_||va+_&&g>n+_&&g>c+_&&g>h+_||gi+g&&p>o+g&&p>d+g||pa+g&&f>n+g&&f>c+g||fn||v+gc&&(c+=Rh);var y=Math.atan2(p,f);return y<0&&(y+=Rh),y>=o&&y<=c||y+Rh>=o&&y+Rh<=c}function qd(a,i,n,o,c,d){if(d>i&&d>o||dc?f:0}var ql=Hs.CMD,Xp=2*Math.PI,xo=[-1,-1,-1],js=[-1,-1];function ZH(){var a=js[0];js[0]=js[1],js[1]=a}function W0(a,i,n,o,c,d,h,f,p,g){if(g>i&&g>o&&g>d&&g>f||g1&&ZH(),w=Ti(i,o,d,f,js[0]),y>1&&(x=Ti(i,o,d,f,js[1]))),_+=2===y?Di&&f>o&&f>d||f=0&&g<=1&&(c[p++]=g);else{var v=h*h-4*d*f;if(Ui(v))(g=-h/(2*d))>=0&&g<=1&&(c[p++]=g);else if(v>0){var g,_=Bl(v),y=(-h-_)/(2*d);(g=(-h+_)/(2*d))>=0&&g<=1&&(c[p++]=g),y>=0&&y<=1&&(c[p++]=y)}}return p}(i,o,d,f,xo);if(0===p)return 0;var g=dH(i,o,d);if(g>=0&&g<=1){for(var v=0,_=Fr(i,o,d,g),y=0;yn||f<-n)return 0;var p=Math.sqrt(n*n-f*f);xo[0]=-p,xo[1]=p;var g=Math.abs(o-c);if(g<1e-4)return 0;if(g>=Xp-1e-4){o=0,c=Xp;var v=d?1:-1;return h>=xo[0]+a&&h<=xo[1]+a?v:0}if(o>c){var _=o;o=c,c=_}o<0&&(o+=Xp,c+=Xp);for(var y=0,w=0;w<2;w++){var x=xo[w];if(x+a>h){var S=Math.atan2(f,x);v=d?1:-1,S<0&&(S=Xp+S),(S>=o&&S<=c||S+Xp>=o&&S+Xp<=c)&&(S>Math.PI/2&&S<1.5*Math.PI&&(v=-v),y+=v)}}return y}function HD(a,i,n,o,c){for(var y,w,d=a.data,h=a.len(),f=0,p=0,g=0,v=0,_=0,x=0;x1&&(n||(f+=qd(p,g,v,_,o,c))),D&&(v=p=d[x],_=g=d[x+1]),S){case ql.M:p=v=d[x++],g=_=d[x++];break;case ql.L:if(n){if(Ph(p,g,d[x],d[x+1],i,o,c))return!0}else f+=qd(p,g,d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.C:if(n){if(_2(p,g,d[x++],d[x++],d[x++],d[x++],d[x],d[x+1],i,o,c))return!0}else f+=W0(p,g,d[x++],d[x++],d[x++],d[x++],d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.Q:if(n){if(qH(p,g,d[x++],d[x++],d[x],d[x+1],i,o,c))return!0}else f+=$0(p,g,d[x++],d[x++],d[x],d[x+1],o,c)||0;p=d[x++],g=d[x++];break;case ql.A:var T=d[x++],A=d[x++],E=d[x++],k=d[x++],L=d[x++],O=d[x++];x+=1;var B=!!(1-d[x++]);y=Math.cos(L)*E+T,w=Math.sin(L)*k+A,D?(v=y,_=w):f+=qd(p,g,y,w,o,c);var U=(o-T)*k/E+T;if(n){if(RX(T,A,k,L,L+O,B,i,U,c))return!0}else f+=zD(T,A,k,L,L+O,B,U,c);p=Math.cos(L+O)*E+T,g=Math.sin(L+O)*k+A;break;case ql.R:if(v=p=d[x++],_=g=d[x++],y=v+d[x++],w=_+d[x++],n){if(Ph(v,_,y,_,i,o,c)||Ph(y,_,y,w,i,o,c)||Ph(y,w,v,w,i,o,c)||Ph(v,w,v,_,i,o,c))return!0}else f+=qd(y,_,y,w,o,c),f+=qd(v,w,v,_,o,c);break;case ql.Z:if(n){if(Ph(p,g,v,_,i,o,c))return!0}else f+=qd(p,g,v,_,o,c);p=v,g=_}}return!n&&!function LX(a,i){return Math.abs(a-i)<1e-4}(g,_)&&(f+=qd(p,g,v,_,o,c)||0),0!==f}var Y0=Ze({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ih),w2={style:Ze({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qv.style)},q0=yo.concat(["invisible","culling","z","z2","zlevel","parent"]),Z0=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.update=function(){var n=this;a.prototype.update.call(this);var o=this.style;if(o.decal){var c=this._decalEl=this._decalEl||new i;c.buildPath===i.prototype.buildPath&&(c.buildPath=function(p){n.buildPath(p,n.shape)}),c.silent=!0;var d=c.style;for(var h in o)d[h]!==o[h]&&(d[h]=o[h]);d.fill=o.fill?o.decal:null,d.decal=null,d.shadowColor=null,o.strokeFirst&&(d.stroke=null);for(var f=0;f.5?Pp:o>.2?"#eee":Ul}if(n)return Ul}return Pp},i.prototype.getInsideTextStroke=function(n){var o=this.style.fill;if(Ae(o)){var c=this.__zr;if(!(!c||!c.isDarkMode())==Ec(n,0)<.4)return o}},i.prototype.buildPath=function(n,o,c){},i.prototype.pathUpdated=function(){this.__dirty&=~Ls},i.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},i.prototype.createPathProxy=function(){this.path=new Hs(!1)},i.prototype.hasStroke=function(){var n=this.style,o=n.stroke;return!(null==o||"none"===o||!(n.lineWidth>0))},i.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},i.prototype.getBoundingRect=function(){var n=this._rect,o=this.style,c=!n;if(c){var d=!1;this.path||(d=!0,this.createPathProxy());var h=this.path;(d||this.__dirty&Ls)&&(h.beginPath(),this.buildPath(h,this.shape,!1),this.pathUpdated()),n=h.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var f=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||c){f.copy(n);var p=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;this.hasFill()||(g=Math.max(g,this.strokeContainThreshold??4)),p>1e-10&&(f.width+=g/p,f.height+=g/p,f.x-=g/p/2,f.y-=g/p/2)}return f}return n},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o),d=this.getBoundingRect(),h=this.style;if(d.contain(n=c[0],o=c[1])){var f=this.path;if(this.hasStroke()){var p=h.lineWidth,g=h.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(p=Math.max(p,this.strokeContainThreshold)),function Jv(a,i,n,o){return HD(a,i,!0,n,o)}(f,p/g,n,o)))return!0}if(this.hasFill())return function b2(a,i,n){return HD(a,0,!1,i,n)}(f,n,o)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=Ls,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(n){return this.animate("shape",n)},i.prototype.updateDuringAnimation=function(n){"style"===n?this.dirtyStyle():"shape"===n?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(n,o){"shape"===n?this.setShape(o):a.prototype.attrKV.call(this,n,o)},i.prototype.setShape=function(n,o){var c=this.shape;return c||(c=this.shape={}),"string"==typeof n?c[n]=o:_e(c,n),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&Ls)},i.prototype.createStyle=function(n){return Kb(Y0,n)},i.prototype._innerSaveToNormal=function(n){a.prototype._innerSaveToNormal.call(this,n);var o=this._normalState;n.shape&&!o.shape&&(o.shape=_e({},this.shape))},i.prototype._applyStateObj=function(n,o,c,d,h,f){a.prototype._applyStateObj.call(this,n,o,c,d,h,f);var g,p=!(o&&d);if(o&&o.shape?h?d?g=o.shape:(g=_e({},c.shape),_e(g,o.shape)):(g=_e({},d?this.shape:c.shape),_e(g,o.shape)):p&&(g=c.shape),g)if(h){this.shape=_e({},this.shape);for(var v={},_=Wt(g),y=0;y<_.length;y++){var w=_[y];"object"==typeof g[w]?this.shape[w]=g[w]:v[w]=g[w]}this._transitionState(n,{shape:v},f)}else this.shape=g,this.dirtyShape()},i.prototype._mergeStates=function(n){for(var c,o=a.prototype._mergeStates.call(this,n),d=0;d0},i.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},i.prototype.createStyle=function(n){return Kb(Zd,n)},i.prototype.setBoundingRect=function(n){this._rect=n},i.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var o=n.text;null!=o?o+="":o="";var c=M0(o,n.font,n.textAlign,n.textBaseline);if(c.x+=n.x||0,c.y+=n.y||0,this.hasStroke()){var d=n.lineWidth;c.x-=d/2,c.y-=d/2,c.width+=d,c.height+=d}this._rect=c}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(zo);x2.prototype.type="tspan";const e_=x2;var XH=Ze({x:0,y:0},Ih),C2={style:Ze({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qv.style)},S2=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return cn(i,a),i.prototype.createStyle=function(n){return Kb(XH,n)},i.prototype._getSize=function(n){var o=this.style,c=o[n];if(null!=c)return c;var d=function UD(a){return!!(a&&"string"!=typeof a&&a.width&&a.height)}(o.image)?o.image:this.__image;if(!d)return 0;var h="width"===n?"height":"width",f=o[h];return null==f?d[n]:d[n]/d[h]*f},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return C2},i.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ce(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},i}(zo);S2.prototype.type="image";const Jr=S2;var Oh=Math.round;function D2(a,i,n){if(i){var o=i.x1,c=i.x2,d=i.y1,h=i.y2;a.x1=o,a.x2=c,a.y1=d,a.y2=h;var f=n&&n.lineWidth;return f&&(Oh(2*o)===Oh(2*c)&&(a.x1=a.x2=Cr(o,f,!0)),Oh(2*d)===Oh(2*h)&&(a.y1=a.y2=Cr(d,f,!0))),a}}function T2(a,i,n){if(i){var o=i.x,c=i.y,d=i.width,h=i.height;a.x=o,a.y=c,a.width=d,a.height=h;var f=n&&n.lineWidth;return f&&(a.x=Cr(o,f,!0),a.y=Cr(c,f,!0),a.width=Math.max(Cr(o+d,f,!1)-a.x,0===d?0:1),a.height=Math.max(Cr(c+h,f,!1)-a.y,0===h?0:1)),a}}function Cr(a,i,n){if(!i)return a;var o=Oh(2*a);return(o+Oh(i))%2==0?o/2:(o+(n?1:-1))/2}var jD=function a(){this.x=0,this.y=0,this.width=0,this.height=0},M2={},X0=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new jD},i.prototype.buildPath=function(n,o){var c,d,h,f;if(this.subPixelOptimize){var p=T2(M2,o,this.style);c=p.x,d=p.y,h=p.width,f=p.height,p.r=o.r,o=p}else c=o.x,d=o.y,h=o.width,f=o.height;o.r?function KH(a,i){var f,p,g,v,_,n=i.x,o=i.y,c=i.width,d=i.height,h=i.r;c<0&&(n+=c,c=-c),d<0&&(o+=d,d=-d),"number"==typeof h?f=p=g=v=h:h instanceof Array?1===h.length?f=p=g=v=h[0]:2===h.length?(f=g=h[0],p=v=h[1]):3===h.length?(f=h[0],p=v=h[1],g=h[2]):(f=h[0],p=h[1],g=h[2],v=h[3]):f=p=g=v=0,f+p>c&&(f*=c/(_=f+p),p*=c/_),g+v>c&&(g*=c/(_=g+v),v*=c/_),p+g>d&&(p*=d/(_=p+g),g*=d/_),f+v>d&&(f*=d/(_=f+v),v*=d/_),a.moveTo(n+f,o),a.lineTo(n+c-p,o),0!==p&&a.arc(n+c-p,o+p,p,-Math.PI/2,0),a.lineTo(n+c,o+d-g),0!==g&&a.arc(n+c-g,o+d-g,g,0,Math.PI/2),a.lineTo(n+v,o+d),0!==v&&a.arc(n+v,o+d-v,v,Math.PI/2,Math.PI),a.lineTo(n,o+f),0!==f&&a.arc(n+f,o+f,f,Math.PI,1.5*Math.PI)}(n,o):n.rect(c,d,h,f)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(It);X0.prototype.type="rect";const _t=X0;var Kp={fill:"#000"},A2={style:Ze({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Qv.style)},E2=function(a){function i(n){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=Kp,o.attr(n),o}return cn(i,a),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){a.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;nw&&g){var x=Math.floor(w/f);_=_.slice(0,x)}if(a&&d&&null!=v)for(var S=Ah(v,c,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),D=0;D<_.length;D++)_[D]=B0(_[D],S);var T=w,A=0;for(D=0;D<_.length;D++)A=Math.max(Vo(_[D],c),A);null==v&&(v=A);var E=A;return o&&(T+=o[0]+o[2],E+=o[1]+o[3],v+=o[1]+o[3]),p&&(E=v),{lines:_,height:w,outerWidth:E,outerHeight:T,lineHeight:f,calculatedLineHeight:h,contentWidth:A,contentHeight:y,width:v}}(t_(n),n),f=J0(n),p=!!n.backgroundColor,g=h.outerHeight,v=h.outerWidth,_=h.contentWidth,y=h.lines,w=h.lineHeight,x=this._defaultStyle,S=n.x||0,D=n.y||0,T=n.align||x.align||"left",A=n.verticalAlign||x.verticalAlign||"top",E=S,k=zd(D,h.contentHeight,A);if(f||c){var L=A0(S,v,T),O=zd(D,g,A);f&&this._renderBackground(n,n,L,O,v,g)}k+=w/2,c&&(E=Lh(S,T,c),"top"===A?k+=c[0]:"bottom"===A&&(k-=c[2]));for(var B=0,U=!1,j=(R2("fill"in n?n.fill:(U=!0,x.fill))),W=(Q0("stroke"in n?n.stroke:p||x.autoStroke&&!U?null:(B=2,x.stroke))),$=n.textShadowBlur>0,X=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),K=h.calculatedLineHeight,ee=0;eef&&RD(n,a.substring(f,g),i,h),RD(n,p[2],i,h,p[1]),f=Wp.lastIndex}fc){L>0?(A.tokens=A.tokens.slice(0,L),D(A,k,E),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break e}var X=B.width,K=null==X||"auto"===X;if("string"==typeof X&&"%"===X.charAt(X.length-1))O.percentWidth=X,v.push(O),O.contentWidth=Vo(O.text,W);else{if(K){var ee=B.backgroundColor,te=ee&&ee.image;te&&Gp(te=PD(te))&&(O.width=Math.max(O.width,te.width*$/te.height))}var ie=x&&null!=o?o-k:null;null!=ie&&ie=0&&"right"===(ee=O[K]).align;)this._placeToken(ee,n,U,T,X,"right",E),j-=ee.width,X-=ee.width,K--;for($+=(d-($-D)-(A-X)-j)/2;W<=K;)this._placeToken(ee=O[W],n,U,T,$+ee.width/2,"center",E),$+=ee.width,W++;T+=U}},i.prototype._placeToken=function(n,o,c,d,h,f,p){var g=o.rich[n.styleName]||{};g.text=n.text;var v=n.verticalAlign,_=d+c/2;"top"===v?_=d+n.height/2:"bottom"===v&&(_=d+c-n.height/2),!n.isLineHolder&&J0(g)&&this._renderBackground(g,o,"right"===f?h-n.width:"center"===f?h-n.width/2:h,_-n.height/2,n.width,n.height);var w=!!g.backgroundColor,x=n.textPadding;x&&(h=Lh(h,f,x),_-=n.height/2-x[0]-n.innerHeight/2);var S=this._getOrCreateChild(e_),D=S.createStyle();S.useStyle(D);var T=this._defaultStyle,A=!1,E=0,k=R2("fill"in g?g.fill:"fill"in o?o.fill:(A=!0,T.fill)),L=Q0("stroke"in g?g.stroke:"stroke"in o?o.stroke:w||p||T.autoStroke&&!A?null:(E=2,T.stroke)),O=g.textShadowBlur>0||o.textShadowBlur>0;D.text=n.text,D.x=h,D.y=_,O&&(D.shadowBlur=g.textShadowBlur||o.textShadowBlur||0,D.shadowColor=g.textShadowColor||o.textShadowColor||"transparent",D.shadowOffsetX=g.textShadowOffsetX||o.textShadowOffsetX||0,D.shadowOffsetY=g.textShadowOffsetY||o.textShadowOffsetY||0),D.textAlign=f,D.textBaseline="middle",D.font=n.font||Md,D.opacity=Ro(g.opacity,o.opacity,1),$D(D,g),L&&(D.lineWidth=Ro(g.lineWidth,o.lineWidth,E),D.lineDash=gt(g.lineDash,o.lineDash),D.lineDashOffset=o.lineDashOffset||0,D.stroke=L),k&&(D.fill=k);var B=n.contentWidth,U=n.contentHeight;S.setBoundingRect(new ce(A0(D.x,B,D.textAlign),zd(D.y,U,D.textBaseline),B,U))},i.prototype._renderBackground=function(n,o,c,d,h,f){var S,D,A,p=n.backgroundColor,g=n.borderWidth,v=n.borderColor,_=p&&p.image,y=p&&!_,w=n.borderRadius,x=this;if(y||n.lineHeight||g&&v){(S=this._getOrCreateChild(_t)).useStyle(S.createStyle()),S.style.fill=null;var T=S.shape;T.x=c,T.y=d,T.width=h,T.height=f,T.r=w,S.dirtyShape()}if(y)(A=S.style).fill=p||null,A.fillOpacity=gt(n.fillOpacity,1);else if(_){(D=this._getOrCreateChild(Jr)).onload=function(){x.dirtyStyle()};var E=D.style;E.image=p.image,E.x=c,E.y=d,E.width=h,E.height=f}g&&v&&((A=S.style).lineWidth=g,A.stroke=v,A.strokeOpacity=gt(n.strokeOpacity,1),A.lineDash=n.borderDash,A.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(A.strokeFirst=!0,A.lineWidth*=2));var k=(S||D).style;k.shadowBlur=n.shadowBlur||0,k.shadowColor=n.shadowColor||"transparent",k.shadowOffsetX=n.shadowOffsetX||0,k.shadowOffsetY=n.shadowOffsetY||0,k.opacity=Ro(n.opacity,o.opacity,1)},i.makeFont=function(n){var o="";return P2(n)&&(o=[n.fontStyle,n.fontWeight,k2(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),o&&la(o)||n.textFont||n.font},i}(zo),I2={left:!0,right:1,center:1},QH={top:1,bottom:1,middle:1},WD=["fontStyle","fontWeight","fontSize","fontFamily"];function k2(a){return"string"!=typeof a||-1===a.indexOf("px")&&-1===a.indexOf("rem")&&-1===a.indexOf("em")?isNaN(+a)?cR+"px":a+"px":a}function $D(a,i){for(var n=0;n=0,d=!1;if(a instanceof It){var h=L2(a),f=c&&h.selectFill||h.normalFill,p=c&&h.selectStroke||h.normalStroke;if(tm(f)||tm(p)){var g=(o=o||{}).style||{};"inherit"===g.fill?(d=!0,o=_e({},o),(g=_e({},g)).fill=f):!tm(g.fill)&&tm(f)?(d=!0,o=_e({},o),(g=_e({},g)).fill=r_(f)):!tm(g.stroke)&&tm(p)&&(d||(o=_e({},o),g=_e({},g)),g.stroke=r_(p)),o.style=g}}return o&&null==o.z2&&(d||(o=_e({},o)),o.z2=a.z2+(a.z2EmphasisLift??Jp)),o}(this,0,i,n);if("blur"===a)return function n8(a,i,n){var o=Ct(a.currentStates,i)>=0,c=a.style.opacity,d=o?null:function N2(a,i,n,o){for(var c=a.style,d={},h=0;h0){var p={dataIndex:f,seriesIndex:n.seriesIndex};null!=h&&(p.dataType=h),i.push(p)}})}),i}function Kd(a,i,n){zh(a,!0),Zl(a,Nh),eo(a,i,n)}function Oi(a,i,n,o){o?function a8(a){zh(a,!1)}(a):Kd(a,i,n)}function eo(a,i,n){var o=st(a);null!=i?(o.focus=i,o.blurScope=n):o.focus&&(o.focus=null)}var Ws=["emphasis","blur","select"],o8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ga(a,i,n,o){n=n||"itemStyle";for(var c=0;c0){var x={duration:v.duration,delay:v.delay||0,easing:v.easing,done:d,force:!!d||!!h,setToFinal:!g,scope:a,during:h};f?i.animateFrom(n,x):i.animateTo(n,x)}else i.stopAnimation(),!f&&i.attr(n),h&&h(1),d&&d()}function zt(a,i,n,o,c,d){om("update",a,i,n,o,c,d)}function Nn(a,i,n,o,c,d){om("enter",a,i,n,o,c,d)}function Hh(a){if(!a.__zr)return!0;for(var i=0;i-1?"ZH":Jl;function J2(a,i){a=a.toUpperCase(),d_[a]=new Un(i),um[a]=i}function Uh(a){return d_[a]}J2("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),J2("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var h_=36e5,Co=24*h_,fT=365*Co,f_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},mw="{yyyy}-{MM}-{dd}",g8={year:"{yyyy}",month:"{yyyy}-{MM}",day:mw,hour:mw+" "+f_.hour,minute:mw+" "+f_.minute,second:mw+" "+f_.second,millisecond:f_.none},pT=["year","month","day","hour","minute","second","millisecond"],p_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function va(a,i){return"0000".substr(0,i-(a+="").length)+a}function hm(a){switch(a){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return a}}function eO(a){return a===hm(a)}function Jd(a,i,n,o){var c=os(a),d=c[gw(n)](),h=c[m_(n)]()+1,f=Math.floor((h-1)/3)+1,p=c[vw(n)](),g=c["get"+(n?"UTC":"")+"Day"](),v=c[ls(n)](),_=(v-1)%12+1,y=c[_w(n)](),w=c[Uc(n)](),x=c[je(n)](),D=(o instanceof Un?o:Uh(o||u_)||function m8(){return d_[Jl]}()).getModel("time"),T=D.get("month"),A=D.get("monthAbbr"),E=D.get("dayOfWeek"),k=D.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,d+"").replace(/{yy}/g,va(d%100+"",2)).replace(/{Q}/g,f+"").replace(/{MMMM}/g,T[h-1]).replace(/{MMM}/g,A[h-1]).replace(/{MM}/g,va(h,2)).replace(/{M}/g,h+"").replace(/{dd}/g,va(p,2)).replace(/{d}/g,p+"").replace(/{eeee}/g,E[g]).replace(/{ee}/g,k[g]).replace(/{e}/g,g+"").replace(/{HH}/g,va(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,va(_+"",2)).replace(/{h}/g,_+"").replace(/{mm}/g,va(y,2)).replace(/{m}/g,y+"").replace(/{ss}/g,va(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,va(x,3)).replace(/{S}/g,x+"")}function gT(a,i){var n=os(a),o=n[m_(i)]()+1,c=n[vw(i)](),d=n[ls(i)](),h=n[_w(i)](),f=n[Uc(i)](),g=0===n[je(i)](),v=g&&0===f,_=v&&0===h,y=_&&0===d,w=y&&1===c;return w&&1===o?"year":w?"month":y?"day":_?"hour":v?"minute":g?"second":"millisecond"}function tO(a,i,n){var o=on(a)?os(a):a;switch(i=i||gT(a,n)){case"year":return o[gw(n)]();case"half-year":return o[m_(n)]()>=6?1:0;case"quarter":return Math.floor((o[m_(n)]()+1)/4);case"month":return o[m_(n)]();case"day":return o[vw(n)]();case"half-day":return o[ls(n)]()/24;case"hour":return o[ls(n)]();case"minute":return o[_w(n)]();case"second":return o[Uc(n)]();case"millisecond":return o[je(n)]()}}function gw(a){return a?"getUTCFullYear":"getFullYear"}function m_(a){return a?"getUTCMonth":"getMonth"}function vw(a){return a?"getUTCDate":"getDate"}function ls(a){return a?"getUTCHours":"getHours"}function _w(a){return a?"getUTCMinutes":"getMinutes"}function Uc(a){return a?"getUTCSeconds":"getSeconds"}function je(a){return a?"getUTCMilliseconds":"getMilliseconds"}function _8(a){return a?"setUTCFullYear":"setFullYear"}function yw(a){return a?"setUTCMonth":"setMonth"}function ec(a){return a?"setUTCDate":"setDate"}function nO(a){return a?"setUTCHours":"setHours"}function iO(a){return a?"setUTCMinutes":"setMinutes"}function bw(a){return a?"setUTCSeconds":"setSeconds"}function y8(a){return a?"setUTCMilliseconds":"setMilliseconds"}function rO(a){if(!Sh(a))return Ae(a)?a:"-";var i=(a+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function aO(a,i){return a=(a||"").toLowerCase().replace(/-(.)/g,function(n,o){return o.toUpperCase()}),i&&a&&(a=a.charAt(0).toUpperCase()+a.slice(1)),a}var jh=vv;function ww(a,i,n){function c(v){return v&&la(v)?v:"-"}function d(v){return!(null==v||isNaN(v)||!isFinite(v))}var h="time"===i,f=a instanceof Date;if(h||f){var p=h?os(a):a;if(!isNaN(+p))return Jd(p,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(f)return"-"}if("ordinal"===i)return Bn(a)?c(a):on(a)&&d(a)?a+"":"-";var g=Gl(a);return d(g)?rO(g):Bn(a)?c(a):"boolean"==typeof a?a+"":"-"}var b8=["a","b","c","d","e","f","g"],fm=function(a,i){return"{"+a+(i??"")+"}"};function vT(a,i,n){ye(i)||(i=[i]);var o=i.length;if(!o)return"";for(var c=i[0].$vars||[],d=0;d':'':{renderMode:d,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===c?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function oO(a,i,n){("week"===a||"month"===a||"quarter"===a||"half-year"===a||"year"===a)&&(a="MM-dd\nyyyy");var o=os(i),c=n?"getUTC":"get",d=o[c+"FullYear"](),h=o[c+"Month"]()+1,f=o[c+"Date"](),p=o[c+"Hours"](),g=o[c+"Minutes"](),v=o[c+"Seconds"](),_=o[c+"Milliseconds"]();return a.replace("MM",va(h,2)).replace("M",h).replace("yyyy",d).replace("yy",va(d%100+"",2)).replace("dd",va(f,2)).replace("d",f).replace("hh",va(p,2)).replace("h",p).replace("mm",va(g,2)).replace("m",g).replace("ss",va(v,2)).replace("s",v).replace("SSS",va(_,3))}function x8(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)}function Gh(a,i){return i=i||"transparent",Ae(a)?a:Ee(a)&&a.colorStops&&(a.colorStops[0]||{}).color||i}function Cw(a,i){if("_blank"===i||"blank"===i){var n=window.open();n.opener=null,n.location.href=a}else window.open(a,i)}var Sw=G,_T=["left","right","top","bottom","width","height"],eu=[["width","left","right"],["height","top","bottom"]];function Dw(a,i,n,o,c){var d=0,h=0;null==o&&(o=1/0),null==c&&(c=1/0);var f=0;i.eachChild(function(p,g){var w,x,v=p.getBoundingRect(),_=i.childAt(g+1),y=_&&_.getBoundingRect();if("horizontal"===a){var S=v.width+(y?-y.x+v.x:0);(w=d+S)>o||p.newline?(d=0,w=S,h+=f+n,f=v.height):f=Math.max(f,v.height)}else{var D=v.height+(y?-y.y+v.y:0);(x=h+D)>c||p.newline?(d+=f+n,h=0,x=D,f=v.width):f=Math.max(f,v.width)}p.newline||(p.x=d,p.y=h,p.markRedraw(),"horizontal"===a?d=w+n:h=x+n)})}var Wh=Dw;function Dr(a,i,n){n=jh(n||0);var o=i.width,c=i.height,d=Ie(a.left,o),h=Ie(a.top,c),f=Ie(a.right,o),p=Ie(a.bottom,c),g=Ie(a.width,o),v=Ie(a.height,c),_=n[2]+n[0],y=n[1]+n[3],w=a.aspect;switch(isNaN(g)&&(g=o-f-y-d),isNaN(v)&&(v=c-p-_-h),null!=w&&(isNaN(g)&&isNaN(v)&&(w>o/c?g=.8*o:v=.8*c),isNaN(g)&&(g=w*v),isNaN(v)&&(v=g/w)),isNaN(d)&&(d=o-f-g-y),isNaN(h)&&(h=c-p-v-_),a.left||a.right){case"center":d=o/2-g/2-n[3];break;case"right":d=o-g-y}switch(a.top||a.bottom){case"middle":case"center":h=c/2-v/2-n[0];break;case"bottom":h=c-v-_}d=d||0,h=h||0,isNaN(g)&&(g=o-y-d-(f||0)),isNaN(v)&&(v=c-_-h-(p||0));var x=new ce(d+n[3],h+n[0],g,v);return x.margin=n,x}function g_(a,i,n,o,c,d){var g,h=!c||!c.hv||c.hv[0],f=!c||!c.hv||c.hv[1],p=c&&c.boundingMode||"all";if((d=d||a).x=a.x,d.y=a.y,!h&&!f)return!1;if("raw"===p)g="group"===a.type?new ce(0,0,+i.width||0,+i.height||0):a.getBoundingRect();else if(g=a.getBoundingRect(),a.needLocalTransform()){var v=a.getLocalTransform();(g=g.clone()).applyTransform(v)}var _=Dr(Ze({width:g.width,height:g.height},i),n,o),y=h?_.x-g.x:0,w=f?_.y-g.y:0;return"raw"===p?(d.x=y,d.y=w):(d.x+=y,d.y+=w),d===a&&a.markRedraw(),!0}function v_(a){var i=a.layoutMode||a.constructor.layoutMode;return Ee(i)?i:i?{type:i}:null}function cs(a,i,n){var o=n&&n.ignoreSize;!ye(o)&&(o=[o,o]);var c=h(eu[0],0),d=h(eu[1],1);function h(v,_){var y={},w=0,x={},S=0;if(Sw(v,function(E){x[E]=a[E]}),Sw(v,function(E){f(i,E)&&(y[E]=x[E]=i[E]),p(y,E)&&w++,p(x,E)&&S++}),o[_])return p(i,v[1])?x[v[2]]=null:p(i,v[2])&&(x[v[1]]=null),x;if(2===S||!w)return x;if(w>=2)return y;for(var T=0;T=0;p--)f=mt(f,c[p],!0);o.defaultOption=f}return o.defaultOption},i.prototype.getReferringComponents=function(n,o){var d=n+"Id";return Kv(this.ecModel,n,{index:this.get(n+"Index",!0),id:this.get(d,!0)},o)},i.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(n){this.option.zlevel=n},i.protoInitialize=((n=i.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),i;var n}(Un);ED(pm,Un),V0(pm),function sT(a){var i={};a.registerSubTypeDefaulter=function(n,o){var c=Vs(n);i[c.main]=o},a.determineSubType=function(n,o){var c=o.type;if(!c){var d=Vs(n).main;a.hasSubTypes(n)&&i[d]&&(c=i[d](o))}return c}}(pm),function lT(a,i){function o(d,h){return d[h]||(d[h]={predecessor:[],successor:[]}),d[h]}a.topologicalTravel=function(d,h,f,p){if(d.length){var g=function n(d){var h={},f=[];return G(d,function(p){var g=o(h,p),_=function c(d,h){var f=[];return G(d,function(p){Ct(h,p)>=0&&f.push(p)}),f}(g.originalDeps=i(p),d);g.entryCount=_.length,0===g.entryCount&&f.push(p),G(_,function(y){Ct(g.predecessor,y)<0&&g.predecessor.push(y);var w=o(h,y);Ct(w.successor,y)<0&&w.successor.push(p)})}),{graph:h,noEntryList:f}}(h),v=g.graph,_=g.noEntryList,y={};for(G(d,function(A){y[A]=!0});_.length;){var w=_.pop(),x=v[w],S=!!y[w];S&&(f.call(p,w,x.originalDeps.slice()),delete y[w]),G(x.successor,S?T:D)}G(y,function(){throw new Error("")})}function D(A){v[A].entryCount--,0===v[A].entryCount&&_.push(A)}function T(A){y[A]=!0,D(A)}}}(pm,function D8(a){var i=[];return G(pm.getClassesByMainType(a),function(n){i=i.concat(n.dependencies||n.prototype.dependencies||[])}),i=Se(i,function(n){return Vs(n).main}),"dataset"!==a&&Ct(i,"dataset")<=0&&i.unshift("dataset"),i});const en=pm;var sO="";typeof navigator<"u"&&(sO=navigator.platform||"");var mm="rgba(0, 0, 0, 0.2)";const lO={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sO.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var bT=Me(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Uo="original",_a="arrayRows",$s="objectRows",ds="keyedColumns",Tr="typedArray",wT="unknown",jo="column",Yh="row",ta={Must:1,Might:2,Not:3},cO=qt();function dO(a,i,n){var o={},c=Mw(i);if(!c||!a)return o;var v,_,d=[],h=[],p=cO(i.ecModel).datasetMap,g=c.uid+"_"+n.seriesLayoutBy;G(a=a.slice(),function(S,D){var T=Ee(S)?S:a[D]={name:S};"ordinal"===T.type&&null==v&&(v=D,_=x(T)),o[T.name]=[]});var y=p.get(g)||p.set(g,{categoryWayDim:_,valueWayDim:0});function w(S,D,T){for(var A=0;Ai)return a[o];return a[n-1]}(o,h):n;if((v=v||n)&&v.length){var _=v[p];return c&&(g[c]=_),f.paletteIdx=(p+1)%v.length,_}}var qh,tc,Ew,vm="\0_ec_inner",kw=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.init=function(n,o,c,d,h,f){d=d||{},this.option=null,this._theme=new Un(d),this._locale=new Un(h),this._optionManager=f},i.prototype.setOption=function(n,o,c){var d=_O(o);this._optionManager.setOption(n,c,d),this._resetOption(null,d)},i.prototype.resetOption=function(n,o){return this._resetOption(n,_O(o))},i.prototype._resetOption=function(n,o){var c=!1,d=this._optionManager;if(!n||"recreate"===n){var h=d.mountOption("recreate"===n);this.option&&"recreate"!==n?(this.restoreData(),this._mergeOption(h,o)):Ew(this,h),c=!0}if(("timeline"===n||"media"===n)&&this.restoreData(),!n||"recreate"===n||"timeline"===n){var f=d.getTimelineOption(this);f&&(c=!0,this._mergeOption(f,o))}if(!n||"recreate"===n||"media"===n){var p=d.getMediaOption(this);p.length&&G(p,function(g){c=!0,this._mergeOption(g,o)},this)}return c},i.prototype.mergeOption=function(n){this._mergeOption(n,null)},i.prototype._mergeOption=function(n,o){var c=this.option,d=this._componentsMap,h=this._componentsCount,f=[],p=Me(),g=o&&o.replaceMergeMainTypeMap;(function T8(a){cO(a).datasetMap=Me()})(this),G(n,function(_,y){null!=_&&(en.hasClass(y)?y&&(f.push(y),p.set(y,!0)):c[y]=null==c[y]?nt(_):mt(c[y],_,!0))}),g&&g.each(function(_,y){en.hasClass(y)&&!p.get(y)&&(f.push(y),p.set(y,!0))}),en.topologicalTravel(f,en.getAllClassMainTypes(),function v(_){var y=function pO(a,i,n){var o=hO.get(i);if(!o)return n;var c=o(a);return c?n.concat(c):n}(this,_,Mn(n[_])),w=d.get(_),S=L0(w,y,w?g&&g.get(_)?"replaceMerge":"normalMerge":"replaceAll");(function Wl(a,i,n){G(a,function(o){var c=o.newOption;Ee(c)&&(o.keyInfo.mainType=i,o.keyInfo.subType=function FH(a,i,n,o){return i.type?i.type:n?n.subType:o.determineSubType(a,i)}(i,c,o.existing,n))})})(S,_,en),c[_]=null,d.set(_,null),h.set(_,0);var E,D=[],T=[],A=0;G(S,function(L,O){var B=L.existing,U=L.newOption;if(U){var W=en.getClass(_,L.keyInfo.subType,!("series"===_));if(!W)return;if("tooltip"===_){if(E)return;E=!0}if(B&&B.constructor===W)B.name=L.keyInfo.name,B.mergeOption(U,this),B.optionUpdated(U,!1);else{var K=_e({componentIndex:O},L.keyInfo);_e(B=new W(U,this,this,K),K),L.brandNew&&(B.__requireNewView=!0),B.init(U,this,this),B.optionUpdated(null,!0)}}else B&&(B.mergeOption({},this),B.optionUpdated({},!1));B?(D.push(B.option),T.push(B),A++):(D.push(void 0),T.push(void 0))},this),c[_]=D,d.set(_,T),h.set(_,A),"series"===_&&qh(this)},this),this._seriesIndices||qh(this)},i.prototype.getOption=function(){var n=nt(this.option);return G(n,function(o,c){if(en.hasClass(c)){for(var d=Mn(o),h=d.length,f=!1,p=h-1;p>=0;p--)d[p]&&!Pa(d[p])?f=!0:(d[p]=null,!f&&h--);d.length=h,n[c]=d}}),delete n[vm],n},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(n){this._payload=n},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(n,o){var c=this._componentsMap.get(n);if(c){var d=c[o||0];if(d)return d;if(null==o)for(var h=0;h=i:"max"===n?a<=i:a===i})(o[g],d,p)||(c=!1)}}),c}const V8=F8;var Ys=G,__=Ee,MT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function AT(a){var i=a&&a.itemStyle;if(i)for(var n=0,o=MT.length;n=0;D--){var T=a[D];if(f||(x=T.data.rawIndexOf(T.stackedByDimension,w)),x>=0){var A=T.data.getByRawIndex(T.stackResultDimension,x);if("all"===p||"positive"===p&&A>0||"negative"===p&&A<0||"samesign"===p&&y>=0&&A>0||"samesign"===p&&y<=0&&A<0){y=IH(y,A),S=A;break}}}return o[0]=y,o[1]=S,o})})}var hs=function a(i){this.data=i.data||(i.sourceFormat===ds?{}:[]),this.sourceFormat=i.sourceFormat||wT,this.seriesLayoutBy=i.seriesLayoutBy||jo,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var n=this.dimensionsDefine=i.dimensionsDefine;if(n)for(var o=0;oS&&(S=E)}w[0]=x,w[1]=S}},c=function(){return this._data?this._data.length/this._dimSize:0};function d(h){for(var f=0;f=0&&(S=h.interpolatedValue[D])}return null!=S?S+"":""}):void 0},a.prototype.getRawValue=function(i,n){return bm(this.getData(n),i)},a.prototype.formatTooltip=function(i,n,o){},a}();function kO(a){var i,n;return Ee(a)?a.type&&(n=a):i=a,{text:i,frag:n}}function wm(a){return new Xh(a)}var Xh=function(){function a(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return a.prototype.perform=function(i){var d,n=this._upstream,o=i&&i.skip;if(this._dirty&&n){var c=this.context;c.data=c.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(d=this._plan(this.context));var _,h=v(this._modBy),f=this._modDataCount||0,p=v(i&&i.modBy),g=i&&i.modDataCount||0;function v(A){return!(A>=1)&&(A=1),A}(h!==p||f!==g)&&(d="reset"),(this._dirty||"reset"===d)&&(this._dirty=!1,_=this._doReset(o)),this._modBy=p,this._modDataCount=g;var y=i&&i.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,x=Math.min(null!=y?this._dueIndex+y:1/0,this._dueEnd);if(!o&&(_||w1&&o>0?f:h}};return d;function h(){return i=a?null:pi},gte:function(a,i){return a>=i}},Z8=function(){function a(i,n){on(n)||gn(""),this._opFn=FO[i],this._rvalFloat=Gl(n)}return a.prototype.evaluate=function(i){return on(i)?this._opFn(i,this._rvalFloat):this._opFn(Gl(i),this._rvalFloat)},a}(),ru=function(){function a(i,n){var o="desc"===i;this._resultLT=o?1:-1,null==n&&(n=o?"min":"max"),this._incomparable="min"===n?-1/0:1/0}return a.prototype.evaluate=function(i,n){var o=on(i)?i:Gl(i),c=on(n)?n:Gl(n),d=isNaN(o),h=isNaN(c);if(d&&(o=this._incomparable),h&&(c=this._incomparable),d&&h){var f=Ae(i),p=Ae(n);f&&(o=p?i:0),p&&(c=f?n:0)}return oc?-this._resultLT:0},a}(),NO=function(){function a(i,n){this._rval=n,this._isEQ=i,this._rvalTypeof=typeof n,this._rvalFloat=Gl(n)}return a.prototype.evaluate=function(i){var n=i===this._rval;if(!n){var o=typeof i;o!==this._rvalTypeof&&("number"===o||"number"===this._rvalTypeof)&&(n=Gl(i)===this._rvalFloat)}return this._isEQ?n:!n},a}();function VO(a,i){return"eq"===a||"ne"===a?new NO("eq"===a,i):Ue(FO,a)?new Z8(a,i):null}var X8=function(){function a(){}return a.prototype.getRawData=function(){throw new Error("not supported")},a.prototype.getRawDataItem=function(i){throw new Error("not supported")},a.prototype.cloneRawData=function(){},a.prototype.getDimensionInfo=function(i){},a.prototype.cloneAllDimensionInfo=function(){},a.prototype.count=function(){},a.prototype.retrieveValue=function(i,n){},a.prototype.retrieveValueFromItem=function(i,n){},a.prototype.convertValue=function(i,n){return Wc(i,n)},a}();function zO(a){return Nw(a.sourceFormat)||gn(""),a.data}function HO(a){var i=a.sourceFormat,n=a.data;if(Nw(i)||gn(""),i===_a){for(var c=[],d=0,h=n.length;d65535?J8:eU}function tU(a){var i=a.constructor;return i===Array?a.slice():new i(a)}function WO(a,i,n,o,c){var d=GO[n||"float"];if(c){var h=a[i],f=h&&h.length;if(f!==o){for(var p=new d(o),g=0;gD[1]&&(D[1]=S)}return this._rawCount=this._count=p,{start:f,end:p}},a.prototype._initDataFromProvider=function(i,n,o){for(var c=this._provider,d=this._chunks,h=this._dimensions,f=h.length,p=this._rawExtent,g=Se(h,function(A){return A.property}),v=0;vT[1]&&(T[1]=D)}}!c.persistent&&c.clean&&c.clean(),this._rawCount=this._count=n,this._extent=[]},a.prototype.count=function(){return this._count},a.prototype.get=function(i,n){if(!(n>=0&&n=0&&n=this._rawCount||i<0)return-1;if(!this._indices)return i;var n=this._indices,o=n[i];if(null!=o&&oi))return h;d=h-1}}return-1},a.prototype.indicesOfNearest=function(i,n,o){var d=this._chunks[i],h=[];if(!d)return h;null==o&&(o=1/0);for(var f=1/0,p=-1,g=0,v=0,_=this.count();v<_;v++){var w=n-d[this.getRawIndex(v)],x=Math.abs(w);x<=o&&((x=0&&p<0)&&(f=x,p=w,g=0),w===p&&(h[g++]=v))}return h.length=g,h},a.prototype.getIndices=function(){var i,n=this._indices;if(n){var c=this._count;if((o=n.constructor)===Array){i=new o(c);for(var d=0;d=_&&A<=y||isNaN(A))&&(p[g++]=S),S++;x=!0}else if(2===d){D=w[c[0]];var E=w[c[1]],k=i[c[1]][0],L=i[c[1]][1];for(T=0;T=_&&A<=y||isNaN(A))&&(O>=k&&O<=L||isNaN(O))&&(p[g++]=S),S++}x=!0}}if(!x)if(1===d)for(T=0;T=_&&A<=y||isNaN(A))&&(p[g++]=B)}else for(T=0;Ti[W][1])&&(U=!1)}U&&(p[g++]=n.getRawIndex(T))}return gT[1]&&(T[1]=D)}}},a.prototype.lttbDownSample=function(i,n){var v,_,y,o=this.clone([i],!0),d=o._chunks[i],h=this.count(),f=0,p=Math.floor(1/n),g=this.getRawIndex(0),w=new(C_(this._rawCount))(Math.min(2*(Math.ceil(h/p)+2),h));w[f++]=g;for(var x=1;xv&&(v=_,y=k)}$>0&&$v-x&&(f.length=p=v-x);for(var S=0;S_[1]&&(_[1]=T),y[w++]=A}return d._count=w,d._indices=y,d._updateGetRawIdx(),d},a.prototype.each=function(i,n){if(this._count)for(var o=i.length,c=this._chunks,d=0,h=this.count();dp&&(p=_)}return this._extent[i]=h=[f,p],h},a.prototype.getRawDataItem=function(i){var n=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(n);for(var o=[],c=this._chunks,d=0;d=0?this._indices[i]:-1},a.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},a.internalField=function(){function i(n,o,c,d){return Wc(n[d],this._dimensions[d])}GT={arrayRows:i,objectRows:function(n,o,c,d){return Wc(n[o],this._dimensions[d])},keyedColumns:i,original:function(n,o,c,d){var h=n&&(null==n.value?n:n.value);return Wc(h instanceof Array?h[d]:h,this._dimensions[d])},typedArray:function(n,o,c,d){return n[d]}}}(),a}();const Vw=nU;var ze=function(){function a(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return a.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},a.prototype._setLocalSource=function(i,n){this._sourceList=i,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},a.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},a.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},a.prototype._createSource=function(){this._setLocalSource([],[]);var c,d,i=this._sourceHost,n=this._getUpstreamSourceManagers(),o=!!n.length;if(Kh(i)){var h=i,f=void 0,p=void 0,g=void 0;if(o){var v=n[0];v.prepareSource(),f=(g=v.getSource()).data,p=g.sourceFormat,d=[v._getVersionSign()]}else p=sa(f=h.get("data",!0))?Tr:Uo,d=[];var _=this._getSourceMetaRawOption()||{},y=g&&g.metaRawOption||{},w=gt(_.seriesLayoutBy,y.seriesLayoutBy)||null,x=gt(_.sourceHeader,y.sourceHeader),S=gt(_.dimensions,y.dimensions);c=w!==y.seriesLayoutBy||!!x!=!!y.sourceHeader||S?[y_(f,{seriesLayoutBy:w,sourceHeader:x,dimensions:S},p)]:[]}else{var T=i;if(o){var A=this._applyTransform(n);c=A.sourceList,d=A.upstreamSignList}else c=[y_(T.get("source",!0),this._getSourceMetaRawOption(),null)],d=[]}this._setLocalSource(c,d)},a.prototype._applyTransform=function(i){var n=this._sourceHost,o=n.get("transform",!0),c=n.get("fromTransformResult",!0);null!=c&&1!==i.length&&YO("");var h,f=[],p=[];return G(i,function(g){g.prepareSource();var v=g.getSource(c||0);null!=c&&!v&&YO(""),f.push(v),p.push(g._getVersionSign())}),o?h=function Q8(a,i,n){var o=Mn(a),c=o.length;c||gn("");for(var h=0,f=c;h1||n>0&&!a.noHeader;return G(a.blocks,function(c){var d=YT(c);d>=i&&(i=d+ +(o&&(!d||WT(c)&&!c.noHeader)))}),i}return 0}function aU(a,i,n,o){var c=i.noHeader,d=function na(a){return{html:iU[a],richText:rU[a]}}(YT(i)),h=[],f=i.blocks||[];be(!f||ye(f)),f=f||[];var p=a.orderMode;if(i.sortBlocks&&p){f=f.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(Ue(g,p)){var v=new ru(g[p],null);f.sort(function(x,S){return v.evaluate(x.sortParam,S.sortParam)})}else"seriesDesc"===p&&f.reverse()}G(f,function(x,S){var D=i.valueFormatter,T=$T(x)(D?_e(_e({},a),{valueFormatter:D}):a,x,S>0?d.html:0,o);null!=T&&h.push(T)});var _="richText"===a.renderMode?h.join(d.richText):fs(h.join(""),c?n:d.html);if(c)return _;var y=ww(i.header,"ordinal",a.useUTC),w=ZO(o,a.renderMode).nameStyle;return"richText"===a.renderMode?au(a,y,w)+d.richText+_:fs('
'+da(y)+"
"+_,n)}function YX(a,i,n,o){var c=a.renderMode,d=i.noName,h=i.noValue,f=!i.markerType,p=i.name,g=a.useUTC,v=i.valueFormatter||a.valueFormatter||function(k){return Se(k=ye(k)?k:[k],function(L,O){return ww(L,ye(w)?w[O]:w,g)})};if(!d||!h){var _=f?"":a.markupStyleCreator.makeTooltipMarker(i.markerType,i.markerColor||"#333",c),y=d?"":ww(p,"ordinal",g),w=i.valueType,x=h?[]:v(i.value),S=!f||!d,D=!f&&d,T=ZO(o,c),A=T.nameStyle,E=T.valueStyle;return"richText"===c?(f?"":_)+(d?"":au(a,y,A))+(h?"":function Bw(a,i,n,o,c){var d=[c];return n&&d.push({padding:[0,0,0,o?10:20],align:"right"}),a.markupStyleCreator.wrapRichTextStyle(ye(i)?i.join(" "):i,d)}(a,x,S,D,E)):fs((f?"":_)+(d?"":function S_(a,i,n){return''+da(a)+""}(y,!f,A))+(h?"":function Mr(a,i,n,o){return''+Se(a=ye(a)?a:[a],function(h){return da(h)}).join("  ")+""}(x,S,D,E)),n)}}function qT(a,i,n,o,c,d){if(a)return $T(a)({useUTC:c,renderMode:n,orderMode:o,markupStyleCreator:i,valueFormatter:a.valueFormatter},a,0,d)}function fs(a,i){return'
'+a+'
'}function au(a,i,n){return a.markupStyleCreator.wrapRichTextStyle(i,n)}function Wo(a,i){return Gh(a.getData().getItemVisual(i,"style")[a.visualDrawType])}function $e(a,i){return a.get("padding")??("richText"===i?[8,10]:10)}var ou=function(){function a(){this.richTextStyles={},this._nextStyleNameId=KR()}return a.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},a.prototype.makeTooltipMarker=function(i,n,o){var c="richText"===o?this._generateStyleName():null,d=xw({color:n,type:i,renderMode:o,markerId:c});return Ae(d)?d:(this.richTextStyles[c]=d.style,d.content)},a.prototype.wrapRichTextStyle=function(i,n){var o={};ye(n)?G(n,function(d){return _e(o,d)}):_e(o,n);var c=this._generateStyleName();return this.richTextStyles[c]=o,"{"+c+"|"+i+"}"},a}();function Qh(a){var v,_,y,w,i=a.series,n=a.dataIndex,o=a.multipleSeries,c=i.getData(),d=c.mapDimensionsAll("defaultedTooltip"),h=d.length,f=i.getRawValue(n),p=ye(f),g=Wo(i,n);if(h>1||p&&!h){var x=function Sm(a,i,n,o,c){var d=i.getData(),h=ln(a,function(_,y,w){var x=d.getDimensionInfo(w);return _||x&&!1!==x.tooltip&&null!=x.displayName},!1),f=[],p=[],g=[];function v(_,y){var w=d.getDimensionInfo(y);!w||!1===w.otherDims.tooltip||(h?g.push(Hr("nameValue",{markerType:"subItem",markerColor:c,name:w.displayName,value:_,valueType:w.type})):(f.push(_),p.push(w.type)))}return o.length?G(o,function(_){v(bm(d,n,_),_)}):G(a,v),{inlineValues:f,inlineValueTypes:p,blocks:g}}(f,i,n,d,g);v=x.inlineValues,_=x.inlineValueTypes,y=x.blocks,w=x.inlineValues[0]}else if(h){var S=c.getDimensionInfo(d[0]);w=v=bm(c,n,d[0]),_=S.type}else w=v=p?f[0]:f;var D=TD(i),T=D&&i.name||"",A=c.getName(n),E=o?T:A;return Hr("section",{header:T,noHeader:o||!D,sortParam:w,blocks:[Hr("nameValue",{markerType:"item",markerColor:g,name:E,noName:!la(E),value:v,valueType:_})].concat(y||[])})}var $o=qt();function $c(a,i){return a.getName(i)||a.getId(i)}var Yc="__universalTransitionEnabled",qc=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return de(i,a),i.prototype.init=function(n,o,c){this.seriesIndex=this.componentIndex,this.dataTask=wm({count:XO,reset:KO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,c),($o(this).sourceManager=new ze(this)).prepareSource();var h=this.getInitialData(n,c);ZT(h,this),this.dataTask.context.data=h,$o(this).dataBeforeProcessed=h,Jh(this),this._initSelectedMapFromData(h)},i.prototype.mergeDefaultAndTheme=function(n,o){var c=v_(this),d=c?$h(n):{},h=this.subType;en.hasClass(h)&&(h+="Series"),mt(n,o.getTheme().get(this.subType)),mt(n,this.getDefaultOption()),zp(n,"label",["show"]),this.fillDataTextStyle(n.data),c&&cs(n,d,c)},i.prototype.mergeOption=function(n,o){n=mt(this.option,n,!0),this.fillDataTextStyle(n.data);var c=v_(this);c&&cs(this.option,n,c);var d=$o(this).sourceManager;d.dirty(),d.prepareSource();var h=this.getInitialData(n,o);ZT(h,this),this.dataTask.dirty(),this.dataTask.context.data=h,$o(this).dataBeforeProcessed=h,Jh(this),this._initSelectedMapFromData(h)},i.prototype.fillDataTextStyle=function(n){if(n&&!sa(n))for(var o=["show"],c=0;cthis.getShallow("animationThreshold")&&(o=!1),!!o},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(n,o,c){var d=this.ecModel,h=N.prototype.getColorFromPalette.call(this,n,o,c);return h||(h=d.getColorFromPalette(n,o,c)),h},i.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(n,o){this._innerSelect(this.getData(o),n)},i.prototype.unselect=function(n,o){var c=this.option.selectedMap;if(c){var d=this.option.selectedMode,h=this.getData(o);if("series"===d||"all"===c)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var f=0;f=0&&c.push(h)}return c},i.prototype.isSelected=function(n,o){var c=this.option.selectedMap;if(!c)return!1;var d=this.getData(o);return("all"===c||c[$c(d,n)])&&!d.getItemModel(n).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this[Yc])return!0;var n=this.option.universalTransition;return!!n&&(!0===n||n&&n.enabled)},i.prototype._innerSelect=function(n,o){var c,d,h=this.option,f=h.selectedMode,p=o.length;if(f&&p)if("series"===f)h.selectedMap="all";else if("multiple"===f){Ee(h.selectedMap)||(h.selectedMap={});for(var g=h.selectedMap,v=0;v0&&this._innerSelect(n,o)}},i.registerClass=function(n){return en.registerClass(n)},i.protoInitialize=((n=i.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),i;var n}(en);function Jh(a){var i=a.name;TD(a)||(a.name=function Dm(a){var i=a.getRawData(),n=i.mapDimensionsAll("seriesName"),o=[];return G(n,function(c){var d=i.getDimensionInfo(c);d.displayName&&o.push(d.displayName)}),o.join(" ")}(a)||i)}function XO(a){return a.model.getRawData().count()}function KO(a){var i=a.model;return i.setData(i.getRawData().cloneShallow()),QO}function QO(a,i){i.outputData&&a.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function ZT(a,i){G(wn(a.CHANGABLE_METHODS,a.DOWNSAMPLE_METHODS),function(n){a.wrapMethod(n,ct(JO,i))})}function JO(a,i){var n=zw(a);return n&&n.setOutputEnd((i||this).count()),i}function zw(a){var i=(a.ecModel||{}).scheduler,n=i&&i.getPipeline(a.uid);if(n){var o=n.currentTask;if(o){var c=o.agentStubMap;c&&(o=c.get(a.uid))}return o}}Di(qc,BT),Di(qc,N),ED(qc,en);const Xn=qc;var Hw=function(){function a(){this.group=new rt,this.uid=cm("viewComponent")}return a.prototype.init=function(i,n){},a.prototype.render=function(i,n,o,c){},a.prototype.dispose=function(i,n){},a.prototype.updateView=function(i,n,o,c){},a.prototype.updateLayout=function(i,n,o,c){},a.prototype.updateVisual=function(i,n,o,c){},a.prototype.toggleBlurSeries=function(i,n,o){},a.prototype.eachRendered=function(i){var n=this.group;n&&n.traverse(i)},a}();Up(Hw),V0(Hw);const li=Hw;function Zc(){var a=qt();return function(i){var n=a(i),o=i.pipelineContext,c=!!n.large,d=!!n.progressiveRender,h=n.large=!(!o||!o.large),f=n.progressiveRender=!(!o||!o.progressiveRender);return(c!==h||d!==f)&&"reset"}}var Yo=Hs.CMD,oU=[[],[],[]],eL=Math.sqrt,XT=Math.atan2;function su(a,i){if(i){var c,d,h,f,p,g,n=a.data,o=a.len(),v=Yo.M,_=Yo.C,y=Yo.L,w=Yo.R,x=Yo.A,S=Yo.Q;for(h=0,f=0;h1&&(h*=D_(x),f*=D_(x));var S=(c===d?-1:1)*D_((h*h*(f*f)-h*h*(w*w)-f*f*(y*y))/(h*h*(w*w)+f*f*(y*y)))||0,D=S*h*w/f,T=S*-f*y/h,A=(a+n)/2+Tm(_)*D-Uw(_)*T,E=(i+o)/2+Uw(_)*D+Tm(_)*T,k=tL([1,0],[(y-D)/h,(w-T)/f]),L=[(y-D)/h,(w-T)/f],O=[(-1*y-D)/h,(-1*w-T)/f],B=tL(L,O);if(KT(L,O)<=-1&&(B=jw),KT(L,O)>=1&&(B=0),B<0){var U=Math.round(B/jw*1e6)/1e6;B=2*jw+U%2*jw}v.addData(g,A,E,h,f,k,B,_,d)}var lU=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ur=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,iL=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return cn(i,a),i.prototype.applyTransform=function(n){},i}(It);function rL(a){return null!=a.setData}function JT(a,i){var n=function nL(a){var i=new Hs;if(!a)return i;var h,n=0,o=0,c=n,d=o,f=Hs.CMD,p=a.match(lU);if(!p)return i;for(var g=0;gee*ee+te*te&&(U=W,j=$),{cx:U,cy:j,x0:-v,y0:-_,x1:U*(c/L-1),y1:j*(c/L-1)}}var fU=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Ww=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new fU},i.prototype.buildPath=function(n,o){!function hU(a,i){var n,o=to(i.r,0),c=to(i.r0||0,0),d=o>0;if(d||c>0){if(d||(o=c,c=0),c>o){var f=o;o=c,c=f}var p=i.startAngle,g=i.endAngle;if(!isNaN(p)&&!isNaN(g)){var v=i.cx,_=i.cy,y=!!i.clockwise,w=cu(g-p),x=w>T_&&w%T_;if(x>ms&&(w=x),o>ms)if(w>T_-ms)a.moveTo(v+o*et(p),_+o*cr(p)),a.arc(v,_,o,p,g,!y),c>ms&&(a.moveTo(v+c*et(g),_+c*cr(g)),a.arc(v,_,c,g,p,y));else{var S=void 0,D=void 0,T=void 0,A=void 0,E=void 0,k=void 0,L=void 0,O=void 0,B=void 0,U=void 0,j=void 0,W=void 0,$=void 0,X=void 0,K=void 0,ee=void 0,te=o*et(p),ie=o*cr(p),me=c*et(g),ue=c*cr(g),we=w>ms;if(we){var Pe=i.cornerRadius;Pe&&(n=function uU(a){var i;if(ye(a)){var n=a.length;if(!n)return a;i=1===n?[a[0],a[0],0,0]:2===n?[a[0],a[0],a[1],a[1]]:3===n?a.concat(a[2]):a}else i=[a,a,a,a];return i}(Pe),S=n[0],D=n[1],T=n[2],A=n[3]);var Le=cu(o-c)/2;if(E=Ar(Le,T),k=Ar(Le,A),L=Ar(Le,S),O=Ar(Le,D),j=B=to(E,k),W=U=to(L,O),(B>ms||U>ms)&&($=o*et(g),X=o*cr(g),K=c*et(p),ee=c*cr(p),wms){var Et=Ar(T,j),wt=Ar(A,j),qe=Gw(K,ee,te,ie,o,Et,y),xt=Gw($,X,me,ue,o,wt,y);a.moveTo(v+qe.cx+qe.x0,_+qe.cy+qe.y0),j0&&a.arc(v+qe.cx,_+qe.cy,Et,Fa(qe.y0,qe.x0),Fa(qe.y1,qe.x1),!y),a.arc(v,_,o,Fa(qe.cy+qe.y1,qe.cx+qe.x1),Fa(xt.cy+xt.y1,xt.cx+xt.x1),!y),wt>0&&a.arc(v+xt.cx,_+xt.cy,wt,Fa(xt.y1,xt.x1),Fa(xt.y0,xt.x0),!y))}else a.moveTo(v+te,_+ie),a.arc(v,_,o,p,g,!y);else a.moveTo(v+te,_+ie);c>ms&&we?W>ms?(Et=Ar(S,W),qe=Gw(me,ue,$,X,c,-(wt=Ar(D,W)),y),xt=Gw(te,ie,K,ee,c,-Et,y),a.lineTo(v+qe.cx+qe.x0,_+qe.cy+qe.y0),W0&&a.arc(v+qe.cx,_+qe.cy,wt,Fa(qe.y0,qe.x0),Fa(qe.y1,qe.x1),!y),a.arc(v,_,c,Fa(qe.cy+qe.y1,qe.cx+qe.x1),Fa(xt.cy+xt.y1,xt.cx+xt.x1),y),Et>0&&a.arc(v+xt.cx,_+xt.cy,Et,Fa(xt.y1,xt.x1),Fa(xt.y0,xt.x0),!y))):(a.lineTo(v+me,_+ue),a.arc(v,_,c,g,p,y)):a.lineTo(v+me,_+ue)}else a.moveTo(v,_);a.closePath()}}}(n,o)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(It);Ww.prototype.type="sector";const jr=Ww;var pU=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},nM=function(a){function i(n){return a.call(this,n)||this}return cn(i,a),i.prototype.getDefaultShape=function(){return new pU},i.prototype.buildPath=function(n,o){var c=o.cx,d=o.cy,h=2*Math.PI;n.moveTo(c+o.r,d),n.arc(c,d,o.r,0,h,!1),n.moveTo(c+o.r0,d),n.arc(c,d,o.r0,0,h,!0)},i}(It);nM.prototype.type="ring";const M_=nM;function iM(a,i,n){var o=i.smooth,c=i.points;if(c&&c.length>=2){if(o){var d=function mU(a,i,n,o){var p,g,v,_,c=[],d=[],h=[],f=[];if(o){v=[1/0,1/0],_=[-1/0,-1/0];for(var y=0,w=a.length;yZs[1]){if(f=!1,d)return f;var v=Math.abs(Zs[0]-Xc[1]),_=Math.abs(Xc[0]-Zs[1]);Math.min(v,_)>c.len()&&St.scale(c,g,v<_?-v*h:_*h)}else o&&(v=Math.abs(Zs[0]-Xc[1]),_=Math.abs(Xc[0]-Zs[1]),Math.min(v,_)Math.abs(d[1])?d[0]>0?"right":"left":d[1]>0?"bottom":"top"}function yL(a){return!a.isGroup}function Pm(a,i,n){if(a&&i){var d=function o(h){var f={};return h.traverse(function(p){yL(p)&&p.anid&&(f[p.anid]=p)}),f}(a);i.traverse(function(h){if(yL(h)&&h.anid){var f=d[h.anid];if(f){var p=c(h);h.attr(c(f)),zt(h,p,n,st(h).dataIndex)}}})}function c(h){var f={x:h.x,y:h.y,rotation:h.rotation};return function TU(a){return null!=a.shape}(h)&&(f.shape=_e({},h.shape)),f}}function sM(a,i){return Se(a,function(n){var o=n[0];o=E_(o,i.x),o=Yw(o,i.x+i.width);var c=n[1];return c=E_(c,i.y),[o,c=Yw(c,i.y+i.height)]})}function bL(a,i){var n=E_(a.x,i.x),o=Yw(a.x+a.width,i.x+i.width),c=E_(a.y,i.y),d=Yw(a.y+a.height,i.y+i.height);if(o>=n&&d>=c)return{x:n,y:c,width:o-n,height:d-c}}function Ks(a,i,n){var o=_e({rectHover:!0},i),c=o.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},a)return 0===a.indexOf("image://")?(c.image=a.slice(8),Ze(c,n),new Jr(o)):k_(a.replace("path://",""),o,n,"center")}function L_(a,i,n,o,c){for(var d=0,h=c[c.length-1];d=-1e-6}(y))return!1;var w=a-c,x=i-d,S=lM(w,x,p,g)/y;if(S<0||S>1)return!1;var D=lM(w,x,v,_)/y;return!(D<0||D>1)}function lM(a,i,n,o){return a*o-n*i}function nf(a){var i=a.itemTooltipOption,n=a.componentModel,o=a.itemName,c=Ae(i)?{formatter:i}:i,d=n.mainType,h=n.componentIndex,f={componentType:d,name:o,$vars:["name"]};f[d+"Index"]=h;var p=a.formatterParamsExtra;p&&G(Wt(p),function(v){Ue(f,v)||(f[v]=p[v],f.$vars.push(v))});var g=st(a.el);g.componentMainType=d,g.componentIndex=h,g.tooltipConfig={name:o,option:Ze({content:o,formatterParams:f},c)}}function dM(a,i){var n;a.isGroup&&(n=i(a)),n||a.traverse(i)}function Kc(a,i){if(a)if(ye(a))for(var n=0;n=0?_():h=setTimeout(_,-f),c=o};return y.clear=function(){h&&(clearTimeout(h),h=null)},y.debounceNextCall=function(w){v=w},y}function rf(a,i,n,o){var c=a[i];if(c){var d=c[F_]||c;if(c[Jw]!==n||c[uM]!==o){if(null==n||!o)return a[i]=d;(c=a[i]=ex(d,n,"debounce"===o))[F_]=d,c[uM]=o,c[Jw]=n}return c}}function af(a,i){var n=a[i];n&&n[F_]&&(n.clear&&n.clear(),a[i]=n[F_])}var hM=qt(),fM={itemStyle:Fc(p8,!0),lineStyle:Fc(X2,!0)},EU={lineStyle:"stroke",itemStyle:"fill"};function xL(a,i){return a.visualStyleMapper||fM[i]||(console.warn("Unknown style type '"+i+"'."),fM.itemStyle)}function CL(a,i){return a.visualDrawType||EU[i]||(console.warn("Unknown style type '"+i+"'."),"fill")}var IU={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){var n=a.getData(),o=a.visualStyleAccessPath||"itemStyle",c=a.getModel(o),h=xL(a,o)(c),f=c.getShallow("decal");f&&(n.setVisual("decal",f),f.dirty=!0);var p=CL(a,o),g=h[p],v=Xe(g)?g:null;if(!h[p]||v||"auto"===h.fill||"auto"===h.stroke){var y=a.getColorFromPalette(a.name,null,i.getSeriesCount());h[p]||(h[p]=y,n.setVisual("colorFromPalette",!0)),h.fill="auto"===h.fill||Xe(h.fill)?y:h.fill,h.stroke="auto"===h.stroke||Xe(h.stroke)?y:h.stroke}if(n.setVisual("style",h),n.setVisual("drawType",p),!i.isSeriesFiltered(a)&&v)return n.setVisual("colorFromPalette",!1),{dataEach:function(w,x){var S=a.getDataParams(x),D=_e({},h);D[p]=v(S),w.setItemVisual(x,"style",D)}}}},re=new Un,SL={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){if(!a.ignoreStyleOnData&&!i.isSeriesFiltered(a)){var n=a.getData(),o=a.visualStyleAccessPath||"itemStyle",c=xL(a,o),d=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(h,f){var p=h.getRawDataItem(f);if(p&&p[o]){re.option=p[o];var g=c(re);_e(h.ensureUniqueItemVisual(f,"style"),g),re.option.decal&&(h.setItemVisual(f,"decal",re.option.decal),re.option.decal.dirty=!0),d in g&&h.setItemVisual(f,"colorFromPalette",!1)}}:null}}}},DL={performRawSeries:!0,overallReset:function(a){var i=Me();a.eachSeries(function(n){var o=n.getColorBy();if(!n.isColorBySeries()){var c=n.type+"-"+o,d=i.get(c);d||i.set(c,d={}),hM(n).scope=d}}),a.eachSeries(function(n){if(!n.isColorBySeries()&&!a.isSeriesFiltered(n)){var o=n.getRawData(),c={},d=n.getData(),h=hM(n).scope,p=CL(n,n.visualStyleAccessPath||"itemStyle");d.each(function(g){var v=d.getRawIndex(g);c[v]=g}),o.each(function(g){var v=c[g];if(d.getItemVisual(v,"colorFromPalette")){var y=d.ensureUniqueItemVisual(v,"style"),w=o.getName(g)||g+"",x=o.count();y[p]=n.getColorFromPalette(w,h,x)}})}})}},tx=Math.PI,an=function(){function a(i,n,o,c){this._stageTaskMap=Me(),this.ecInstance=i,this.api=n,o=this._dataProcessorHandlers=o.slice(),c=this._visualHandlers=c.slice(),this._allHandlers=o.concat(c)}return a.prototype.restoreData=function(i,n){i.restoreData(n),this._stageTaskMap.each(function(o){var c=o.overallTask;c&&c.dirty()})},a.prototype.getPerformArgs=function(i,n){if(i.__pipeline){var o=this._pipelineMap.get(i.__pipeline.id),c=o.context,h=!n&&o.progressiveEnabled&&(!c||c.progressiveRender)&&i.__idxInPipeline>o.blockIndex?o.step:null,f=c&&c.modDataCount;return{step:h,modBy:null!=f?Math.ceil(f/h):null,modDataCount:f}}},a.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},a.prototype.updateStreamModes=function(i,n){var o=this._pipelineMap.get(i.uid),d=i.getData().count(),h=o.progressiveEnabled&&n.incrementalPrepareRender&&d>=o.threshold,f=i.get("large")&&d>=i.get("largeThreshold"),p="mod"===i.get("progressiveChunkMode")?d:null;i.pipelineContext=o.context={progressiveRender:h,modDataCount:p,large:f}},a.prototype.restorePipelines=function(i){var n=this,o=n._pipelineMap=Me();i.eachSeries(function(c){var d=c.getProgressive(),h=c.uid;o.set(h,{id:h,head:null,tail:null,threshold:c.getProgressiveThreshold(),progressiveEnabled:d&&!(c.preventIncremental&&c.preventIncremental()),blockIndex:-1,step:Math.round(d||700),count:0}),n._pipe(c,c.dataTask)})},a.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,n=this.api.getModel(),o=this.api;G(this._allHandlers,function(c){var d=i.get(c.uid)||i.set(c.uid,{});be(!(c.reset&&c.overallReset),""),c.reset&&this._createSeriesStageTask(c,d,n,o),c.overallReset&&this._createOverallStageTask(c,d,n,o)},this)},a.prototype.prepareView=function(i,n,o,c){var d=i.renderTask,h=d.context;h.model=n,h.ecModel=o,h.api=c,d.__block=!i.incrementalPrepareRender,this._pipe(n,d)},a.prototype.performDataProcessorTasks=function(i,n){this._performStageTasks(this._dataProcessorHandlers,i,n,{block:!0})},a.prototype.performVisualTasks=function(i,n,o){this._performStageTasks(this._visualHandlers,i,n,o)},a.prototype._performStageTasks=function(i,n,o,c){c=c||{};var d=!1,h=this;function f(p,g){return p.setDirty&&(!p.dirtyMap||p.dirtyMap.get(g.__pipeline.id))}G(i,function(p,g){if(!c.visualType||c.visualType===p.visualType){var v=h._stageTaskMap.get(p.uid),_=v.seriesTaskMap,y=v.overallTask;if(y){var w,x=y.agentStubMap;x.each(function(D){f(c,D)&&(D.dirty(),w=!0)}),w&&y.dirty(),h.updatePayload(y,o);var S=h.getPerformArgs(y,c.block);x.each(function(D){D.perform(S)}),y.perform(S)&&(d=!0)}else _&&_.each(function(D,T){f(c,D)&&D.dirty();var A=h.getPerformArgs(D,c.block);A.skip=!p.performRawSeries&&n.isSeriesFiltered(D.context.model),h.updatePayload(D,o),D.perform(A)&&(d=!0)})}}),this.unfinished=d||this.unfinished},a.prototype.performSeriesTasks=function(i){var n;i.eachSeries(function(o){n=o.dataTask.perform()||n}),this.unfinished=n||this.unfinished},a.prototype.plan=function(){this._pipelineMap.each(function(i){var n=i.tail;do{if(n.__block){i.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},a.prototype.updatePayload=function(i,n){"remain"!==n&&(i.context.payload=n)},a.prototype._createSeriesStageTask=function(i,n,o,c){var d=this,h=n.seriesTaskMap,f=n.seriesTaskMap=Me(),p=i.seriesType,g=i.getTargetSeries;function v(_){var y=_.uid,w=f.set(y,h&&h.get(y)||wm({plan:lf,reset:LU,count:FU}));w.context={model:_,ecModel:o,api:c,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:d},d._pipe(_,w)}i.createOnAllSeries?o.eachRawSeries(v):p?o.eachRawSeriesByType(p,v):g&&g(o,c).each(v)},a.prototype._createOverallStageTask=function(i,n,o,c){var d=this,h=n.overallTask=n.overallTask||wm({reset:PU});h.context={ecModel:o,api:c,overallReset:i.overallReset,scheduler:d};var f=h.agentStubMap,p=h.agentStubMap=Me(),g=i.seriesType,v=i.getTargetSeries,_=!0,y=!1;function x(S){var D=S.uid,T=p.set(D,f&&f.get(D)||(y=!0,wm({reset:RU,onDirty:OU})));T.context={model:S,overallProgress:_},T.agent=h,T.__block=_,d._pipe(S,T)}be(!i.createOnAllSeries,""),g?o.eachRawSeriesByType(g,x):v?v(o,c).each(x):(_=!1,G(o.getSeries(),x)),y&&h.dirty()},a.prototype._pipe=function(i,n){var c=this._pipelineMap.get(i.uid);!c.head&&(c.head=n),c.tail&&c.tail.pipe(n),c.tail=n,n.__idxInPipeline=c.count++,n.__pipeline=c},a.wrapStageHandler=function(i,n){return Xe(i)&&(i={overallReset:i,seriesType:NU(i)}),i.uid=cm("stageHandler"),n&&(i.visualType=n),i},a}();function PU(a){a.overallReset(a.ecModel,a.api,a.payload)}function RU(a){return a.overallProgress&&sf}function sf(){this.agent.dirty(),this.getDownstream().dirty()}function OU(){this.agent&&this.agent.dirty()}function lf(a){return a.plan?a.plan(a.model,a.ecModel,a.api,a.payload):null}function LU(a){a.useClearVisual&&a.data.clearAllVisual();var i=a.resetDefines=Mn(a.reset(a.model,a.ecModel,a.api,a.payload));return i.length>1?Se(i,function(n,o){return nx(o)}):cf}var cf=nx(0);function nx(a){return function(i,n){var o=n.data,c=n.resetDefines[a];if(c&&c.dataEach)for(var d=i.start;d0&&w===g.length-y.length){var x=g.slice(0,w);"data"!==x&&(n.mainType=x,n[y.toLowerCase()]=p,v=!0)}}f.hasOwnProperty(g)&&(o[g]=p,v=!0),v||(c[g]=p)})}return{cptQuery:n,dataQuery:o,otherQuery:c}},a.prototype.filter=function(i,n){var o=this.eventInfo;if(!o)return!0;var c=o.targetEl,d=o.packedEvent,h=o.model,f=o.view;if(!h||!f)return!0;var p=n.cptQuery,g=n.dataQuery;return v(p,h,"mainType")&&v(p,h,"subType")&&v(p,h,"index","componentIndex")&&v(p,h,"name")&&v(p,h,"id")&&v(g,d,"name")&&v(g,d,"dataIndex")&&v(g,d,"dataType")&&(!f.filterForExposedEvent||f.filterForExposedEvent(i,n.otherQuery,c,d));function v(_,y,w,x){return null==_[w]||y[x||w]===_[w]}},a.prototype.afterTrigger=function(){this.eventInfo=null},a}(),V_=["symbol","symbolSize","symbolRotate","symbolOffset"],gM=V_.concat(["symbolKeepAspect"]),rx={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,i){var n=a.getData();if(a.legendIcon&&n.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var o={},c={},d=!1,h=0;h=0&&mf(p)?p:.5,a.createRadialGradient(h,f,0,h,f,p)}(a,i,n):function zm(a,i,n){var o=null==i.x?0:i.x,c=null==i.x2?1:i.x2,d=null==i.y?0:i.y,h=null==i.y2?0:i.y2;return i.global||(o=o*n.width+n.x,c=c*n.width+n.x,d=d*n.height+n.y,h=h*n.height+n.y),o=mf(o)?o:0,c=mf(c)?c:1,d=mf(d)?d:0,h=mf(h)?h:0,a.createLinearGradient(o,d,c,h)}(a,i,n),c=i.colorStops,d=0;d0&&function LL(a,i){return a&&"solid"!==a&&i>0?"dashed"===a?[4*i,2*i]:"dotted"===a?[i]:on(a)?[a]:ye(a)?a:null:null}(i.lineDash,i.lineWidth),o=i.lineDashOffset;if(n){var c=i.strokeNoScale&&a.getLineScale?a.getLineScale():1;c&&1!==c&&(n=Se(n,function(d){return d/c}),o/=c)}return[n,o]}var KX=new Hs(!0);function sx(a){var i=a.stroke;return!(null==i||"none"===i||!(a.lineWidth>0))}function CM(a){return"string"==typeof a&&"none"!==a}function Hm(a){var i=a.fill;return null!=i&&"none"!==i}function FL(a,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var n=a.globalAlpha;a.globalAlpha=i.fillOpacity*i.opacity,a.fill(),a.globalAlpha=n}else a.fill()}function NL(a,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var n=a.globalAlpha;a.globalAlpha=i.strokeOpacity*i.opacity,a.stroke(),a.globalAlpha=n}else a.stroke()}function SM(a,i,n){var o=jp(i.image,i.__image,n);if(Gp(o)){var c=a.createPattern(o,i.repeat||"repeat");if("function"==typeof DOMMatrix&&c&&c.setTransform){var d=new DOMMatrix;d.translateSelf(i.x||0,i.y||0),d.rotateSelf(0,0,(i.rotation||0)*yv),d.scaleSelf(i.scaleX||1,i.scaleY||1),c.setTransform(d)}return c}}var VL=["shadowBlur","shadowOffsetX","shadowOffsetY"],BL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zL(a,i,n,o,c){var d=!1;if(!o&&i===(n=n||{}))return!1;if(o||i.opacity!==n.opacity){ro(a,c),d=!0;var h=Math.max(Math.min(i.opacity,1),0);a.globalAlpha=isNaN(h)?Ih.opacity:h}(o||i.blend!==n.blend)&&(d||(ro(a,c),d=!0),a.globalCompositeOperation=i.blend||Ih.blend);for(var f=0;f0&&n.unfinished);n.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.isSSR=function(){return this._ssr},i.prototype.setOption=function(n,o,c){if(!this[Ha]){if(this._disposed)return;var d,h,f;if(Ee(o)&&(c=o.lazyUpdate,d=o.silent,h=o.replaceMerge,f=o.transition,o=o.notMerge),this[Ha]=!0,!this._model||o){var p=new V8(this._api),g=this._theme,v=this._model=new yO;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,g,this._locale,p)}this._model.setOption(n,{replaceMerge:h},rF);var _={seriesTransition:f,optionChanged:!0};if(c)this[Wr]={silent:d,updateParams:_},this[Ha]=!1,this.getZr().wakeUp();else{try{Gm(this),vs.update.call(this,null,_)}catch(y){throw this[Wr]=null,this[Ha]=!1,y}this._ssr||this._zr.flush(),this[Wr]=null,this[Ha]=!1,gu.call(this,d),Wm.call(this,d)}}},i.prototype.setTheme=function(){},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tn.hasGlobalWindow&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},i.prototype.renderToCanvas=function(n){return this._zr.painter.getRenderedCanvas({backgroundColor:(n=n||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},i.prototype.renderToSVGString=function(n){return this._zr.painter.renderToString({useViewBox:(n=n||{}).useViewBox})},i.prototype.getSvgDataURL=function(){if(tn.svgSupported){var n=this._zr;return G(n.storage.getDisplayList(),function(c){c.stopAnimation(null,!0)}),n.painter.toDataURL()}},i.prototype.getDataURL=function(n){if(!this._disposed){var c=this._model,d=[],h=this;G((n=n||{}).excludeComponents,function(p){c.eachComponent({mainType:p},function(g){var v=h._componentsMap[g.__viewId];v.group.ignore||(d.push(v),v.group.ignore=!0)})});var f="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return G(d,function(p){p.group.ignore=!1}),f}},i.prototype.getConnectedDataURL=function(n){if(!this._disposed){var o="svg"===n.type,c=this.group,d=Math.min,h=Math.max,f=1/0;if(px[c]){var p=f,g=f,v=-f,_=-f,y=[],w=n&&n.pixelRatio||this.getDevicePixelRatio();G(oc,function(E,k){if(E.group===c){var L=o?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(nt(n)),O=E.getDom().getBoundingClientRect();p=d(O.left,p),g=d(O.top,g),v=h(O.right,v),_=h(O.bottom,_),y.push({dom:L,left:O.left,top:O.top})}});var x=(v*=w)-(p*=w),S=(_*=w)-(g*=w),D=bt.createCanvas(),T=k0(D,{renderer:o?"svg":"canvas"});if(T.resize({width:x,height:S}),o){var A="";return G(y,function(E){A+=''+E.dom+""}),T.painter.getSvgRoot().innerHTML=A,n.connectedBackgroundColor&&T.painter.setBackgroundColor(n.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return n.connectedBackgroundColor&&T.add(new _t({shape:{x:0,y:0,width:x,height:S},style:{fill:n.connectedBackgroundColor}})),G(y,function(E){var k=new Jr({style:{x:E.left*w-p,y:E.top*w-g,image:E.dom}});T.add(k)}),T.refreshImmediately(),D.toDataURL("image/"+(n&&n.type||"png"))}return this.getDataURL(n)}},i.prototype.convertToPixel=function(n,o){return LM(this,"convertToPixel",n,o)},i.prototype.convertFromPixel=function(n,o){return LM(this,"convertFromPixel",n,o)},i.prototype.containPixel=function(n,o){var d;if(!this._disposed)return G(Zv(this._model,n),function(f,p){p.indexOf("Models")>=0&&G(f,function(g){var v=g.coordinateSystem;if(v&&v.containPoint)d=d||!!v.containPoint(o);else if("seriesModels"===p){var _=this._chartsMap[g.__viewId];_&&_.containPoint&&(d=d||_.containPoint(o,g))}},this)},this),!!d},i.prototype.getVisual=function(n,o){var d=Zv(this._model,n,{defaultMainType:"series"}),f=d.seriesModel.getData(),p=d.hasOwnProperty("dataIndexInside")?d.dataIndexInside:d.hasOwnProperty("dataIndex")?f.indexOfRawIndex(d.dataIndex):null;return null!=p?vM(f,p,o):Va(f,o)},i.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},i.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},i.prototype._initEvents=function(){var n=this;G(QU,function(o){var c=function(d){var p,h=n.getModel(),f=d.target;if("globalout"===o?p={}:f&&fu(f,function(x){var S=st(x);if(S&&null!=S.dataIndex){var D=S.dataModel||h.getSeriesByIndex(S.seriesIndex);return p=D&&D.getDataParams(S.dataIndex,S.dataType,f)||{},!0}if(S.eventData)return p=_e({},S.eventData),!0},!0),p){var v=p.componentType,_=p.componentIndex;("markLine"===v||"markPoint"===v||"markArea"===v)&&(v="series",_=p.seriesIndex);var y=v&&null!=_&&h.getComponent(v,_),w=y&&n["series"===y.mainType?"_chartsMap":"_componentsMap"][y.__viewId];p.event=d,p.type=o,n._$eventProcessor.eventInfo={targetEl:f,packedEvent:p,model:y,view:w},n.trigger(o,p)}};c.zrEventfulCallAtLast=!0,n._zr.on(o,c,n)}),G(W_,function(o,c){n._messageCenter.on(c,function(d){this.trigger(c,d)},n)}),G(["selectchanged"],function(o){n._messageCenter.on(o,function(c){this.trigger(o,c)},n)}),function IL(a,i,n){a.on("selectchanged",function(o){var c=n.getModel();o.isFromClick?(hu("map","selectchanged",i,c,o),hu("pie","selectchanged",i,c,o)):"select"===o.fromAction?(hu("map","selected",i,c,o),hu("pie","selected",i,c,o)):"unselect"===o.fromAction&&(hu("map","unselected",i,c,o),hu("pie","unselected",i,c,o))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&NH(this.getDom(),yf,"");var o=this,c=o._api,d=o._model;G(o._componentsViews,function(h){h.dispose(d,c)}),G(o._chartsViews,function(h){h.dispose(d,c)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete oc[o.id]}},i.prototype.resize=function(n){if(!this[Ha]){if(this._disposed)return;this._zr.resize(n);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var c=o.resetOption("media"),d=n&&n.silent;this[Wr]&&(null==d&&(d=this[Wr].silent),c=!0,this[Wr]=null),this[Ha]=!0;try{c&&Gm(this),vs.update.call(this,{type:"resize",animation:_e({duration:0},n&&n.animation)})}catch(h){throw this[Ha]=!1,h}this[Ha]=!1,gu.call(this,d),Wm.call(this,d)}}},i.prototype.showLoading=function(n,o){if(!this._disposed&&(Ee(n)&&(o=n,n=""),n=n||"default",this.hideLoading(),fx[n])){var c=fx[n](this._api,o),d=this._zr;this._loadingFX=c,d.add(c)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(n){var o=_e({},n);return o.type=W_[n.type],o},i.prototype.dispatchAction=function(n,o){if(!this._disposed&&(Ee(o)||(o={silent:!!o}),hx[n.type]&&this._model)){if(this[Ha])return void this._pendingActions.push(n);var c=o.silent;NM.call(this,n,c);var d=o.flush;d?this._zr.flush():!1!==d&&tn.browser.weChat&&this._throttledZrFlush(),gu.call(this,c),Wm.call(this,c)}},i.prototype.updateLabelLayout=function(){Js.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(n){if(!this._disposed){var o=n.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function n(_){_.clearColorPalette(),_.eachSeries(function(y){y.clearColorPalette()})}function c(_){for(var y=[],w=_.currentStates,x=0;x0?{duration:S,delay:w.get("delay"),easing:w.get("easing")}:null;y.eachRendered(function(T){if(T.states&&T.states.emphasis){if(Hh(T))return;if(T instanceof It&&function c8(a){var i=L2(a);i.normalFill=a.style.fill,i.normalStroke=a.style.stroke;var n=a.states.select||{};i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null}(T),T.__dirty){var A=T.prevStates;A&&T.useStates(A)}if(x){T.stateTransition=D;var E=T.getTextContent(),k=T.getTextGuideLine();E&&(E.stateTransition=D),k&&(k.stateTransition=D)}T.__dirty&&c(T)}})}Gm=function(_){var y=_._scheduler;y.restorePipelines(_._model),y.prepareStageTasks(),OM(_,!0),OM(_,!1),y.plan()},OM=function(_,y){for(var w=_._model,x=_._scheduler,S=y?_._componentsViews:_._chartsViews,D=y?_._componentsMap:_._chartsMap,T=_._zr,A=_._api,E=0;Ey.get("hoverLayerThreshold")&&!tn.node&&!tn.worker&&y.eachSeries(function(D){if(!D.preventUsingHoverLayer){var T=_._chartsMap[D.__viewId];T.__alive&&T.eachRendered(function(A){A.states.emphasis&&(A.states.emphasis.hoverLayer=!0)})}})}(_,y),Js.trigger("series:afterupdate",y,w,S)},_s=function(_){_[EM]=!0,_.getZr().wakeUp()},HM=function(_){_[EM]&&(_.getZr().storage.traverse(function(y){Hh(y)||c(y)}),_[EM]=!1)},tF=function(_){return new(function(y){function w(){return null!==y&&y.apply(this,arguments)||this}return de(w,y),w.prototype.getCoordinateSystems=function(){return _._coordSysMgr.getCoordinateSystems()},w.prototype.getComponentByElement=function(x){for(;x;){var S=x.__ecComponentInfo;if(null!=S)return _._model.getComponent(S.mainType,S.index);x=x.parent}},w.prototype.enterEmphasis=function(x,S){Xl(x,S),_s(_)},w.prototype.leaveEmphasis=function(x,S){Kl(x,S),_s(_)},w.prototype.enterBlur=function(x){a_(x),_s(_)},w.prototype.leaveBlur=function(x){o_(x),_s(_)},w.prototype.enterSelect=function(x){Vh(x),_s(_)},w.prototype.leaveSelect=function(x){z2(x),_s(_)},w.prototype.getModel=function(){return _.getModel()},w.prototype.getViewOfComponentModel=function(x){return _.getViewOfComponentModel(x)},w.prototype.getViewOfSeriesModel=function(x){return _.getViewOfSeriesModel(x)},w}(DT))(_)},nF=function(_){function y(w,x){for(var S=0;S=0)){hF.push(n);var d=dr.wrapStageHandler(n,c);d.__prio=i,d.__raw=n,a.push(d)}}function vx(a,i){fx[a]=i}function aj(a){OS({createCanvas:a})}function fF(a,i,n){var o=ao("registerMap");o&&o(a,i,n)}function oj(a){var i=ao("getMap");return i&&i(a)}var _x=function jT(a){var i=(a=nt(a)).type;i||gn("");var o=i.split(":");2!==o.length&&gn("");var c=!1;"echarts"===o[0]&&(i=o[1],c=!0),a.__isBuiltIn=c,UO.set(i,a)};sc(2e3,IU),sc(4500,SL),sc(4500,DL),sc(2e3,rx),sc(4500,hf),sc(7e3,function YU(a,i){a.eachRawSeries(function(n){if(!a.isSeriesFiltered(n)){var o=n.getData();o.hasItemVisual()&&o.each(function(h){var f=o.getItemVisual(h,"decal");f&&(o.ensureUniqueItemVisual(h,"style").decal=Qs(f,i))});var c=o.getVisual("decal");c&&(o.getVisual("style").decal=Qs(c,i))}})}),WM(PT),bf(900,function Lw(a){var i=Me();a.eachSeries(function(n){var o=n.get("stack");if(o){var c=i.get(o)||i.set(o,[]),d=n.getData(),h={stackResultDimension:d.getCalculationInfo("stackResultDimension"),stackedOverDimension:d.getCalculationInfo("stackedOverDimension"),stackedDimension:d.getCalculationInfo("stackedDimension"),stackedByDimension:d.getCalculationInfo("stackedByDimension"),isStackedByIndex:d.getCalculationInfo("isStackedByIndex"),data:d,seriesModel:n};if(!h.stackedDimension||!h.isStackedByIndex&&!h.stackedByDimension)return;c.length&&d.setCalculationInfo("stackedOnSeries",c[c.length-1].seriesModel),c.push(h)}}),i.each(RT)}),vx("default",function kU(a,i){Ze(i=i||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new rt,o=new _t({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});n.add(o);var h,c=new Zt({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),d=new _t({style:{fill:"none"},textContent:c,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return n.add(d),i.showSpinner&&((h=new aM({shape:{startAngle:-tx/2,endAngle:-tx/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*tx/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*tx/2}).delay(300).start("circularInOut"),n.add(h)),n.resize=function(){var f=c.getBoundingRect().width,p=i.showSpinner?i.spinnerRadius:0,g=(a.getWidth()-2*p-(i.showSpinner&&f?10:0)-f)/2-(i.showSpinner&&f?0:5+f/2)+(i.showSpinner?0:f/2)+(f?0:p),v=a.getHeight()/2;i.showSpinner&&h.setShape({cx:g,cy:v}),d.setShape({x:g-p,y:v-p,width:2*p,height:2*p}),o.setShape({x:0,y:0,width:a.getWidth(),height:a.getHeight()})},n.resize(),n}),ys({type:zc,event:zc,update:zc},qi),ys({type:n_,event:n_,update:n_},qi),ys({type:Gs,event:Gs,update:Gs},qi),ys({type:i_,event:i_,update:i_},qi),ys({type:em,event:em,update:em},qi),GM("light",Fm),GM("dark",ML);var sj={},YM=[],lj={registerPreprocessor:WM,registerProcessor:bf,registerPostInit:lF,registerPostUpdate:$M,registerUpdateLifecycle:mx,registerAction:ys,registerCoordinateSystem:cF,registerLayout:uF,registerVisual:sc,registerTransform:_x,registerLoading:vx,registerMap:fF,registerImpl:function On(a,i){An[a]=i},PRIORITY:KL,ComponentModel:en,ComponentView:li,SeriesModel:Xn,ChartView:Rn,registerComponentModel:function(a){en.registerClass(a)},registerComponentView:function(a){li.registerClass(a)},registerSeriesModel:function(a){Xn.registerClass(a)},registerChartView:function(a){Rn.registerClass(a)},registerSubTypeDefaulter:function(a,i){en.registerSubTypeDefaulter(a,i)},registerPainter:function(a,i){wr(a,i)}};function kt(a){ye(a)?G(a,function(i){kt(i)}):Ct(YM,a)>=0||(YM.push(a),Xe(a)&&(a={install:a}),a.install(lj))}function $_(a){return null==a?0:a.length||1}function pF(a){return a}var cj=function(){function a(i,n,o,c,d,h){this._old=i,this._new=n,this._oldKeyGetter=o||pF,this._newKeyGetter=c||pF,this.context=d,this._diffModeMultiple="multiple"===h}return a.prototype.add=function(i){return this._add=i,this},a.prototype.update=function(i){return this._update=i,this},a.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},a.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},a.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},a.prototype.remove=function(i){return this._remove=i,this},a.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},a.prototype._executeOneToOne=function(){var i=this._old,n=this._new,o={},c=new Array(i.length),d=new Array(n.length);this._initIndexMap(i,null,c,"_oldKeyGetter"),this._initIndexMap(n,o,d,"_newKeyGetter");for(var h=0;h1){var v=p.shift();1===p.length&&(o[f]=p[0]),this._update&&this._update(v,h)}else 1===g?(o[f]=null,this._update&&this._update(p,h)):this._remove&&this._remove(h)}this._performRestAdd(d,o)},a.prototype._executeMultiple=function(){var n=this._new,o={},c={},d=[],h=[];this._initIndexMap(this._old,o,d,"_oldKeyGetter"),this._initIndexMap(n,c,h,"_newKeyGetter");for(var f=0;f1&&1===y)this._updateManyToOne&&this._updateManyToOne(v,g),c[p]=null;else if(1===_&&y>1)this._updateOneToMany&&this._updateOneToMany(v,g),c[p]=null;else if(1===_&&1===y)this._update&&this._update(v,g),c[p]=null;else if(_>1&&y>1)this._updateManyToMany&&this._updateManyToMany(v,g),c[p]=null;else if(_>1)for(var w=0;w<_;w++)this._remove&&this._remove(g[w]);else this._remove&&this._remove(g)}this._performRestAdd(h,c)},a.prototype._performRestAdd=function(i,n){for(var o=0;o1)for(var f=0;f30}var _u,Zm,Xm,Km,bx,X_,xx,qm=Ee,Jc=Se,gF=typeof Int32Array>"u"?Array:Int32Array,jn=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dt=["_approximateExtent"],_F=function(){function a(i,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,c=!1;qM(i)?(o=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(c=!0,o=i),o=o||["x","y"];for(var d={},h=[],f={},p=!1,g={},v=0;v=n)){var c=this._store.getProvider();this._updateOrdinalMeta();var d=this._nameList,h=this._idList;if(c.getSource().sourceFormat===Uo&&!c.pure)for(var g=[],v=i;v0},a.prototype.ensureUniqueItemVisual=function(i,n){var o=this._itemVisuals,c=o[i];c||(c=o[i]={});var d=c[n];return null==d&&(ye(d=this.getVisual(n))?d=d.slice():qm(d)&&(d=_e({},d)),c[n]=d),d},a.prototype.setItemVisual=function(i,n,o){var c=this._itemVisuals[i]||{};this._itemVisuals[i]=c,qm(n)?_e(c,n):c[n]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(i,n){qm(i)?_e(this._layout,i):this._layout[i]=n},a.prototype.getLayout=function(i){return this._layout[i]},a.prototype.getItemLayout=function(i){return this._itemLayouts[i]},a.prototype.setItemLayout=function(i,n,o){this._itemLayouts[i]=o?_e(this._itemLayouts[i]||{},n):n},a.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},a.prototype.setItemGraphicEl=function(i,n){YD(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,n),this._graphicEls[i]=n},a.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},a.prototype.eachItemGraphicEl=function(i,n){G(this._graphicEls,function(o,c){o&&i&&i.call(n,o,c)})},a.prototype.cloneShallow=function(i){return i||(i=new a(this._schema?this._schema:Jc(this.dimensions,this._getDimInfo,this),this.hostModel)),bx(i,this),i._store=this._store,i},a.prototype.wrapMethod=function(i,n){var o=this[i];Xe(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var c=o.apply(this,arguments);return n.apply(this,[c].concat(zS(arguments)))})},a.internalField=(_u=function(i){var n=i._invertedIndicesMap;G(n,function(o,c){var d=i._dimInfos[c],h=d.ordinalMeta,f=i._store;if(h){o=n[c]=new gF(h.categories.length);for(var p=0;p1&&(p+="__ec__"+v),c[n]=p}})),a}();const ya=_F;function yF(a,i){return Qm(a,i).dimensions}function Qm(a,i){OT(a)||(a=LT(a));var n=(i=i||{}).coordDimensions||[],o=i.dimensionsDefine||a.dimensionsDefine||[],c=Me(),d=[],h=function gj(a,i,n,o){var c=Math.max(a.dimensionsDetectedCount||1,i.length,n.length,o||0);return G(i,function(d){var h;Ee(d)&&(h=d.dimsDef)&&(c=Math.max(c,h.length))}),c}(a,n,o,i.dimensionsCount),f=i.canOmitUnusedDimensions&&mF(h),p=o===a.dimensionsDefine,g=p?Z_(a):J(o),v=i.encodeDefine;!v&&i.encodeDefaulter&&(v=i.encodeDefaulter(a,h));for(var _=Me(v),y=new xm(h),w=0;w0&&(o.name=c+(d-1)),d++,i.set(c,d)}}(d),new Ym({source:a,dimensions:d,fullDimensionCount:h,dimensionOmitted:f})}function vj(a,i,n){if(n||i.hasKey(a)){for(var o=0;i.hasKey(a+o);)o++;a+=o}return i.set(a,!0),a}var _j=function a(i){this.coordSysDims=[],this.axisMap=Me(),this.categoryAxisMap=Me(),this.coordSysName=i},bj={cartesian2d:function(a,i,n,o){var c=a.getReferringComponents("xAxis",yi).models[0],d=a.getReferringComponents("yAxis",yi).models[0];i.coordSysDims=["x","y"],n.set("x",c),n.set("y",d),Jm(c)&&(o.set("x",c),i.firstCategoryDimIndex=0),Jm(d)&&(o.set("y",d),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=1))},singleAxis:function(a,i,n,o){var c=a.getReferringComponents("singleAxis",yi).models[0];i.coordSysDims=["single"],n.set("single",c),Jm(c)&&(o.set("single",c),i.firstCategoryDimIndex=0)},polar:function(a,i,n,o){var c=a.getReferringComponents("polar",yi).models[0],d=c.findAxisModel("radiusAxis"),h=c.findAxisModel("angleAxis");i.coordSysDims=["radius","angle"],n.set("radius",d),n.set("angle",h),Jm(d)&&(o.set("radius",d),i.firstCategoryDimIndex=0),Jm(h)&&(o.set("angle",h),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=1))},geo:function(a,i,n,o){i.coordSysDims=["lng","lat"]},parallel:function(a,i,n,o){var c=a.ecModel,d=c.getComponent("parallel",a.get("parallelIndex")),h=i.coordSysDims=d.dimensions.slice();G(d.parallelAxisIndex,function(f,p){var g=c.getComponent("parallelAxis",f),v=h[p];n.set(v,g),Jm(g)&&(o.set(v,g),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=p))})}};function Jm(a){return"category"===a.get("type")}function bF(a,i,n){var d,h,f,o=(n=n||{}).byIndex,c=n.stackedCoordDimension;!function wj(a){return!qM(a.schema)}(i)?(d=(h=i.schema).dimensions,f=i.store):d=i;var g,v,_,y,p=!(!a||!a.get("stack"));if(G(d,function(A,E){Ae(A)&&(d[E]=A={name:A}),p&&!A.isExtraCoord&&(!o&&!g&&A.ordinalMeta&&(g=A),!v&&"ordinal"!==A.type&&"time"!==A.type&&(!c||c===A.coordDim)&&(v=A))}),v&&!o&&!g&&(o=!0),v){_="__\0ecstackresult_"+a.id,y="__\0ecstackedover_"+a.id,g&&(g.createInvertedIndices=!0);var w=v.coordDim,x=v.type,S=0;G(d,function(A){A.coordDim===w&&S++});var D={name:_,coordDim:w,coordDimIndex:S,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length},T={name:y,coordDim:y,coordDimIndex:S+1,type:x,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length+1};h?(f&&(D.storeDimIndex=f.ensureCalculationDimension(y,x),T.storeDimIndex=f.ensureCalculationDimension(_,x)),h.appendCalculationDimension(D),h.appendCalculationDimension(T)):(d.push(D),d.push(T))}return{stackedDimension:v&&v.name,stackedByDimension:g&&g.name,isStackedByIndex:o,stackedOverDimension:y,stackResultDimension:_}}function ed(a,i){return!!i&&i===a.getCalculationInfo("stackedDimension")}function Cx(a,i){return ed(a,i)?a.getCalculationInfo("stackResultDimension"):i}const el=function CF(a,i,n){n=n||{};var c,o=i.getSourceManager(),d=!1;a?(d=!0,c=LT(a)):d=(c=o.getSource()).sourceFormat===Uo;var h=function yj(a){var i=a.get("coordinateSystem"),n=new _j(i),o=bj[i];if(o)return o(a,n,n.axisMap,n.categoryAxisMap),n}(i),f=function wF(a,i){var c,n=a.get("coordinateSystem"),o=_m.get(n);return i&&i.coordSysDims&&(c=Se(i.coordSysDims,function(d){var h={name:d},f=i.axisMap.get(d);if(f){var p=f.get("type");h.type=Y_(p)}return h})),c||(c=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),c}(i,h),p=n.useEncodeDefaulter,g=Xe(p)?p:p?ct(dO,f,i):null,_=Qm(c,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!d}),y=function xF(a,i,n){var o,c;return n&&G(a,function(d,h){var p=n.categoryAxisMap.get(d.coordDim);p&&(null==o&&(o=h),d.ordinalMeta=p.getOrdinalMeta(),i&&(d.createInvertedIndices=!0)),null!=d.otherDims.itemName&&(c=!0)}),!c&&null!=o&&(a[o].otherDims.itemName=0),o}(_.dimensions,n.createInvertedIndices,h),w=d?null:o.getSharedDataStore(_),x=bF(i,{schema:_,store:w}),S=new ya(_,i);S.setCalculationInfo(x);var D=null!=y&&function SF(a){if(a.sourceFormat===Uo){var i=function DF(a){for(var i=0;in[1]&&(n[1]=i[1])},a.prototype.unionExtentFromData=function(i,n){this.unionExtent(i.getApproximateExtent(n))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(i,n){var o=this._extent;isNaN(i)||(o[0]=i),isNaN(n)||(o[1]=n)},a.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(i){this._isBlank=i},a}();V0(ZM);const lc=ZM;var Y=0,TF=function(){function a(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++Y}return a.createByAxisModel=function(i){var n=i.option,o=n.data,c=o&&Se(o,xj);return new a({categories:c,needCollect:!c,deduplication:!1!==n.dedplication})},a.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},a.prototype.parseAndCollect=function(i){var n,o=this._needCollect;if(!Ae(i)&&!o)return i;if(o&&!this._deduplication)return this.categories[n=this.categories.length]=i,n;var c=this._getOrCreateMap();return null==(n=c.get(i))&&(o?(this.categories[n=this.categories.length]=i,c.set(i,n)):n=NaN),n},a.prototype._getOrCreateMap=function(){return this._map||(this._map=Me(this.categories))},a}();function xj(a){return Ee(a)&&null!=a.value?a.value:a+""}const XM=TF;function Re(a){return"interval"===a.type||"log"===a.type}function Sx(a){var i=Math.pow(10,Oc(a)),n=a/i;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ti(n*i)}function KM(a){return ka(a)+2}function QM(a,i,n){a[i]=Math.max(Math.min(a[i],n[1]),n[0])}function K_(a,i){return a>=i[0]&&a<=i[1]}function Q_(a,i){return i[1]===i[0]?.5:(a-i[0])/(i[1]-i[0])}function J_(a,i){return a*(i[1]-i[0])+i[0]}var AF=function(a){function i(n){var o=a.call(this,n)||this;o.type="ordinal";var c=o.getSetting("ordinalMeta");return c||(c=new XM({})),ye(c)&&(c=new XM({categories:Se(c,function(d){return Ee(d)?d.value:d})})),o._ordinalMeta=c,o._extent=o.getSetting("extent")||[0,c.categories.length-1],o}return de(i,a),i.prototype.parse=function(n){return null==n?NaN:Ae(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},i.prototype.contain=function(n){return K_(n=this.parse(n),this._extent)&&null!=this._ordinalMeta.categories[n]},i.prototype.normalize=function(n){return Q_(n=this._getTickNumber(this.parse(n)),this._extent)},i.prototype.scale=function(n){return n=Math.round(J_(n,this._extent)),this.getRawOrdinalNumber(n)},i.prototype.getTicks=function(){for(var n=[],o=this._extent,c=o[0];c<=o[1];)n.push({value:c}),c++;return n},i.prototype.getMinorTicks=function(n){},i.prototype.setSortInfo=function(n){if(null!=n){for(var o=n.ordinalNumbers,c=this._ordinalNumbersByTick=[],d=this._ticksByOrdinalNumber=[],h=0,f=this._ordinalMeta.categories.length,p=Math.min(f,o.length);h=0&&n=0&&n=n},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.calcNiceTicks=function(){},i.prototype.calcNiceExtent=function(){},i.type="ordinal",i}(lc);lc.registerClass(AF);const ey=AF;var td=ti,JM=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return de(i,a),i.prototype.parse=function(n){return n},i.prototype.contain=function(n){return K_(n,this._extent)},i.prototype.normalize=function(n){return Q_(n,this._extent)},i.prototype.scale=function(n){return J_(n,this._extent)},i.prototype.setExtent=function(n,o){var c=this._extent;isNaN(n)||(c[0]=parseFloat(n)),isNaN(o)||(c[1]=parseFloat(o))},i.prototype.unionExtent=function(n){var o=this._extent;n[0]o[1]&&(o[1]=n[1]),this.setExtent(o[0],o[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=KM(n)},i.prototype.getTicks=function(n){var o=this._interval,c=this._extent,d=this._niceExtent,h=this._intervalPrecision,f=[];if(!o)return f;c[0]1e4)return[];var v=f.length?f[f.length-1].value:d[1];return c[1]>v&&f.push(n?{value:td(v+o,h)}:{value:c[1]}),f},i.prototype.getMinorTicks=function(n){for(var o=this.getTicks(!0),c=[],d=this.getExtent(),h=1;hd[0]&&wo&&(h=c.interval=o);var f=c.intervalPrecision=KM(h);return function MF(a,i){!isFinite(a[0])&&(a[0]=i[0]),!isFinite(a[1])&&(a[1]=i[1]),QM(a,0,i),QM(a,1,i),a[0]>a[1]&&(a[0]=a[1])}(c.niceTickExtent=[ti(Math.ceil(a[0]/h)*h,f),ti(Math.floor(a[1]/h)*h,f)],a),c}(d,n,o,c);this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent}},i.prototype.calcNiceExtent=function(n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var c=Math.abs(o[0]);n.fixMax||(o[1]+=c/2),o[0]-=c/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var h=this._interval;n.fixMin||(o[0]=td(Math.floor(o[0]/h)*h)),n.fixMax||(o[1]=td(Math.ceil(o[1]/h)*h))},i.prototype.setNiceExtent=function(n,o){this._niceExtent=[n,o]},i.type="interval",i}(lc);lc.registerClass(JM);const cc=JM;var EF=typeof Float32Array<"u",Cj=EF?Float32Array:Array;function bs(a){return ye(a)?EF?new Float32Array(a):a:new Cj(a)}var eA="__ec_stack_";function Je(a){return a.get("stack")||eA+a.seriesIndex}function nd(a){return a.dim+a.index}function kF(a,i){var n=[];return i.eachSeriesByType(a,function(o){PF(o)&&n.push(o)}),n}function Dx(a){var i=function tK(a){var i={};G(a,function(p){var v=p.coordinateSystem.getBaseAxis();if("time"===v.type||"value"===v.type)for(var _=p.getData(),y=v.dim+"_"+v.index,w=_.getDimensionIndex(_.mapDimension(v.dim)),x=_.getStore(),S=0,D=x.count();S0&&(d=null===d?f:Math.min(d,f))}n[o]=d}}return n}(a),n=[];return G(a,function(o){var f,d=o.coordinateSystem.getBaseAxis(),h=d.getExtent();if("category"===d.type)f=d.getBandWidth();else if("value"===d.type||"time"===d.type){var g=i[d.dim+"_"+d.index],v=Math.abs(h[1]-h[0]),_=d.scale.getExtent(),y=Math.abs(_[1]-_[0]);f=g?v/y*g:v}else{var w=o.getData();f=Math.abs(h[1]-h[0])/w.count()}var x=Ie(o.get("barWidth"),f),S=Ie(o.get("barMaxWidth"),f),D=Ie(o.get("barMinWidth")||(wf(o)?.5:1),f),T=o.get("barGap"),A=o.get("barCategoryGap");n.push({bandWidth:f,barWidth:x,barMaxWidth:S,barMinWidth:D,barGap:T,barCategoryGap:A,axisKey:nd(d),stackId:Je(o)})}),Tx(n)}function Tx(a){var i={};G(a,function(o,c){var d=o.axisKey,h=o.bandWidth,f=i[d]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},p=f.stacks;i[d]=f;var g=o.stackId;p[g]||f.autoWidthCount++,p[g]=p[g]||{width:0,maxWidth:0};var v=o.barWidth;v&&!p[g].width&&(p[g].width=v,v=Math.min(f.remainedWidth,v),f.remainedWidth-=v);var _=o.barMaxWidth;_&&(p[g].maxWidth=_);var y=o.barMinWidth;y&&(p[g].minWidth=y);var w=o.barGap;null!=w&&(f.gap=w);var x=o.barCategoryGap;null!=x&&(f.categoryGap=x)});var n={};return G(i,function(o,c){n[c]={};var d=o.stacks,h=o.bandWidth,f=o.categoryGap;if(null==f){var p=Wt(d).length;f=Math.max(35-4*p,15)+"%"}var g=Ie(f,h),v=Ie(o.gap,1),_=o.remainedWidth,y=o.autoWidthCount,w=(_-g)/(y+(y-1)*v);w=Math.max(w,0),G(d,function(T){var A=T.maxWidth,E=T.minWidth;if(T.width){var k=T.width;A&&(k=Math.min(k,A)),E&&(k=Math.max(k,E)),T.width=k,_-=k+v*k,y--}else k=w,A&&Ak&&(k=E),k!==w&&(T.width=k,_-=k+v*k,y--)}),w=(_-g)/(y+(y-1)*v),w=Math.max(w,0);var S,x=0;G(d,function(T,A){T.width||(T.width=w),S=T,x+=T.width*(1+v)}),S&&(x-=S.width*v);var D=-x/2;G(d,function(T,A){n[c][A]=n[c][A]||{bandWidth:h,offset:D,width:T.width},D+=T.width*(1+v)})}),n}function tA(a,i){var n=kF(a,i),o=Dx(n);G(n,function(c){var d=c.getData(),f=c.coordinateSystem.getBaseAxis(),p=Je(c),g=o[nd(f)][p];d.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function Mx(a){return{seriesType:a,plan:Zc(),reset:function(i){if(PF(i)){var n=i.getData(),o=i.coordinateSystem,c=o.getBaseAxis(),d=o.getOtherAxis(c),h=n.getDimensionIndex(n.mapDimension(d.dim)),f=n.getDimensionIndex(n.mapDimension(c.dim)),p=i.get("showBackground",!0),g=n.mapDimension(d.dim),v=n.getCalculationInfo("stackResultDimension"),_=ed(n,g)&&!!n.getCalculationInfo("stackedOnSeries"),y=d.isHorizontal(),w=function RF(a,i){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}(0,d),x=wf(i),S=i.get("barMinHeight")||0,D=v&&n.getDimensionIndex(v),T=n.getLayout("size"),A=n.getLayout("offset");return{progress:function(E,k){for(var $,L=E.count,O=x&&bs(3*L),B=x&&p&&bs(3*L),U=x&&bs(L),j=o.master.getRect(),W=y?j.width:j.height,X=k.getStore(),K=0;null!=($=E.next());){var ee=X.get(_?D:h,$),te=X.get(f,$),ie=w,me=void 0;_&&(me=+ee-X.get(h,$));var ue=void 0,we=void 0,Pe=void 0,Le=void 0;if(y){var We=o.dataToPoint([ee,te]);_&&(ie=o.dataToPoint([me,te])[0]),ue=ie,we=We[1]+A,Pe=We[0]-ie,Le=T,Math.abs(Pe)0)for(var f=0;f=0;--f)if(p[g]){d=p[g];break}d=d||h.none}if(ye(d)){var _=null==a.level?0:a.level>=0?a.level:d.length+a.level;d=d[_=Math.min(_,d.length-1)]}}return Jd(new Date(a.value),d,c,o)}(n,o,c,this.getSetting("locale"),d)},i.prototype.getTicks=function(){var o=this._extent,c=[];if(!this._interval)return c;c.push({value:o[0],level:0});var d=this.getSetting("useUTC"),h=function Aj(a,i,n,o){var d=p_,h=0;function f(W,$,X,K,ee,te,ie){for(var me=new Date($),ue=$,we=me[K]();ue1&&0===te&&X.unshift({value:X[0].value-ue})}}for(te=0;te=o[0]&&A<=o[1]&&_++)}var E=(o[1]-o[0])/i;if(_>1.5*E&&y>E/1.5||(g.push(D),_>E||a===d[w]))break}v=[]}}var k=_n(Se(g,function(W){return _n(W,function($){return $.value>=o[0]&&$.value<=o[1]&&!$.notAdd})}),function(W){return W.length>0}),L=[],O=k.length-1;for(w=0;wc&&(this._approxInterval=c);var f=ny.length,p=Math.min(function(a,i,n,o){for(;n>>1;a[c][1]16?16:a>7.5?7:a>3.5?4:a>1.5?2:1}function LF(a){return(a/=30*Co)>6?6:a>3?3:a>2?2:1}function FF(a){return(a/=h_)>12?12:a>6?6:a>3.5?4:a>2?2:1}function iA(a,i){return(a/=i?6e4:1e3)>30?30:a>20?20:a>15?15:a>10?10:a>5?5:a>2?2:1}function Tj(a){return xD(a,!0)}function Mj(a,i,n){var o=new Date(a);switch(hm(i)){case"year":case"month":o[yw(n)](0);case"day":o[ec(n)](1);case"hour":o[nO(n)](0);case"minute":o[iO(n)](0);case"second":o[bw(n)](0),o[y8(n)](0)}return o.getTime()}lc.registerClass(ty);const NF=ty;var rA=lc.prototype,Ax=cc.prototype,VF=ti,Ej=Math.floor,Ij=Math.ceil,aA=Math.pow,tl=Math.log,tg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new cc,n._interval=0,n}return de(i,a),i.prototype.getTicks=function(n){var c=this._extent,d=this._originalScale.getExtent();return Se(Ax.getTicks.call(this,n),function(f){var p=f.value,g=ti(aA(this.base,p));return g=p===c[0]&&this._fixMin?oA(g,d[0]):g,{value:g=p===c[1]&&this._fixMax?oA(g,d[1]):g}},this)},i.prototype.setExtent=function(n,o){var c=tl(this.base);n=tl(Math.max(0,n))/c,o=tl(Math.max(0,o))/c,Ax.setExtent.call(this,n,o)},i.prototype.getExtent=function(){var n=this.base,o=rA.getExtent.call(this);o[0]=aA(n,o[0]),o[1]=aA(n,o[1]);var d=this._originalScale.getExtent();return this._fixMin&&(o[0]=oA(o[0],d[0])),this._fixMax&&(o[1]=oA(o[1],d[1])),o},i.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var o=this.base;n[0]=tl(n[0])/tl(o),n[1]=tl(n[1])/tl(o),rA.unionExtent.call(this,n)},i.prototype.unionExtentFromData=function(n,o){this.unionExtent(n.getApproximateExtent(o))},i.prototype.calcNiceTicks=function(n){n=n||10;var o=this._extent,c=o[1]-o[0];if(!(c===1/0||c<=0)){var d=kH(c);for(n/c*d<=.5&&(d*=10);!isNaN(d)&&Math.abs(d)<1&&Math.abs(d)>0;)d*=10;var f=[ti(Ij(o[0]/d)*d),ti(Ej(o[1]/d)*d)];this._interval=d,this._niceExtent=f}},i.prototype.calcNiceExtent=function(n){Ax.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},i.prototype.parse=function(n){return n},i.prototype.contain=function(n){return K_(n=tl(n)/tl(this.base),this._extent)},i.prototype.normalize=function(n){return Q_(n=tl(n)/tl(this.base),this._extent)},i.prototype.scale=function(n){return n=J_(n,this._extent),aA(this.base,n)},i.type="log",i}(lc),kj=tg.prototype;function oA(a,i){return VF(a,ka(i))}kj.getMinorTicks=Ax.getMinorTicks,kj.getLabel=Ax.getLabel,lc.registerClass(tg);const Pj=tg;var Ex=function(){function a(i,n,o){this._prepareParams(i,n,o)}return a.prototype._prepareParams=function(i,n,o){o[1]0&&p>0&&!g&&(f=0),f<0&&p<0&&!v&&(p=0));var y=this._determinedMin,w=this._determinedMax;return null!=y&&(f=y,g=!0),null!=w&&(p=w,v=!0),{min:f,max:p,minFixed:g,maxFixed:v,isBlank:_}},a.prototype.modifyDataMinMax=function(i,n){this[Ix[i]]=n},a.prototype.setDeterminedMinMax=function(i,n){this[dc[i]]=n},a.prototype.freeze=function(){this.frozen=!0},a}(),dc={min:"_determinedMin",max:"_determinedMax"},Ix={min:"_dataMin",max:"_dataMax"};function BF(a,i,n){var o=a.rawExtentInfo;return o||(o=new Ex(a,i,n),a.rawExtentInfo=o,o)}function kx(a,i){return null==i?null:Jt(i)?NaN:a.parse(i)}function zF(a,i){var n=a.type,o=BF(a,i,a.getExtent()).calculate();a.setBlank(o.isBlank);var c=o.min,d=o.max,h=i.ecModel;if(h&&"time"===n){var f=kF("bar",h),p=!1;if(G(f,function(_){p=p||_.getBaseAxis()===i.axis}),p){var g=Dx(f),v=function Rj(a,i,n,o){var c=n.axis.getExtent(),d=c[1]-c[0],h=function Sj(a,i,n){if(a&&i){var o=a[nd(i)];return null!=o&&null!=n?o[Je(n)]:o}}(o,n.axis);if(void 0===h)return{min:a,max:i};var f=1/0;G(h,function(w){f=Math.min(w.offset,f)});var p=-1/0;G(h,function(w){p=Math.max(w.offset+w.width,p)}),f=Math.abs(f),p=Math.abs(p);var g=f+p,v=i-a,y=v/(1-(f+p)/d)-v;return{min:a-=y*(f/g),max:i+=y*(p/g)}}(c,d,i,g);c=v.min,d=v.max}}return{extent:[c,d],fixMin:o.minFixed,fixMax:o.maxFixed}}function xf(a,i){var n=i,o=zF(a,n),c=o.extent,d=n.get("splitNumber");a instanceof Pj&&(a.base=n.get("logBase"));var h=a.type,f=n.get("interval"),p="interval"===h||"time"===h;a.setExtent(c[0],c[1]),a.calcNiceExtent({splitNumber:d,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:p?n.get("minInterval"):null,maxInterval:p?n.get("maxInterval"):null}),null!=f&&a.setInterval&&a.setInterval(f)}function iy(a,i){if(i=i||a.get("type"))switch(i){case"category":return new ey({ordinalMeta:a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),extent:[1/0,-1/0]});case"time":return new NF({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new(lc.getClass(i)||cc)}}function id(a){var o,i=a.getLabelModel().get("formatter"),n="category"===a.type?a.scale.getExtent()[0]:null;return"time"===a.scale.type?(o=i,function(c,d){return a.scale.getFormattedLabel(c,d,o)}):Ae(i)?function(o){return function(c){var d=a.scale.getLabel(c);return o.replace("{value}",d??"")}}(i):Xe(i)?function(o){return function(c,d){return null!=n&&(d=c.value-n),o(Px(a,c),d,null!=c.level?{level:c.level}:null)}}(i):function(o){return a.scale.getLabel(o)}}function Px(a,i){return"category"===a.type?a.scale.getLabel(i):i.value}function UF(a,i){var n=i*Math.PI/180,o=a.width,c=a.height,d=o*Math.abs(Math.cos(n))+Math.abs(c*Math.sin(n)),h=o*Math.abs(Math.sin(n))+Math.abs(c*Math.cos(n));return new ce(a.x,a.y,d,h)}function Rx(a){return a.get("interval")??"auto"}function sA(a){return"category"===a.type&&0===Rx(a.getLabelModel())}function nl(a,i){var n={};return G(a.mapDimensionsAll(i),function(o){n[Cx(a,o)]=!0}),Wt(n)}var ry=function(){function a(){}return a.prototype.getNeedCrossZero=function(){return!this.option.scale},a.prototype.getCoordSysModel=function(){},a}();function nK(a){return el(null,a)}var ng={isDimensionStacked:ed,enableDataStack:bF,getStackedDimension:Cx};function lA(a,i){var n=i;i instanceof Un||(n=new Un(i));var o=iy(n);return o.setExtent(a[0],a[1]),xf(o,n),o}function Fj(a){Di(a,ry)}function Nj(a,i){return Zn(a,null,null,"normal"!==(i=i||{}).state)}var Vj=1e-8;function ig(a,i){return Math.abs(a-i)c&&(o=h,c=p)}if(o)return function Bj(a){for(var i=0,n=0,o=0,c=a.length,d=a[c-1][0],h=a[c-1][1],f=0;f>1^-(1&f),p=p>>1^-(1&p),c=f+=c,d=p+=d,o.push([f/n,p/n])}return o}function dA(a,i){return a=function cA(a){if(!a.UTF8Encoding)return a;var i=a,n=i.UTF8Scale;return null==n&&(n=1024),G(i.features,function(c){var d=c.geometry,h=d.encodeOffsets,f=d.coordinates;if(h)switch(d.type){case"LineString":d.coordinates=$F(f,h,n);break;case"Polygon":case"MultiLineString":oy(f,h,n);break;case"MultiPolygon":G(f,function(p,g){return oy(p,h[g],n)})}}),i.UTF8Encoding=!1,i}(a),Se(_n(a.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var o=n.properties,c=n.geometry,d=[];switch(c.type){case"Polygon":var h=c.coordinates;d.push(new ay(h[0],h.slice(1)));break;case"MultiPolygon":G(c.coordinates,function(p){p[0]&&d.push(new ay(p[0],p.slice(1)))});break;case"LineString":d.push(new Ox([c.coordinates]));break;case"MultiLineString":d.push(new Ox(c.coordinates))}var f=new Lx(o[i||"name"],d,o.cp);return f.properties=o,f})}function zj(a,i,n,o,c,d,h,f){return new Zt({style:{text:a,font:i,align:n,verticalAlign:o,padding:c,rich:d,overflow:h?"truncate":null,lineHeight:f}}).getBoundingRect()}var sy=qt();function ft(a,i){var d,h,n=qF(a,"labels"),o=Rx(i);return hA(n,o)||(Xe(o)?d=KF(a,o):(h="auto"===o?function Hj(a){return sy(a).autoInterval??(sy(a).autoInterval=a.calculateCategoryInterval())}(a):o,d=XF(a,h)),fA(n,o,{labels:d,labelCategoryInterval:h}))}function qF(a,i){return sy(a)[i]||(sy(a)[i]=[])}function hA(a,i){for(var n=0;n1&&v/p>2&&(g=Math.round(Math.ceil(g/p)*p));var _=sA(a),y=h.get("showMinLabel")||_,w=h.get("showMaxLabel")||_;y&&g!==d[0]&&S(d[0]);for(var x=g;x<=d[1];x+=p)S(x);function S(D){var T={value:D};f.push(n?D:{formattedLabel:o(T),rawLabel:c.getLabel(T),tickValue:D})}return w&&x-p!==d[1]&&S(d[1]),f}function KF(a,i,n){var o=a.scale,c=id(a),d=[];return G(o.getTicks(),function(h){var f=o.getLabel(h),p=h.value;i(h.value,f)&&d.push(n?p:{formattedLabel:c(h),rawLabel:f,tickValue:p})}),d}var Ua=[0,1],rg=function(){function a(i,n,o){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=n,this._extent=o||[0,0]}return a.prototype.contain=function(i){var n=this._extent,o=Math.min(n[0],n[1]),c=Math.max(n[0],n[1]);return i>=o&&i<=c},a.prototype.containData=function(i){return this.scale.contain(i)},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.getPixelPrecision=function(i){return Gv(i||this.scale.getExtent(),this._extent)},a.prototype.setExtent=function(i,n){var o=this._extent;o[0]=i,o[1]=n},a.prototype.dataToCoord=function(i,n){var o=this._extent,c=this.scale;return i=c.normalize(i),this.onBand&&"ordinal"===c.type&&QF(o=o.slice(),c.count()),yn(i,Ua,o,n)},a.prototype.coordToData=function(i,n){var o=this._extent,c=this.scale;this.onBand&&"ordinal"===c.type&&QF(o=o.slice(),c.count());var d=yn(i,o,Ua,n);return this.scale.scale(d)},a.prototype.pointToData=function(i,n){},a.prototype.getTicksCoords=function(i){var n=(i=i||{}).tickModel||this.getTickModel(),d=Se(function uA(a,i){return"category"===a.type?function Kt(a,i){var d,h,n=qF(a,"ticks"),o=Rx(i),c=hA(n,o);if(c)return c;if((!i.get("show")||a.scale.isBlank())&&(d=[]),Xe(o))d=KF(a,o,!0);else if("auto"===o){var f=ft(a,a.getLabelModel());h=f.labelCategoryInterval,d=Se(f.labels,function(p){return p.tickValue})}else d=XF(a,h=o,!0);return fA(n,o,{ticks:d,tickCategoryInterval:h})}(a,i):{ticks:Se(a.scale.getTicks(),function(n){return n.value})}}(this,n).ticks,function(f){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(f):f),tickValue:f}},this);return function Uj(a,i,n,o){var c=i.length;if(a.onBand&&!n&&c){var h,d=a.getExtent();if(1===c)i[0].coord=d[0],h=i[1]={coord:d[1]};else{var g=(i[c-1].coord-i[0].coord)/(i[c-1].tickValue-i[0].tickValue);G(i,function(w){w.coord-=g/2});var v=a.scale.getExtent();i.push(h={coord:i[c-1].coord+g*(1+v[1]-i[c-1].tickValue)})}var _=d[0]>d[1];y(i[0].coord,d[0])&&(o?i[0].coord=d[0]:i.shift()),o&&y(d[0],i[0].coord)&&i.unshift({coord:d[0]}),y(d[1],h.coord)&&(o?h.coord=d[1]:i.pop()),o&&y(h.coord,d[1])&&i.push({coord:d[1]})}function y(w,x){return w=ti(w),x=ti(x),_?w>x:w0&&n<100||(n=5),Se(this.scale.getMinorTicks(n),function(d){return Se(d,function(h){return{coord:this.dataToCoord(h),tickValue:h}},this)},this)},a.prototype.getViewLabels=function(){return function YF(a){return"category"===a.type?function Ne(a){var i=a.getLabelModel(),n=ft(a,i);return!i.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(a):function Ve(a){var i=a.scale.getTicks(),n=id(a);return{labels:Se(i,function(o,c){return{level:o.level,formattedLabel:n(o,c),rawLabel:a.scale.getLabel(o),tickValue:o.value}})}}(a)}(this).labels},a.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},a.prototype.getTickModel=function(){return this.model.getModel("axisTick")},a.prototype.getBandWidth=function(){var i=this._extent,n=this.scale.getExtent(),o=n[1]-n[0]+(this.onBand?1:0);0===o&&(o=1);var c=Math.abs(i[1]-i[0]);return Math.abs(c)/o},a.prototype.calculateCategoryInterval=function(){return function ZF(a){var i=function so(a){var i=a.getLabelModel();return{axisRotate:a.getRotate?a.getRotate():a.isHorizontal&&!a.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(a),n=id(a),o=(i.axisRotate-i.labelRotate)/180*Math.PI,c=a.scale,d=c.getExtent(),h=c.count();if(d[1]-d[0]<1)return 0;var f=1;h>40&&(f=Math.max(1,Math.floor(h/40)));for(var p=d[0],g=a.dataToCoord(p+1)-a.dataToCoord(p),v=Math.abs(g*Math.cos(o)),_=Math.abs(g*Math.sin(o)),y=0,w=0;p<=d[1];p+=f){var S,D=M0(n({value:p}),i.font,"center","top");S=1.3*D.height,y=Math.max(y,1.3*D.width,7),w=Math.max(w,S,7)}var T=y/v,A=w/_;isNaN(T)&&(T=1/0),isNaN(A)&&(A=1/0);var E=Math.max(0,Math.floor(Math.min(T,A))),k=sy(a.model),L=a.getExtent(),O=k.lastAutoInterval,B=k.lastTickCount;return null!=O&&null!=B&&Math.abs(O-E)<=1&&Math.abs(B-h)<=1&&O>E&&k.axisExtent0===L[0]&&k.axisExtent1===L[1]?E=O:(k.lastTickCount=h,k.lastAutoInterval=E,k.axisExtent0=L[0],k.axisExtent1=L[1]),E}(this)},a}();function QF(a,i){var c=(a[1]-a[0])/i/2;a[0]+=c,a[1]-=c}const il=rg;function iK(a){var i=en.extend(a);return en.registerClass(i),i}function ly(a){var i=li.extend(a);return li.registerClass(i),i}function jj(a){var i=Xn.extend(a);return Xn.registerClass(i),i}function pA(a){var i=Rn.extend(a);return Rn.registerClass(i),i}var cy=2*Math.PI,bu=Hs.CMD,Gj=["top","right","bottom","left"];function Wj(a,i,n,o,c){var d=n.width,h=n.height;switch(a){case"top":o.set(n.x+d/2,n.y-i),c.set(0,-1);break;case"bottom":o.set(n.x+d/2,n.y+h+i),c.set(0,1);break;case"left":o.set(n.x-i,n.y+h/2),c.set(-1,0);break;case"right":o.set(n.x+d+i,n.y+h/2),c.set(1,0)}}function $j(a,i,n,o,c,d,h,f,p){h-=a,f-=i;var g=Math.sqrt(h*h+f*f),v=(h/=g)*n+a,_=(f/=g)*n+i;if(Math.abs(o-c)%cy<1e-4)return p[0]=v,p[1]=_,g-n;if(d){var y=o;o=Us(c),c=Us(y)}else o=Us(o),c=Us(c);o>c&&(c+=cy);var w=Math.atan2(f,h);if(w<0&&(w+=cy),w>=o&&w<=c||w+cy>=o&&w+cy<=c)return p[0]=v,p[1]=_,g-n;var x=n*Math.cos(o)+a,S=n*Math.sin(o)+i,D=n*Math.cos(c)+a,T=n*Math.sin(c)+i,A=(x-h)*(x-h)+(S-f)*(S-f),E=(D-h)*(D-h)+(T-f)*(T-f);return A0){i=i/180*Math.PI,uc.fromArray(a[0]),Qn.fromArray(a[1]),er.fromArray(a[2]),St.sub(al,uc,Qn),St.sub(lo,er,Qn);var n=al.len(),o=lo.len();if(!(n<.001||o<.001)){al.scale(1/n),lo.scale(1/o);var c=al.dot(lo);if(Math.cos(i)1&&St.copy(ba,er),ba.toArray(a[1])}}}}function qj(a,i,n){if(n<=180&&n>0){n=n/180*Math.PI,uc.fromArray(a[0]),Qn.fromArray(a[1]),er.fromArray(a[2]),St.sub(al,Qn,uc),St.sub(lo,er,Qn);var o=al.len(),c=lo.len();if(!(o<.001||c<.001)&&(al.scale(1/o),lo.scale(1/c),al.dot(i)=p)St.copy(ba,er);else{ba.scaleAndAdd(lo,f/Math.tan(Math.PI/2-v));var _=er.x!==Qn.x?(ba.x-Qn.x)/(er.x-Qn.x):(ba.y-Qn.y)/(er.y-Qn.y);if(isNaN(_))return;_<0?St.copy(ba,Qn):_>1&&St.copy(ba,er)}ba.toArray(a[1])}}}function eN(a,i,n,o){var c="normal"===n,d=c?a:a.ensureState(n);d.ignore=i;var h=o.get("smooth");h&&!0===h&&(h=.3),d.shape=d.shape||{},h>0&&(d.shape.smooth=h);var f=o.getModel("lineStyle").getLineStyle();c?a.useStyle(f):d.style=f}function Zj(a,i){var n=i.smooth,o=i.points;if(o)if(a.moveTo(o[0][0],o[0][1]),n>0&&o.length>=3){var c=ks(o[0],o[1]),d=ks(o[1],o[2]);if(!c||!d)return a.lineTo(o[1][0],o[1][1]),void a.lineTo(o[2][0],o[2][1]);var h=Math.min(c,d)*n,f=ch([],o[1],o[0],h/c),p=ch([],o[1],o[2],h/d),g=ch([],f,p,.5);a.bezierCurveTo(f[0],f[1],f[0],f[1],g[0],g[1]),a.bezierCurveTo(p[0],p[1],p[0],p[1],o[2][0],o[2][1])}else for(var v=1;v0&&d&&O(-_/h,0,h);var A,E,D=a[0],T=a[h-1];return k(),A<0&&B(-A,.8),E<0&&B(E,.8),k(),L(A,E,1),L(E,A,-1),k(),A<0&&U(-A),E<0&&U(E),g}function k(){A=D.rect[i]-o,E=c-T.rect[i]-T.rect[n]}function L(j,W,$){if(j<0){var X=Math.min(W,-j);if(X>0){O(X*$,0,h);var K=X+j;K<0&&B(-K*$,1)}else B(-j*$,1)}}function O(j,W,$){0!==j&&(g=!0);for(var X=W;X<$;X++){var K=a[X];K.rect[i]+=j,K.label[i]+=j}}function B(j,W){for(var $=[],X=0,K=1;K0)for(K=0;K0;K--)O(-$[K-1]*ie,K,h)}}function U(j){var W=j<0?-1:1;j=Math.abs(j);for(var $=Math.ceil(j/(h-1)),X=0;X0?O($,0,X+1):O(-$,h-X-1,h),(j-=$)<=0)return}}function iN(a,i,n,o){return vA(a,"y","height",i,n,o)}function rN(a){var i=[];a.sort(function(S,D){return D.priority-S.priority});var n=new ce(0,0,0,0);function o(S){if(!S.ignore){var D=S.ensureState("emphasis");null==D.ignore&&(D.ignore=!1)}S.ignore=!0}for(var c=0;c=0&&o.attr(d.oldLayoutSelect),Ct(y,"emphasis")>=0&&o.attr(d.oldLayoutEmphasis)),zt(o,g,n,p)}else if(o.attr(g),!Qi(o).valueAnimation){var _=gt(o.style.opacity,1);o.style.opacity=0,Nn(o,{style:{opacity:_}},n,p)}if(d.oldLayout=g,o.states.select){var w=d.oldLayoutSelect={};zx(w,g,Hx),zx(w,o.states.select,Hx)}if(o.states.emphasis){var x=d.oldLayoutEmphasis={};zx(x,g,Hx),zx(x,o.states.emphasis,Hx)}Z2(o,p,v,n,n)}if(c&&!c.ignore&&!c.invisible){var d=oN(c),S={points:c.shape.points};(h=d.oldLayout)?(c.attr({shape:h}),zt(c,{shape:S},n)):(c.setShape(S),c.style.strokePercent=0,Nn(c,{style:{strokePercent:1}},n)),d.oldLayout=S}},a}();const sN=rK;var lN=qt();function Kj(a){a.registerUpdateLifecycle("series:beforeupdate",function(i,n,o){var c=lN(n).labelManager;c||(c=lN(n).labelManager=new sN),c.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(i,n,o){var c=lN(n).labelManager;o.updatedSeries.forEach(function(d){c.addLabelsOfSeries(n.getViewOfSeriesModel(d))}),c.updateLayoutConfig(n),c.layout(n),c.processLabelsOverall()})}function Qj(a,i,n){var o=bt.createCanvas(),c=i.getWidth(),d=i.getHeight(),h=o.style;return h&&(h.position="absolute",h.left="0",h.top="0",h.width=c+"px",h.height=d+"px",o.setAttribute("data-zr-dom-id",a)),o.width=c*n,o.height=d*n,o}kt(Kj);var aK=function(a){function i(n,o,c){var h,d=a.call(this)||this;d.motionBlur=!1,d.lastFrameAlpha=.7,d.dpr=1,d.virtual=!1,d.config={},d.incremental=!1,d.zlevel=0,d.maxRepaintRectCount=5,d.__dirty=!0,d.__firstTimePaint=!0,d.__used=!1,d.__drawIndex=0,d.__startIndex=0,d.__endIndex=0,d.__prevStartIndex=null,d.__prevEndIndex=null,c=c||zv,"string"==typeof n?h=Qj(n,o,c):Ee(n)&&(n=(h=n).id),d.id=n,d.dom=h;var f=h.style;return f&&(US(h),h.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),d.painter=o,d.dpr=c,d}return cn(i,a),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=Qj("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),1!==n&&this.ctxBack.scale(n,n)},i.prototype.createRepaintRects=function(n,o,c,d){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var D,h=[],f=this.maxRepaintRectCount,p=!1,g=new ce(0,0,0,0);function v(A){if(A.isFinite()&&!A.isZero())if(0===h.length)(E=new ce(0,0,0,0)).copy(A),h.push(E);else{for(var k=!1,L=1/0,O=0,B=0;B=f)}}for(var _=this.__startIndex;_15)break}ee.prevElClipPaths&&T.restore()};if(A)if(0===A.length)U=D.__endIndex;else for(var W=w.dpr,$=0;$0&&i>c[0]){for(p=0;pi);p++);f=o[c[p]]}if(c.splice(p+1,0,i),o[i]=n,!n.virtual)if(f){var g=f.dom;g.nextSibling?h.insertBefore(n.dom,g.nextSibling):h.appendChild(n.dom)}else h.firstChild?h.insertBefore(n.dom,h.firstChild):h.appendChild(n.dom);n.__painter=this}},a.prototype.eachLayer=function(i,n){for(var o=this._zlevelList,c=0;c0?.01:0),this._needsManuallyCompositing),v.__builtin__||wp("ZLevel "+g+" has been used by unkown layer "+v.id),v!==d&&(v.__used=!0,v.__startIndex!==p&&(v.__dirty=!0),v.__startIndex=p,v.__drawIndex=v.incremental?-1:p,n(p),d=v),c.__dirty&ma&&!c.__inHover&&(v.__dirty=!0,v.incremental&&v.__drawIndex<0&&(v.__drawIndex=p))}n(p),this.eachBuiltinLayer(function(_,y){!_.__used&&_.getElementCount()>0&&(_.__dirty=!0,_.__startIndex=_.__endIndex=_.__drawIndex=0),_.__dirty&&_.__drawIndex<0&&(_.__drawIndex=_.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(i){i.clear()},a.prototype.setBackgroundColor=function(i){this._backgroundColor=i,G(this._layers,function(n){n.setUnpainted()})},a.prototype.configLayer=function(i,n){if(n){var o=this._layerConfig;o[i]?mt(o[i],n,!0):o[i]=n;for(var c=0;c=Tf:-g>=Tf),w=g>0?g%Tf:g%Tf+Tf;x=!!y||!br(_)&&w>=Df==!!v;var S=i+o*hN(h),D=n+c*bA(h);this._start&&this._add("M",S,D);var T=Math.round(d*uy);if(y){var A=1/this._p,E=(v?1:-1)*(Tf-A);this._add("A",o,c,T,1,+v,i+o*hN(h+E),n+c*bA(h+E)),A>.01&&this._add("A",o,c,T,0,+v,S,D)}else{var k=i+o*hN(f),L=n+c*bA(f);this._add("A",o,c,T,+x,+v,k,L)}},a.prototype.rect=function(i,n,o,c){this._add("M",i,n),this._add("l",o,0),this._add("l",0,c),this._add("l",-o,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(i,n,o,c,d,h,f,p,g){for(var v=[],_=this._p,y=1;y"}(h,c.attrs)+("style"!==h?da(p):p||"")+(d?""+n+Se(d,function(g){return o(g)}).join(n)+n:"")+function lG(a){return""}(h)}(a)}function CA(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _N(a,i,n,o){return $r("svg","root",{width:a,height:i,xmlns:mN,"xmlns:xlink":gN,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+i},n)}var yN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wu="transform-origin";function SA(a,i,n){var o=_e({},a.shape);_e(o,i),a.buildPath(n,o);var c=new fN;return c.reset(OR(a)),n.rebuildPath(c,1),c.generateStr(),c.getStr()}function dG(a,i){var n=i.originX,o=i.originY;(n||o)&&(a[wu]=n+"px "+o+"px")}var uG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DA(a,i){var n=i.zrId+"-ani-"+i.cssAnimIdx++;return i.cssAnims[n]=a,n}function TA(a){return Ae(a)?yN[a]?"cubic-bezier("+yN[a]+")":TR(a)?a:"":""}function MA(a,i,n,o){var c=a.animators,d=c.length,h=[];if(a instanceof $w){var f=function hG(a,i,n){var d,h,c={};if(G(a.shape.paths,function(p){var g=CA(n.zrId);g.animation=!0,MA(p,{},g,!0);var v=g.cssAnims,_=g.cssNodes,y=Wt(v),w=y.length;if(w){var x=v[h=y[w-1]];for(var S in x){var D=x[S];c[S]=c[S]||{d:""},c[S].d+=D.d||""}for(var T in _){var A=_[T].animation;A.indexOf(h)>=0&&(d=A)}}}),d){i.d=!1;var f=DA(c,n);return d.replace(h,f)}}(a,i,n);if(f)h.push(f);else if(!d)return}else if(!d)return;for(var p={},g=0;g0}).length)return DA(B,n)+" "+A[0]+" both"}for(var D in p)(f=S(p[D]))&&h.push(f);if(h.length){var T=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+T]={animation:h.join(",")},i.class=T}}var fy=Math.round;function AA(a){return a&&Ae(a.src)}function py(a){return a&&Xe(a.toDataURL)}function my(a,i,n,o){(function pN(a,i,n,o){var c=null==i.opacity?1:i.opacity;if(n instanceof Jr)a("opacity",c);else{if(function nG(a){var i=a.fill;return null!=i&&i!==hy}(i)){var d=Ic(i.fill);a("fill",d.color);var h=null!=i.fillOpacity?i.fillOpacity*d.opacity*c:d.opacity*c;(o||h<1)&&a("fill-opacity",h)}else a("fill",hy);if(function iG(a){var i=a.stroke;return null!=i&&i!==hy}(i)){var f=Ic(i.stroke);a("stroke",f.color);var p=i.strokeNoScale?n.getLineScale():1,g=p?(i.lineWidth||0)/p:0,v=null!=i.strokeOpacity?i.strokeOpacity*f.opacity*c:f.opacity*c,_=i.strokeFirst;if((o||1!==g)&&a("stroke-width",g),(o||_)&&a("paint-order",_?"stroke":"fill"),(o||v<1)&&a("stroke-opacity",v),i.lineDash){var y=xM(n),w=y[0],x=y[1];w&&(x=tG(x||0),a("stroke-dasharray",w.join(",")),(x||o)&&a("stroke-dashoffset",x))}else o&&a("stroke-dasharray",hy);for(var S=0;S"u"){var D="Image width/height must been given explictly in svg-ssr renderer.";be(y,D),be(w,D)}else if(null==y||null==w){var T=function(W,$){if(W){var X=W.elm,K=y||$.width,ee=w||$.height;"pattern"===W.tag&&(g?(ee=1,K/=d.width):v&&(K=1,ee/=d.height)),W.attrs.width=K,W.attrs.height=ee,X&&(X.setAttribute("width",K),X.setAttribute("height",ee))}},A=jp(x,null,a,function(W){p||T(O,W),T(_,W)});A&&A.width&&A.height&&(y=y||A.width,w=w||A.height)}_=$r("image","img",{href:x,width:y,height:w}),h.width=y,h.height=w}else c.svgElement&&(_=nt(c.svgElement),h.width=c.svgWidth,h.height=c.svgHeight);if(_){var E,k;p?E=k=1:g?(k=1,E=h.width/d.width):v?(E=1,k=h.height/d.height):h.patternUnits="userSpaceOnUse",null!=E&&!isNaN(E)&&(h.width=E),null!=k&&!isNaN(k)&&(h.height=k);var L=LR(c);L&&(h.patternTransform=L);var O=$r("pattern","",h,[_]),B=xA(O),U=o.patternCache,j=U[B];j||(j=o.zrId+"-p"+o.patternIdx++,U[B]=j,h.id=j,O=o.defs[j]=$r("pattern",j,h,[_])),i[n]=lD(j)}}function wN(a,i,n){var o=n.clipPathCache,c=n.defs,d=o[a.id];if(!d){var h={id:d=n.zrId+"-c"+n.clipPathIdx++};o[a.id]=d,c[d]=$r("clipPath",d,h,[IA(a,n)])}i["clip-path"]=lD(d)}function Af(a){return document.createTextNode(a)}function Ef(a,i,n){a.insertBefore(i,n)}function gG(a,i){a.removeChild(i)}function PA(a,i){a.appendChild(i)}function xN(a){return a.parentNode}function CN(a){return a.nextSibling}function RA(a,i){a.textContent=i}var _G=58,yG=120,OA=$r("","");function $x(a){return void 0===a}function Yr(a){return void 0!==a}function SN(a,i,n){for(var o={},c=i;c<=n;++c){var d=a[c].key;void 0!==d&&(o[d]=c)}return o}function vy(a,i){return a.tag===i.tag&&a.key===i.key}function sg(a){var i,n=a.children,o=a.tag;if(Yr(o)){var c=a.elm=vN(o);if(_y(OA,a),ye(n))for(i=0;id?LA(a,null==n[p+1]?null:n[p+1].elm,n,c,p):Yx(a,i,o,d))}(n,o,c):Yr(c)?(Yr(a.text)&&RA(n,""),LA(n,null,c,0,c.length-1)):Yr(o)?Yx(n,o,0,o.length-1):Yr(a.text)&&RA(n,""):a.text!==i.text&&(Yr(o)&&Yx(n,o,0,o.length-1),RA(n,i.text)))}var pK=0,mK=function(){function a(i,n,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=n,this._opts=o=_e({},o),this.root=i,this._id="zr"+pK++,this._oldVNode=_N(o.width,o.height),i&&!o.ssr){var c=this._viewport=document.createElement("div");c.style.cssText="position:relative;overflow:hidden";var d=this._svgDom=this._oldVNode.elm=vN("svg");_y(null,this._oldVNode),c.appendChild(d),i.appendChild(c)}this.resize(o.width,o.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var i=this.renderToVNode({willUpdate:!0});i.attrs.style="position:absolute;left:0;top:0;user-select:none",function DN(a,i){if(vy(a,i))lg(a,i);else{var n=a.elm,o=xN(n);sg(i),null!==o&&(Ef(o,i.elm,CN(n)),Yx(o,[a],0,0))}}(this._oldVNode,i),this._oldVNode=i}},a.prototype.renderOneToVNode=function(i){return kA(i,CA(this._id))},a.prototype.renderToVNode=function(i){i=i||{};var n=this.storage.getDisplayList(!0),o=this._width,c=this._height,d=CA(this._id);d.animation=i.animation,d.willUpdate=i.willUpdate,d.compress=i.compress;var h=[],f=this._bgVNode=function gK(a,i,n,o){var c;if(n&&"none"!==n)if(c=$r("rect","bg",{width:a,height:i,x:"0",y:"0",id:"0"}),sD(n))ol({fill:n},c.attrs,"fill",o);else if(Rv(n))gy({style:{fill:n},dirty:qi,getBoundingRect:function(){return{width:a,height:i}}},c.attrs,"fill",o);else{var d=Ic(n),f=d.opacity;c.attrs.fill=d.color,f<1&&(c.attrs["fill-opacity"]=f)}return c}(o,c,this._backgroundColor,d);f&&h.push(f);var p=i.compress?null:this._mainVNode=$r("g","main",{},[]);this._paintList(n,d,p?p.children:h),p&&h.push(p);var g=Se(Wt(d.defs),function(y){return d.defs[y]});if(g.length&&h.push($r("defs","defs",{},g)),i.animation){var v=function cG(a,i,n){var o=(n=n||{}).newline?"\n":"",c=" {"+o,d=o+"}",h=Se(Wt(a),function(p){return p+c+Se(Wt(a[p]),function(g){return g+":"+a[p][g]+";"}).join(o)+d}).join(o),f=Se(Wt(i),function(p){return"@keyframes "+p+c+Se(Wt(i[p]),function(g){return g+c+Se(Wt(i[p][g]),function(v){var _=i[p][g][v];return"d"===v&&(_='path("'+_+'")'),v+":"+_+";"}).join(o)+d}).join(o)+d}).join(o);return h||f?[""].join(o):""}(d.cssNodes,d.cssAnims,{newline:!0});if(v){var _=$r("style","stl",{},[],v);h.push(_)}}return _N(o,c,h,i.useViewBox)},a.prototype.renderToString=function(i){return xA(this.renderToVNode({animation:gt((i=i||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:gt(i.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(i){this._backgroundColor=i},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(i,n,o){for(var f,p,c=i.length,d=[],h=0,g=0,v=0;v=0&&(!y||!p||y[S]!==p[S]);S--);for(var D=x-1;D>S;D--)f=d[--h-1];for(var T=S+1;T-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),o},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},i}(Xn);const yK=_K;function yy(a,i){var n=a.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o){var c=bm(a,i,n[0]);return null!=c?c+"":null}if(o){for(var d=[],h=0;h=0&&o.push(i[d])}return o.join(" ")}var xG=function(a){function i(n,o,c,d){var h=a.call(this)||this;return h.updateData(n,o,c,d),h}return de(i,a),i.prototype._createSymbol=function(n,o,c,d,h){this.removeAll();var f=ji(n,-1,-1,2,2,null,h);f.attr({z2:100,culling:!0,scaleX:d[0]/2,scaleY:d[1]/2}),f.drift=qx,this._symbolType=n,this.add(f)},i.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Xl(this.childAt(0))},i.prototype.downplay=function(){Kl(this.childAt(0))},i.prototype.setZ=function(n,o){var c=this.childAt(0);c.zlevel=n,c.z=o},i.prototype.setDraggable=function(n,o){var c=this.childAt(0);c.draggable=n,c.cursor=!o&&n?"move":c.cursor},i.prototype.updateData=function(n,o,c,d){this.silent=!1;var h=n.getItemVisual(o,"symbol")||"circle",f=n.hostModel,p=i.getSymbolSize(n,o),g=h!==this._symbolType,v=d&&d.disableAnimation;if(g){var _=n.getItemVisual(o,"symbolKeepAspect");this._createSymbol(h,n,o,p,_)}else{(y=this.childAt(0)).silent=!1;var w={scaleX:p[0]/2,scaleY:p[1]/2};v?y.attr(w):zt(y,w,f,o),Ql(y)}if(this._updateCommon(n,o,p,c,d),g){var y=this.childAt(0);v||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:y.style.opacity}},y.scaleX=y.scaleY=0,y.style.opacity=0,Nn(y,w,f,o))}v&&this.childAt(0).stopAnimation("leave")},i.prototype._updateCommon=function(n,o,c,d,h){var g,v,_,y,w,x,S,D,T,f=this.childAt(0),p=n.hostModel;if(d&&(g=d.emphasisItemStyle,v=d.blurItemStyle,_=d.selectItemStyle,y=d.focus,w=d.blurScope,S=d.labelStatesModels,D=d.hoverScale,T=d.cursorStyle,x=d.emphasisDisabled),!d||n.hasItemOption){var A=d&&d.itemModel?d.itemModel:n.getItemModel(o),E=A.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),_=A.getModel(["select","itemStyle"]).getItemStyle(),v=A.getModel(["blur","itemStyle"]).getItemStyle(),y=E.get("focus"),w=E.get("blurScope"),x=E.get("disabled"),S=Sr(A),D=E.getShallow("scale"),T=A.getShallow("cursor")}var k=n.getItemVisual(o,"symbolRotate");f.attr("rotation",(k||0)*Math.PI/180||0);var L=pf(n.getItemVisual(o,"symbolOffset"),c);L&&(f.x=L[0],f.y=L[1]),T&&f.attr("cursor",T);var O=n.getItemVisual(o,"style"),B=O.fill;if(f instanceof Jr){var U=f.style;f.useStyle(_e({image:U.image,x:U.x,y:U.y,width:U.width,height:U.height},O))}else f.useStyle(f.__isEmptyBrush?_e({},O):O),f.style.decal=null,f.setColor(B,h&&h.symbolInnerColor),f.style.strokeNoScale=!0;var j=n.getItemVisual(o,"liftZ"),W=this._z2;null!=j?null==W&&(this._z2=f.z2,f.z2+=j):null!=W&&(f.z2=W,this._z2=null);var $=h&&h.useNameLabel;Oa(f,S,{labelFetcher:p,labelDataIndex:o,defaultText:function X(te){return $?n.getName(te):yy(n,te)},inheritColor:B,defaultOpacity:O.opacity}),this._sizeX=c[0]/2,this._sizeY=c[1]/2;var K=f.ensureState("emphasis");K.style=g,f.ensureState("select").style=_,f.ensureState("blur").style=v;var ee=null==D||!0===D?Math.max(1.1,3/this._sizeY):isFinite(D)&&D>0?+D:1;K.scaleX=this._sizeX*ee,K.scaleY=this._sizeY*ee,this.setSymbolScale(1),Oi(this,y,w,x)},i.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},i.prototype.fadeOut=function(n,o,c){var d=this.childAt(0),h=st(this).dataIndex,f=c&&c.animation;if(this.silent=d.silent=!0,c&&c.fadeLabel){var p=d.getTextContent();p&&Hc(p,{style:{opacity:0}},o,{dataIndex:h,removeOpt:f,cb:function(){d.removeTextContent()}})}else d.removeTextContent();Hc(d,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:h,cb:n,removeOpt:f})},i.getSymbolSize=function(n,o){return ff(n.getItemVisual(o,"symbolSize"))},i}(rt);function qx(a,i){this.parent.drift(a,i)}const by=xG;function FA(a,i,n,o){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(o.isIgnore&&o.isIgnore(n))&&!(o.clipShape&&!o.clipShape.contain(i[0],i[1]))&&"none"!==a.getItemVisual(n,"symbol")}function NA(a){return null!=a&&!Ee(a)&&(a={isIgnore:a}),a||{}}function xu(a){var i=a.hostModel,n=i.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Sr(i),cursorStyle:i.get("cursor")}}var MN=function(){function a(i){this.group=new rt,this._SymbolCtor=i||by}return a.prototype.updateData=function(i,n){this._progressiveEls=null,n=NA(n);var o=this.group,c=i.hostModel,d=this._data,h=this._SymbolCtor,f=n.disableAnimation,p=xu(i),g={disableAnimation:f},v=n.getSymbolPoint||function(_){return i.getItemLayout(_)};d||o.removeAll(),i.diff(d).add(function(_){var y=v(_);if(FA(i,y,_,n)){var w=new h(i,_,p,g);w.setPosition(y),i.setItemGraphicEl(_,w),o.add(w)}}).update(function(_,y){var w=d.getItemGraphicEl(y),x=v(_);if(FA(i,x,_,n)){var S=i.getItemVisual(_,"symbol")||"circle",D=w&&w.getSymbolType&&w.getSymbolType();if(!w||D&&D!==S)o.remove(w),(w=new h(i,_,p,g)).setPosition(x);else{w.updateData(i,_,p,g);var T={x:x[0],y:x[1]};f?w.attr(T):zt(w,T,c)}o.add(w),i.setItemGraphicEl(_,w)}else o.remove(w)}).remove(function(_){var y=d.getItemGraphicEl(_);y&&y.fadeOut(function(){o.remove(y)},c)}).execute(),this._getSymbolPoint=v,this._data=i},a.prototype.updateLayout=function(){var i=this,n=this._data;n&&n.eachItemGraphicEl(function(o,c){var d=i._getSymbolPoint(c);o.setPosition(d),o.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=xu(i),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(i,n,o){function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=NA(o);for(var d=i.start;d0?n=o[0]:o[1]<0&&(n=o[1]),n}(c,n),h=o.dim,f=c.dim,p=i.mapDimension(f),g=i.mapDimension(h),v="x"===f||"radius"===f?1:0,_=Se(a.dimensions,function(x){return i.mapDimension(x)}),y=!1,w=i.getCalculationInfo("stackResultDimension");return ed(i,_[0])&&(y=!0,_[0]=w),ed(i,_[1])&&(y=!0,_[1]=w),{dataDimsForPoint:_,valueStart:d,valueAxisDim:f,baseAxisDim:h,stacked:!!y,valueDim:p,baseDim:g,baseDataOffset:v,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function Xx(a,i,n,o){var c=NaN;a.stacked&&(c=n.get(n.getCalculationInfo("stackedOverDimension"),o)),isNaN(c)&&(c=a.valueStart);var d=a.baseDataOffset,h=[];return h[d]=n.get(a.baseDim,o),h[1-d]=c,i.dataToPoint(h)}var kf=Math.min,Pf=Math.max;function cg(a,i){return isNaN(a)||isNaN(i)}function BA(a,i,n,o,c,d,h,f,p){for(var g,v,_,y,w,x,S=n,D=0;D=c||S<0)break;if(cg(T,A)){if(p){S+=d;continue}break}if(S===n)a[d>0?"moveTo":"lineTo"](T,A),_=T,y=A;else{var E=T-g,k=A-v;if(E*E+k*k<.5){S+=d;continue}if(h>0){for(var L=S+d,O=i[2*L],B=i[2*L+1];O===T&&B===A&&D=o||cg(O,B))w=T,x=A;else{W=O-g,$=B-v;var ee=T-g,te=O-T,ie=A-v,me=B-A,ue=void 0,we=void 0;if("x"===f){var Pe=W>0?1:-1;w=T-Pe*(ue=Math.abs(ee))*h,x=A,X=T+Pe*(we=Math.abs(te))*h,K=A}else if("y"===f){var Le=$>0?1:-1;w=T,x=A-Le*(ue=Math.abs(ie))*h,X=T,K=A+Le*(we=Math.abs(me))*h}else ue=Math.sqrt(ee*ee+ie*ie),w=T-W*h*(1-(j=(we=Math.sqrt(te*te+me*me))/(we+ue))),x=A-$*h*(1-j),K=A+$*h*j,X=kf(X=T+W*h*j,Pf(O,T)),K=kf(K,Pf(B,A)),X=Pf(X,kf(O,T)),x=A-($=(K=Pf(K,kf(B,A)))-A)*ue/we,w=kf(w=T-(W=X-T)*ue/we,Pf(g,T)),x=kf(x,Pf(v,A)),X=T+(W=T-(w=Pf(w,kf(g,T))))*we/ue,K=A+($=A-(x=Pf(x,kf(v,A))))*we/ue}a.bezierCurveTo(_,y,w,x,T,A),_=X,y=K}else a.lineTo(T,A)}g=T,v=A,S+=d}return D}var AN=function a(){this.smooth=0,this.smoothConstraint=!0},bK=function(a){function i(n){var o=a.call(this,n)||this;return o.type="ec-polyline",o}return de(i,a),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new AN},i.prototype.buildPath=function(n,o){var c=o.points,d=0,h=c.length/2;if(o.connectNulls){for(;h>0&&cg(c[2*h-2],c[2*h-1]);h--);for(;d=0){var k=g?(x-p)*E+p:(w-f)*E+f;return g?[n,k]:[k,n]}f=w,p=x;break;case h.C:w=d[_++],x=d[_++],S=d[_++],D=d[_++],T=d[_++],A=d[_++];var L=g?mo(f,w,S,T,n,v):mo(p,x,D,A,n,v);if(L>0)for(var O=0;O=0)return k=g?Ti(p,x,D,A,B):Ti(f,w,S,T,B),g?[n,k]:[k,n]}f=T,p=A}}},i}(It),ur=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i}(AN),dg=function(a){function i(n){var o=a.call(this,n)||this;return o.type="ec-polygon",o}return de(i,a),i.prototype.getDefaultShape=function(){return new ur},i.prototype.buildPath=function(n,o){var c=o.points,d=o.stackedOnPoints,h=0,f=c.length/2,p=o.smoothMonotone;if(o.connectNulls){for(;f>0&&cg(c[2*f-2],c[2*f-1]);f--);for(;ho)return!1;return!0}(d,i))){var h=i.mapDimension(d.dim),f={};return G(d.getViewLabels(),function(p){var g=d.scale.getRawOrdinalNumber(p.tickValue);f[g]=1}),function(p){return!f.hasOwnProperty(i.get(h,p))}}}}(n,p,h),W=this._data;W&&W.eachItemGraphicEl(function(Qt,Pt){Qt.__temp&&(f.remove(Qt),W.setItemGraphicEl(Pt,null))}),B||x.remove(),f.add(T);var X,$=!y&&n.get("step");h&&h.getArea&&n.get("clip",!0)&&(null!=(X=h.getArea()).width?(X.x-=.1,X.y-=.1,X.width+=.2,X.height+=.2):X.r0&&(X.r0-=.5,X.r+=.5)),this._clipShapeForSymbol=X;var K=function zA(a,i,n){var o=a.getVisual("visualMeta");if(o&&o.length&&a.count()&&"cartesian2d"===i.type){for(var c,d,h=o.length-1;h>=0;h--){var f=a.getDimensionInfo(o[h].dimension);if("x"===(c=f&&f.coordDim)||"y"===c){d=o[h];break}}if(d){var p=i.getAxis(c),g=Se(d.stops,function(E){return{coord:p.toGlobalCoord(p.dataToCoord(E.value)),color:E.color}}),v=g.length,_=d.outerColors.slice();v&&g[0].coord>g[v-1].coord&&(g.reverse(),_.reverse());var y=function IN(a,i){var c,d,n=[],o=a.length;function h(v,_,y){var w=v.coord;return{coord:y,color:v0((y-w)/(_.coord-w),[v.color,_.color])}}for(var f=0;fi){d?n.push(h(d,p,i)):c&&n.push(h(c,p,0),h(c,p,i));break}c&&(n.push(h(c,p,0)),c=null),n.push(p),d=p}}return n}(g,"x"===c?n.getWidth():n.getHeight()),w=y.length;if(!w&&v)return g[0].coord<0?_[1]?_[1]:g[v-1].color:_[0]?_[0]:g[0].color;var S=y[0].coord-10,D=y[w-1].coord+10,T=D-S;if(T<.001)return"transparent";G(y,function(E){E.offset=(E.coord-S)/T}),y.push({offset:w?y[w-1].offset:.5,color:_[1]||"transparent"}),y.unshift({offset:w?y[0].offset:.5,color:_[0]||"transparent"});var A=new Mm(0,0,0,0,y,!0);return A[c]=S,A[c+"2"]=D,A}}}(p,h,c)||p.getVisual("style")[p.getVisual("drawType")];if(S&&w.type===h.type&&$===this._step){E&&!D?D=this._newPolygon(_,O):D&&!E&&(T.remove(D),D=this._polygon=null),y||this._initOrUpdateEndLabel(n,h,Gh(K));var ee=T.getClipPath();ee?Nn(ee,{shape:Rf(this,h,!1,n).shape},n):T.setClipPath(Rf(this,h,!0,n)),B&&x.updateData(p,{isIgnore:j,clipShape:X,disableAnimation:!0,getSymbolPoint:function(Qt){return[_[2*Qt],_[2*Qt+1]]}}),(!EN(this._stackedOnPoints,O)||!EN(this._points,_))&&(A?this._doUpdateAnimation(p,O,h,c,$,k,U):($&&(_=ad(_,h,$,U),O&&(O=ad(O,h,$,U))),S.setShape({points:_}),D&&D.setShape({points:_,stackedOnPoints:O})))}else B&&x.updateData(p,{isIgnore:j,clipShape:X,disableAnimation:!0,getSymbolPoint:function(Qt){return[_[2*Qt],_[2*Qt+1]]}}),A&&this._initSymbolLabelAnimation(p,h,X),$&&(_=ad(_,h,$,U),O&&(O=ad(O,h,$,U))),S=this._newPolyline(_),E?D=this._newPolygon(_,O):D&&(T.remove(D),D=this._polygon=null),y||this._initOrUpdateEndLabel(n,h,Gh(K)),T.setClipPath(Rf(this,h,!0,n));var ie=n.getModel("emphasis"),me=ie.get("focus"),ue=ie.get("blurScope"),we=ie.get("disabled");S.useStyle(Ze(g.getLineStyle(),{fill:"none",stroke:K,lineJoin:"bevel"})),ga(S,n,"lineStyle"),S.style.lineWidth>0&&"bolder"===n.get(["emphasis","lineStyle","width"])&&(S.getState("emphasis").style.lineWidth=+S.style.lineWidth+1),st(S).seriesIndex=n.seriesIndex,Oi(S,me,ue,we);var Le=Qx(n.get("smooth")),We=n.get("smoothMonotone");if(S.setShape({smooth:Le,smoothMonotone:We,connectNulls:U}),D){var Ke=p.getCalculationInfo("stackedOnSeries"),Qe=0;D.useStyle(Ze(v.getAreaStyle(),{fill:K,opacity:.7,lineJoin:"bevel",decal:p.getVisual("style").decal})),Ke&&(Qe=Qx(Ke.get("smooth"))),D.setShape({smooth:Le,stackedOnSmooth:Qe,smoothMonotone:We,connectNulls:U}),ga(D,n,"areaStyle"),st(D).seriesIndex=n.seriesIndex,Oi(D,me,ue,we)}var At=function(Qt){d._changePolyState(Qt)};p.eachItemGraphicEl(function(Qt){Qt&&(Qt.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=p,this._coordSys=h,this._stackedOnPoints=O,this._points=_,this._step=$,this._valueOrigin=k,n.get("triggerLineEvent")&&(this.packEventData(n,S),D&&this.packEventData(n,D))},i.prototype.packEventData=function(n,o){st(o).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},i.prototype.highlight=function(n,o,c,d){var h=n.getData(),f=Lc(h,d);if(this._changePolyState("emphasis"),!(f instanceof Array)&&null!=f&&f>=0){var p=h.getLayout("points"),g=h.getItemGraphicEl(f);if(!g){var v=p[2*f],_=p[2*f+1];if(isNaN(v)||isNaN(_)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,_))return;var y=n.get("zlevel")||0,w=n.get("z")||0;(g=new by(h,f)).x=v,g.y=_,g.setZ(y,w);var x=g.getSymbolPath().getTextContent();x&&(x.zlevel=y,x.z=w,x.z2=this._polyline.z2+1),g.__temp=!0,h.setItemGraphicEl(f,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Rn.prototype.highlight.call(this,n,o,c,d)},i.prototype.downplay=function(n,o,c,d){var h=n.getData(),f=Lc(h,d);if(this._changePolyState("normal"),null!=f&&f>=0){var p=h.getItemGraphicEl(f);p&&(p.__temp?(h.setItemGraphicEl(f,null),this.group.remove(p)):p.downplay())}else Rn.prototype.downplay.call(this,n,o,c,d)},i.prototype._changePolyState=function(n){var o=this._polygon;im(this._polyline,n),o&&im(o,n)},i.prototype._newPolyline=function(n){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new bK({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},i.prototype._newPolygon=function(n,o){var c=this._polygon;return c&&this._lineGroup.remove(c),c=new dg({shape:{points:n,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(c),this._polygon=c,c},i.prototype._initSymbolLabelAnimation=function(n,o,c){var d,h,f=o.getBaseAxis(),p=f.inverse;"cartesian2d"===o.type?(d=f.isHorizontal(),h=!1):"polar"===o.type&&(d="angle"===f.dim,h=!0);var g=n.hostModel,v=g.get("animationDuration");Xe(v)&&(v=v(null));var _=g.get("animationDelay")||0,y=Xe(_)?_(null):_;n.eachItemGraphicEl(function(w,x){var S=w;if(S){var T=void 0,A=void 0,E=void 0;if(c)if(h){var k=c,L=o.pointToCoord([w.x,w.y]);d?(T=k.startAngle,A=k.endAngle,E=-L[1]/180*Math.PI):(T=k.r0,A=k.r,E=L[0])}else d?(T=c.x,A=c.x+c.width,E=w.x):(T=c.y+c.height,A=c.y,E=w.y);var B=A===T?0:(E-T)/(A-T);p&&(B=1-B);var U=Xe(_)?_(x):v*B+y,j=S.getSymbolPath(),W=j.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:U}),W&&W.animateFrom({style:{opacity:0}},{duration:300,delay:U}),j.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(n,o,c){var d=n.getModel("endLabel");if(Sy(n)){var h=n.getData(),f=this._polyline,p=h.getLayout("points");if(!p)return f.removeTextContent(),void(this._endLabel=null);var g=this._endLabel;g||((g=this._endLabel=new Zt({z2:200})).ignoreClip=!0,f.setTextContent(this._endLabel),f.disableLabelAnimation=!0);var v=function PN(a){for(var i=a.length/2;i>0&&AG(a[2*i-2],a[2*i-1]);i--);return i-1}(p);v>=0&&(Oa(f,Sr(n,"endLabel"),{inheritColor:c,labelFetcher:n,labelDataIndex:v,defaultText:function(_,y,w){return null!=w?wG(h,w):yy(h,_)},enableTextSetter:!0},function hg(a,i){var n=i.getBaseAxis(),o=n.isHorizontal(),c=n.inverse,d=o?c?"right":"left":"center",h=o?"middle":c?"top":"bottom";return{normal:{align:a.get("align")||d,verticalAlign:a.get("verticalAlign")||h}}}(d,o)),f.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(n,o,c,d,h,f,p){var g=this._endLabel,v=this._polyline;if(g){n<1&&null==d.originalX&&(d.originalX=g.x,d.originalY=g.y);var _=c.getLayout("points"),y=c.hostModel,w=y.get("connectNulls"),x=f.get("precision"),S=f.get("distance")||0,D=p.getBaseAxis(),T=D.isHorizontal(),A=D.inverse,E=o.shape,k=A?T?E.x:E.y+E.height:T?E.x+E.width:E.y,L=(T?S:0)*(A?-1:1),O=(T?0:-S)*(A?-1:1),B=T?"x":"y",U=function ON(a,i,n){for(var d,h,o=a.length/2,c="x"===n?0:1,f=0,p=-1,g=0;g=i||d>=i&&h<=i){p=g;break}f=g,d=h}return{range:[f,p],t:(i-d)/(h-d)}}(_,k,B),j=U.range,W=j[1]-j[0],$=void 0;if(W>=1){if(W>1&&!w){var X=RN(_,j[0]);g.attr({x:X[0]+L,y:X[1]+O}),h&&($=y.getRawValue(j[0]))}else{(X=v.getPointOn(k,B))&&g.attr({x:X[0]+L,y:X[1]+O});var K=y.getRawValue(j[0]),ee=y.getRawValue(j[1]);h&&($=o2(c,x,K,ee,U.t))}d.lastFrameIndex=j[0]}else{var te=1===n||d.lastFrameIndex>0?j[0]:0;X=RN(_,te),h&&($=y.getRawValue(te)),g.attr({x:X[0]+L,y:X[1]+O})}if(h){var ie=Qi(g);"function"==typeof ie.setLabelText&&ie.setLabelText($)}}},i.prototype._doUpdateAnimation=function(n,o,c,d,h,f,p){var g=this._polyline,v=this._polygon,_=n.hostModel,y=function Kx(a,i,n,o,c,d,h,f){for(var p=function VA(a,i){var n=[];return i.diff(a).add(function(o){n.push({cmd:"+",idx:o})}).update(function(o,c){n.push({cmd:"=",idx:c,idx1:o})}).remove(function(o){n.push({cmd:"-",idx:o})}).execute(),n}(a,i),g=[],v=[],_=[],y=[],w=[],x=[],S=[],D=Zx(c,i,h),T=a.getLayout("points")||[],A=i.getLayout("points")||[],E=0;E3e3||v&&DG(x,D)>3e3)return g.stopAnimation(),g.setShape({points:S}),void(v&&(v.stopAnimation(),v.setShape({points:S,stackedOnPoints:D})));g.shape.__points=y.current,g.shape.points=w;var T={shape:{points:S}};y.current!==w&&(T.shape.__points=y.next),g.stopAnimation(),zt(g,T,_),v&&(v.setShape({points:w,stackedOnPoints:x}),v.stopAnimation(),zt(v,{shape:{stackedOnPoints:D}},_),g.shape.points!==v.shape.points&&(v.shape.points=g.shape.points));for(var A=[],E=y.status,k=0;ki&&(i=a[n]);return isFinite(i)?i:NaN},min:function(a){for(var i=1/0,n=0;n10&&"cartesian2d"===h.type&&d){var p=h.getBaseAxis(),g=h.getOtherAxis(p),v=p.getExtent(),_=o.getDevicePixelRatio(),y=Math.abs(v[1]-v[0])*(_||1),w=Math.round(f/y);if(isFinite(w)&&w>1){"lttb"===d&&i.setData(c.lttbDownSample(c.mapDimension(g.dim),1/w));var x=void 0;Ae(d)?x=xK[d]:Xe(d)&&(x=d),x&&i.setData(c.downSample(c.mapDimension(g.dim),1/w,x,EG))}}}}}var HA=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.getInitialData=function(n,o){return el(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(n,o,c){var d=this.coordinateSystem;if(d&&d.clampData){var h=d.clampData(n),f=d.dataToPoint(h);if(c)G(d.getAxes(),function(y,w){if("category"===y.type&&null!=o){var x=y.getTicksCoords(),S=h[w],D="x1"===o[w]||"y1"===o[w];if(D&&(S+=1),x.length<2)return;if(2===x.length)return void(f[w]=y.toGlobalCoord(y.getExtent()[D?1:0]));for(var T=void 0,A=void 0,E=1,k=0;kS){A=(L+T)/2;break}1===k&&(E=O-x[0].tickValue)}null==A&&(T?T&&(A=x[x.length-1].coord):A=x[0].coord),f[w]=y.toGlobalCoord(A)}});else{var p=this.getData(),g=p.getLayout("offset"),v=p.getLayout("size"),_=d.getBaseAxis().isHorizontal()?0:1;f[_]+=g+v/2}return f}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(Xn);Xn.registerClass(HA);const fg=HA;var SK=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.getInitialData=function(){return el(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>n&&(n=o),n},i.prototype.brushSelector=function(n,o,c){return c.rect(o.getItemLayout(n))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=Ho(fg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),i}(fg);const Dy=SK;var DK=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},TK=function(a){function i(n){var o=a.call(this,n)||this;return o.type="sausage",o}return de(i,a),i.prototype.getDefaultShape=function(){return new DK},i.prototype.buildPath=function(n,o){var c=o.cx,d=o.cy,h=Math.max(o.r0||0,0),f=Math.max(o.r,0),p=.5*(f-h),g=h+p,v=o.startAngle,_=o.endAngle,y=o.clockwise,w=2*Math.PI,x=y?_-vf)return!0;f=_}return!1},i.prototype._isOrderDifferentInView=function(n,o){for(var c=o.scale,d=c.getExtent(),h=Math.max(0,d[0]),f=Math.min(d[1],c.getOrdinalMeta().categories.length-1);h<=f;++h)if(n.ordinalNumbers[h]!==c.getRawOrdinalNumber(h))return!0},i.prototype._updateSortWithinSameData=function(n,o,c,d){if(this._isOrderChangedWithinSameData(n,o,c)){var h=this._dataSort(n,c,o);this._isOrderDifferentInView(h,c)&&(this._removeOnRenderedListener(d),d.dispatchAction({type:"changeAxisOrder",componentType:c.dim+"Axis",axisId:c.index,sortInfo:h}))}},i.prototype._dispatchInitSort=function(n,o,c){var d=o.baseAxis,h=this._dataSort(n,d,function(f){return n.get(n.mapDimension(o.otherAxis.dim),f)});c.dispatchAction({type:"changeAxisOrder",componentType:d.dim+"Axis",isInitSort:!0,axisId:d.index,sortInfo:h})},i.prototype.remove=function(n,o){this._clear(this._model),this._removeOnRenderedListener(o)},i.prototype.dispose=function(n,o){this._removeOnRenderedListener(o)},i.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(n){var o=this.group,c=this._data;n&&n.isAnimationEnabled()&&c&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],c.eachItemGraphicEl(function(d){lw(d,n,st(d).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Rn),VN={cartesian2d:function(a,i){var n=i.width<0?-1:1,o=i.height<0?-1:1;n<0&&(i.x+=i.width,i.width=-i.width),o<0&&(i.y+=i.height,i.height=-i.height);var c=a.x+a.width,d=a.y+a.height,h=NN(i.x,a.x),f=tC(i.x+i.width,c),p=NN(i.y,a.y),g=tC(i.y+i.height,d),v=fc?f:h,i.y=_&&p>d?g:p,i.width=v?0:f-h,i.height=_?0:g-p,n<0&&(i.x+=i.width,i.width=-i.width),o<0&&(i.y+=i.height,i.height=-i.height),v||_},polar:function(a,i){var n=i.r0<=i.r?1:-1;if(n<0){var o=i.r;i.r=i.r0,i.r0=o}var c=tC(i.r,a.r),d=NN(i.r0,a.r0);i.r=c,i.r0=d;var h=c-d<0;return n<0&&(o=i.r,i.r=i.r0,i.r0=o),h}},GA={cartesian2d:function(a,i,n,o,c,d,h,f,p){var g=new _t({shape:_e({},o),z2:1});return g.__dataIndex=n,g.name="item",d&&(g.shape[c?"height":"width"]=0),g},polar:function(a,i,n,o,c,d,h,f,p){var g=!c&&p?UA:jr,v=new g({shape:o,z2:1});v.name="item";var _=HN(c);if(v.calculateTextPosition=function IG(a,i){var n=(i=i||{}).isRoundCap;return function(o,c,d){var h=c.position;if(!h||h instanceof Array)return Op(o,c,d);var f=a(h),p=null!=c.distance?c.distance:5,g=this.shape,v=g.cx,_=g.cy,y=g.r,w=g.r0,x=(y+w)/2,S=g.startAngle,D=g.endAngle,T=(S+D)/2,A=n?Math.abs(y-w)/2:0,E=Math.cos,k=Math.sin,L=v+y*E(S),O=_+y*k(S),B="left",U="top";switch(f){case"startArc":L=v+(w-p)*E(T),O=_+(w-p)*k(T),B="center",U="top";break;case"insideStartArc":L=v+(w+p)*E(T),O=_+(w+p)*k(T),B="center",U="bottom";break;case"startAngle":L=v+x*E(S)+jA(S,p+A,!1),O=_+x*k(S)+eC(S,p+A,!1),B="right",U="middle";break;case"insideStartAngle":L=v+x*E(S)+jA(S,-p+A,!1),O=_+x*k(S)+eC(S,-p+A,!1),B="left",U="middle";break;case"middle":L=v+x*E(T),O=_+x*k(T),B="center",U="middle";break;case"endArc":L=v+(y+p)*E(T),O=_+(y+p)*k(T),B="center",U="bottom";break;case"insideEndArc":L=v+(y-p)*E(T),O=_+(y-p)*k(T),B="center",U="top";break;case"endAngle":L=v+x*E(D)+jA(D,p+A,!0),O=_+x*k(D)+eC(D,p+A,!0),B="left",U="middle";break;case"insideEndAngle":L=v+x*E(D)+jA(D,-p+A,!0),O=_+x*k(D)+eC(D,-p+A,!0),B="right",U="middle";break;default:return Op(o,c,d)}return(o=o||{}).x=L,o.y=O,o.align=B,o.verticalAlign=U,o}}(_,{isRoundCap:g===UA}),d){var w=c?"r":"endAngle",x={};v.shape[w]=c?o.r0:o.startAngle,x[w]=o[w],(f?zt:Nn)(v,{shape:x},d)}return v}};function BN(a,i,n,o,c,d,h,f){var p,g;d?(g={x:o.x,width:o.width},p={y:o.y,height:o.height}):(g={y:o.y,height:o.height},p={x:o.x,width:o.width}),f||(h?zt:Nn)(n,{shape:p},i,c,null),(h?zt:Nn)(n,{shape:g},i?a.baseAxis.model:null,c)}function zN(a,i){for(var n=0;n0?1:-1,h=o.height>0?1:-1;return{x:o.x+d*c/2,y:o.y+h*c/2,width:o.width-d*c,height:o.height-h*c}},polar:function(a,i,n){var o=a.getItemLayout(i);return{cx:o.cx,cy:o.cy,r0:o.r0,r:o.r,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}};function HN(a){return function(i){var n=i?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+n;default:return o}}}(a)}function WA(a,i,n,o,c,d,h,f){var p=i.getItemVisual(n,"style");if(f){if(!d.get("roundCap")){var v=a.shape;_e(v,Cu(o.getModel("itemStyle"),v,!0)),a.setShape(v)}}else{var g=o.get(["itemStyle","borderRadius"])||0;a.setShape("r",g)}a.useStyle(p);var y=o.getShallow("cursor");y&&a.attr("cursor",y);var w=f?h?c.r>=c.r0?"endArc":"startArc":c.endAngle>=c.startAngle?"endAngle":"startAngle":h?c.height>=0?"bottom":"top":c.width>=0?"right":"left",x=Sr(o);Oa(a,x,{labelFetcher:d,labelDataIndex:n,defaultText:yy(d.getData(),n),inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:w});var S=a.getTextContent();if(f&&S){var D=o.get(["label","position"]);a.textConfig.inside="middle"===D||null,function MK(a,i,n,o){if(on(o))a.setTextConfig({rotation:o});else if(ye(i))a.setTextConfig({rotation:0});else{var p,c=a.shape,d=c.clockwise?c.startAngle:c.endAngle,h=c.clockwise?c.endAngle:c.startAngle,f=(d+h)/2,g=n(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":p=f;break;case"startAngle":case"insideStartAngle":p=d;break;case"endAngle":case"insideEndAngle":p=h;break;default:return void a.setTextConfig({rotation:0})}var v=1.5*Math.PI-p;"middle"===g&&v>Math.PI/2&&v<1.5*Math.PI&&(v-=Math.PI),a.setTextConfig({rotation:v})}}(a,"outside"===D?w:D,HN(h),o.get(["label","rotate"]))}zr(S,x,d.getRawValue(n),function(A){return wG(i,A)});var T=o.getModel(["emphasis"]);Oi(a,T.get("focus"),T.get("blurScope"),T.get("disabled")),ga(a,o),function OG(a){return null!=a.startAngle&&null!=a.endAngle&&a.startAngle===a.endAngle}(c)&&(a.style.fill="none",a.style.stroke="none",G(a.states,function(A){A.style&&(A.style.fill=A.style.stroke="none")}))}var LG=function a(){},$A=function(a){function i(n){var o=a.call(this,n)||this;return o.type="largeBar",o}return de(i,a),i.prototype.getDefaultShape=function(){return new LG},i.prototype.buildPath=function(n,o){for(var c=o.points,d=this.baseDimIdx,h=1-this.baseDimIdx,f=[],p=[],g=this.barWidth,v=0;v=f[0]&&i<=f[0]+p[0]&&n>=f[1]&&n<=f[1]+p[1])return h[v]}return-1}(this,a.offsetX,a.offsetY);st(this).dataIndex=n>=0?n:null},30,!1);function My(a,i,n){if(ug(n,"cartesian2d")){var o=i,c=n.getArea();return{x:a?o.x:c.x,y:a?c.y:o.y,width:a?o.width:c.width,height:a?c.height:o.height}}return{cx:(c=n.getArea()).cx,cy:c.cy,r0:a?c.r0:i.r0,r:a?c.r:i.r,startAngle:a?i.startAngle:0,endAngle:a?i.endAngle:2*Math.PI}}const GN=AK;var nC=2*Math.PI,Ay=Math.PI/180;function WN(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function $N(a,i){var n=WN(a,i),o=a.get("center"),c=a.get("radius");ye(c)||(c=[0,c]);var v,_,d=Ie(n.width,i.getWidth()),h=Ie(n.height,i.getHeight()),f=Math.min(d,h),p=Ie(c[0],f/2),g=Ie(c[1],f/2),y=a.coordinateSystem;if(y){var w=y.dataToPoint(o);v=w[0]||0,_=w[1]||0}else ye(o)||(o=[o,o]),v=Ie(o[0],d)+n.x,_=Ie(o[1],h)+n.y;return{cx:v,cy:_,r0:p,r:g}}function YN(a,i,n){i.eachSeriesByType(a,function(o){var c=o.getData(),d=c.mapDimension("value"),h=WN(o,n),f=$N(o,n),p=f.cx,g=f.cy,v=f.r,_=f.r0,y=-o.get("startAngle")*Ay,w=o.get("minAngle")*Ay,x=0;c.each(d,function(W){!isNaN(W)&&x++});var S=c.getSum(d),D=Math.PI/(S||x)*2,T=o.get("clockwise"),A=o.get("roseType"),E=o.get("stillShowZeroSum"),k=c.getDataExtent(d);k[0]=0;var L=nC,O=0,B=y,U=T?1:-1;if(c.setLayout({viewRect:h,r:v}),c.each(d,function(W,$){var X;if(isNaN(W))c.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:p,cy:g,r0:_,r:A?NaN:v});else{(X="area"!==A?0===S&&E?D:W*D:nC/x)n?T:D,L=Math.abs(E.label.y-n);if(L>=k.maxY){var O=E.label.x-i-E.len2*c,B=o+E.len,U=Math.abs(O)a.unconstrainedWidth?null:w:null)}var S=o.getBoundingRect();d.width=S.width,d.height=S.height+((o.style.margin||0)+2.1),d.y-=(d.height-_)/2}}}function qN(a){return"center"===a.position}var jt=function(a){function i(n,o,c){var d=a.call(this)||this;d.z2=2;var h=new Zt;return d.setTextContent(h),d.updateData(n,o,c,!0),d}return de(i,a),i.prototype.updateData=function(n,o,c,d){var h=this,f=n.hostModel,p=n.getItemModel(o),g=p.getModel("emphasis"),v=n.getItemLayout(o),_=_e(Cu(p.getModel("itemStyle"),v,!0),v);if(isNaN(_.startAngle))h.setShape(_);else{if(d){h.setShape(_);var y=f.getShallow("animationType");f.ecModel.ssr?(Nn(h,{scaleX:0,scaleY:0},f,{dataIndex:o,isFrom:!0}),h.originX=_.cx,h.originY=_.cy):"scale"===y?(h.shape.r=v.r0,Nn(h,{shape:{r:v.r}},f,o)):null!=c?(h.setShape({startAngle:c,endAngle:c}),Nn(h,{shape:{startAngle:v.startAngle,endAngle:v.endAngle}},f,o)):(h.shape.endAngle=v.startAngle,zt(h,{shape:{endAngle:v.endAngle}},f,o))}else Ql(h),zt(h,{shape:_},f,o);h.useStyle(n.getItemVisual(o,"style")),ga(h,p);var w=(v.startAngle+v.endAngle)/2,x=f.get("selectedOffset"),S=Math.cos(w)*x,D=Math.sin(w)*x,T=p.getShallow("cursor");T&&h.attr("cursor",T),this._updateLabel(f,n,o),h.ensureState("emphasis").shape=_e({r:v.r+(g.get("scale")&&g.get("scaleSize")||0)},Cu(g.getModel("itemStyle"),v)),_e(h.ensureState("select"),{x:S,y:D,shape:Cu(p.getModel(["select","itemStyle"]),v)}),_e(h.ensureState("blur"),{shape:Cu(p.getModel(["blur","itemStyle"]),v)});var A=h.getTextGuideLine(),E=h.getTextContent();A&&_e(A.ensureState("select"),{x:S,y:D}),_e(E.ensureState("select"),{x:S,y:D}),Oi(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))}},i.prototype._updateLabel=function(n,o,c){var d=this,h=o.getItemModel(c),f=h.getModel("labelLine"),p=o.getItemVisual(c,"style"),g=p&&p.fill,v=p&&p.opacity;Oa(d,Sr(h),{labelFetcher:o.hostModel,labelDataIndex:c,inheritColor:g,defaultOpacity:v,defaultText:n.getFormattedLabel(c,"normal")||o.getName(c)});var _=d.getTextContent();d.setTextConfig({position:null,rotation:null}),_.attr({z2:10});var y=n.get(["label","position"]);if("outside"!==y&&"outer"!==y)d.removeTextGuideLine();else{var w=this.getTextGuideLine();w||(w=new io,this.setTextGuideLine(w)),Nx(this,Vx(h),{stroke:g,opacity:Ro(f.get(["lineStyle","opacity"]),v,1)})}},i}(jr),qA=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return de(i,a),i.prototype.render=function(n,o,c,d){var g,h=n.getData(),f=this._data,p=this.group;if(!f&&h.count()>0){for(var v=h.getItemLayout(0),_=1;isNaN(v&&v.startAngle)&&_0?"right":"left":We>0?"left":"right"}var ir=Math.PI,Yi=0,Wa=X.get("rotate");if(on(Wa))Yi=Wa*(ir/180);else if("center"===K)Yi=0;else if("radial"===Wa||!0===Wa)Yi=We<0?-Le+ir:-Le;else if("tangential"===Wa&&"outside"!==K&&"outer"!==K){var Rr=Math.atan2(We,Ke);Rr<0&&(Rr=2*ir+Rr),Ke>0&&(Rr=ir+Rr),Yi=Rr-ir}if(d=!!Yi,j.x=Qe,j.y=At,j.rotation=Yi,j.setStyle({verticalAlign:"middle"}),at){j.setStyle({align:Pt});var av=j.states.select;av&&(av.x+=j.x,av.y+=j.y)}else{var xl=j.getBoundingRect().clone();xl.applyTransform(j.getComputedTransform());var rv=(j.style.margin||0)+2.1;xl.y-=rv/2,xl.height+=rv,n.push({label:j,labelLine:W,position:K,len:we,len2:Pe,minTurnAngle:ue.get("minTurnAngle"),maxSurfaceAngle:ue.get("maxSurfaceAngle"),surfaceNormal:new St(We,Ke),linePoints:Qt,textAlign:Pt,labelDistance:ee,labelAlignTo:te,edgeDistance:ie,bleedMargin:me,rect:xl,unconstrainedWidth:xl.width,labelStyleWidth:j.style.width})}B.setTextConfig({inside:at})}}),!d&&a.get("avoidLabelOverlap")&&function HG(a,i,n,o,c,d,h,f){for(var p=[],g=[],v=Number.MAX_VALUE,_=-Number.MAX_VALUE,y=0;y=d.r0}},i.type="pie",i}(Rn);const kK=qA;function Ey(a,i,n){i=ye(i)&&{coordDimensions:i}||_e({encodeDefine:a.getEncode()},i);var o=a.getSource(),c=Qm(o,i).dimensions,d=new ya(c,a);return d.initData(o,n),d}var PK=function(){function a(i,n){this._getDataWithEncodedVisual=i,this._getRawData=n}return a.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},a.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},a.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},a.prototype.getItemVisual=function(i,n){return this._getDataWithEncodedVisual().getItemVisual(i,n)},a}();const rC=PK;var GG=qt(),RK=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new rC(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(n)},i.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return Ey(this,{coordDimensions:["value"],encodeDefaulter:ct(xT,this)})},i.prototype.getDataParams=function(n){var o=this.getData(),c=GG(o),d=c.seats;if(!d){var h=[];o.each(o.mapDimension("value"),function(p){h.push(p)}),d=c.seats=EH(h,o.hostModel.get("percentPrecision"))}var f=a.prototype.getDataParams.call(this,n);return f.percent=d[n]||0,f.$vars.push("percent"),f},i.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var o=n.labelLine,c=n.emphasis.labelLine;o.show=o.show&&n.label.show,c.show=c.show&&n.emphasis.label.show},i.type="series.pie",i.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(Xn);const OK=RK;var NK=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){return el(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},i.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},i.prototype.brushSelector=function(n,o,c){return c.point(o.getItemLayout(n))},i.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},i}(Xn);const WG=NK;var ZA=function a(){},Su=function(a){function i(n){var o=a.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(i,a),i.prototype.getDefaultShape=function(){return new ZA},i.prototype.reset=function(){this.notClear=!1,this._off=0},i.prototype.buildPath=function(n,o){var _,c=o.points,d=o.size,h=this.symbolProxy,f=h.shape,p=n.getContext?n.getContext():n,v=this.softClipShape;if(p&&d[0]<4)this._ctx=p;else{for(this._ctx=null,_=this._off;_=0;g--){var v=2*g,_=d[v]-f/2,y=d[v+1]-p/2;if(n>=_&&o>=y&&n<=_+f&&o<=y+p)return g}return-1},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o);return this.getBoundingRect().contain(n=c[0],o=c[1])?(this.hoverDataIdx=this.findDataIndex(n,o))>=0:(this.hoverDataIdx=-1,!1)},i.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var o=this.shape,c=o.points,d=o.size,h=d[0],f=d[1],p=1/0,g=1/0,v=-1/0,_=-1/0,y=0;y=0&&(g.dataIndex=_+(i.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const qG=YG;var yt=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData();this._updateSymbolDraw(d,n).updateData(d,{clipShape:this._getClipShape(n)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(n,o,c){var d=n.getData();this._updateSymbolDraw(d,n).incrementalPrepareUpdate(d),this._finished=!1},i.prototype.incrementalRender=function(n,o,c){this._symbolDraw.incrementalUpdate(n,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=n.end===o.getData().count()},i.prototype.updateTransform=function(n,o,c){var d=n.getData();if(this.group.dirty(),!this._finished||d.count()>1e4)return{update:!0};var h=Jx("").reset(n,o,c);h.progress&&h.progress({start:0,end:d.count(),count:d.count()},d),this._symbolDraw.updateLayout(d)},i.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},i.prototype._getClipShape=function(n){var o=n.coordinateSystem,c=o&&o.getArea&&o.getArea();return n.get("clip",!0)?c:null},i.prototype._updateSymbolDraw=function(n,o){var c=this._symbolDraw,h=o.pipelineContext.large;return(!c||h!==this._isLargeDraw)&&(c&&c.remove(),c=this._symbolDraw=h?new qG:new If,this._isLargeDraw=h,this.group.removeAll()),this.group.add(c.group),c},i.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Rn);const XA=yt;var ZG=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(en);const XG=ZG;var Iy=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yi).models[0]},i.type="cartesian2dAxis",i}(en);Di(Iy,ry);var hc={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Of=mt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hc),aC=mt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hc);const Du={category:Of,value:aC,time:mt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},aC),log:Ze({logBase:10},aC)};var JG={value:1,category:1,time:1,log:1};function pg(a,i,n,o){G(JG,function(c,d){var h=mt(mt({},Du[d],!0),o,!0),f=function(p){function g(){var v=null!==p&&p.apply(this,arguments)||this;return v.type=i+"Axis."+d,v}return de(g,p),g.prototype.mergeDefaultAndTheme=function(v,_){var y=v_(this),w=y?$h(v):{};mt(v,_.getTheme().get(d+"Axis")),mt(v,this.getDefaultOption()),v.type=KA(v),y&&cs(v,w,y)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=XM.createByAxisModel(this))},g.prototype.getCategories=function(v){var _=this.option;if("category"===_.type)return v?_.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+d,g.defaultOption=h,g}(n);a.registerComponentModel(f)}),a.registerSubTypeDefaulter(i+"Axis",KA)}function KA(a){return a.type||(a.data?"category":"value")}var e6=function(){function a(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return a.prototype.getAxis=function(i){return this._axes[i]},a.prototype.getAxes=function(){return Se(this._dimList,function(i){return this._axes[i]},this)},a.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),_n(this.getAxes(),function(n){return n.scale.type===i})},a.prototype.addAxis=function(i){var n=i.dim;this._axes[n]=i,this._dimList.push(n)},a}(),mg=["x","y"];function Lf(a){return"interval"===a.type||"time"===a.type}var co=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=mg,n}return de(i,a),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,o=this.getAxis("y").scale;if(Lf(n)&&Lf(o)){var c=n.getExtent(),d=o.getExtent(),h=this.dataToPoint([c[0],d[0]]),f=this.dataToPoint([c[1],d[1]]),p=c[1]-c[0],g=d[1]-d[0];if(p&&g){var v=(f[0]-h[0])/p,_=(f[1]-h[1])/g,x=this._transform=[v,0,0,_,h[0]-c[0]*v,h[1]-d[0]*_];this._invTransform=dh([],x)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(n){var o=this.getAxis("x"),c=this.getAxis("y");return o.contain(o.toLocalCoord(n[0]))&&c.contain(c.toLocalCoord(n[1]))},i.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},i.prototype.containZone=function(n,o){var c=this.dataToPoint(n),d=this.dataToPoint(o),h=this.getArea(),f=new ce(c[0],c[1],d[0]-c[0],d[1]-c[1]);return h.intersect(f)},i.prototype.dataToPoint=function(n,o,c){c=c||[];var d=n[0],h=n[1];if(this._transform&&null!=d&&isFinite(d)&&null!=h&&isFinite(h))return ca(c,n,this._transform);var f=this.getAxis("x"),p=this.getAxis("y");return c[0]=f.toGlobalCoord(f.dataToCoord(d,o)),c[1]=p.toGlobalCoord(p.dataToCoord(h,o)),c},i.prototype.clampData=function(n,o){var c=this.getAxis("x").scale,d=this.getAxis("y").scale,h=c.getExtent(),f=d.getExtent(),p=c.parse(n[0]),g=d.parse(n[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(h[0],h[1]),p),Math.max(h[0],h[1])),o[1]=Math.min(Math.max(Math.min(f[0],f[1]),g),Math.max(f[0],f[1])),o},i.prototype.pointToData=function(n,o){var c=[];if(this._invTransform)return ca(c,n,this._invTransform);var d=this.getAxis("x"),h=this.getAxis("y");return c[0]=d.coordToData(d.toLocalCoord(n[0]),o),c[1]=h.coordToData(h.toLocalCoord(n[1]),o),c},i.prototype.getOtherAxis=function(n){return this.getAxis("x"===n.dim?"y":"x")},i.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),c=Math.min(n[0],n[1]),d=Math.min(o[0],o[1]),h=Math.max(n[0],n[1])-c,f=Math.max(o[0],o[1])-d;return new ce(c,d,h,f)},i}(e6);const pi=co;var qo=function(a){function i(n,o,c,d,h){var f=a.call(this,n,o,c)||this;return f.index=0,f.type=d||"value",f.position=h||"bottom",f}return de(i,a),i.prototype.isHorizontal=function(){var n=this.position;return"top"===n||"bottom"===n},i.prototype.getGlobalExtent=function(n){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),n&&o[0]>o[1]&&o.reverse(),o},i.prototype.pointToData=function(n,o){return this.coordToData(this.toLocalCoord(n["x"===this.dim?0:1]),o)},i.prototype.setCategorySortInfo=function(n){if("category"!==this.type)return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},i}(il);const hr=qo;function QA(a,i,n){n=n||{};var o=a.coordinateSystem,c=i.axis,d={},h=c.getAxesOnZeroOf()[0],f=c.position,p=h?"onZero":f,g=c.dim,v=o.getRect(),_=[v.x,v.x+v.width,v.y,v.y+v.height],y={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,x="x"===g?[_[2]-w,_[3]+w]:[_[0]-w,_[1]+w];if(h){var S=h.toGlobalCoord(h.dataToCoord(0));x[y.onZero]=Math.max(Math.min(S,x[1]),x[0])}d.position=["y"===g?x[y[p]]:_[0],"x"===g?x[y[p]]:_[3]],d.rotation=Math.PI/2*("x"===g?0:1),d.labelDirection=d.tickDirection=d.nameDirection={top:-1,bottom:1,left:-1,right:1}[f],d.labelOffset=h?x[y[f]]-x[y.onZero]:0,i.get(["axisTick","inside"])&&(d.tickDirection=-d.tickDirection),it(n.labelInside,i.get(["axisLabel","inside"]))&&(d.labelDirection=-d.labelDirection);var T=i.get(["axisLabel","rotate"]);return d.labelRotate="top"===p?-T:T,d.z2=1,d}function KN(a){return"cartesian2d"===a.get("coordinateSystem")}function QN(a){var i={xAxisModel:null,yAxisModel:null};return G(i,function(n,o){var c=o.replace(/Model$/,""),d=a.getReferringComponents(c,yi).models[0];i[o]=d}),i}var JA=Math.log;function JN(a,i,n){var o=cc.prototype,c=o.getTicks.call(n),d=o.getTicks.call(n,!0),h=c.length-1,f=o.getInterval.call(n),p=zF(a,i),g=p.extent,v=p.fixMin,_=p.fixMax;if("log"===a.type){var y=JA(a.base);g=[JA(g[0])/y,JA(g[1])/y]}a.setExtent(g[0],g[1]),a.calcNiceExtent({splitNumber:h,fixMin:v,fixMax:_});var w=o.getExtent.call(a);v&&(g[0]=w[0]),_&&(g[1]=w[1]);var x=o.getInterval.call(a),S=g[0],D=g[1];if(v&&_)x=(D-S)/h;else if(v)for(D=g[0]+x*h;Dg[0]&&isFinite(S)&&isFinite(g[0]);)x=Sx(x),S=g[1]-x*h;else{a.getTicks().length-1>h&&(x=Sx(x));var A=x*h;(S=ti((D=Math.ceil(g[1]/x)*x)-A))<0&&g[0]>=0?(S=0,D=ti(A)):D>0&&g[1]<=0&&(D=0,S=-ti(A))}var E=(c[0].value-d[0].value)/f,k=(c[h].value-d[h].value)/f;o.setExtent.call(a,S+x*E,D+x*k),o.setInterval.call(a,x),(E||k)&&o.setNiceExtent.call(a,S+x,D-x)}var t6=function(){function a(i,n,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mg,this._initCartesian(i,n,o),this.model=i}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(i,n){var o=this._axesMap;function c(h){var f,p=Wt(h),g=p.length;if(g){for(var v=[],_=g-1;_>=0;_--){var w=h[+p[_]],x=w.model,S=w.scale;Re(S)&&x.get("alignTicks")&&null==x.get("interval")?v.push(w):(xf(S,x),Re(S)&&(f=w))}v.length&&(f||xf((f=v.pop()).scale,f.model),G(v,function(D){JN(D.scale,D.model,f.scale)}))}}this._updateScale(i,this.model),c(o.x),c(o.y);var d={};G(o.x,function(h){n6(o,"y",h,d)}),G(o.y,function(h){n6(o,"x",h,d)}),this.resize(this.model,n)},a.prototype.resize=function(i,n,o){var c=i.getBoxLayoutParams(),d=!o&&i.get("containLabel"),h=Dr(c,{width:n.getWidth(),height:n.getHeight()});this._rect=h;var f=this._axesList;function p(){G(f,function(g){var v=g.isHorizontal(),_=v?[0,h.width]:[0,h.height],y=g.inverse?1:0;g.setExtent(_[y],_[1-y]),function oC(a,i){var n=a.getExtent(),o=n[0]+n[1];a.toGlobalCoord="x"===a.dim?function(c){return c+i}:function(c){return o-c+i},a.toLocalCoord="x"===a.dim?function(c){return c-i}:function(c){return o-c+i}}(g,v?h.x:h.y)})}p(),d&&(G(f,function(g){if(!g.model.get(["axisLabel","inside"])){var v=function HF(a){var n=a.scale;if(a.model.get(["axisLabel","show"])&&!n.isBlank()){var o,c,d=n.getExtent();c=n instanceof ey?n.count():(o=n.getTicks()).length;var p,h=a.getLabelModel(),f=id(a),g=1;c>40&&(g=Math.ceil(c/40));for(var v=0;v0&&o>0||n<0&&o<0)}(a)}const sC=t6;var qr=Math.PI,od=function(){function a(i,n){this.group=new rt,this.opt=n,this.axisModel=i,Ze(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new rt({x:n.position[0],y:n.position[1],rotation:n.rotation});o.updateTransform(),this._transformGroup=o}return a.prototype.hasBuilder=function(i){return!!r6[i]},a.prototype.add=function(i){r6[i](this.opt,this.axisModel,this.group,this._transformGroup)},a.prototype.getGroup=function(){return this.group},a.innerTextLayout=function(i,n,o){var d,h,c=XR(n-i);return R0(c)?(h=o>0?"top":"bottom",d="center"):R0(c-qr)?(h=o>0?"bottom":"top",d="center"):(h="middle",d=c>0&&c0?"right":"left":o>0?"left":"right"),{rotation:c,textAlign:d,textVerticalAlign:h}},a.makeAxisEventDataBase=function(i){var n={componentType:i.mainType,componentIndex:i.componentIndex};return n[i.mainType+"Index"]=i.componentIndex,n},a.isLabelSilent=function(i){var n=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||n&&n.show)},a}(),r6={axisLine:function(a,i,n,o){var c=i.get(["axisLine","show"]);if("auto"===c&&a.handleAutoShown&&(c=a.handleAutoShown("axisLine")),c){var d=i.axis.getExtent(),h=o.transform,f=[d[0],0],p=[d[1],0],g=f[0]>p[0];h&&(ca(f,f,h),ca(p,p,h));var v=_e({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),_=new Gr({shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:v,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1});R_(_.shape,_.style.lineWidth),_.anid="line",n.add(_);var y=i.get(["axisLine","symbol"]);if(null!=y){var w=i.get(["axisLine","symbolSize"]);Ae(y)&&(y=[y,y]),(Ae(w)||on(w))&&(w=[w,w]);var x=pf(i.get(["axisLine","symbolOffset"])||0,w),S=w[0],D=w[1];G([{rotate:a.rotation+Math.PI/2,offset:x[0],r:0},{rotate:a.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-p[0])*(f[0]-p[0])+(f[1]-p[1])*(f[1]-p[1]))}],function(T,A){if("none"!==y[A]&&null!=y[A]){var E=ji(y[A],-S/2,-D/2,S,D,v.stroke,!0),k=T.r+T.offset,L=g?p:f;E.attr({rotation:T.rotate,x:L[0]+k*Math.cos(a.rotation),y:L[1]-k*Math.sin(a.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(a,i,n,o){var c=function a6(a,i,n,o){var c=n.axis,d=n.getModel("axisTick"),h=d.get("show");if("auto"===h&&o.handleAutoShown&&(h=o.handleAutoShown("axisTick")),h&&!c.scale.isBlank()){for(var f=d.getModel("lineStyle"),p=o.tickDirection*d.get("length"),v=nV(c.getTicksCoords(),i.transform,p,Ze(f.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),_=0;_g[1]?-1:1,_=["start"===d?g[0]-v*p:"end"===d?g[1]+v*p:(g[0]+g[1])/2,eE(d)?a.labelOffset+h*p:0],w=i.get("nameRotate");null!=w&&(w=w*qr/180),eE(d)?y=od.innerTextLayout(a.rotation,w??a.rotation,h):(y=function VK(a,i,n,o){var d,h,c=XR(n-a),f=o[0]>o[1],p="start"===i&&!f||"start"!==i&&f;return R0(c-qr/2)?(h=p?"bottom":"top",d="center"):R0(c-1.5*qr)?(h=p?"top":"bottom",d="center"):(h="middle",d=c<1.5*qr&&c>qr/2?p?"left":"right":p?"right":"left"),{rotation:c,textAlign:d,textVerticalAlign:h}}(a.rotation,d,w||0,g),null!=(x=a.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(y.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),D=i.get("nameTruncate",!0)||{},T=D.ellipsis,A=it(a.nameTruncateMaxWidth,D.maxWidth,x),E=new Zt({x:_[0],y:_[1],rotation:y.rotation,silent:od.isLabelSilent(i),style:Zn(f,{text:c,font:S,overflow:"truncate",width:A,ellipsis:T,fill:f.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:f.get("align")||y.textAlign,verticalAlign:f.get("verticalAlign")||y.textVerticalAlign}),z2:1});if(nf({el:E,componentModel:i,itemName:c}),E.__fullText=c,E.anid="name",i.get("triggerEvent")){var k=od.makeAxisEventDataBase(i);k.targetType="axisName",k.name=c,st(E).eventData=k}o.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function ws(a){a&&(a.ignore=!0)}function tV(a,i){var n=a&&a.getBoundingRect().clone(),o=i&&i.getBoundingRect().clone();if(n&&o){var c=Tp([]);return Rd(c,c,-a.rotation),n.applyTransform(Ll([],c,a.getLocalTransform())),o.applyTransform(Ll([],c,i.getLocalTransform())),n.intersect(o)}}function eE(a){return"middle"===a||"center"===a}function nV(a,i,n,o,c){for(var d=[],h=[],f=[],p=0;p=0||a===i}function Ln(a){var i=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return i&&i.axesInfo[Tu(a)]}function nE(a){return!!a.get(["handle","show"])}function Tu(a){return a.type+"||"+a.id}var fc={},lC=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){this.axisPointerClass&&function sd(a){var i=Ln(a);if(i){var n=i.axisPointerModel,o=i.axis.scale,c=n.option,d=n.get("status"),h=n.get("value");null!=h&&(h=o.parse(h));var f=nE(n);null==d&&(c.status=f?"show":"hide");var p=o.getExtent().slice();p[0]>p[1]&&p.reverse(),(null==h||h>p[1])&&(h=p[1]),h0&&!x.min?x.min=0:null!=x.min&&x.min<0&&!x.max&&(x.max=0);var S=p;null!=x.color&&(S=Ze({color:x.color},p));var D=mt(nt(x),{boundaryGap:n,splitNumber:o,scale:c,axisLine:d,axisTick:h,axisLabel:f,name:x.text,showName:g,nameLocation:"end",nameGap:_,nameTextStyle:S,triggerEvent:y},!1);Ae(v)?D.name=v.replace("{value}",D.name??""):Xe(v)&&(D.name=v(D.name,D));var A=new Un(D,null,this.ecModel);return Di(A,ry.prototype),A.mainType="radar",A.componentIndex=this.componentIndex,A},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:"#bbb"}},Mu.axisLine),axisLabel:Au(Mu.axisLabel,!1),axisTick:Au(Mu.axisTick,!1),splitLine:Au(Mu.splitLine,!0),splitArea:Au(Mu.splitArea,!0),indicator:[]},i}(en);const y6=_6;var aE=["axisLine","axisTickLabel","axisName"],cV=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},i.prototype._buildAxes=function(n){var o=n.coordinateSystem;G(Se(o.getIndicatorAxes(),function(h){var f=h.model.get("showName")?h.name:"";return new sl(h.model,{axisName:f,position:[o.cx,o.cy],rotation:h.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(h){G(aE,h.add,h),this.group.add(h.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(n){var o=n.coordinateSystem,c=o.getIndicatorAxes();if(c.length){var d=n.get("shape"),h=n.getModel("splitLine"),f=n.getModel("splitArea"),p=h.getModel("lineStyle"),g=f.getModel("areaStyle"),v=h.get("show"),_=f.get("show"),y=p.get("color"),w=g.get("color"),x=ye(y)?y:[y],S=ye(w)?w:[w],D=[],T=[];if("circle"===d)for(var E=c[0].getTicksCoords(),k=o.cx,L=o.cy,O=0;O3?1.4:h>1?1.2:1.1;uV(this,"zoom","zoomOnMouseWheel",n,{scale:d>0?g:1/g,originX:f,originY:p,isAvailableBehavior:null})}if(c){var _=Math.abs(d);uV(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:(d>0?1:-1)*(_>3?.4:_>1?.15:.05),originX:f,originY:p,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(n){dC(this._zr,"globalPan")||uV(this,"zoom",null,n,{scale:n.pinchScale>1?1.1:1/1.1,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})},i}(Za);function uV(a,i,n,o,c){a.pointerChecker&&a.pointerChecker(o,c.originX,c.originY)&&(Ps(o.event),cE(a,i,n,o,c))}function cE(a,i,n,o,c){c.isAvailableBehavior=he(gg,null,n,o),a.trigger(i,c)}function gg(a,i,n){var o=n[a];return!a||o&&(!Ae(o)||i.event[o+"Key"])}const vg=T6;function To(a,i,n){var o=a.target;o.x+=i,o.y+=n,o.dirty()}function dE(a,i,n,o){var c=a.target,d=a.zoomLimit,h=a.zoom=a.zoom||1;if(h*=i,d){var f=d.min||0;h=Math.max(Math.min(d.max||1/0,h),f)}var g=h/a.zoom;a.zoom=h,c.x-=(n-c.x)*(g-1),c.y-=(o-c.y)*(g-1),c.scaleX*=g,c.scaleY*=g,c.dirty()}var hV={axisPointer:1,tooltip:1,brush:1};function hC(a,i,n){var o=i.getComponentByElement(a.topTarget),c=o&&o.coordinateSystem;return o&&o!==n&&!hV.hasOwnProperty(o.mainType)&&c&&c.model!==n}function mi(a){Ae(a)&&(a=(new DOMParser).parseFromString(a,"text/xml"));var n=a;for(9===n.nodeType&&(n=n.firstChild);"svg"!==n.nodeName.toLowerCase()||1!==n.nodeType;)n=n.nextSibling;return n}var fC,uE={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},xn=Wt(uE),pC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},hE=Wt(pC),M6=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(i,n){n=n||{};var o=mi(i);this._defsUsePending=[];var c=new rt;this._root=c;var v,_,d=[],h=o.getAttribute("viewBox")||"",f=parseFloat(o.getAttribute("width")||n.width),p=parseFloat(o.getAttribute("height")||n.height);isNaN(f)&&(f=null),isNaN(p)&&(p=null),Cs(o,c,null,!0,!1);for(var g=o.firstChild;g;)this._parseNode(g,c,d,null,!1,!1),g=g.nextSibling;if(function pE(a,i){for(var n=0;n=4&&(v={x:parseFloat(y[0]||0),y:parseFloat(y[1]||0),width:parseFloat(y[2]),height:parseFloat(y[3])})}if(v&&null!=f&&null!=p&&(_=mV(v,{x:0,y:0,width:f,height:p}),!n.ignoreViewBox)){var w=c;(c=new rt).add(w),w.scaleX=w.scaleY=_.scale,w.x=_.x,w.y=_.y}return!n.ignoreRootClip&&null!=f&&null!=p&&c.setClipPath(new _t({shape:{x:0,y:0,width:f,height:p}})),{root:c,width:f,height:p,viewBoxRect:v,viewBoxTransform:_,named:d}},a.prototype._parseNode=function(i,n,o,c,d,h){var p,f=i.nodeName.toLowerCase(),g=c;if("defs"===f&&(d=!0),"text"===f&&(h=!0),"defs"===f||"switch"===f)p=n;else{if(!d){var v=fC[f];if(v&&Ue(fC,f)){p=v.call(this,i,n);var _=i.getAttribute("name");if(_){var y={name:_,namedFrom:null,svgNodeTagLower:f,el:p};o.push(y),"g"===f&&(g=y)}else c&&o.push({name:c.name,namedFrom:c,svgNodeTagLower:f,el:p});n.add(p)}}var w=mC[f];if(w&&Ue(mC,f)){var x=w.call(this,i),S=i.getAttribute("id");S&&(this._defs[S]=x)}}if(p&&p.isGroup)for(var D=i.firstChild;D;)1===D.nodeType?this._parseNode(D,p,o,g,d,h):3===D.nodeType&&h&&this._parseText(D,p),D=D.nextSibling},a.prototype._parseText=function(i,n){var o=new e_({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),function fV(a,i){var n=i.__selfStyle;if(n){var o=n.textBaseline,c=o;o&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?c="top":"after-edge"===o||"text-after-edge"===o?c="bottom":("central"===o||"mathematical"===o)&&(c="middle"):c="alphabetic",a.style.textBaseline=c}var d=i.__inheritedStyle;if(d){var h=d.textAlign,f=h;h&&("middle"===h&&(f="center"),a.style.textAlign=f)}}(o,n);var c=o.style,d=c.fontSize;d&&d<9&&(c.fontSize=9,o.scaleX*=d/9,o.scaleY*=d/9);var h=(c.fontSize||c.fontFamily)&&[c.fontStyle,c.fontWeight,(c.fontSize||12)+"px",c.fontFamily||"sans-serif"].join(" ");c.font=h;var f=o.getBoundingRect();return this._textX+=f.width,n.add(o),o},a.internalField=void(fC={g:function(i,n){var o=new rt;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o},rect:function(i,n){var o=new _t;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({x:parseFloat(i.getAttribute("x")||"0"),y:parseFloat(i.getAttribute("y")||"0"),width:parseFloat(i.getAttribute("width")||"0"),height:parseFloat(i.getAttribute("height")||"0")}),o.silent=!0,o},circle:function(i,n){var o=new ps;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(i.getAttribute("cx")||"0"),cy:parseFloat(i.getAttribute("cy")||"0"),r:parseFloat(i.getAttribute("r")||"0")}),o.silent=!0,o},line:function(i,n){var o=new Gr;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({x1:parseFloat(i.getAttribute("x1")||"0"),y1:parseFloat(i.getAttribute("y1")||"0"),x2:parseFloat(i.getAttribute("x2")||"0"),y2:parseFloat(i.getAttribute("y2")||"0")}),o.silent=!0,o},ellipse:function(i,n){var o=new tM;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(i.getAttribute("cx")||"0"),cy:parseFloat(i.getAttribute("cy")||"0"),rx:parseFloat(i.getAttribute("rx")||"0"),ry:parseFloat(i.getAttribute("ry")||"0")}),o.silent=!0,o},polygon:function(i,n){var c,o=i.getAttribute("points");o&&(c=A6(o));var d=new no({shape:{points:c||[]},silent:!0});return Zo(n,d),Cs(i,d,this._defsUsePending,!1,!1),d},polyline:function(i,n){var c,o=i.getAttribute("points");o&&(c=A6(o));var d=new io({shape:{points:c||[]},silent:!0});return Zo(n,d),Cs(i,d,this._defsUsePending,!1,!1),d},image:function(i,n){var o=new Jr;return Zo(n,o),Cs(i,o,this._defsUsePending,!1,!1),o.setStyle({image:i.getAttribute("xlink:href")||i.getAttribute("href"),x:+i.getAttribute("x"),y:+i.getAttribute("y"),width:+i.getAttribute("width"),height:+i.getAttribute("height")}),o.silent=!0,o},text:function(i,n){var o=i.getAttribute("x")||"0",c=i.getAttribute("y")||"0",d=i.getAttribute("dx")||"0",h=i.getAttribute("dy")||"0";this._textX=parseFloat(o)+parseFloat(d),this._textY=parseFloat(c)+parseFloat(h);var f=new rt;return Zo(n,f),Cs(i,f,this._defsUsePending,!1,!0),f},tspan:function(i,n){var o=i.getAttribute("x"),c=i.getAttribute("y");null!=o&&(this._textX=parseFloat(o)),null!=c&&(this._textY=parseFloat(c));var d=i.getAttribute("dx")||"0",h=i.getAttribute("dy")||"0",f=new rt;return Zo(n,f),Cs(i,f,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),f},path:function(i,n){var c=aL(i.getAttribute("d")||"");return Zo(n,c),Cs(i,c,this._defsUsePending,!1,!1),c.silent=!0,c}}),a}(),mC={lineargradient:function(a){var i=parseInt(a.getAttribute("x1")||"0",10),n=parseInt(a.getAttribute("y1")||"0",10),o=parseInt(a.getAttribute("x2")||"10",10),c=parseInt(a.getAttribute("y2")||"0",10),d=new Mm(i,n,o,c);return _g(a,d),gC(a,d),d},radialgradient:function(a){var i=parseInt(a.getAttribute("cx")||"0",10),n=parseInt(a.getAttribute("cy")||"0",10),o=parseInt(a.getAttribute("r")||"0",10),c=new oM(i,n,o);return _g(a,c),gC(a,c),c}};function _g(a,i){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(i.global=!0)}function gC(a,i){for(var n=a.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var c,o=n.getAttribute("offset");c=o&&o.indexOf("%")>0?parseInt(o,10)/100:o?parseFloat(o):0;var d={};gE(n,d,d);var h=d.stopColor||n.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:c,color:h})}n=n.nextSibling}}function Zo(a,i){a&&a.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),Ze(i.__inheritedStyle,a.__inheritedStyle))}function A6(a){for(var i=Mo(a),n=[],o=0;o0;d-=2){var f=o[d-1],p=Mo(o[d]);switch(c=c||[1,0,0,1,0,0],f){case"translate":ar(c,c,[parseFloat(p[0]),parseFloat(p[1]||"0")]);break;case"scale":Sv(c,c,[parseFloat(p[0]),parseFloat(p[1]||p[0])]);break;case"rotate":Rd(c,c,-parseFloat(p[0])*mE);break;case"skewX":Ll(c,[1,0,Math.tan(parseFloat(p[0])*mE),1,0,0],c);break;case"skewY":Ll(c,[1,Math.tan(parseFloat(p[0])*mE),0,1,0,0],c);break;case"matrix":c[0]=parseFloat(p[0]),c[1]=parseFloat(p[1]),c[2]=parseFloat(p[2]),c[3]=parseFloat(p[3]),c[4]=parseFloat(p[4]),c[5]=parseFloat(p[5])}}i.setLocalTransform(c)}}(a,i),gE(a,h,f),o||function P6(a,i,n){for(var o=0;o0,D={api:o,geo:p,mapOrGeoModel:i,data:f,isVisualEncodedByVisualMap:S,isGeo:h,transformInfoRaw:y};"geoJSON"===p.resourceType?this._buildGeoJSON(D):"geoSVG"===p.resourceType&&this._buildSVG(D),this._updateController(i,n,o),this._updateMapSelectHandler(i,g,o,c)},a.prototype._buildGeoJSON=function(i){var n=this._regionsGroupByName=Me(),o=Me(),c=this._regionsGroup,d=i.transformInfoRaw,h=i.mapOrGeoModel,f=i.data,p=i.geo.projection,g=p&&p.stream;function v(w,x){return x&&(w=x(w)),w&&[w[0]*d.scaleX+d.x,w[1]*d.scaleY+d.y]}function _(w){for(var x=[],S=!g&&p&&p.project,D=0;D=0)&&(y=c);var w=h?{normal:{align:"center",verticalAlign:"middle"}}:null;Oa(i,Sr(o),{labelFetcher:y,labelDataIndex:_,defaultText:n},w);var x=i.getTextContent();if(x&&(bE(x).ignore=x.ignore,i.textConfig&&h)){var S=i.getBoundingRect().clone();i.textConfig.layoutRect=S,i.textConfig.position=[(h[0]-S.x)/S.width*100+"%",(h[1]-S.y)/S.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function bV(a,i,n,o,c,d){a.data?a.data.setItemGraphicEl(d,i):st(i).eventData={componentType:"geo",componentIndex:c.componentIndex,geoIndex:c.componentIndex,name:n,region:o&&o.option||{}}}function wV(a,i,n,o,c){a.data||nf({el:i,componentModel:c,itemName:n,itemTooltipOption:o.get("tooltip")})}function xV(a,i,n,o,c){i.highDownSilentOnTouch=!!c.get("selectedMode");var d=o.getModel("emphasis"),h=d.get("focus");return Oi(i,h,d.get("blurScope"),d.get("disabled")),a.isGeo&&function s8(a,i,n){var o=st(a);o.componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=n}(i,c,n),h}function wE(a,i,n){var c,o=[];function d(){c=[]}function h(){c.length&&(o.push(c),c=[])}var f=i({polygonStart:d,polygonEnd:h,lineStart:d,lineEnd:h,point:function(p,g){isFinite(p)&&isFinite(g)&&c.push([p,g])},sphere:function(){}});return!n&&f.polygonStart(),G(a,function(p){f.lineStart();for(var g=0;g-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),c},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},i}(Xn);const Z6=q6;function yC(a){var i={};a.eachSeriesByType("map",function(n){var o=n.getHostGeoModel(),c=o?"o"+o.id:"i"+n.getMapType();(i[c]=i[c]||[]).push(n)}),G(i,function(n,o){for(var c=function X6(a,i){var n={};return G(a,function(o){o.each(o.mapDimension("value"),function(c,d){var h="ec-"+o.getName(d);n[h]=n[h]||[],isNaN(c)||n[h].push(c)})}),a[0].map(a[0].mapDimension("value"),function(o,c){for(var d="ec-"+a[0].getName(c),h=0,f=1/0,p=-1/0,g=n[d].length,v=0;v1?(k.width=E,k.height=E/D):(k.height=E,k.width=E*D),k.y=A[1]-k.height/2,k.x=A[0]-k.width/2;else{var L=a.getBoxLayoutParams();L.aspect=D,k=Dr(L,{width:x,height:S})}this.setViewRect(k.x,k.y,k.width,k.height),this.setCenter(a.get("center"),i),this.setZoom(a.get("zoom"))}var i7=function(){function a(){this.dimensions=SV}return a.prototype.create=function(i,n){var o=[];function c(h){return{nameProperty:h.get("nameProperty"),aspectScale:h.get("aspectScale"),projection:h.get("projection")}}i.eachComponent("geo",function(h,f){var p=h.get("map"),g=new e7(p+f,p,_e({nameMap:h.get("nameMap")},c(h)));g.zoomLimit=h.get("scaleLimit"),o.push(g),h.coordinateSystem=g,g.model=h,g.resize=t7,g.resize(h,n)}),i.eachSeries(function(h){if("geo"===h.get("coordinateSystem")){var p=h.get("geoIndex")||0;h.coordinateSystem=o[p]}});var d={};return i.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var f=h.getMapType();d[f]=d[f]||[],d[f].push(h)}}),G(d,function(h,f){var p=Se(h,function(v){return v.get("nameMap")}),g=new e7(f,f,_e({nameMap:Xb(p)},c(h[0])));g.zoomLimit=it.apply(null,Se(h,function(v){return v.get("scaleLimit")})),o.push(g),g.resize=t7,g.resize(h[0],n),G(h,function(v){v.coordinateSystem=g,function n7(a,i){G(i.get("geoCoord"),function(n,o){a.addGeoCoord(o,n)})}(g,v)})}),o},a.prototype.getFilledRegions=function(i,n,o,c){for(var d=(i||[]).slice(),h=Me(),f=0;f=0;){var d=i[n];d.hierNode.prelim+=o,d.hierNode.modifier+=o,o+=d.hierNode.shift+(c+=d.hierNode.change)}}(a);var d=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;c?(a.hierNode.prelim=c.hierNode.prelim+i(a,c),a.hierNode.modifier=a.hierNode.prelim-d):a.hierNode.prelim=d}else c&&(a.hierNode.prelim=c.hierNode.prelim+i(a,c));a.parentNode.hierNode.defaultAncestor=function eQ(a,i,n,o){if(i){for(var c=a,d=a,h=d.parentNode.children[0],f=i,p=c.hierNode.modifier,g=d.hierNode.modifier,v=h.hierNode.modifier,_=f.hierNode.modifier;f=AV(f),d=xC(d),f&&d;){c=AV(c),h=xC(h),c.hierNode.ancestor=a;var y=f.hierNode.prelim+_-d.hierNode.prelim-g+o(f,d);y>0&&(u7(d7(f,a,n),a,y),g+=y,p+=y),_+=f.hierNode.modifier,g+=d.hierNode.modifier,p+=c.hierNode.modifier,v+=h.hierNode.modifier}f&&!AV(c)&&(c.hierNode.thread=f,c.hierNode.modifier+=_-p),d&&!xC(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=g-v,n=a)}return n}(a,c,a.parentNode.hierNode.defaultAncestor||o[0],i)}function QK(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function l7(a){return arguments.length?a:SE}function wC(a,i){return a-=Math.PI/2,{x:i*Math.cos(a),y:i*Math.sin(a)}}function AV(a){var i=a.children;return i.length&&a.isExpand?i[i.length-1]:a.hierNode.thread}function xC(a){var i=a.children;return i.length&&a.isExpand?i[0]:a.hierNode.thread}function d7(a,i,n){return a.hierNode.ancestor.parentNode===i.parentNode?a.hierNode.ancestor:n}function u7(a,i,n){var o=n/(i.hierNode.i-a.hierNode.i);i.hierNode.change-=o,i.hierNode.shift+=n,i.hierNode.modifier+=n,i.hierNode.prelim+=n,a.hierNode.change+=o}function SE(a,i){return a.parentNode===i.parentNode?1:2}var Ny=function a(){this.parentPoint=[],this.childPoints=[]},tQ=function(a){function i(n){return a.call(this,n)||this}return de(i,a),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Ny},i.prototype.buildPath=function(n,o){var c=o.childPoints,d=c.length,h=o.parentPoint,f=c[0],p=c[d-1];if(1===d)return n.moveTo(h[0],h[1]),void n.lineTo(f[0],f[1]);var g=o.orient,v="TB"===g||"BT"===g?0:1,_=1-v,y=Ie(o.forkPosition,1),w=[];w[v]=h[v],w[_]=h[_]+(p[_]-h[_])*y,n.moveTo(h[0],h[1]),n.lineTo(w[0],w[1]),n.moveTo(f[0],f[1]),w[v]=f[v],n.lineTo(w[0],w[1]),w[v]=p[v],n.lineTo(w[0],w[1]),n.lineTo(p[0],p[1]);for(var x=1;xA.x)||(k-=Math.PI);var B=L?"left":"right",U=f.getModel("label"),j=U.get("rotate"),W=j*(Math.PI/180),$=D.getTextContent();$&&(D.setTextConfig({position:U.get("position")||B,rotation:null==j?-k:W,origin:"center"}),$.setStyle("verticalAlign","middle"))}var X=f.get(["emphasis","focus"]),K="relative"===X?wn(h.getAncestorsIndices(),h.getDescendantIndices()):"ancestor"===X?h.getAncestorsIndices():"descendant"===X?h.getDescendantIndices():null;K&&(st(n).focus=K),function iQ(a,i,n,o,c,d,h,f){var p=i.getModel(),g=a.get("edgeShape"),v=a.get("layout"),_=a.getOrient(),y=a.get(["lineStyle","curveness"]),w=a.get("edgeForkPosition"),x=p.getModel("lineStyle").getLineStyle(),S=o.__edge;if("curve"===g)i.parentNode&&i.parentNode!==n&&(S||(S=o.__edge=new ef({shape:IV(v,_,y,c,c)})),zt(S,{shape:IV(v,_,y,d,h)},a));else if("polyline"===g&&"orthogonal"===v&&i!==n&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var D=i.children,T=[],A=0;An&&(n=c.height)}this.height=n+1},a.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var n=0,o=this.children,c=o.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,n)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(i,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,n)},a.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,n=0;n=0){var o=n.getData().tree.root,c=a.targetNode;if(Ae(c)&&(c=o.getNodeById(c)),c&&o.contains(c))return{node:c};var d=a.targetNodeId;if(null!=d&&(c=o.getNodeById(d)))return{node:c}}}function y7(a){for(var i=[];a;)(a=a.parentNode)&&i.push(a);return i.reverse()}function RV(a,i){return Ct(y7(a),i)>=0}function Vf(a,i){for(var n=[];a;){var o=a.dataIndex;n.push({name:a.name,dataIndex:o,value:i.getRawValue(o)}),a=a.parentNode}return n.reverse(),n}var hQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return de(i,a),i.prototype.getInitialData=function(n){var o={name:n.name,children:n.data},d=new Un(n.leaves||{},this,this.ecModel),h=PV.createTree(o,this,function f(_){_.wrapMethod("getItemModel",function(y,w){var x=h.getNodeByDataIndex(w);return x&&x.children.length&&x.isExpand||(y.parentModel=d),y})}),p=0;h.eachNode("preorder",function(_){_.depth>p&&(p=_.depth)});var v=n.expandAndCollapse&&n.initialTreeDepth>=0?n.initialTreeDepth:p;return h.root.eachNode("preorder",function(_){var y=_.hostTree.data.getRawDataItem(_.dataIndex);_.isExpand=y&&null!=y.collapsed?!y.collapsed:_.depth<=v}),h.data},i.prototype.getOrient=function(){var n=this.get("orient");return"horizontal"===n?n="LR":"vertical"===n&&(n="TB"),n},i.prototype.setZoom=function(n){this.option.zoom=n},i.prototype.setCenter=function(n){this.option.center=n},i.prototype.formatTooltip=function(n,o,c){for(var d=this.getData().tree,h=d.root.children[0],f=d.getNodeByDataIndex(n),p=f.getValue(),g=f.name;f&&f!==h;)g=f.parentNode.name+"."+g,f=f.parentNode;return Hr("nameValue",{name:g,value:p,noValue:isNaN(p)||null==p})},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=Vf(c,this),o.collapsed=!c.isExpand,o},i.type="series.tree",i.layoutMode="box",i.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},i}(Xn);const b7=hQ;function ld(a,i){for(var o,n=[a];o=n.pop();)if(i(o),o.isExpand){var c=o.children;if(c.length)for(var d=c.length-1;d>=0;d--)n.push(c[d])}}function w7(a,i){a.eachSeriesByType("tree",function(n){!function x7(a,i){var n=function c7(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(a,i);a.layoutInfo=n;var o=a.get("layout"),c=0,d=0,h=null;"radial"===o?(c=2*Math.PI,d=Math.min(n.height,n.width)/2,h=l7(function(E,k){return(E.parentNode===k.parentNode?1:2)/E.depth})):(c=n.width,d=n.height,h=l7());var f=a.getData().tree.root,p=f.children[0];if(p){(function XK(a){var i=a;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o,c,n=[i];o=n.pop();)if(c=o.children,o.isExpand&&c.length)for(var h=c.length-1;h>=0;h--){var f=c[h];f.hierNode={defaultAncestor:null,ancestor:f,prelim:0,modifier:0,change:0,shift:0,i:h,thread:null},n.push(f)}})(f),function ME(a,i,n){for(var d,o=[a],c=[];d=o.pop();)if(c.push(d),d.isExpand){var h=d.children;if(h.length)for(var f=0;fv.getLayout().x&&(v=E),E.depth>_.depth&&(_=E)});var y=g===v?1:h(g,v)/2,w=y-g.getLayout().x,x=0,S=0,D=0,T=0;if("radial"===o)x=c/(v.getLayout().x+y+w),S=d/(_.depth-1||1),ld(p,function(E){var k=wC(D=(E.getLayout().x+w)*x,T=(E.depth-1)*S);E.setLayout({x:k.x,y:k.y,rawX:D,rawY:T},!0)});else{var A=a.getOrient();"RL"===A||"LR"===A?(S=d/(v.getLayout().x+y+w),x=c/(_.depth-1||1),ld(p,function(E){T=(E.getLayout().x+w)*S,E.setLayout({x:D="LR"===A?(E.depth-1)*x:c-(E.depth-1)*x,y:T},!0)})):("TB"===A||"BT"===A)&&(x=c/(v.getLayout().x+y+w),S=d/(_.depth-1||1),ld(p,function(E){D=(E.getLayout().x+w)*x,E.setLayout({x:D,y:T="TB"===A?(E.depth-1)*S:d-(E.depth-1)*S},!0)}))}}}(n,i)})}function C7(a){a.eachSeriesByType("tree",function(i){var n=i.getData();n.tree.eachNode(function(c){var h=c.getModel().getModel("itemStyle").getItemStyle();_e(n.ensureUniqueItemVisual(c.dataIndex,"style"),h)})})}var EE=["treemapZoomToNode","treemapRender","treemapMove"];function SC(a){var i=a.getData(),o={};i.tree.eachNode(function(c){for(var d=c;d&&d.depth>1;)d=d.parentNode;var h=Aw(a.ecModel,d.name||d.dataIndex+"",o);c.setVisual("decal",h)})}var LV=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.preventUsingHoverLayer=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){var c={name:n.name,children:n.data};DC(c);var d=n.levels||[],h=this.designatedVisualItemStyle={},f=new Un({itemStyle:h},this,o);d=n.levels=function IE(a,i){var n=Mn(i.get("color")),o=Mn(i.get(["aria","decal","decals"]));if(n){var c,d;G(a=a||[],function(f){var p=new Un(f),g=p.get("color"),v=p.get("decal");(p.get(["itemStyle","color"])||g&&"none"!==g)&&(c=!0),(p.get(["itemStyle","decal"])||v&&"none"!==v)&&(d=!0)});var h=a[0]||(a[0]={});return c||(h.color=n.slice()),!d&&o&&(h.decal=o.slice()),a}}(d,o);var p=Se(d||[],function(_){return new Un(_,f,o)},this),g=PV.createTree(c,this,function v(_){_.wrapMethod("getItemModel",function(y,w){var x=g.getNodeByDataIndex(w);return y.parentModel=(x?p[x.depth]:null)||f,y})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(n,o,c){var d=this.getData(),h=this.getRawValue(n);return Hr("nameValue",{name:d.getName(n),value:h})},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=Vf(c,this),o.treePathInfo=o.treeAncestors,o},i.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},_e(this.layoutInfo,n)},i.prototype.mapIdToIndex=function(n){var o=this._idIndexMap;o||(o=this._idIndexMap=Me(),this._idIndexMapCount=0);var c=o.get(n);return null==c&&o.set(n,c=this._idIndexMapCount++),c},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},i.prototype.enableAriaDecal=function(){SC(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(Xn);function DC(a){var i=0;G(a.children,function(o){DC(o);var c=o.value;ye(c)&&(c=c[0]),i+=c});var n=a.value;ye(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=i),n<0&&(n=0),ye(a.value)?a.value[0]=n:a.value=n}const FV=LV;var T7=function(){function a(i){this.group=new rt,i.add(this.group)}return a.prototype.render=function(i,n,o,c){var d=i.getModel("breadcrumb"),h=this.group;if(h.removeAll(),d.get("show")&&o){var f=d.getModel("itemStyle"),p=d.getModel("emphasis"),g=f.getModel("textStyle"),v=p.getModel(["itemStyle","textStyle"]),_={pos:{left:d.get("left"),right:d.get("right"),top:d.get("top"),bottom:d.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:d.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,_,g),this._renderContent(i,_,f,p,g,v,c),g_(h,_.pos,_.box)}},a.prototype._prepare=function(i,n,o){for(var c=i;c;c=c.parentNode){var d=xr(c.getModel().get("name"),""),h=o.getTextRect(d),f=Math.max(h.width+16,n.emptyItemWidth);n.totalWidth+=f+8,n.renderList.push({node:c,text:d,width:f})}},a.prototype._renderContent=function(i,n,o,c,d,h,f){for(var p=0,g=n.emptyItemWidth,v=i.get(["breadcrumb","height"]),_=function tu(a,i,n){var o=i.width,c=i.height,d=Ie(a.left,o),h=Ie(a.top,c),f=Ie(a.right,o),p=Ie(a.bottom,c);return(isNaN(d)||isNaN(parseFloat(a.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(a.right)))&&(f=o),(isNaN(h)||isNaN(parseFloat(a.top)))&&(h=0),(isNaN(p)||isNaN(parseFloat(a.bottom)))&&(p=c),n=jh(n||0),{width:Math.max(f-d-n[1]-n[3],0),height:Math.max(p-h-n[0]-n[2],0)}}(n.pos,n.box),y=n.totalWidth,w=n.renderList,x=c.getModel("itemStyle").getItemStyle(),S=w.length-1;S>=0;S--){var D=w[S],T=D.node,A=D.width,E=D.text;y>_.width&&(y-=A-g,A=g,E=null);var k=new no({shape:{points:M7(p,0,A,v,S===w.length-1,0===S)},style:Ze(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new Zt({style:Zn(d,{text:E})}),textConfig:{position:"inside"},z2:1e4*Jp,onclick:ct(f,T)});k.disableLabelAnimation=!0,k.getTextContent().ensureState("emphasis").style=Zn(h,{text:E}),k.ensureState("emphasis").style=x,Oi(k,c.get("focus"),c.get("blurScope"),c.get("disabled")),this.group.add(k),A7(k,i,T),p+=A+8}},a.prototype.remove=function(){this.group.removeAll()},a}();function M7(a,i,n,o,c,d){var h=[[c?a:a-5,i],[a+n,i],[a+n,i+o],[c?a:a-5,i+o]];return!d&&h.splice(2,0,[a+n+5,i+o/2]),!c&&h.push([a,i+o/2]),h}function A7(a,i,n){st(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.seriesIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Vf(n,i)}}const VV=T7;var PE=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(i,n,o,c,d){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:n,duration:o,delay:c,easing:d}),!0)},a.prototype.finished=function(i){return this._finishedCallback=i,this},a.prototype.start=function(){for(var i=this,n=this._storage.length,o=function(){--n<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},c=0,d=this._storage.length;c3||Math.abs(n.dy)>3)){var o=this.seriesModel.getData().tree.root;if(!o)return;var c=o.getLayout();if(!c)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:c.x+n.dx,y:c.y+n.dy,width:c.width,height:c.height}})}},i.prototype._onZoom=function(n){var o=n.originX,c=n.originY;if("animating"!==this._state){var d=this.seriesModel.getData().tree.root;if(!d)return;var h=d.getLayout();if(!h)return;var f=new ce(h.x,h.y,h.width,h.height),p=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];ar(g,g,[-(o-=p.x),-(c-=p.y)]),Sv(g,g,[n.scale,n.scale]),ar(g,g,[o,c]),f.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:f.x,y:f.y,width:f.width,height:f.height}})}},i.prototype._initEvents=function(n){var o=this;n.on("click",function(c){if("ready"===o._state){var d=o.seriesModel.get("nodeClick",!0);if(d){var h=o.findTarget(c.offsetX,c.offsetY);if(h){var f=h.node;if(f.getLayout().isLeafRoot)o._rootToNode(h);else if("zoomToNode"===d)o._zoomToNode(h);else if("link"===d){var p=f.hostTree.data.getItemModel(f.dataIndex),g=p.get("link",!0),v=p.get("target",!0)||"blank";g&&Cw(g,v)}}}}},this)},i.prototype._renderBreadcrumb=function(n,o,c){var d=this;c||(c=null!=n.get("leafDepth",!0)?{node:n.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2))||(c={node:n.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new VV(this.group))).render(n,o,c.node,function(h){"animating"!==d._state&&(RV(n.getViewRoot(),h)?d._rootToNode({node:h}):d._zoomToNode({node:h}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},i.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},i.prototype.findTarget=function(n,o){var c;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(h){var f=this._storage.background[h.getRawIndex()];if(f){var p=f.transformCoordToLocal(n,o),g=f.shape;if(!(g.x<=p[0]&&p[0]<=g.x+g.width&&g.y<=p[1]&&p[1]<=g.y+g.height))return!1;c={node:h,offsetX:p[0],offsetY:p[1]}}},this),c},i.type="treemap",i}(Rn);const k7=fQ;var Vy=G,P7=Ee,By=-1,FE=function(){function a(i){var n=i.mappingMethod,o=i.type,c=this.option=nt(i);this.type=o,this.mappingMethod=n,this._normalizeData=L7[n];var d=a.visualHandlers[o];this.applyVisual=d.applyVisual,this.getColorMapper=d.getColorMapper,this._normalizedToVisual=d._normalizedToVisual[n],"piecewise"===n?(EC(c),function R7(a){var i=a.pieceList;a.hasSpecialVisual=!1,G(i,function(n,o){n.originIndex=o,null!=n.visual&&(a.hasSpecialVisual=!0)})}(c)):"category"===n?c.categories?function GV(a){var i=a.categories,n=a.categoryMap={},o=a.visual;if(Vy(i,function(h,f){n[h]=f}),!ye(o)){var c=[];Ee(o)?Vy(o,function(h,f){c[n[f]??By]=h}):c[By]=o,o=cd(a,c)}for(var d=i.length-1;d>=0;d--)null==o[d]&&(delete n[i[d]],i.pop())}(c):EC(c,!0):(be("linear"!==n||c.dataExtent),EC(c))}return a.prototype.mapValueToVisual=function(i){var n=this._normalizeData(i);return this._normalizedToVisual(n,i)},a.prototype.getNormalizer=function(){return he(this._normalizeData,this)},a.listVisualTypes=function(){return Wt(a.visualHandlers)},a.isValidType=function(i){return a.visualHandlers.hasOwnProperty(i)},a.eachVisual=function(i,n,o){Ee(i)?G(i,n,o):n.call(o,i)},a.mapVisual=function(i,n,o){var c,d=ye(i)?[]:Ee(i)?{}:(c=!0,null);return a.eachVisual(i,function(h,f){var p=n.call(o,h,f);c?d=p:d[f]=p}),d},a.retrieveVisuals=function(i){var o,n={};return i&&Vy(a.visualHandlers,function(c,d){i.hasOwnProperty(d)&&(n[d]=i[d],o=!0)}),o?n:null},a.prepareVisualTypes=function(i){if(ye(i))i=i.slice();else{if(!P7(i))return[];var n=[];Vy(i,function(o,c){n.push(c)}),i=n}return i.sort(function(o,c){return"color"===c&&"color"!==o&&0===o.indexOf("color")?1:-1}),i},a.dependsOn=function(i,n){return"color"===n?!(!i||0!==i.indexOf(n)):i===n},a.findPieceIndex=function(i,n,o){for(var c,d=1/0,h=0,f=n.length;hg[1]&&(g[1]=p);var v=i.get("colorMappingBy"),_={type:h.name,dataExtent:g,visual:h.range};"color"!==_.type||"index"!==v&&"id"!==v?_.mappingMethod="linear":(_.mappingMethod="category",_.loop=!0);var y=new Zr(_);return F7(y).drColorMappingBy=v,y}}}(0,c,d,0,p,w);G(w,function(S,D){if(S.depth>=n.length||S===n[S.depth]){var T=function _Q(a,i,n,o,c,d){var h=_e({},i);if(c){var f=c.type,p="color"===f&&F7(c).drColorMappingBy,g="index"===p?o:"id"===p?d.mapIdToIndex(n.getId()):n.getValue(a.get("visualDimension"));h[f]=c.mapValueToVisual(g)}return h}(c,p,S,D,x,o);N7(S,T,n,o)}})}else y=B7(p),g.fill=y}}function B7(a){var i=$V(a,"color");if(i){var n=$V(a,"colorAlpha"),o=$V(a,"colorSaturation");return o&&(i=Iv(i,null,null,o)),n&&(i=qn(i,n)),i}}function $V(a,i){var n=a[i];if(null!=n&&"none"!==n)return n}function YV(a,i){var n=a.get(i);return ye(n)&&n.length?{name:i,range:n}:null}var dd=Math.max,OC=Math.min,NE=it,LC=G,z7=["itemStyle","borderWidth"],yQ=["itemStyle","gapWidth"],bQ=["upperLabel","show"],wQ=["upperLabel","height"];const xQ={seriesType:"treemap",reset:function(a,i,n,o){var c=n.getWidth(),d=n.getHeight(),h=a.option,f=Dr(a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),p=h.size||[],g=Ie(NE(f.width,p[0]),c),v=Ie(NE(f.height,p[1]),d),_=o&&o.type,w=CC(o,["treemapZoomToNode","treemapRootToNode"],a),x="treemapRender"===_||"treemapMove"===_?o.rootRect:null,S=a.getViewRoot(),D=y7(S);if("treemapMove"!==_){var T="treemapZoomToNode"===_?function Uy(a,i,n,o,c){var d=(i||{}).node,h=[o,c];if(!d||d===n)return h;for(var f,p=o*c,g=p*a.option.zoomToNodeRatio;f=d.parentNode;){for(var v=0,_=f.children,y=0,w=_.length;yZR&&(g=ZR),d=f}gf[1]&&(f[1]=g)})):f=[NaN,NaN],{sum:o,dataExtent:f}}(i,h,f);if(0===g.sum)return a.viewChildren=[];if(g.sum=function qV(a,i,n,o,c){if(!o)return n;for(var d=a.get("visibleMin"),h=c.length,f=h,p=h-1;p>=0;p--){var g=c["asc"===o?h-p-1:p].getValue();g/n*io&&(o=h));var p=a.area*a.area,g=i*i*n;return p?dd(g*o/p,p/(g*c)):1/0}function BE(a,i,n,o,c){var d=i===n.width?0:1,h=1-d,f=["x","y"],p=["width","height"],g=n[f[d]],v=i?a.area/i:0;(c||v>n[p[h]])&&(v=n[p[h]]);for(var _=0,y=a.length;_o&&(o=i);var d=o%2?o+2:o+3;c=[];for(var h=0;h0&&(L[0]=-L[0],L[1]=-L[1]);var B=k[0]<0?-1:1;if("start"!==d.__position&&"end"!==d.__position){var U=-Math.atan2(k[1],k[0]);_[0].8?"left":y[0]<-.8?"right":"center",S=y[1]>.8?"top":y[1]<-.8?"bottom":"middle";break;case"start":d.x=-y[0]*T+v[0],d.y=-y[1]*A+v[1],x=y[0]>.8?"right":y[0]<-.8?"left":"center",S=y[1]>.8?"bottom":y[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":d.x=T*B+v[0],d.y=v[1]+j,x=k[0]<0?"right":"left",d.originX=-T*B,d.originY=-j;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":d.x=O[0],d.y=O[1]+j,x="center",d.originY=-j;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":d.x=-T*B+_[0],d.y=_[1]+j,x=k[0]>=0?"right":"left",d.originX=T*B,d.originY=-j}d.scaleX=d.scaleY=h,d.setStyle({verticalAlign:d.__verticalAlign||S,align:d.__align||x})}}}function w(W,$){var X=W.__specifiedRotation;if(null==X){var K=p.tangentAt($);W.attr("rotation",(1===$?-1:1)*Math.PI/2-Math.atan2(K[1],K[0]))}else W.attr("rotation",X)}},i}(rt);const nI=nW;var iW=function(){function a(i){this.group=new rt,this._LineCtor=i||nI}return a.prototype.updateData=function(i){var n=this;this._progressiveEls=null;var o=this,c=o.group,d=o._lineData;o._lineData=i,d||c.removeAll();var h=r3(i);i.diff(d).add(function(f){n._doAdd(i,f,h)}).update(function(f,p){n._doUpdate(d,i,p,f,h)}).remove(function(f){c.remove(d.getItemGraphicEl(f))}).execute()},a.prototype.updateLayout=function(){var i=this._lineData;i&&i.eachItemGraphicEl(function(n,o){n.updateLayout(i,o)},this)},a.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=r3(i),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(i,n){function o(f){!f.isGroup&&!function n3(a){return a.animators&&a.animators.length>0}(f)&&(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var c=i.start;c=0?f+=g:f-=g:x>=0?f-=g:f+=g}return f}function sI(a,i){var n=[],o=u0,c=[[],[],[]],d=[[],[]],h=[];i/=2,a.eachEdge(function(f,p){var g=f.getLayout(),v=f.getVisual("fromSymbol"),_=f.getVisual("toSymbol");g.__original||(g.__original=[Lo(g[0]),Lo(g[1])],g[2]&&g.__original.push(Lo(g[2])));var y=g.__original;if(null!=g[2]){if(Or(c[0],y[0]),Or(c[1],y[2]),Or(c[2],y[1]),v&&"none"!==v){var w=Gy(f.node1),x=o3(c,y[0],w*i);o(c[0][0],c[1][0],c[2][0],x,n),c[0][0]=n[3],c[1][0]=n[4],o(c[0][1],c[1][1],c[2][1],x,n),c[0][1]=n[3],c[1][1]=n[4]}_&&"none"!==_&&(w=Gy(f.node2),x=o3(c,y[1],w*i),o(c[0][0],c[1][0],c[2][0],x,n),c[1][0]=n[1],c[2][0]=n[2],o(c[0][1],c[1][1],c[2][1],x,n),c[1][1]=n[1],c[2][1]=n[2]),Or(g[0],c[0]),Or(g[1],c[2]),Or(g[2],c[1])}else Or(d[0],y[0]),Or(d[1],y[1]),Yt(h,d[1],d[0]),ve(h,h),v&&"none"!==v&&(w=Gy(f.node1),e0(d[0],d[0],h,w*i)),_&&"none"!==_&&(w=Gy(f.node2),e0(d[1],d[1],h,-w*i)),Or(g[0],d[0]),Or(g[1],d[1])})}function nr(a){return"view"===a.type}var tt=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){var c=new If,d=new zC,h=this.group;this._controller=new vg(o.getZr()),this._controllerHost={target:h},h.add(c.group),h.add(d.group),this._symbolDraw=c,this._lineDraw=d,this._firstRender=!0},i.prototype.render=function(n,o,c){var d=this,h=n.coordinateSystem;this._model=n;var f=this._symbolDraw,p=this._lineDraw,g=this.group;if(nr(h)){var v={x:h.x,y:h.y,scaleX:h.scaleX,scaleY:h.scaleY};this._firstRender?g.attr(v):zt(g,v,n)}sI(n.getGraph(),bg(n));var _=n.getData();f.updateData(_);var y=n.getEdgeData();p.updateData(y),this._updateNodeAndLinkScale(),this._updateController(n,o,c),clearTimeout(this._layoutTimeout);var w=n.forceLayout,x=n.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,x);var S=n.get("layout");_.graph.eachNode(function(E){var k=E.dataIndex,L=E.getGraphicEl(),O=E.getModel();if(L){L.off("drag").off("dragend");var B=O.get("draggable");B&&L.on("drag",function(j){switch(S){case"force":w.warmUp(),!d._layouting&&d._startForceLayoutIteration(w,x),w.setFixed(k),_.setItemLayout(k,[L.x,L.y]);break;case"circular":_.setItemLayout(k,[L.x,L.y]),E.setLayout({fixed:!0},!0),XE(n,"symbolSize",E,[j.offsetX,j.offsetY]),d.updateLayout(n);break;default:_.setItemLayout(k,[L.x,L.y]),YE(n.getGraph(),n),d.updateLayout(n)}}).on("dragend",function(){w&&w.setUnfixed(k)}),L.setDraggable(B,!!O.get("cursor")),"adjacency"===O.get(["emphasis","focus"])&&(st(L).focus=E.getAdjacentDataIndices())}}),_.graph.eachEdge(function(E){var k=E.getGraphicEl(),L=E.getModel().get(["emphasis","focus"]);k&&"adjacency"===L&&(st(k).focus={edge:[E.dataIndex],node:[E.node1.dataIndex,E.node2.dataIndex]})});var D="circular"===n.get("layout")&&n.get(["circular","rotateLabel"]),T=_.getLayout("cx"),A=_.getLayout("cy");_.graph.eachNode(function(E){e3(E,D,T,A)}),this._firstRender=!1},i.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},i.prototype._startForceLayoutIteration=function(n,o){var c=this;!function d(){n.step(function(h){c.updateLayout(c._model),(c._layouting=!h)&&(o?c._layoutTimeout=setTimeout(d,16):d())})}()},i.prototype._updateController=function(n,o,c){var d=this,h=this._controller,f=this._controllerHost,p=this.group;h.setPointerChecker(function(g,v,_){var y=p.getBoundingRect();return y.applyTransform(p.transform),y.contain(v,_)&&!hC(g,c,n)}),nr(n.coordinateSystem)?(h.enable(n.get("roam")),f.zoomLimit=n.get("scaleLimit"),f.zoom=n.coordinateSystem.getZoom(),h.off("pan").off("zoom").on("pan",function(g){To(f,g.dx,g.dy),c.dispatchAction({seriesId:n.id,type:"graphRoam",dx:g.dx,dy:g.dy})}).on("zoom",function(g){dE(f,g.scale,g.originX,g.originY),c.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:g.scale,originX:g.originX,originY:g.originY}),d._updateNodeAndLinkScale(),sI(n.getGraph(),bg(n)),d._lineDraw.updateLayout(),c.updateLabelLayout()})):h.disable()},i.prototype._updateNodeAndLinkScale=function(){var n=this._model,o=n.getData(),c=bg(n);o.eachItemGraphicEl(function(d,h){d&&d.setSymbolScale(c)})},i.prototype.updateLayout=function(n){sI(n.getGraph(),bg(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},i.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},i.type="graph",i}(Rn);const rW=tt;function Gi(a){return"_EC_"+a}var Cg=function(){function a(i){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=i||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(i,n){var o=this._nodesMap;if(!o[Gi(i=null==i?""+n:""+i)]){var c=new bn(i,n);return c.hostGraph=this,this.nodes.push(c),o[Gi(i)]=c,c}},a.prototype.getNodeByIndex=function(i){var n=this.data.getRawIndex(i);return this.nodes[n]},a.prototype.getNodeById=function(i){return this._nodesMap[Gi(i)]},a.prototype.addEdge=function(i,n,o){var c=this._nodesMap,d=this._edgesMap;if(on(i)&&(i=this.nodes[i]),on(n)&&(n=this.nodes[n]),i instanceof bn||(i=c[Gi(i)]),n instanceof bn||(n=c[Gi(n)]),i&&n){var h=i.id+"-"+n.id,f=new Hf(i,n,o);return f.hostGraph=this,this._directed&&(i.outEdges.push(f),n.inEdges.push(f)),i.edges.push(f),i!==n&&n.edges.push(f),this.edges.push(f),d[h]=f,f}},a.prototype.getEdgeByIndex=function(i){var n=this.edgeData.getRawIndex(i);return this.edges[n]},a.prototype.getEdge=function(i,n){i instanceof bn&&(i=i.id),n instanceof bn&&(n=n.id);var o=this._edgesMap;return this._directed?o[i+"-"+n]:o[i+"-"+n]||o[n+"-"+i]},a.prototype.eachNode=function(i,n){for(var o=this.nodes,c=o.length,d=0;d=0&&i.call(n,o[d],d)},a.prototype.eachEdge=function(i,n){for(var o=this.edges,c=o.length,d=0;d=0&&o[d].node1.dataIndex>=0&&o[d].node2.dataIndex>=0&&i.call(n,o[d],d)},a.prototype.breadthFirstTraverse=function(i,n,o,c){if(n instanceof bn||(n=this._nodesMap[Gi(n)]),n){for(var d="out"===o?"outEdges":"in"===o?"inEdges":"edges",h=0;h=0&&p.node2.dataIndex>=0}),d=0,h=c.length;d=0&&this[a][i].setItemVisual(this.dataIndex,n,o)},getVisual:function(n){return this[a][i].getItemVisual(this.dataIndex,n)},setLayout:function(n,o){this.dataIndex>=0&&this[a][i].setItemLayout(this.dataIndex,n,o)},getLayout:function(){return this[a][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][i].getRawIndex(this.dataIndex)}}}Di(bn,Li("hostGraph","data")),Di(Hf,Li("hostGraph","edgeData"));const UC=Cg;function $y(a,i,n,o,c){for(var d=new UC(o),h=0;h "+y)),g++)}var x,w=n.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)x=el(a,n);else{var S=_m.get(w),D=S&&S.dimensions||[];Ct(D,"value")<0&&D.concat(["value"]);var T=Qm(a,{coordDimensions:D,encodeDefine:n.getEncode()}).dimensions;(x=new ya(T,n)).initData(a)}var A=new ya(["value"],n);return A.initData(p,f),c&&c(x,A),_7({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:A},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}var Xo=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments);var o=this;function c(){return o._categoriesData}this.legendVisualProvider=new rC(c,c),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(n){a.prototype.mergeDefaultAndTheme.apply(this,arguments),zp(n,"edgeLabel",["show"])},i.prototype.getInitialData=function(n,o){var c=n.edges||n.links||[],d=n.data||n.nodes||[],h=this;if(d&&c){!function WE(a){HE(a)&&(a.__curvenessList=[],a.__edgeMap={},W7(a))}(this);var f=$y(d,c,this,!0,function p(g,v){g.wrapMethod("getItemModel",function(x){var T=h._categoriesModels[x.getShallow("category")];return T&&(T.parentModel=x.parentModel,x.parentModel=T),x});var _=Un.prototype.getModel;function y(x,S){var D=_.call(this,x,S);return D.resolveParentPath=w,D}function w(x){if(x&&("label"===x[0]||"label"===x[1])){var S=x.slice();return"label"===x[0]?S[0]="edgeLabel":"label"===x[1]&&(S[1]="edgeLabel"),S}return x}v.wrapMethod("getItemModel",function(x){return x.resolveParentPath=w,x.getModel=y,x})});return G(f.edges,function(g){!function QV(a,i,n,o){if(HE(n)){var c=jy(a,i,n),d=n.__edgeMap,h=d[UE(c)];d[c]&&!h?d[c].isForward=!0:h&&d[c]&&(h.isForward=!0,d[c].isForward=!1),d[c]=d[c]||[],d[c].push(o)}}(g.node1,g.node2,this,g.dataIndex)},this),f.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(n,o,c){if("edge"===c){var d=this.getData(),h=this.getDataParams(n,c),f=d.graph.getEdgeByIndex(n),p=d.getName(f.node1.dataIndex),g=d.getName(f.node2.dataIndex),v=[];return null!=p&&v.push(p),null!=g&&v.push(g),Hr("nameValue",{name:v.join(" > "),value:h.value,noValue:null==h.value})}return Qh({series:this,dataIndex:n,multipleSeries:o})},i.prototype._updateCategoriesData=function(){var n=Se(this.option.categories||[],function(c){return null!=c.value?c:_e({value:0},c)}),o=new ya(["value"],this);o.initData(n),this._categoriesData=o,this._categoriesModels=o.mapArray(function(c){return o.getItemModel(c)})},i.prototype.setZoom=function(n){this.option.zoom=n},i.prototype.setCenter=function(n){this.option.center=n},i.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(Xn);const DQ=Xo;var aW={type:"graphRoam",event:"graphRoam",update:"none"},sW=function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},lW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="pointer",o}return de(i,a),i.prototype.getDefaultShape=function(){return new sW},i.prototype.buildPath=function(n,o){var c=Math.cos,d=Math.sin,h=o.r,f=o.width,p=o.angle,g=o.x-c(p)*f*(f>=h/3?1:2),v=o.y-d(p)*f*(f>=h/3?1:2);p=o.angle-Math.PI/2,n.moveTo(g,v),n.lineTo(o.x+c(p)*f,o.y+d(p)*f),n.lineTo(o.x+c(o.angle)*h,o.y+d(o.angle)*h),n.lineTo(o.x-c(p)*f,o.y-d(p)*f),n.lineTo(g,v)},i}(It);const s3=lW;function cl(a,i){var n=null==a?"":a+"";return i&&(Ae(i)?n=i.replace("{value}",n):Xe(i)&&(n=i(a))),n}var TQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeAll();var d=n.get(["axisLine","lineStyle","color"]),h=function jC(a,i){var n=a.get("center"),o=i.getWidth(),c=i.getHeight(),d=Math.min(o,c);return{cx:Ie(n[0],i.getWidth()),cy:Ie(n[1],i.getHeight()),r:Ie(a.get("radius"),d/2)}}(n,c);this._renderMain(n,o,c,d,h),this._data=n.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(n,o,c,d,h){var f=this.group,p=n.get("clockwise"),g=-n.get("startAngle")/180*Math.PI,v=-n.get("endAngle")/180*Math.PI,_=n.getModel("axisLine"),w=_.get("roundCap")?UA:jr,x=_.get("show"),S=_.getModel("lineStyle"),D=S.get("width"),T=[g,v];BD(T,!p);for(var A=(v=T[1])-(g=T[0]),E=g,k=[],L=0;x&&L=j&&(0===W?0:d[W-1][0])Math.PI/2&&(Qe+=Math.PI):"tangential"===Ke?Qe=-U-Math.PI/2:on(Ke)&&(Qe=Ke*Math.PI/180),_.add(new Zt(0===Qe?{style:Zn(E,{text:we,x:Le,y:We,verticalAlign:te<-.8?"top":te>.8?"bottom":"middle",align:ee<-.4?"left":ee>.4?"right":"center"},{inheritColor:Pe}),silent:!0}:{style:Zn(E,{text:we,x:Le,y:We,verticalAlign:"middle",align:"center"},{inheritColor:Pe}),silent:!0,originX:Le,originY:We,rotation:Qe}))}if(A.get("show")&&ie!==k){me=(me=A.get("distance"))?me+v:v;for(var At=0;At<=L;At++){ee=Math.cos(U),te=Math.sin(U);var Qt=new Gr({shape:{x1:ee*(x-me)+y,y1:te*(x-me)+w,x2:ee*(x-B-me)+y,y2:te*(x-B-me)+w},silent:!0,style:X});"auto"===X.stroke&&Qt.setStyle({stroke:d((ie+At/L)/k)}),_.add(Qt),U+=W}U-=W}else U+=j}},i.prototype._renderPointer=function(n,o,c,d,h,f,p,g,v){var _=this.group,y=this._data,w=this._progressEls,x=[],S=n.get(["pointer","show"]),D=n.getModel("progress"),T=D.get("show"),A=n.getData(),E=A.mapDimension("value"),k=+n.get("min"),L=+n.get("max"),O=[k,L],B=[f,p];function U(W,$){var Le,K=A.getItemModel(W).getModel("pointer"),ee=Ie(K.get("width"),h.r),te=Ie(K.get("length"),h.r),ie=n.get(["pointer","icon"]),me=K.get("offsetCenter"),ue=Ie(me[0],h.r),we=Ie(me[1],h.r),Pe=K.get("keepAspect");return(Le=ie?ji(ie,ue-ee/2,we-te,ee,te,null,Pe):new s3({shape:{angle:-Math.PI/2,width:ee,r:te,x:ue,y:we}})).rotation=-($+Math.PI/2),Le.x=h.cx,Le.y=h.cy,Le}function j(W,$){var K=D.get("roundCap")?UA:jr,ee=D.get("overlap"),te=ee?D.get("width"):v/A.count(),ue=new K({shape:{startAngle:f,endAngle:$,cx:h.cx,cy:h.cy,clockwise:g,r0:ee?h.r-te:h.r-(W+1)*te,r:ee?h.r:h.r-W*te}});return ee&&(ue.z2=L-A.get(E,W)%L),ue}(T||S)&&(A.diff(y).add(function(W){var $=A.get(E,W);if(S){var X=U(W,f);Nn(X,{rotation:-((isNaN(+$)?B[0]:yn($,O,B,!0))+Math.PI/2)},n),_.add(X),A.setItemGraphicEl(W,X)}if(T){var K=j(W,f),ee=D.get("clip");Nn(K,{shape:{endAngle:yn($,O,B,ee)}},n),_.add(K),YD(n.seriesIndex,A.dataType,W,K),x[W]=K}}).update(function(W,$){var X=A.get(E,W);if(S){var K=y.getItemGraphicEl($),ee=K?K.rotation:f,te=U(W,ee);te.rotation=ee,zt(te,{rotation:-((isNaN(+X)?B[0]:yn(X,O,B,!0))+Math.PI/2)},n),_.add(te),A.setItemGraphicEl(W,te)}if(T){var ie=w[$],ue=j(W,ie?ie.shape.endAngle:f),we=D.get("clip");zt(ue,{shape:{endAngle:yn(X,O,B,we)}},n),_.add(ue),YD(n.seriesIndex,A.dataType,W,ue),x[W]=ue}}).execute(),A.each(function(W){var $=A.getItemModel(W),X=$.getModel("emphasis"),K=X.get("focus"),ee=X.get("blurScope"),te=X.get("disabled");if(S){var ie=A.getItemGraphicEl(W),me=A.getItemVisual(W,"style"),ue=me.fill;if(ie instanceof Jr){var we=ie.style;ie.useStyle(_e({image:we.image,x:we.x,y:we.y,width:we.width,height:we.height},me))}else ie.useStyle(me),"pointer"!==ie.type&&ie.setColor(ue);ie.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ie.style.fill&&ie.setStyle("fill",d(yn(A.get(E,W),O,[0,1],!0))),ie.z2EmphasisLift=0,ga(ie,$),Oi(ie,K,ee,te)}if(T){var Pe=x[W];Pe.useStyle(A.getItemVisual(W,"style")),Pe.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),Pe.z2EmphasisLift=0,ga(Pe,$),Oi(Pe,K,ee,te)}}),this._progressEls=x)},i.prototype._renderAnchor=function(n,o){var c=n.getModel("anchor");if(c.get("show")){var h=c.get("size"),f=c.get("icon"),p=c.get("offsetCenter"),g=c.get("keepAspect"),v=ji(f,o.cx-h/2+Ie(p[0],o.r),o.cy-h/2+Ie(p[1],o.r),h,h,null,g);v.z2=c.get("showAbove")?1:0,v.setStyle(c.getModel("itemStyle").getItemStyle()),this.group.add(v)}},i.prototype._renderTitleAndDetail=function(n,o,c,d,h){var f=this,p=n.getData(),g=p.mapDimension("value"),v=+n.get("min"),_=+n.get("max"),y=new rt,w=[],x=[],S=n.isAnimationEnabled(),D=n.get(["pointer","showAbove"]);p.diff(this._data).add(function(T){w[T]=new Zt({silent:!0}),x[T]=new Zt({silent:!0})}).update(function(T,A){w[T]=f._titleEls[A],x[T]=f._detailEls[A]}).execute(),p.each(function(T){var A=p.getItemModel(T),E=p.get(g,T),k=new rt,L=d(yn(E,[v,_],[0,1],!0)),O=A.getModel("title");if(O.get("show")){var B=O.get("offsetCenter"),U=h.cx+Ie(B[0],h.r),j=h.cy+Ie(B[1],h.r);(W=w[T]).attr({z2:D?0:2,style:Zn(O,{x:U,y:j,text:p.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:L})}),k.add(W)}var $=A.getModel("detail");if($.get("show")){var X=$.get("offsetCenter"),K=h.cx+Ie(X[0],h.r),ee=h.cy+Ie(X[1],h.r),te=Ie($.get("width"),h.r),ie=Ie($.get("height"),h.r),me=n.get(["progress","show"])?p.getItemVisual(T,"style").fill:L,W=x[T],ue=$.get("formatter");W.attr({z2:D?0:2,style:Zn($,{x:K,y:ee,text:cl(E,ue),width:isNaN(te)?null:te,height:isNaN(ie)?null:ie,align:"center",verticalAlign:"middle"},{inheritColor:me})}),zr(W,{normal:$},E,function(Pe){return cl(Pe,ue)}),S&&Z2(W,T,p,n,{getFormattedLabel:function(Pe,Le,We,Ke,Qe,At){return cl(At?At.interpolatedValue:E,ue)}}),k.add(W)}y.add(k)}),this.group.add(y),this._titleEls=w,this._detailEls=x},i.type="gauge",i}(Rn);const cW=TQ;var dW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.visualStyleAccessPath="itemStyle",n}return de(i,a),i.prototype.getInitialData=function(n,o){return Ey(this,["value"])},i.type="series.gauge",i.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},i}(Xn);const l3=dW;var d3=["itemStyle","opacity"],uW=function(a){function i(n,o){var c=a.call(this)||this,d=c,h=new io,f=new Zt;return d.setTextContent(f),c.setTextGuideLine(h),c.updateData(n,o,!0),c}return de(i,a),i.prototype.updateData=function(n,o,c){var d=this,h=n.hostModel,f=n.getItemModel(o),p=n.getItemLayout(o),g=f.getModel("emphasis"),v=f.get(d3);v=v??1,c||Ql(d),d.useStyle(n.getItemVisual(o,"style")),d.style.lineJoin="round",c?(d.setShape({points:p.points}),d.style.opacity=0,Nn(d,{style:{opacity:v}},h,o)):zt(d,{style:{opacity:v},shape:{points:p.points}},h,o),ga(d,f),this._updateLabel(n,o),Oi(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))},i.prototype._updateLabel=function(n,o){var c=this,d=this.getTextGuideLine(),h=c.getTextContent(),f=n.hostModel,p=n.getItemModel(o),v=n.getItemLayout(o).label,_=n.getItemVisual(o,"style"),y=_.fill;Oa(h,Sr(p),{labelFetcher:n.hostModel,labelDataIndex:o,defaultOpacity:_.opacity,defaultText:n.getName(o)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),c.setTextConfig({local:!0,inside:!!v.inside,insideStroke:y,outsideFill:y});var w=v.linePoints;d.setShape({points:w}),c.textGuideLineConfig={anchor:w?new St(w[0][0],w[0][1]):null},zt(h,{style:{x:v.x,y:v.y}},f,o),h.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),Nx(c,Vx(p),{stroke:y})},i}(no),Yy=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.ignoreLabelLineUpdate=!0,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this._data,f=this.group;d.diff(h).add(function(p){var g=new uW(d,p);d.setItemGraphicEl(p,g),f.add(g)}).update(function(p,g){var v=h.getItemGraphicEl(g);v.updateData(d,p),f.add(v),d.setItemGraphicEl(p,v)}).remove(function(p){lw(h.getItemGraphicEl(p),n,p)}).execute(),this._data=d},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Rn);const Iu=Yy;var lI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new rC(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(n)},i.prototype.getInitialData=function(n,o){return Ey(this,{coordDimensions:["value"],encodeDefaulter:ct(xT,this)})},i.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var o=n.labelLine,c=n.emphasis.labelLine;o.show=o.show&&n.label.show,c.show=c.show&&n.emphasis.label.show},i.prototype.getDataParams=function(n){var o=this.getData(),c=a.prototype.getDataParams.call(this,n),d=o.mapDimension("value"),h=o.getSum(d);return c.percent=h?+(o.get(d,n)/h*100).toFixed(2):0,c.$vars.push("percent"),c},i.type="series.funnel",i.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(Xn);const GC=lI;function WC(a,i){a.eachSeriesByType("funnel",function(n){var o=n.getData(),c=o.mapDimension("value"),d=n.get("sort"),h=function Uf(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(n,i),f=n.get("orient"),p=h.width,g=h.height,v=function Sg(a,i){for(var n=a.mapDimension("value"),o=a.mapArray(n,function(p){return p}),c=[],d="ascending"===i,h=0,f=a.count();h5)return;var c=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);"none"!==c.behavior&&this._dispatchExpand({axisExpandWindow:c.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!this._mouseDownPoint&&v3(this,"mousemove")){var i=this._model,n=i.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),o=n.behavior;"jump"===o&&this._throttledDispatchExpand.debounceNextCall(i.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===o?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===o?null:{duration:0}})}}};function v3(a,i){var n=a._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===i}const yW=kQ;var bW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(n){n&&mt(this.option,n,!0),this._initDimensions()},i.prototype.contains=function(n,o){var c=n.get("parallelIndex");return null!=c&&o.getComponent("parallel",c)===this},i.prototype.setAxisExpand=function(n){G(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){n.hasOwnProperty(o)&&(this.option[o]=n[o])},this)},i.prototype._initDimensions=function(){var n=this.dimensions=[],o=this.parallelAxisIndex=[];G(_n(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this),function(d){n.push("dim"+d.get("dim")),o.push(d.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},i}(en);const _3=bW;var wW=function(a){function i(n,o,c,d,h){var f=a.call(this,n,o,c)||this;return f.type=d||"value",f.axisIndex=h,f}return de(i,a),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(il);const RQ=wW;function jf(a,i,n,o,c,d){a=a||0;var h=n[1]-n[0];if(null!=c&&(c=Gf(c,[0,h])),null!=d&&(d=Math.max(d,c??0)),"all"===o){var f=Math.abs(i[1]-i[0]);f=Gf(f,[0,h]),c=d=Gf(f,[c,d]),o=0}i[0]=Gf(i[0],n),i[1]=Gf(i[1],n);var p=uI(i,o);i[o]+=a;var _,g=c||0,v=n.slice();return p.sign<0?v[0]+=g:v[1]-=g,i[o]=Gf(i[o],v),_=uI(i,o),null!=c&&(_.sign!==p.sign||_.spand&&(i[1-o]=i[o]+_.sign*d),i}function uI(a,i){var n=a[i]-a[1-i];return{span:Math.abs(n),sign:n>0?-1:n<0?1:i?-1:1}}function Gf(a,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,a))}var Zy=G,y3=Math.min,hI=Math.max,b3=Math.floor,w3=Math.ceil,fI=ti,xW=Math.PI,CW=function(){function a(i,n,o){this.type="parallel",this._axesMap=Me(),this._axesLayout={},this.dimensions=i.dimensions,this._model=i,this._init(i,n,o)}return a.prototype._init=function(i,n,o){var d=i.parallelAxisIndex;Zy(i.dimensions,function(h,f){var p=d[f],g=n.getComponent("parallelAxis",p),v=this._axesMap.set(h,new RQ(h,iy(g),[0,0],g.get("type"),p));v.onBand="category"===v.type&&g.get("boundaryGap"),v.inverse=g.get("inverse"),g.axis=v,v.model=g,v.coordinateSystem=g.coordinateSystem=this},this)},a.prototype.update=function(i,n){this._updateAxesFromSeries(this._model,i)},a.prototype.containPoint=function(i){var n=this._makeLayoutInfo(),o=n.axisBase,c=n.layoutBase,d=n.pixelDimIndex,h=i[1-d],f=i[d];return h>=o&&h<=o+n.axisLength&&f>=c&&f<=c+n.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(i,n){n.eachSeries(function(o){if(i.contains(o,n)){var c=o.getData();Zy(this.dimensions,function(d){var h=this._axesMap.get(d);h.scale.unionExtentFromData(c,c.mapDimension(d)),xf(h.scale,h.model)},this)}},this)},a.prototype.resize=function(i,n){this._rect=Dr(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var x,i=this._model,n=this._rect,o=["x","y"],c=["width","height"],d=i.get("layout"),h="horizontal"===d?0:1,f=n[c[h]],p=[0,f],g=this.dimensions.length,v=pI(i.get("axisExpandWidth"),p),_=pI(i.get("axisExpandCount")||0,[0,g]),y=i.get("axisExpandable")&&g>3&&g>_&&_>1&&v>0&&f>0,w=i.get("axisExpandWindow");w?(x=pI(w[1]-w[0],p),w[1]=w[0]+x):(x=pI(v*(_-1),p),(w=[v*(i.get("axisExpandCenter")||b3(g/2))-x/2])[1]=w[0]+x);var D=(f-x)/(g-_);D<3&&(D=0);var T=[b3(fI(w[0]/v,1))+1,w3(fI(w[1]/v,1))-1];return{layout:d,pixelDimIndex:h,layoutBase:n[o[h]],layoutLength:f,axisBase:n[o[1-h]],axisLength:n[c[1-h]],axisExpandable:y,axisExpandWidth:v,axisCollapseWidth:D,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:D/v*w[0]}},a.prototype._layoutAxes=function(){var i=this._rect,n=this._axesMap,o=this.dimensions,c=this._makeLayoutInfo(),d=c.layout;n.each(function(h){var f=[0,c.axisLength],p=h.inverse?1:0;h.setExtent(f[p],f[1-p])}),Zy(o,function(h,f){var p=(c.axisExpandable?Wf:ku)(f,c),g={horizontal:{x:p.position,y:c.axisLength},vertical:{x:0,y:p.position}},_=[g[d].x+i.x,g[d].y+i.y],y={horizontal:xW/2,vertical:0}[d],w=[1,0,0,1,0,0];Rd(w,w,y),ar(w,w,_),this._axesLayout[h]={position:_,rotation:y,transform:w,axisNameAvailableWidth:p.axisNameAvailableWidth,axisLabelShow:p.axisLabelShow,nameTruncateMaxWidth:p.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(i){return this._axesMap.get(i)},a.prototype.dataToPoint=function(i,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(i),n)},a.prototype.eachActiveState=function(i,n,o,c){null==o&&(o=0),null==c&&(c=i.count());var d=this._axesMap,h=this.dimensions,f=[],p=[];G(h,function(D){f.push(i.mapDimension(D)),p.push(d.get(D).model)});for(var g=this.hasAxisBrushed(),v=o;vd*(1-_[0])?(g="jump",p=f-d*(1-_[2])):(p=f-d*_[1])>=0&&(p=f-d*(1-_[1]))<=0&&(p=0),(p*=n.axisExpandWidth/v)?jf(p,c,h,"all"):g="none";else{var w=c[1]-c[0];(c=[hI(0,h[1]*f/w-w/2)])[1]=y3(h[1],c[0]+w),c[0]=c[1]-w}return{axisExpandWindow:c,behavior:g}},a}();function pI(a,i){return y3(hI(a,i[0]),i[1])}function ku(a,i){var n=i.layoutLength/(i.axisCount-1);return{position:n*a,axisNameAvailableWidth:n,axisLabelShow:!0}}function Wf(a,i){var f,v,o=i.axisExpandWidth,d=i.axisCollapseWidth,h=i.winInnerIndices,p=d,g=!1;return a=0;c--)Qr(o[c])},i.prototype.getActiveState=function(n){var o=this.activeIntervals;if(!o.length)return"normal";if(null==n||isNaN(+n))return"inactive";if(1===o.length){var c=o[0];if(c[0]<=n&&n<=c[1])return"active"}else for(var d=0,h=o.length;dFQ}(a)||c){if(d&&!c){"single"===h.brushMode&&yI(a);var p=nt(h);p.brushType=XC(p.brushType,d),p.panelId=d===Dg?null:d.panelId,c=a._creatingCover=M3(a,p),a._covers.push(c)}if(c){var g=qf[XC(a._brushType,d)];c.__brushOption.range=g.getCreatingRange(Yf(a,c,a._track)),o&&(A3(a,c),g.updateCommon(a,c)),E3(a,c),f={isEnd:o}}}else o&&"single"===h.brushMode&&h.removeOnClick&&P3(a,i,n)&&yI(a)&&(f={isEnd:o,removeOnClick:!0});return f}function XC(a,i){return"auto"===a?i.defaultBrushType:a}var SI={mousedown:function(a){if(this._dragging)In(this,a);else if(!a.target||!a.target.draggable){Ao(a);var i=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null,(this._creatingPanel=P3(this,a,i))&&(this._dragging=!0,this._track=[i.slice()])}},mousemove:function(a){var o=this.group.transformCoordToLocal(a.offsetX,a.offsetY);if(function Eg(a,i,n){if(a._brushType&&!function pr(a,i,n){var o=a._zr;return i<0||i>o.getWidth()||n<0||n>o.getHeight()}(a,i.offsetX,i.offsetY)){var o=a._zr,c=a._covers,d=P3(a,i,n);if(!a._dragging)for(var h=0;h=0&&(f[h[p].depth]=new Un(h[p],this,o));if(d&&c)return $y(d,c,this,!0,function v(_,y){_.wrapMethod("getItemModel",function(w,x){var S=w.parentModel,D=S.getData().getItemLayout(x);if(D){var A=S.levelModels[D.depth];A&&(w.parentModel=A)}return w}),y.wrapMethod("getItemModel",function(w,x){var S=w.parentModel,T=S.getGraph().getEdgeByIndex(x).node1.getLayout();if(T){var E=S.levelModels[T.depth];E&&(w.parentModel=E)}return w})}).data},i.prototype.setNodePosition=function(n,o){var d=(this.option.data||this.option.nodes)[n];d.localX=o[0],d.localY=o[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(n,o,c){function d(w){return isNaN(w)||null==w}if("edge"===c){var h=this.getDataParams(n,c),f=h.data,p=h.value;return Hr("nameValue",{name:f.source+" -- "+f.target,value:p,noValue:d(p)})}var _=this.getGraph().getNodeByIndex(n).getLayout().value,y=this.getDataParams(n,c).data.name;return Hr("nameValue",{name:null!=y?y+"":null,value:_,noValue:d(_)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(n,o){var c=a.prototype.getDataParams.call(this,n,o);if(null==c.value&&"node"===o){var h=this.getGraph().getNodeByIndex(n).getLayout().value;c.value=h}return c},i.type="series.sankey",i.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},i}(Xn);const LW=j3;function G3(a,i){a.eachSeriesByType("sankey",function(n){var o=n.get("nodeWidth"),c=n.get("nodeGap"),d=function FW(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(n,i);n.layoutInfo=d;var h=d.width,f=d.height,p=n.getGraph(),g=p.nodes,v=p.edges;!function $3(a){G(a,function(i){var n=dl(i.outEdges,Pg),o=dl(i.inEdges,Pg),c=i.getValue()||0,d=Math.max(n,o,c);i.setLayout({value:d},!0)})}(g),function W3(a,i,n,o,c,d,h,f,p){(function KC(a,i,n,o,c,d,h){for(var f=[],p=[],g=[],v=[],_=0,y=0;y=0;T&&D.depth>w&&(w=D.depth),S.setLayout({depth:T?D.depth:_},!0),S.setLayout("vertical"===d?{dy:n}:{dx:n},!0);for(var A=0;A_-1?w:_-1;h&&"left"!==h&&function ci(a,i,n,o){if("right"===i){for(var c=[],d=a,h=0;d.length;){for(var f=0;f0;d--)BW(f,p*=.99,h),eb(f,c,n,o,h),q3(f,p,h),eb(f,c,n,o,h)}(a,i,d,c,o,h,f),function Z3(a,i){var n="vertical"===i?"x":"y";G(a,function(o){o.outEdges.sort(function(c,d){return c.node2.getLayout()[n]-d.node2.getLayout()[n]}),o.inEdges.sort(function(c,d){return c.node1.getLayout()[n]-d.node1.getLayout()[n]})}),G(a,function(o){var c=0,d=0;G(o.outEdges,function(h){h.setLayout({sy:c},!0),c+=h.getLayout().dy}),G(o.inEdges,function(h){h.setLayout({ty:d},!0),d+=h.getLayout().dy})})}(a,f)}(g,v,o,c,h,f,0!==_n(g,function(S){return 0===S.getLayout().value}).length?0:n.get("layoutIterations"),n.get("orient"),n.get("nodeAlign"))})}function Zf(a){var i=a.hostGraph.data.getRawDataItem(a.dataIndex);return null!=i.depth&&i.depth>=0}function eb(a,i,n,o,c){var d="vertical"===c?"x":"y";G(a,function(h){h.sort(function(S,D){return S.getLayout()[d]-D.getLayout()[d]});for(var f,p,g,v=0,_=h.length,y="vertical"===c?"dx":"dy",w=0;w<_;w++)(g=v-(p=h[w]).getLayout()[d])>0&&(f=p.getLayout()[d]+g,p.setLayout("vertical"===c?{x:f}:{y:f},!0)),v=p.getLayout()[d]+p.getLayout()[y]+i;if((g=v-i-("vertical"===c?o:n))>0)for(f=p.getLayout()[d]-g,p.setLayout("vertical"===c?{x:f}:{y:f},!0),v=f,w=_-2;w>=0;--w)(g=(p=h[w]).getLayout()[d]+p.getLayout()[y]+i-v)>0&&(f=p.getLayout()[d]-g,p.setLayout("vertical"===c?{x:f}:{y:f},!0)),v=p.getLayout()[d]})}function BW(a,i,n){G(a.slice().reverse(),function(o){G(o,function(c){if(c.outEdges.length){var d=dl(c.outEdges,QC,n)/dl(c.outEdges,Pg);if(isNaN(d)){var h=c.outEdges.length;d=h?dl(c.outEdges,tb,n)/h:0}if("vertical"===n){var f=c.getLayout().x+(d-Ou(c,n))*i;c.setLayout({x:f},!0)}else{var p=c.getLayout().y+(d-Ou(c,n))*i;c.setLayout({y:p},!0)}}})})}function QC(a,i){return Ou(a.node2,i)*a.getValue()}function tb(a,i){return Ou(a.node2,i)}function Y3(a,i){return Ou(a.node1,i)*a.getValue()}function JC(a,i){return Ou(a.node1,i)}function Ou(a,i){return"vertical"===i?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function Pg(a){return a.getValue()}function dl(a,i,n){for(var o=0,c=a.length,d=-1;++dh&&(h=p)}),G(o,function(f){var g=new Zr({type:"color",mappingMethod:"linear",dataExtent:[d,h],visual:i.get("color")}).mapValueToVisual(f.getLayout().value),v=f.getModel().get(["itemStyle","color"]);null!=v?(f.setVisual("color",v),f.setVisual("style",{fill:v})):(f.setVisual("color",g),f.setVisual("style",{fill:g}))})}c.length&&G(c,function(f){var p=f.getModel().get("lineStyle");f.setVisual("style",p)})})}var X3=function(){function a(){}return a.prototype.getInitialData=function(i,n){var o,p,c=n.getComponent("xAxis",this.get("xAxisIndex")),d=n.getComponent("yAxis",this.get("yAxisIndex")),h=c.get("type"),f=d.get("type");"category"===h?(i.layout="horizontal",o=c.getOrdinalMeta(),p=!0):"category"===f?(i.layout="vertical",o=d.getOrdinalMeta(),p=!0):i.layout=i.layout||"horizontal";var g=["x","y"],v="horizontal"===i.layout?0:1,_=this._baseAxisDim=g[v],y=g[1-v],w=[c,d],x=w[v].get("type"),S=w[1-v].get("type"),D=i.data;if(D&&p){var T=[];G(D,function(k,L){var O;ye(k)?(O=k.slice(),k.unshift(L)):ye(k.value)?((O=_e({},k)).value=O.value.slice(),k.value.unshift(L)):O=k,T.push(O)}),i.data=T}var A=this.defaultValueDimensions,E=[{name:_,type:Y_(x),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:y,type:Y_(S),dimsDef:A.slice()}];return Ey(this,{coordDimensions:E,dimensionsCount:A.length+1,encodeDefaulter:ct(dO,E,this)})},a.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},a}(),e1=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return de(i,a),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},i}(Xn);Di(e1,X3,!0);const UW=e1;var jW=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this.group,f=this._data;this._data||h.removeAll();var p="horizontal"===n.get("layout")?1:0;d.diff(f).add(function(g){if(d.hasValue(g)){var _=K3(d.getItemLayout(g),d,g,p,!0);d.setItemGraphicEl(g,_),h.add(_)}}).update(function(g,v){var _=f.getItemGraphicEl(v);if(d.hasValue(g)){var y=d.getItemLayout(g);_?(Ql(_),Q3(y,_,d,g)):_=K3(y,d,g,p),h.add(_),d.setItemGraphicEl(g,_)}else h.remove(_)}).remove(function(g){var v=f.getItemGraphicEl(g);v&&h.remove(v)}).execute(),this._data=d},i.prototype.remove=function(n){var o=this.group,c=this._data;this._data=null,c&&c.eachItemGraphicEl(function(d){d&&o.remove(d)})},i.type="boxplot",i}(Rn),GW=function a(){},WW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="boxplotBoxPath",o}return de(i,a),i.prototype.getDefaultShape=function(){return new GW},i.prototype.buildPath=function(n,o){var c=o.points,d=0;for(n.moveTo(c[d][0],c[d][1]),d++;d<4;d++)n.lineTo(c[d][0],c[d][1]);for(n.closePath();dS)&&o.push([T,E])}}return{boxData:n,outliers:o}}(n.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:c.boxData},{data:c.outliers}]}},II=["color","borderColor"],nB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},i.prototype.incrementalPrepareRender=function(n,o,c){this._clear(),this._updateDrawMode(n)},i.prototype.incrementalRender=function(n,o,c,d){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,o):this._incrementalRenderNormal(n,o)},i.prototype.eachRendered=function(n){Kc(this._progressiveEls||this.group,n)},i.prototype._updateDrawMode=function(n){var o=n.pipelineContext.large;(null==this._isLargeDraw||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},i.prototype._renderNormal=function(n){var o=n.getData(),c=this._data,d=this.group,h=o.getLayout("isSimpleBox"),f=n.get("clip",!0),p=n.coordinateSystem,g=p.getArea&&p.getArea();this._data||d.removeAll(),o.diff(c).add(function(v){if(o.hasValue(v)){var _=o.getItemLayout(v);if(f&&rB(g,_))return;var y=Og(_,0,!0);Nn(y,{shape:{points:_.ends}},n,v),kI(y,o,v,h),d.add(y),o.setItemGraphicEl(v,y)}}).update(function(v,_){var y=c.getItemGraphicEl(_);if(o.hasValue(v)){var w=o.getItemLayout(v);f&&rB(g,w)?d.remove(y):(y?(zt(y,{shape:{points:w.ends}},n,v),Ql(y)):y=Og(w),kI(y,o,v,h),d.add(y),o.setItemGraphicEl(v,y))}else d.remove(y)}).remove(function(v){var _=c.getItemGraphicEl(v);_&&d.remove(_)}).execute(),this._data=o},i.prototype._renderLarge=function(n){this._clear(),oB(n,this.group);var o=n.get("clip",!0)?Cy(n.coordinateSystem,!1,n):null;o?this.group.setClipPath(o):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(n,o){for(var h,c=o.getData(),d=c.getLayout("isSimpleBox");null!=(h=n.next());){var p=Og(c.getItemLayout(h));kI(p,c,h,d),p.incremental=!0,this.group.add(p),this._progressiveEls.push(p)}},i.prototype._incrementalRenderLarge=function(n,o){oB(o,this.group,this._progressiveEls,!0)},i.prototype.remove=function(n){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Rn),iB=function a(){},ZW=function(a){function i(n){var o=a.call(this,n)||this;return o.type="normalCandlestickBox",o}return de(i,a),i.prototype.getDefaultShape=function(){return new iB},i.prototype.buildPath=function(n,o){var c=o.points;this.__simpleBox?(n.moveTo(c[4][0],c[4][1]),n.lineTo(c[6][0],c[6][1])):(n.moveTo(c[0][0],c[0][1]),n.lineTo(c[1][0],c[1][1]),n.lineTo(c[2][0],c[2][1]),n.lineTo(c[3][0],c[3][1]),n.closePath(),n.moveTo(c[4][0],c[4][1]),n.lineTo(c[5][0],c[5][1]),n.moveTo(c[6][0],c[6][1]),n.lineTo(c[7][0],c[7][1]))},i}(It);function Og(a,i,n){var o=a.ends;return new ZW({shape:{points:n?XW(o,a):o},z2:100})}function rB(a,i){for(var n=!0,o=0;o0?"borderColor":"borderColor0"])||n.get(["itemStyle",a>0?"color":"color0"]);0===a&&(c=n.get(["itemStyle","borderColorDoji"]));var d=n.getModel("itemStyle").getItemStyle(II);i.useStyle(d),i.style.fill=null,i.style.stroke=c}const KW=nB;var PI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return de(i,a),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(n,o,c){var d=o.getItemLayout(n);return d&&c.rect(d.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},i}(Xn);Di(PI,X3,!0);const sB=PI;function rb(a){!a||!ye(a.series)||G(a.series,function(i){Ee(i)&&"k"===i.type&&(i.type="candlestick")})}var mc=["itemStyle","borderColor"],n1=["itemStyle","borderColor0"],fd=["itemStyle","borderColorDoji"],Lg=["itemStyle","color"],Fg=["itemStyle","color0"],r1={seriesType:"candlestick",plan:Zc(),performRawSeries:!0,reset:function(a,i){function n(d,h){return h.get(d>0?Lg:Fg)}function o(d,h){return h.get(0===d?fd:d>0?mc:n1)}if(!i.isSeriesFiltered(a))return!a.pipelineContext.large&&{progress:function(d,h){for(var f;null!=(f=d.next());){var p=h.getItemModel(f),g=h.getItemLayout(f).sign,v=p.getItemStyle();v.fill=n(g,p),v.stroke=o(g,p)||v.fill,_e(h.ensureUniqueItemVisual(f,"style"),v)}}}}};const lB=r1;var QW={seriesType:"candlestick",plan:Zc(),reset:function(a){var i=a.coordinateSystem,n=a.getData(),o=function JW(a,i){var o,n=a.getBaseAxis(),c="category"===n.type?n.getBandWidth():(o=n.getExtent(),Math.abs(o[1]-o[0])/i.count()),d=Ie(gt(a.get("barMaxWidth"),c),c),h=Ie(gt(a.get("barMinWidth"),1),c),f=a.get("barWidth");return null!=f?Ie(f,c):Math.max(Math.min(c/2,d),h)}(a,n),h=["x","y"],f=n.getDimensionIndex(n.mapDimension(h[0])),p=Se(n.mapDimensionsAll(h[1]),n.getDimensionIndex,n),g=p[0],v=p[1],_=p[2],y=p[3];if(n.setLayout({candleWidth:o,isSimpleBox:o<=1.3}),!(f<0||p.length<4))return{progress:a.pipelineContext.large?function x(S,D){for(var E,O,T=bs(4*S.count),A=0,k=[],L=[],B=D.getStore(),U=!!a.get(["itemStyle","borderColorDoji"]);null!=(O=S.next());){var j=B.get(f,O),W=B.get(g,O),$=B.get(v,O),X=B.get(_,O),K=B.get(y,O);isNaN(j)||isNaN(X)||isNaN(K)?(T[A++]=NaN,A+=3):(T[A++]=cB(B,O,W,$,v,U),k[0]=j,k[1]=X,E=i.dataToPoint(k,null,L),T[A++]=E?E[0]:NaN,T[A++]=E?E[1]:NaN,k[1]=K,E=i.dataToPoint(k,null,L),T[A++]=E?E[1]:NaN)}D.setLayout("largePoints",T)}:function w(S,D){for(var T,A=D.getStore();null!=(T=S.next());){var E=A.get(f,T),k=A.get(g,T),L=A.get(v,T),O=A.get(_,T),B=A.get(y,T),U=Math.min(k,L),j=Math.max(k,L),W=me(U,E),$=me(j,E),X=me(O,E),K=me(B,E),ee=[];ue(ee,$,0),ue(ee,W,1),ee.push(Pe(K),Pe($),Pe(X),Pe(W));var ie=!!D.getItemModel(T).get(["itemStyle","borderColorDoji"]);D.setItemLayout(T,{sign:cB(A,T,k,L,v,ie),initBaseline:k>L?$[1]:W[1],ends:ee,brushRect:(Le=O,We=B,Ke=E,Qe=void 0,At=void 0,Qe=me(Le,Ke),At=me(We,Ke),Qe[0]-=o/2,At[0]-=o/2,{x:Qe[0],y:Qe[1],width:o,height:At[1]-Qe[1]})})}var Le,We,Ke,Qe,At;function me(Le,We){var Ke=[];return Ke[0]=We,Ke[1]=Le,isNaN(We)||isNaN(Le)?[NaN,NaN]:i.dataToPoint(Ke)}function ue(Le,We,Ke){var Qe=We.slice(),At=We.slice();Qe[0]=Xw(Qe[0]+o/2,1,!1),At[0]=Xw(At[0]-o/2,1,!0),Ke?Le.push(Qe,At):Le.push(At,Qe)}function Pe(Le){return Le[0]=Xw(Le[0],1),Le}}}}};function cB(a,i,n,o,c,d){return n>o?-1:n0?a.get(c,i-1)<=o?1:-1:1}const e9=QW;function dB(a,i){var n=i.rippleEffectColor||i.color;a.eachChild(function(o){o.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?n:null,fill:"fill"===i.brushType?n:null}})})}var n9=function(a){function i(n,o){var c=a.call(this)||this,d=new by(n,o),h=new rt;return c.add(d),c.add(h),c.updateData(n,o),c}return de(i,a),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(n){for(var o=n.symbolType,c=n.color,d=n.rippleNumber,h=this.childAt(1),f=0;f0&&(f=this._getLineLength(d)/v*1e3),f!==this._period||p!==this._loop||g!==this._roundTrip){d.stopAnimation();var y=void 0;y=Xe(_)?_(c):_,d.__t>0&&(y=-f*d.__t),this._animateSymbol(d,f,y,p,g)}this._period=f,this._loop=p,this._roundTrip=g}},i.prototype._animateSymbol=function(n,o,c,d,h){if(o>0){n.__t=0;var f=this,p=n.animate("",d).when(h?2*o:o,{__t:h?2:1}).delay(c).during(function(){f._updateSymbolPosition(n)});d||p.done(function(){f.remove(n)}),p.start()}},i.prototype._getLineLength=function(n){return ks(n.__p1,n.__cp1)+ks(n.__cp1,n.__p2)},i.prototype._updateAnimationPoints=function(n,o){n.__p1=o[0],n.__p2=o[1],n.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},i.prototype.updateData=function(n,o,c){this.childAt(0).updateData(n,o,c),this._updateEffectSymbol(n,o)},i.prototype._updateSymbolPosition=function(n){var o=n.__p1,c=n.__p2,d=n.__cp1,h=n.__t<1?n.__t:2-n.__t,f=[n.x,n.y],p=f.slice(),g=Fr,v=nD;f[0]=g(o[0],d[0],c[0],h),f[1]=g(o[1],d[1],c[1],h);var _=n.__t<1?v(o[0],d[0],c[0],h):v(c[0],d[0],o[0],1-h),y=n.__t<1?v(o[1],d[1],c[1],h):v(c[1],d[1],o[1],1-h);n.rotation=-Math.atan2(y,_)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==n.__lastT&&n.__lastT=0&&!(d[p]<=o);p--);p=Math.min(p,h-2)}else{for(p=f;po);p++);p=Math.min(p-1,h-2)}var v=(o-d[p])/(d[p+1]-d[p]),_=c[p],y=c[p+1];n.x=_[0]*(1-v)+v*y[0],n.y=_[1]*(1-v)+v*y[1],n.rotation=-Math.atan2(n.__t<1?y[1]-_[1]:_[1]-y[1],n.__t<1?y[0]-_[0]:_[0]-y[0])-Math.PI/2,this._lastFrame=p,this._lastFramePercent=o,n.ignore=!1}},i}(hB);const NI=FI;var ul=function a(){this.polyline=!1,this.curveness=0,this.segs=[]},Ng=function(a){function i(n){var o=a.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(i,a),i.prototype.reset=function(){this.notClear=!1,this._off=0},i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ul},i.prototype.buildPath=function(n,o){var h,c=o.segs,d=o.curveness;if(o.polyline)for(h=this._off;h0){n.moveTo(c[h++],c[h++]);for(var p=1;p0?n.quadraticCurveTo((g+_)/2-(v-y)*d,(v+y)/2-(_-g)*d,_,y):n.lineTo(_,y)}this.incremental&&(this._off=h,this.notClear=!0)},i.prototype.findDataIndex=function(n,o){var c=this.shape,d=c.segs,h=c.curveness,f=this.style.lineWidth;if(c.polyline)for(var p=0,g=0;g0)for(var _=d[g++],y=d[g++],w=1;w0){if(qH(_,y,(_+x)/2-(y-S)*h,(y+S)/2-(x-_)*h,x,S,f,n,o))return p}else if(Ph(_,y,x,S,f,n,o))return p;p++}return-1},i.prototype.contain=function(n,o){var c=this.transformCoordToLocal(n,o);return this.getBoundingRect().contain(n=c[0],o=c[1])?(this.hoverDataIdx=this.findDataIndex(n,o))>=0:(this.hoverDataIdx=-1,!1)},i.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var c=this.shape.segs,d=1/0,h=1/0,f=-1/0,p=-1/0,g=0;g0&&(h.dataIndex=p+i.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const pB=fB;var o9={seriesType:"lines",plan:Zc(),reset:function(a){var i=a.coordinateSystem;if(i){var n=a.get("polyline"),o=a.pipelineContext.large;return{progress:function(c,d){var h=[];if(o){var f=void 0,p=c.end-c.start;if(n){for(var g=0,v=c.start;v0&&(v||g.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),h.updateData(d);var _=n.get("clip",!0)&&Cy(n.coordinateSystem,!1,n);_?this.group.setClipPath(_):this.group.removeClipPath(),this._lastZlevel=f,this._finished=!0},i.prototype.incrementalPrepareRender=function(n,o,c){var d=n.getData();this._updateLineDraw(d,n).incrementalPrepareUpdate(d),this._clearLayer(c),this._finished=!1},i.prototype.incrementalRender=function(n,o,c){this._lineDraw.incrementalUpdate(n,o.getData()),this._finished=n.end===o.getData().count()},i.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},i.prototype.updateTransform=function(n,o,c){var d=n.getData(),h=n.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var f=Wn.reset(n,o,c);f.progress&&f.progress({start:0,end:d.count(),count:d.count()},d),this._lineDraw.updateLayout(),this._clearLayer(c)},i.prototype._updateLineDraw=function(n,o){var c=this._lineDraw,d=this._showEffect(o),h=!!o.get("polyline"),p=o.pipelineContext.large;return(!c||d!==this._hasEffet||h!==this._isPolyline||p!==this._isLargeDraw)&&(c&&c.remove(),c=this._lineDraw=p?new pB:new zC(h?d?NI:LI:d?hB:nI),this._hasEffet=d,this._isPolyline=h,this._isLargeDraw=p),this.group.add(c.group),c},i.prototype._showEffect=function(n){return!!n.get(["effect","show"])},i.prototype._clearLayer=function(n){var o=n.getZr();"svg"!==o.painter.getType()&&null!=this._lastZlevel&&o.painter.getLayer(this._lastZlevel).clear(!0)},i.prototype.remove=function(n,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},i.prototype.dispose=function(n,o){this.remove(n,o)},i.type="lines",i}(Rn);const BI=VI;var mB=typeof Uint32Array>"u"?Array:Uint32Array,zI=typeof Float64Array>"u"?Array:Float64Array;function HI(a){var i=a.data;i&&i[0]&&i[0][0]&&i[0][0].coord&&(a.data=Se(i,function(n){var c={coords:[n[0].coord,n[1].coord]};return n[0].name&&(c.fromName=n[0].name),n[1].name&&(c.toName=n[1].name),Xb([c,n[0],n[1]])}))}var UI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return de(i,a),i.prototype.init=function(n){n.data=n.data||[],HI(n);var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count)),a.prototype.init.apply(this,arguments)},i.prototype.mergeOption=function(n){if(HI(n),n.data){var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count))}a.prototype.mergeOption.apply(this,arguments)},i.prototype.appendData=function(n){var o=this._processFlatCoordsArray(n.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=wn(this._flatCoords,o.flatCoords),this._flatCoordsOffset=wn(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),n.data=new Float32Array(o.count)),this.getRawData().appendData(n.data)},i.prototype._getCoordsFromItemModel=function(n){var o=this.getData().getItemModel(n);return o.option instanceof Array?o.option:o.getShallow("coords")},i.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[2*n+1]:this._getCoordsFromItemModel(n).length},i.prototype.getLineCoords=function(n,o){if(this._flatCoordsOffset){for(var c=this._flatCoordsOffset[2*n],d=this._flatCoordsOffset[2*n+1],h=0;h ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get("progressive"))},i.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get("progressiveThreshold"))},i.prototype.getZLevelKey=function(){var n=this.getModel("effect"),o=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&o>0?o+"":""},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},i}(Xn);const jI=UI;function ob(a){return a instanceof Array||(a=[a,a]),a}var GI={seriesType:"lines",reset:function(a){var i=ob(a.get("symbol")),n=ob(a.get("symbolSize")),o=a.getData();return o.setVisual("fromSymbol",i&&i[0]),o.setVisual("toSymbol",i&&i[1]),o.setVisual("fromSymbolSize",n&&n[0]),o.setVisual("toSymbolSize",n&&n[1]),{dataEach:o.hasItemOption?function c(d,h){var f=d.getItemModel(h),p=ob(f.getShallow("symbol",!0)),g=ob(f.getShallow("symbolSize",!0));p[0]&&d.setItemVisual(h,"fromSymbol",p[0]),p[1]&&d.setItemVisual(h,"toSymbol",p[1]),g[0]&&d.setItemVisual(h,"fromSymbolSize",g[0]),g[1]&&d.setItemVisual(h,"toSymbolSize",g[1])}:null}}};const s9=GI;var l9=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=bt.createCanvas();this.canvas=i}return a.prototype.update=function(i,n,o,c,d,h){var f=this._getBrush(),p=this._getGradient(d,"inRange"),g=this._getGradient(d,"outOfRange"),v=this.pointSize+this.blurSize,_=this.canvas,y=_.getContext("2d"),w=i.length;_.width=n,_.height=o;for(var x=0;x0){var X=h(E)?p:g;E>0&&(E=E*W+U),L[O++]=X[$],L[O++]=X[$+1],L[O++]=X[$+2],L[O++]=X[$+3]*E*256}else O+=4}return y.putImageData(k,0,0),_},a.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=bt.createCanvas()),n=this.pointSize+this.blurSize,o=2*n;i.width=o,i.height=o;var c=i.getContext("2d");return c.clearRect(0,0,o,o),c.shadowOffsetX=o,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-n,n,this.pointSize,0,2*Math.PI,!0),c.closePath(),c.fill(),i},a.prototype._getGradient=function(i,n){for(var o=this._gradientPixels,c=o[n]||(o[n]=new Uint8ClampedArray(1024)),d=[0,0,0,0],h=0,f=0;f<256;f++)i[n](f/255,!0,d),c[h++]=d[0],c[h++]=d[1],c[h++]=d[2],c[h++]=d[3];return c},a}();const sb=l9;function o1(a){var i=a.dimensions;return"lng"===i[0]&&"lat"===i[1]}var vB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d;o.eachComponent("visualMap",function(f){f.eachTargetSeries(function(p){p===n&&(d=f)})}),this._progressiveEls=null,this.group.removeAll();var h=n.coordinateSystem;"cartesian2d"===h.type||"calendar"===h.type?this._renderOnCartesianAndCalendar(n,c,0,n.getData().count()):o1(h)&&this._renderOnGeo(h,n,d,c)},i.prototype.incrementalPrepareRender=function(n,o,c){this.group.removeAll()},i.prototype.incrementalRender=function(n,o,c,d){var h=o.coordinateSystem;h&&(o1(h)?this.render(o,c,d):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,d,n.start,n.end,!0)))},i.prototype.eachRendered=function(n){Kc(this._progressiveEls||this.group,n)},i.prototype._renderOnCartesianAndCalendar=function(n,o,c,d,h){var g,v,_,y,f=n.coordinateSystem,p=ug(f,"cartesian2d");if(p){var w=f.getAxis("x"),x=f.getAxis("y");g=w.getBandWidth()+.5,v=x.getBandWidth()+.5,_=w.scale.getExtent(),y=x.scale.getExtent()}for(var S=this.group,D=n.getData(),T=n.getModel(["emphasis","itemStyle"]).getItemStyle(),A=n.getModel(["blur","itemStyle"]).getItemStyle(),E=n.getModel(["select","itemStyle"]).getItemStyle(),k=n.get(["itemStyle","borderRadius"]),L=Sr(n),O=n.getModel("emphasis"),B=O.get("focus"),U=O.get("blurScope"),j=O.get("disabled"),W=p?[D.mapDimension("x"),D.mapDimension("y"),D.mapDimension("value")]:[D.mapDimension("time"),D.mapDimension("value")],$=c;$_[1]||tey[1])continue;var ie=f.dataToPoint([ee,te]);X=new _t({shape:{x:ie[0]-g/2,y:ie[1]-v/2,width:g,height:v},style:K})}else{if(isNaN(D.get(W[1],$)))continue;X=new _t({z2:1,shape:f.dataToRect([D.get(W[0],$)]).contentShape,style:K})}if(D.hasItemOption){var me=D.getItemModel($),ue=me.getModel("emphasis");T=ue.getModel("itemStyle").getItemStyle(),A=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),k=me.get(["itemStyle","borderRadius"]),B=ue.get("focus"),U=ue.get("blurScope"),j=ue.get("disabled"),L=Sr(me)}X.shape.r=k;var we=n.getRawValue($),Pe="-";we&&null!=we[2]&&(Pe=we[2]+""),Oa(X,L,{labelFetcher:n,labelDataIndex:$,defaultOpacity:K.opacity,defaultText:Pe}),X.ensureState("emphasis").style=T,X.ensureState("blur").style=A,X.ensureState("select").style=E,Oi(X,B,U,j),X.incremental=h,h&&(X.states.emphasis.hoverLayer=!0),S.add(X),D.setItemGraphicEl($,X),this._progressiveEls&&this._progressiveEls.push(X)}},i.prototype._renderOnGeo=function(n,o,c,d){var h=c.targetVisuals.inRange,f=c.targetVisuals.outOfRange,p=o.getData(),g=this._hmLayer||this._hmLayer||new sb;g.blurSize=o.get("blurSize"),g.pointSize=o.get("pointSize"),g.minOpacity=o.get("minOpacity"),g.maxOpacity=o.get("maxOpacity");var v=n.getViewRect().clone(),_=n.getRoamTransform();v.applyTransform(_);var y=Math.max(v.x,0),w=Math.max(v.y,0),x=Math.min(v.width+v.x,d.getWidth()),S=Math.min(v.height+v.y,d.getHeight()),D=x-y,T=S-w,A=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],E=p.mapArray(A,function(B,U,j){var W=n.dataToPoint([B,U]);return W[0]-=y,W[1]-=w,W.push(j),W}),k=c.getExtent(),L="visualMap.continuous"===c.type?function d9(a,i){var n=a[1]-a[0];return i=[(i[0]-a[0])/n,(i[1]-a[0])/n],function(o){return o>=i[0]&&o<=i[1]}}(k,c.option.range):function c9(a,i,n){var o=a[1]-a[0],c=(i=Se(i,function(h){return{interval:[(h.interval[0]-a[0])/o,(h.interval[1]-a[0])/o]}})).length,d=0;return function(h){var f;for(f=d;f=0;f--){var p;if((p=i[f].interval)[0]<=h&&h<=p[1]){d=f;break}}return f>=0&&f0?1:-1})(n,d,c,o,y),function g9(a,i,n,o,c,d,h,f,p,g){var x,v=p.valueDim,_=p.categoryDim,y=Math.abs(n[_.wh]),w=a.getItemVisual(i,"symbolSize");(x=ye(w)?w.slice():null==w?["100%","100%"]:[w,w])[_.index]=Ie(x[_.index],y),x[v.index]=Ie(x[v.index],o?y:Math.abs(d)),g.symbolSize=x,(g.symbolScale=[x[0]/f,x[1]/f])[v.index]*=(p.isHorizontal?-1:1)*h}(a,i,c,d,0,y.boundingLength,y.pxSign,v,o,y),function v9(a,i,n,o,c){var d=a.get(h9)||0;d&&(wB.attr({scaleX:i[0],scaleY:i[1],rotation:n}),wB.updateTransform(),d/=wB.getLineScale(),d*=i[o.valueDim.index]),c.valueLineWidth=d||0}(n,y.symbolScale,g,o,y);var w=y.symbolSize,x=pf(n.get("symbolOffset"),w);return function WI(a,i,n,o,c,d,h,f,p,g,v,_){var y=v.categoryDim,w=v.valueDim,x=_.pxSign,S=Math.max(i[w.index]+f,0),D=S;if(o){var T=Math.abs(p),A=it(a.get("symbolMargin"),"15%")+"",E=!1;A.lastIndexOf("!")===A.length-1&&(E=!0,A=A.slice(0,A.length-1));var k=Ie(A,i[w.index]),L=Math.max(S+2*k,0),O=E?0:2*k,B=Sh(o),U=B?o:Ug((T+O)/L);L=S+2*(k=(T-U*S)/2/(E?U:Math.max(U-1,1))),O=E?0:2*k,!B&&"fixed"!==o&&(U=g?Ug((Math.abs(g)+O)/L):0),D=U*L-O,_.repeatTimes=U,_.symbolMargin=k}var W=x*(D/2),$=_.pathPosition=[];$[y.index]=n[y.wh]/2,$[w.index]="start"===h?W:"end"===h?p-W:p/2,d&&($[0]+=d[0],$[1]+=d[1]);var X=_.bundlePosition=[];X[y.index]=n[y.xy],X[w.index]=n[w.xy];var K=_.barRectShape=_e({},n);K[w.wh]=x*Math.max(Math.abs(n[w.wh]),Math.abs($[w.index]+W)),K[y.wh]=n[y.wh];var ee=_.clipShape={};ee[y.xy]=-n[y.xy],ee[y.wh]=v.ecSize[y.wh],ee[w.xy]=0,ee[w.wh]=n[w.wh]}(n,w,c,d,0,x,f,y.valueLineWidth,y.boundingLength,y.repeatCutLength,o,y),y}function xB(a,i){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(i)))}function hl(a){var i=a.symbolPatternSize,n=ji(a.symbolType,-i/2,-i/2,i,i);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function CB(a,i,n,o){var c=a.__pictorialBundle,f=n.pathPosition,p=i.valueDim,g=n.repeatTimes||0,v=0,_=n.symbolSize[i.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for($I(a,function(S){S.__pictorialAnimationIndex=v,S.__pictorialRepeatTimes=g,v0:T<0)&&(A=g-1-S),D[p.index]=_*(A-g/2+.5)+f[p.index],{x:D[0],y:D[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Vg(a,i,n,o){var c=a.__pictorialBundle,d=a.__pictorialMainPath;d?zg(d,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,o):(d=a.__pictorialMainPath=hl(n),c.add(d),zg(d,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,o))}function _9(a,i,n){var o=_e({},i.barRectShape),c=a.__pictorialBarRect;c?zg(c,null,{shape:o},i,n):((c=a.__pictorialBarRect=new _t({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,a.add(c))}function SB(a,i,n,o){if(n.symbolClip){var c=a.__pictorialClipPath,d=_e({},n.clipShape),h=i.valueDim,f=n.animationModel,p=n.dataIndex;if(c)zt(c,{shape:d},f,p);else{d[h.wh]=0,c=new _t({shape:d}),a.__pictorialBundle.setClipPath(c),a.__pictorialClipPath=c;var g={};g[h.wh]=n.clipShape[h.wh],Gt[o?"updateProps":"initProps"](c,{shape:g},f,p)}}}function DB(a,i){var n=a.getItemModel(i);return n.getAnimationDelayParams=TB,n.isAnimationEnabled=s1,n}function TB(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function s1(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function MB(a,i,n,o){var c=new rt,d=new rt;return c.add(d),c.__pictorialBundle=d,d.x=n.bundlePosition[0],d.y=n.bundlePosition[1],n.symbolRepeat?CB(c,i,n):Vg(c,0,n),_9(c,n,o),SB(c,i,n,o),c.__pictorialShapeStr=Bg(a,n),c.__pictorialSymbolMeta=n,c}function Jf(a,i,n,o){var c=o.__pictorialBarRect;c&&c.removeTextContent();var d=[];$I(o,function(h){d.push(h)}),o.__pictorialMainPath&&d.push(o.__pictorialMainPath),o.__pictorialClipPath&&(n=null),G(d,function(h){Hc(h,{scaleX:0,scaleY:0},n,i,function(){o.parent&&o.parent.remove(o)})}),a.setItemGraphicEl(i,null)}function Bg(a,i){return[a.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function $I(a,i,n){G(a.__pictorialBundle.children(),function(o){o!==a.__pictorialBarRect&&i.call(n,o)})}function zg(a,i,n,o,c,d){i&&a.attr(i),o.symbolClip&&!c?n&&a.attr(n):n&&Gt[c?"updateProps":"initProps"](a,n,o.animationModel,o.dataIndex,d)}function Hg(a,i,n){var o=n.dataIndex,c=n.itemModel,d=c.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle(),f=c.getModel(["blur","itemStyle"]).getItemStyle(),p=c.getModel(["select","itemStyle"]).getItemStyle(),g=c.getShallow("cursor"),v=d.get("focus"),_=d.get("blurScope"),y=d.get("scale");$I(a,function(S){if(S instanceof Jr){var D=S.style;S.useStyle(_e({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},n.style))}else S.useStyle(n.style);var T=S.ensureState("emphasis");T.style=h,y&&(T.scaleX=1.1*S.scaleX,T.scaleY=1.1*S.scaleY),S.ensureState("blur").style=f,S.ensureState("select").style=p,g&&(S.cursor=g),S.z2=n.z2});var w=i.valueDim.posDesc[+(n.boundingLength>0)];Oa(a.__pictorialBarRect,Sr(c),{labelFetcher:i.seriesModel,labelDataIndex:o,defaultText:yy(i.seriesModel.getData(),o),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:w}),Oi(a,v,_,d.get("disabled"))}function Ug(a){var i=Math.round(a);return Math.abs(a-i)<1e-4?i:Math.ceil(a)}const b9=VQ;var w9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return de(i,a),i.prototype.getInitialData=function(n){return n.stack=null,a.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=Ho(fg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(fg);const x9=w9;var S9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._layers=[],n}return de(i,a),i.prototype.render=function(n,o,c){var d=n.getData(),h=this,f=this.group,p=n.getLayerSeries(),g=d.getLayout("layoutInfo"),v=g.rect,_=g.boundaryGap;function y(D){return D.name}f.x=0,f.y=v.y+_[0];var w=new Qc(this._layersSeries||[],p,y,y),x=[];function S(D,T,A){var E=h._layers;if("remove"!==D){for(var O,k=[],L=[],B=p[T].indices,U=0;Ud&&(d=f),o.push(f)}for(var g=0;gd&&(d=_)}return{y0:c,max:d}}(f),g=p.y0,v=n/p.max,_=c.length,y=c[0].indices.length,x=0;xMath.PI/2?"right":"left"):X&&"center"!==X?"left"===X?(W=h.r0+$,p>Math.PI/2&&(X="right")):"right"===X&&(W=h.r-$,p>Math.PI/2&&(X="left")):(W=f===2*Math.PI&&0===h.r0?0:(h.r+h.r0)/2,X="center"),k.style.align=X,k.style.verticalAlign=D(A,"verticalAlign")||"middle",k.x=W*g+h.cx,k.y=W*v+h.cy;var K=D(A,"rotate"),ee=0;"radial"===K?(ee=Us(-p))>Math.PI/2&&ee<1.5*Math.PI&&(ee+=Math.PI):"tangential"===K?(ee=Math.PI/2-p)>Math.PI/2?ee-=Math.PI:ee<-Math.PI/2&&(ee+=Math.PI):on(K)&&(ee=K*Math.PI/180),k.rotation=Us(ee)}),y.dirtyStyle()},i}(jr);const IB=I9;var qI="sunburstRootToNode",kB="sunburstHighlight",ZI=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this;this.seriesModel=n,this.api=c,this.ecModel=o;var f=n.getData(),p=f.tree.root,g=n.getViewRoot(),v=this.group,_=n.get("renderLabelForZeroData"),y=[];g.eachNode(function(A){y.push(A)}),function x(A,E){function k(O){return O.getId()}function L(O,B){!function S(A,E){if(!_&&A&&!A.getValue()&&(A=null),A!==p&&E!==p)if(E&&E.piece)A?(E.piece.updateData(!1,A,n,o,c),f.setItemGraphicEl(A.dataIndex,E.piece)):function D(A){A&&A.piece&&(v.remove(A.piece),A.piece=null)}(E);else if(A){var k=new IB(A,n,o,c);v.add(k),f.setItemGraphicEl(A.dataIndex,k)}}(null==O?null:A[O],null==B?null:E[B])}0===A.length&&0===E.length||new Qc(E,A,k,k).add(L).update(L).remove(ct(L,null)).execute()}(y,this._oldChildren||[]),function T(A,E){E.depth>0?(h.virtualPiece?h.virtualPiece.updateData(!1,A,n,o,c):(h.virtualPiece=new IB(A,n,o,c),v.add(h.virtualPiece)),E.piece.off("click"),h.virtualPiece.on("click",function(k){h._rootToNode(E.parentNode)})):h.virtualPiece&&(v.remove(h.virtualPiece),h.virtualPiece=null)}(p,g),this._initEvents(),this._oldChildren=y},i.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(o){var c=!1;n.seriesModel.getViewRoot().eachNode(function(h){if(!c&&h.piece&&h.piece===o.target){var f=h.getModel().get("nodeClick");if("rootToNode"===f)n._rootToNode(h);else if("link"===f){var p=h.getModel(),g=p.get("link");g&&Cw(g,p.get("target",!0)||"_blank")}c=!0}})})},i.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:qI,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},i.prototype.containPoint=function(n,o){var d=o.getData().getItemLayout(0);if(d){var h=n[0]-d.cx,f=n[1]-d.cy,p=Math.sqrt(h*h+f*f);return p<=d.r&&p>=d.r0}},i.type="sunburst",i}(Rn);const XI=ZI;var Gg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.ignoreStyleOnData=!0,n}return de(i,a),i.prototype.getInitialData=function(n,o){var c={name:n.name,children:n.data};P9(c);var d=this._levelModels=Se(n.levels||[],function(p){return new Un(p,this,o)},this),h=PV.createTree(c,this,function f(p){p.wrapMethod("getItemModel",function(g,v){var _=h.getNodeByDataIndex(v),y=d[_.depth];return y&&(g.parentModel=y),g})});return h.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(n){var o=a.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(n);return o.treePathInfo=Vf(c,this),o},i.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},i.prototype.enableAriaDecal=function(){SC(this)},i.type="series.sunburst",i.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},i}(Xn);function P9(a){var i=0;G(a.children,function(o){P9(o);var c=o.value;ye(c)&&(c=c[0]),i+=c});var n=a.value;ye(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=i),n<0&&(n=0),ye(a.value)?a.value[0]=n:a.value=n}const R9=Gg;var RB=Math.PI/180;function O9(a,i,n){i.eachSeriesByType(a,function(o){var c=o.get("center"),d=o.get("radius");ye(d)||(d=[0,d]),ye(c)||(c=[c,c]);var h=n.getWidth(),f=n.getHeight(),p=Math.min(h,f),g=Ie(c[0],h),v=Ie(c[1],f),_=Ie(d[0],p/2),y=Ie(d[1],p/2),w=-o.get("startAngle")*RB,x=o.get("minAngle")*RB,S=o.getData().tree.root,D=o.getViewRoot(),T=D.depth,A=o.get("sort");null!=A&&c1(D,A);var E=0;G(D.children,function(ie){!isNaN(ie.getValue())&&E++});var k=D.getValue(),L=Math.PI/(k||E)*2,O=D.depth>0,U=(y-_)/(D.height-(O?-1:1)||1),j=o.get("clockwise"),W=o.get("stillShowZeroSum"),$=j?1:-1,X=function(ie,me){if(ie){var ue=me;if(ie!==S){var we=ie.getValue(),Pe=0===k&&W?L:we*L;Pe1;)h=h.parentNode;var f=c.getColorFromPalette(h.name||h.dataIndex+"",i);return o.depth>1&&Ae(f)&&(f=g0(f,(o.depth-1)/(d-1)*.5)),f}(h,o,d.root.height)),_e(c.ensureUniqueItemVisual(h.dataIndex,"style"),p)})})}var QI={color:"fill",borderColor:"stroke"},N9={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},pd=qt(),V9=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(n,o){return el(null,this)},i.prototype.getDataParams=function(n,o,c){var d=a.prototype.getDataParams.call(this,n,o);return c&&(d.info=pd(c).info),d},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},i}(Xn);const B9=V9;function d1(a,i){return i=i||[0,0],Se(["x","y"],function(n,o){var c=this.getAxis(n),d=i[o],h=a[o]/2;return"category"===c.type?c.getBandWidth():Math.abs(c.dataToCoord(d-h)-c.dataToCoord(d+h))},this)}function H9(a,i){return i=i||[0,0],Se([0,1],function(n){var o=i[n],c=a[n]/2,d=[],h=[];return d[n]=o-c,h[n]=o+c,d[1-n]=h[1-n]=i[1-n],Math.abs(this.dataToPoint(d)[n]-this.dataToPoint(h)[n])},this)}function j9(a,i){var n=this.getAxis(),o=i instanceof Array?i[0]:i,c=(a instanceof Array?a[0]:a)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(o-c)-n.dataToCoord(o+c))}function W9(a,i){return i=i||[0,0],Se(["Radius","Angle"],function(n,o){var d=this["get"+n+"Axis"](),h=i[o],f=a[o]/2,p="category"===d.type?d.getBandWidth():Math.abs(d.dataToCoord(h-f)-d.dataToCoord(h+f));return"Angle"===n&&(p=p*Math.PI/180),p},this)}function Z9(a,i,n,o){return a&&(a.legacy||!1!==a.legacy&&!n&&!o&&"tspan"!==i&&("text"===i||Ue(a,"text")))}function OB(a,i,n){var c,d,h,o=a;if("text"===i)h=o;else{h={},Ue(o,"text")&&(h.text=o.text),Ue(o,"rich")&&(h.rich=o.rich),Ue(o,"textFill")&&(h.fill=o.textFill),Ue(o,"textStroke")&&(h.stroke=o.textStroke),Ue(o,"fontFamily")&&(h.fontFamily=o.fontFamily),Ue(o,"fontSize")&&(h.fontSize=o.fontSize),Ue(o,"fontStyle")&&(h.fontStyle=o.fontStyle),Ue(o,"fontWeight")&&(h.fontWeight=o.fontWeight),d={type:"text",style:h,silent:!0},c={};var f=Ue(o,"textPosition");n?c.position=f?o.textPosition:"inside":f&&(c.position=o.textPosition),Ue(o,"textPosition")&&(c.position=o.textPosition),Ue(o,"textOffset")&&(c.offset=o.textOffset),Ue(o,"textRotation")&&(c.rotation=o.textRotation),Ue(o,"textDistance")&&(c.distance=o.textDistance)}return LB(h,a),G(h.rich,function(p){LB(p,p)}),{textConfig:c,textContent:d}}function LB(a,i){i&&(i.font=i.textFont||i.font,Ue(i,"textStrokeWidth")&&(a.lineWidth=i.textStrokeWidth),Ue(i,"textAlign")&&(a.align=i.textAlign),Ue(i,"textVerticalAlign")&&(a.verticalAlign=i.textVerticalAlign),Ue(i,"textLineHeight")&&(a.lineHeight=i.textLineHeight),Ue(i,"textWidth")&&(a.width=i.textWidth),Ue(i,"textHeight")&&(a.height=i.textHeight),Ue(i,"textBackgroundColor")&&(a.backgroundColor=i.textBackgroundColor),Ue(i,"textPadding")&&(a.padding=i.textPadding),Ue(i,"textBorderColor")&&(a.borderColor=i.textBorderColor),Ue(i,"textBorderWidth")&&(a.borderWidth=i.textBorderWidth),Ue(i,"textBorderRadius")&&(a.borderRadius=i.textBorderRadius),Ue(i,"textBoxShadowColor")&&(a.shadowColor=i.textBoxShadowColor),Ue(i,"textBoxShadowBlur")&&(a.shadowBlur=i.textBoxShadowBlur),Ue(i,"textBoxShadowOffsetX")&&(a.shadowOffsetX=i.textBoxShadowOffsetX),Ue(i,"textBoxShadowOffsetY")&&(a.shadowOffsetY=i.textBoxShadowOffsetY))}function FB(a,i,n){var o=a;o.textPosition=o.textPosition||n.position||"inside",null!=n.offset&&(o.textOffset=n.offset),null!=n.rotation&&(o.textRotation=n.rotation),null!=n.distance&&(o.textDistance=n.distance);var c=o.textPosition.indexOf("inside")>=0,d=a.fill||"#000";NB(o,i);var h=null==o.textFill;return c?h&&(o.textFill=n.insideFill||"#fff",!o.textStroke&&n.insideStroke&&(o.textStroke=n.insideStroke),!o.textStroke&&(o.textStroke=d),null==o.textStrokeWidth&&(o.textStrokeWidth=2)):(h&&(o.textFill=a.fill||n.outsideFill||"#000"),!o.textStroke&&n.outsideStroke&&(o.textStroke=n.outsideStroke)),o.text=i.text,o.rich=i.rich,G(i.rich,function(f){NB(f,f)}),o}function NB(a,i){i&&(Ue(i,"fill")&&(a.textFill=i.fill),Ue(i,"stroke")&&(a.textStroke=i.fill),Ue(i,"lineWidth")&&(a.textStrokeWidth=i.lineWidth),Ue(i,"font")&&(a.font=i.font),Ue(i,"fontStyle")&&(a.fontStyle=i.fontStyle),Ue(i,"fontWeight")&&(a.fontWeight=i.fontWeight),Ue(i,"fontSize")&&(a.fontSize=i.fontSize),Ue(i,"fontFamily")&&(a.fontFamily=i.fontFamily),Ue(i,"align")&&(a.textAlign=i.align),Ue(i,"verticalAlign")&&(a.textVerticalAlign=i.verticalAlign),Ue(i,"lineHeight")&&(a.textLineHeight=i.lineHeight),Ue(i,"width")&&(a.textWidth=i.width),Ue(i,"height")&&(a.textHeight=i.height),Ue(i,"backgroundColor")&&(a.textBackgroundColor=i.backgroundColor),Ue(i,"padding")&&(a.textPadding=i.padding),Ue(i,"borderColor")&&(a.textBorderColor=i.borderColor),Ue(i,"borderWidth")&&(a.textBorderWidth=i.borderWidth),Ue(i,"borderRadius")&&(a.textBorderRadius=i.borderRadius),Ue(i,"shadowColor")&&(a.textBoxShadowColor=i.shadowColor),Ue(i,"shadowBlur")&&(a.textBoxShadowBlur=i.shadowBlur),Ue(i,"shadowOffsetX")&&(a.textBoxShadowOffsetX=i.shadowOffsetX),Ue(i,"shadowOffsetY")&&(a.textBoxShadowOffsetY=i.shadowOffsetY),Ue(i,"textShadowColor")&&(a.textShadowColor=i.textShadowColor),Ue(i,"textShadowBlur")&&(a.textShadowBlur=i.textShadowBlur),Ue(i,"textShadowOffsetX")&&(a.textShadowOffsetX=i.textShadowOffsetX),Ue(i,"textShadowOffsetY")&&(a.textShadowOffsetY=i.textShadowOffsetY))}var VB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},BB=Wt(VB),lb=(ln(yo,function(a,i){return a[i]=1,a},{}),yo.join(", "),["","style","shape","extra"]),Wg=qt();function Lu(a,i,n,o,c){var d=a+"Animation",h=am(a,o,c)||{},f=Wg(i).userDuring;return h.duration>0&&(h.during=f?he(Q9,{el:i,userDuring:f}):null,h.setToFinal=!0,h.scope=a),_e(h,n[d]),h}function md(a,i,n,o){var c=(o=o||{}).dataIndex,d=o.isInit,h=o.clearStyle,f=n.isAnimationEnabled(),p=Wg(a),g=i.style;p.userDuring=i.during;var v={},_={};if(function e$(a,i,n){for(var o=0;o=0)){var y=a.getAnimationStyleProps(),w=y?y.style:null;if(w){!d&&(d=o.style={});var x=Wt(n);for(g=0;g0&&a.animateFrom(y,w)}else!function JI(a,i,n,o,c){if(c){var d=Lu("update",a,i,o,n);d.duration>0&&a.animateFrom(c,d)}}(a,i,c||0,n,v);u1(a,i),g?a.dirty():a.markRedraw()}function u1(a,i){for(var n=Wg(a).leaveToProps,o=0;o=0){!h&&(h=o[a]={});var w=Wt(d);for(v=0;vo[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:function(c){var d=i.dataToRadius(c[0]),h=n.dataToAngle(c[1]),f=a.coordToPoint([d,h]);return f.push(d,h*Math.PI/180),f},size:he(W9,a)}}},calendar:function Y9(a){var i=a.getRect(),n=a.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(o,c){return a.dataToPoint(o,c)}}}}};function db(a){return a instanceof It}function p1(a){return a instanceof zo}var qB=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c,d){this._progressiveEls=null;var h=this._data,f=n.getData(),p=this.group,g=ak(n,f,o,c);h||p.removeAll(),f.diff(h).add(function(_){sk(c,null,_,g(_,d),n,p,f)}).remove(function(_){var y=h.getItemGraphicEl(_);y&&h1(y,pd(y).option,n)}).update(function(_,y){var w=h.getItemGraphicEl(y);sk(c,w,_,g(_,d),n,p,f)}).execute();var v=n.get("clip",!0)?Cy(n.coordinateSystem,!1,n):null;v?p.setClipPath(v):p.removeClipPath(),this._data=f},i.prototype.incrementalPrepareRender=function(n,o,c){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(n,o,c,d,h){var f=o.getData(),p=ak(o,f,c,d),g=this._progressiveEls=[];function v(w){w.isGroup||(w.incremental=!0,w.ensureState("emphasis").hoverLayer=!0)}for(var _=n.start;_=0?i.getStore().get(me,te):void 0}var ue=i.get(ie.name,te),we=ie&&ie.ordinalMeta;return we?we.categories[ue]:ue},styleEmphasis:function B(ee,te){null==te&&(te=g);var ie=A(te,gd).getItemStyle(),me=E(te,gd),ue=Zn(me,null,null,!0,!0);ue.text=me.getShallow("show")?Ro(a.getFormattedLabel(te,gd),a.getFormattedLabel(te,Xr),yy(i,te)):null;var we=dw(me,null,!0);return j(ee,ie),ie=FB(ie,ue,we),ee&&U(ie,ee),ie.legacy=!0,ie},visual:function W(ee,te){if(null==te&&(te=g),Ue(QI,ee)){var ie=i.getItemVisual(te,"style");return ie?ie[QI[ee]]:null}if(Ue(N9,ee))return i.getItemVisual(te,ee)},barLayout:function $(ee){if("cartesian2d"===d.type)return function IF(a){var i=[],n=a.axis,o="axis0";if("category"===n.type){for(var c=n.getBandWidth(),d=0;d=v;w--){var x=i.childAt(w);l$(i,x,c)}}}(a,g,n,o,c),h>=0?d.replaceAt(g,h):d.add(g),g}function r$(a,i,n){var o=pd(a),c=i.type,d=i.shape,h=i.style;return n.isUniversalTransitionEnabled()||null!=c&&c!==o.customGraphicType||"path"===c&&function c$(a){return a&&(Ue(a,"pathData")||Ue(a,"d"))}(d)&&t5(d)!==o.customPathData||"image"===c&&Ue(h,"image")&&h.image!==o.customImagePath}function o$(a,i,n){var o=i?ck(a,i):a,c=i?QB(a,o,gd):a.style,d=a.type,h=o?o.textConfig:null,f=a.textContent,p=f?i?ck(f,i):f:null;if(c&&(n.isLegacy||Z9(c,d,!!h,!!p))){n.isLegacy=!0;var g=OB(c,d,!i);!h&&g.textConfig&&(h=g.textConfig),!p&&g.textContent&&(p=g.textContent)}!i&&p&&!p.type&&(p.type="text");var _=i?n[i]:n.normal;_.cfg=h,_.conOpt=p}function ck(a,i){return i?a?a[i]:null:a}function QB(a,i,n){var o=i&&i.style;return null==o&&n===gd&&a&&(o=a.styleEmphasis),o}function l$(a,i,n){i&&h1(i,pd(a).option,n)}function dk(a,i){return(a&&a.name)??jQ+i}function JB(a,i){var n=this.context;lk(n.api,null!=i?n.oldChildren[i]:null,n.dataIndex,null!=a?n.newChildren[a]:null,n.seriesModel,n.group)}function e5(a){var i=this.context,n=i.oldChildren[a];n&&h1(n,pd(n).option,i.seriesModel)}function t5(a){return a&&(a.pathData||a.d)}var tp=qt(),n5=nt,m1=he,u$=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(i,n,o,c){var d=n.get("value"),h=n.get("status");if(this._axisModel=i,this._axisPointerModel=n,this._api=o,c||this._lastValue!==d||this._lastStatus!==h){this._lastValue=d,this._lastStatus=h;var f=this._group,p=this._handle;if(!h||"hide"===h)return f&&f.hide(),void(p&&p.hide());f&&f.show(),p&&p.show();var g={};this.makeElOption(g,d,i,n,o);var v=g.graphicKey;v!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=v;var _=this._moveAnimation=this.determineAnimation(i,n);if(f){var y=ct(h$,n,_);this.updatePointerEl(f,g,y),this.updateLabelEl(f,g,y,n)}else f=this._group=new rt,this.createPointerEl(f,g,i,n),this.createLabelEl(f,g,i,n),o.getZr().add(f);m$(f,n,!0),this._renderHandle(d)}},a.prototype.remove=function(i){this.clear(i)},a.prototype.dispose=function(i){this.clear(i)},a.prototype.determineAnimation=function(i,n){var o=n.get("animation"),c=i.axis,d="category"===c.type,h=n.get("snap");if(!h&&!d)return!1;if("auto"===o||null==o){var f=this.animationThreshold;if(d&&c.getBandWidth()>f)return!0;if(h){var p=Ln(i).seriesDataCount,g=c.getExtent();return Math.abs(g[0]-g[1])/p>f}return!1}return!0===o},a.prototype.makeElOption=function(i,n,o,c,d){},a.prototype.createPointerEl=function(i,n,o,c){var d=n.pointer;if(d){var h=tp(i).pointerEl=new Gt[d.type](n5(n.pointer));i.add(h)}},a.prototype.createLabelEl=function(i,n,o,c){if(n.label){var d=tp(i).labelEl=new Zt(n5(n.label));i.add(d),p$(d,c)}},a.prototype.updatePointerEl=function(i,n,o){var c=tp(i).pointerEl;c&&n.pointer&&(c.setStyle(n.pointer.style),o(c,{shape:n.pointer.shape}))},a.prototype.updateLabelEl=function(i,n,o,c){var d=tp(i).labelEl;d&&(d.setStyle(n.label.style),o(d,{x:n.label.x,y:n.label.y}),p$(d,c))},a.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var f,n=this._axisPointerModel,o=this._api.getZr(),c=this._handle,d=n.getModel("handle"),h=n.get("status");if(!d.get("show")||!h||"hide"===h)return c&&o.remove(c),void(this._handle=null);this._handle||(f=!0,c=this._handle=Ks(d.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(g){Ps(g.event)},onmousedown:m1(this._onHandleDragMove,this,0,0),drift:m1(this._onHandleDragMove,this),ondragend:m1(this._onHandleDragEnd,this)}),o.add(c)),m$(c,n,!1),c.setStyle(d.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var p=d.get("size");ye(p)||(p=[p,p]),c.scaleX=p[0]/2,c.scaleY=p[1]/2,rf(this,"_doDispatchAxisPointer",d.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,f)}},a.prototype._moveHandleToValue=function(i,n){h$(this._axisPointerModel,!n&&this._moveAnimation,this._handle,r5(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(i,n){var o=this._handle;if(o){this._dragging=!0;var c=this.updateHandleTransform(r5(o),[i,n],this._axisModel,this._axisPointerModel);this._payloadInfo=c,o.stopAnimation(),o.attr(r5(c)),tp(o).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){if(this._handle){var n=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var n=i.getZr(),o=this._group,c=this._handle;n&&o&&(this._lastGraphicKey=null,o&&n.remove(o),c&&n.remove(c),this._group=null,this._handle=null,this._payloadInfo=null),af(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(i,n,o){return{x:i[o=o||0],y:i[1-o],width:n[o],height:n[1-o]}},a}();function h$(a,i,n,o){f$(tp(n).lastProp,o)||(tp(n).lastProp=o,i?zt(n,o,a):(n.stopAnimation(),n.attr(o)))}function f$(a,i){if(Ee(a)&&Ee(i)){var n=!0;return G(i,function(o,c){n=n&&f$(a[c],o)}),!!n}return a===i}function p$(a,i){a[i.get(["label","show"])?"show":"hide"]()}function r5(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function m$(a,i,n){var o=i.get("z"),c=i.get("zlevel");a&&a.traverse(function(d){"group"!==d.type&&(null!=o&&(d.z=o),null!=c&&(d.zlevel=c),d.silent=n)})}const a5=u$;function uk(a){var o,i=a.get("type"),n=a.getModel(i+"Style");return"line"===i?(o=n.getLineStyle()).fill=null:"shadow"===i&&((o=n.getAreaStyle()).stroke=null),o}function Ot(a,i,n,o,c){var h=hk(n.get("value"),i.axis,i.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),f=n.getModel("label"),p=jh(f.get("padding")||0),g=f.getFont(),v=M0(h,g),_=c.position,y=v.width+p[1]+p[3],w=v.height+p[0]+p[2],x=c.align;"right"===x&&(_[0]-=y),"center"===x&&(_[0]-=y/2);var S=c.verticalAlign;"bottom"===S&&(_[1]-=w),"middle"===S&&(_[1]-=w/2),function xa(a,i,n,o){var c=o.getWidth(),d=o.getHeight();a[0]=Math.min(a[0]+i,c)-i,a[1]=Math.min(a[1]+n,d)-n,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}(_,y,w,o);var D=f.get("backgroundColor");(!D||"auto"===D)&&(D=i.get(["axisLine","lineStyle","color"])),a.label={x:_[0],y:_[1],style:Zn(f,{text:h,font:g,fill:f.getTextColor(),padding:p,backgroundColor:D}),z2:10}}function hk(a,i,n,o,c){a=i.scale.parse(a);var d=i.scale.getLabel({value:a},{precision:c.precision}),h=c.formatter;if(h){var f={value:Px(i,{value:a}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};G(o,function(p){var g=n.getSeriesByIndex(p.seriesIndex),_=g&&g.getDataParams(p.dataIndexInside);_&&f.seriesData.push(_)}),Ae(h)?d=h.replace("{value}",d):Xe(h)&&(d=h(f))}return d}function Yg(a,i,n){var o=[1,0,0,1,0,0];return Rd(o,o,n.rotation),ar(o,o,n.position),Xs([a.dataToCoord(i),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],o)}function gr(a,i,n,o,c,d){var h=sl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=c.get(["label","margin"]),Ot(i,o,c,d,{position:Yg(o.axis,a,n),align:h.textAlign,verticalAlign:h.textVerticalAlign})}function ml(a,i,n){return{x1:a[n=n||0],y1:a[1-n],x2:i[n],y2:i[1-n]}}function fk(a,i,n){return{x:a[n=n||0],y:a[1-n],width:i[n],height:i[1-n]}}function o5(a,i,n,o,c,d){return{cx:a,cy:i,r0:n,r:o,startAngle:c,endAngle:d,clockwise:!0}}var g$=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.makeElOption=function(n,o,c,d,h){var f=c.axis,p=f.grid,g=d.get("type"),v=s5(p,f).getOtherAxis(f).getGlobalExtent(),_=f.toGlobalCoord(f.dataToCoord(o,!0));if(g&&"none"!==g){var y=uk(d),w=vd[g](f,_,v);w.style=y,n.graphicKey=w.type,n.pointer=w}gr(o,n,QA(p.model,c),c,d,h)},i.prototype.getHandleTransform=function(n,o,c){var d=QA(o.axis.grid.model,o,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var h=Yg(o.axis,n,d);return{x:h[0],y:h[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(n,o,c,d){var h=c.axis,f=h.grid,p=h.getGlobalExtent(!0),g=s5(f,h).getOtherAxis(h).getGlobalExtent(),v="x"===h.dim?0:1,_=[n.x,n.y];_[v]+=o[v],_[v]=Math.min(p[1],_[v]),_[v]=Math.max(p[0],_[v]);var y=(g[1]+g[0])/2,w=[y,y];return w[v]=_[v],{x:_[0],y:_[1],rotation:n.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][v]}},i}(a5);function s5(a,i){var n={};return n[i.dim+"AxisIndex"]=i.index,a.getCartesian(n)}var vd={line:function(a,i,n){return{type:"Line",subPixelOptimize:!0,shape:ml([i,n[0]],[i,n[1]],pk(a))}},shadow:function(a,i,n){var o=Math.max(1,a.getBandWidth());return{type:"Rect",shape:fk([i-o/2,n[0]],[o,n[1]-n[0]],pk(a))}}};function pk(a){return"x"===a.dim?0:1}const v$=g$;var _$=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="axisPointer",i.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(en);const y$=_$;var _d=qt(),g1=G;function v1(a,i,n){if(!tn.node){var o=i.getZr();_d(o).records||(_d(o).records={}),function ub(a,i){function n(o,c){a.on(o,function(d){var h=function gk(a){var i={showTip:[],hideTip:[]},n=function(o){var c=i[o.type];c?c.push(o):(o.dispatchAction=n,a.dispatchAction(o))};return{dispatchAction:n,pendings:i}}(i);g1(_d(a).records,function(f){f&&c(f,d,h.dispatchAction)}),function b$(a,i){var c,n=a.showTip.length,o=a.hideTip.length;n?c=a.showTip[n-1]:o&&(c=a.hideTip[o-1]),c&&(c.dispatchAction=null,i.dispatchAction(c))}(h.pendings,i)})}_d(a).initialized||(_d(a).initialized=!0,n("click",ct(qg,"click")),n("mousemove",ct(qg,"mousemove")),n("globalout",mk))}(o,i),(_d(o).records[a]||(_d(o).records[a]={})).handler=n}}function mk(a,i,n){a.handler("leave",null,n)}function qg(a,i,n,o){i.handler(a,n,o)}function vk(a,i){if(!tn.node){var n=i.getZr();(_d(n).records||{})[a]&&(_d(n).records[a]=null)}}var w$=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=o.getComponent("tooltip"),h=n.get("triggerOn")||d&&d.get("triggerOn")||"mousemove|click";v1("axisPointer",c,function(f,p,g){"none"!==h&&("leave"===f||h.indexOf(f)>=0)&&g({type:"updateAxisPointer",currTrigger:f,x:p&&p.offsetX,y:p&&p.offsetY})})},i.prototype.remove=function(n,o){vk("axisPointer",o)},i.prototype.dispose=function(n,o){vk("axisPointer",o)},i.type="axisPointer",i}(li);const YQ=w$;function l5(a,i){var c,n=[],o=a.seriesIndex;if(null==o||!(c=i.getSeriesByIndex(o)))return{point:[]};var d=c.getData(),h=Lc(d,a);if(null==h||h<0||ye(h))return{point:[]};var f=d.getItemGraphicEl(h),p=c.coordinateSystem;if(c.getTooltipPosition)n=c.getTooltipPosition(h)||[];else if(p&&p.dataToPoint)if(a.isStacked){var g=p.getBaseAxis(),_=p.getOtherAxis(g).dim,w="x"===_||"radius"===_?1:0,x=d.mapDimension(g.dim),S=[];S[w]=d.get(x,h),S[1-w]=d.get(d.getCalculationInfo("stackResultDimension"),h),n=p.dataToPoint(S)||[]}else n=p.dataToPoint(d.getValues(Se(p.dimensions,function(T){return d.mapDimension(T)}),h))||[];else if(f){var D=f.getBoundingRect().clone();D.applyTransform(f.transform),n=[D.x+D.width/2,D.y+D.height/2]}return{point:n,el:f}}var _1=qt();function y1(a,i,n){var o=a.currTrigger,c=[a.x,a.y],d=a,h=a.dispatchAction||he(n.dispatchAction,n),f=i.getComponent("axisPointer").coordSysAxesInfo;if(f){yk(c)&&(c=l5({seriesIndex:d.seriesIndex,dataIndex:d.dataIndex},i).point);var p=yk(c),g=d.axesInfo,v=f.axesInfo,_="leave"===o||yk(c),y={},w={},x={list:[],map:{}},S={showPointer:ct(qQ,w),showTooltip:ct(C$,x)};G(f.coordSysMap,function(T,A){var E=p||T.containPoint(c);G(f.coordSysAxesInfo[A],function(k,L){var O=k.axis,B=function T$(a,i){for(var n=0;n<(a||[]).length;n++){var o=a[n];if(i.axis.dim===o.axisDim&&i.axis.model.componentIndex===o.axisIndex)return o}}(g,k);if(!_&&E&&(!g||B)){var U=B&&B.value;null==U&&!p&&(U=O.pointToData(c)),null!=U&&_k(k,U,S,!1,y)}})});var D={};return G(v,function(T,A){var E=T.linkGroup;E&&!w[A]&&G(E.axesInfo,function(k,L){var O=w[L];if(k!==T&&O){var B=O.value;E.mapper&&(B=T.axis.scale.parse(E.mapper(B,w1(k),w1(T)))),D[T.key]=B}})}),G(D,function(T,A){_k(v[A],T,S,!0,y)}),function S$(a,i,n){var o=n.axesInfo=[];G(i,function(c,d){var h=c.axisPointerModel.option,f=a[d];f?(!c.useHandle&&(h.status="show"),h.value=f.value,h.seriesDataIndices=(f.payloadBatch||[]).slice()):!c.useHandle&&(h.status="hide"),"show"===h.status&&o.push({axisDim:c.axis.dim,axisIndex:c.axis.model.componentIndex,value:h.value})})}(w,v,y),function b1(a,i,n,o){if(!yk(i)&&a.list.length){var c=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:c.dataIndexInside,dataIndex:c.dataIndex,seriesIndex:c.seriesIndex,dataByCoordSys:a.list})}else o({type:"hideTip"})}(x,c,a,h),function D$(a,i,n){var o=n.getZr(),c="axisPointerLastHighlights",d=_1(o)[c]||{},h=_1(o)[c]={};G(a,function(g,v){var _=g.axisPointerModel.option;"show"===_.status&&g.triggerEmphasis&&G(_.seriesDataIndices,function(y){h[y.seriesIndex+" | "+y.dataIndex]=y})});var f=[],p=[];G(d,function(g,v){!h[v]&&p.push(g)}),G(h,function(g,v){!d[v]&&f.push(g)}),p.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:p}),f.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:f})}(v,0,n),y}}function _k(a,i,n,o,c){var d=a.axis;if(!d.scale.isBlank()&&d.containData(i)){if(!a.involveSeries)return void n.showPointer(a,i);var h=function x$(a,i){var n=i.axis,o=n.dim,c=a,d=[],h=Number.MAX_VALUE,f=-1;return G(i.seriesModels,function(p,g){var _,y,v=p.getData().mapDimensionsAll(o);if(p.getAxisTooltipData){var w=p.getAxisTooltipData(v,a,n);y=w.dataIndices,_=w.nestestValue}else{if(!(y=p.getData().indicesOfNearest(v[0],a,"category"===n.type?.5:null)).length)return;_=p.getData().get(v[0],y[0])}if(null!=_&&isFinite(_)){var x=a-_,S=Math.abs(x);S<=h&&((S=0&&f<0)&&(h=S,f=x,c=_,d.length=0),G(y,function(D){d.push({seriesIndex:p.seriesIndex,dataIndexInside:D,dataIndex:p.getData().getRawIndex(D)})}))}}),{payloadBatch:d,snapToValue:c}}(i,a),f=h.payloadBatch,p=h.snapToValue;f[0]&&null==c.seriesIndex&&_e(c,f[0]),!o&&a.snap&&d.containData(p)&&null!=p&&(i=p),n.showPointer(a,i,f),n.showTooltip(a,h,p)}}function qQ(a,i,n,o){a[i.key]={value:n,payloadBatch:o}}function C$(a,i,n,o){var c=n.payloadBatch,d=i.axis,h=d.model,f=i.axisPointerModel;if(i.triggerTooltip&&c.length){var p=i.coordSys.model,g=Tu(p),v=a.map[g];v||(v=a.map[g]={coordSysId:p.id,coordSysIndex:p.componentIndex,coordSysType:p.type,coordSysMainType:p.mainType,dataByAxis:[]},a.list.push(v)),v.dataByAxis.push({axisDim:d.dim,axisIndex:h.componentIndex,axisType:h.type,axisId:h.id,value:o,valueLabelOpt:{precision:f.get(["label","precision"]),formatter:f.get(["label","formatter"])},seriesDataIndices:c.slice()})}}function w1(a){var i=a.axis.model,n={},o=n.axisDim=a.axis.dim;return n.axisIndex=n[o+"AxisIndex"]=i.componentIndex,n.axisName=n[o+"AxisName"]=i.name,n.axisId=n[o+"AxisId"]=i.id,n}function yk(a){return!a||null==a[0]||isNaN(a[0])||null==a[1]||isNaN(a[1])}function Ds(a){wa.registerAxisPointerClass("CartesianAxisPointer",v$),a.registerComponentModel(y$),a.registerComponentView(YQ),a.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var n=i.axisPointer.link;n&&!ye(n)&&(i.axisPointer.link=[n])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(i,n){i.getComponent("axisPointer").coordSysAxesInfo=function o6(a,i){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function s6(a,i,n){var o=i.getComponent("tooltip"),c=i.getComponent("axisPointer"),d=c.get("link",!0)||[],h=[];G(n.getCoordinateSystems(),function(f){if(f.axisPointerEnabled){var p=Tu(f.model),g=a.coordSysAxesInfo[p]={};a.coordSysMap[p]=f;var _=f.model.getModel("tooltip",o);if(G(f.getAxes(),ct(S,!1,null)),f.getTooltipAxes&&o&&_.get("show")){var y="axis"===_.get("trigger"),w="cross"===_.get(["axisPointer","type"]),x=f.getTooltipAxes(_.get(["axisPointer","axis"]));(y||w)&&G(x.baseAxes,ct(S,!w||"cross",y)),w&&G(x.otherAxes,ct(S,"cross",!1))}}function S(D,T,A){var E=A.model.getModel("axisPointer",c),k=E.get("show");if(k&&("auto"!==k||D||nE(E))){null==T&&(T=E.get("triggerTooltip")),E=D?function l6(a,i,n,o,c,d){var h=i.getModel("axisPointer"),p={};G(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(y){p[y]=nt(h.get(y))}),p.snap="category"!==a.type&&!!d,"cross"===h.get("type")&&(p.type="line");var g=p.label||(p.label={});if(null==g.show&&(g.show=!1),"cross"===c){var v=h.get(["label","show"]);if(g.show=v??!0,!d){var _=p.lineStyle=h.get("crossStyle");_&&Ze(g,_.textStyle)}}return a.model.getModel("axisPointer",new Un(p,n,o))}(A,_,c,i,D,T):E;var L=E.get("snap"),O=E.get("triggerEmphasis"),B=Tu(A.model),U=T||L||"category"===A.type,j=a.axesInfo[B]={key:B,axis:A,coordSys:f,axisPointerModel:E,triggerTooltip:T,triggerEmphasis:O,involveSeries:U,snap:L,useHandle:nE(E),seriesModels:[],linkGroup:null};g[B]=j,a.seriesInvolved=a.seriesInvolved||U;var W=function Py(a,i){for(var n=i.model,o=i.dim,c=0;cD?"left":"right",_=Math.abs(g[1]-T)/S<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:v,verticalAlign:_}}(o,c,0,p,d.get(["label","margin"]));Ot(n,c,d,h,D)},i}(a5),hb={line:function(a,i,n,o){return"angle"===a.dim?{type:"Line",shape:ml(i.coordToPoint([o[0],n]),i.coordToPoint([o[1],n]))}:{type:"Circle",shape:{cx:i.cx,cy:i.cy,r:n}}},shadow:function(a,i,n,o){var c=Math.max(1,a.getBandWidth()),d=Math.PI/180;return"angle"===a.dim?{type:"Sector",shape:o5(i.cx,i.cy,o[0],o[1],(-n-c/2)*d,(c/2-n)*d)}:{type:"Sector",shape:o5(i.cx,i.cy,n-c/2,n+c/2,0,2*Math.PI)}}};const d5=A$;var bk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.findAxisModel=function(n){var o;return this.ecModel.eachComponent(n,function(d){d.getCoordSysModel()===this&&(o=d)},this),o},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={z:0,center:["50%","50%"],radius:"80%"},i}(en);const Jn=bk;var u5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",yi).models[0]},i.type="polarAxis",i}(en);Di(u5,ry);var Zg=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="angleAxis",i}(u5),h5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="radiusAxis",i}(u5),x1=function(a){function i(n,o){return a.call(this,"radius",n,o)||this}return de(i,a),i.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)["radius"===this.dim?0:1]},i}(il);x1.prototype.dataToRadius=il.prototype.dataToCoord,x1.prototype.radiusToData=il.prototype.coordToData;const fb=x1;var E$=qt(),Ko=function(a){function i(n,o){return a.call(this,"angle",n,o||[0,360])||this}return de(i,a),i.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var n=this,o=n.getLabelModel(),c=n.scale,d=c.getExtent(),h=c.count();if(d[1]-d[0]<1)return 0;var f=d[0],p=n.dataToCoord(f+1)-n.dataToCoord(f),g=Math.abs(p),v=M0(null==f?"":f+"",o.getFont(),"center","top"),y=Math.max(v.height,7)/g;isNaN(y)&&(y=1/0);var w=Math.max(0,Math.floor(y)),x=E$(n.model),S=x.lastAutoInterval,D=x.lastTickCount;return null!=S&&null!=D&&Math.abs(S-w)<=1&&Math.abs(D-h)<=1&&S>w?w=S:(x.lastTickCount=h,x.lastAutoInterval=w),w},i}(il);Ko.prototype.dataToAngle=il.prototype.dataToCoord,Ko.prototype.angleToData=il.prototype.coordToData;const C1=Ko;var Fu=["radius","angle"],I$=function(){function a(i){this.dimensions=Fu,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fb,this._angleAxis=new C1,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(i){var n=this.pointToCoord(i);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},a.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},a.prototype.getAxis=function(i){return this["_"+i+"Axis"]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(i){var n=[],o=this._angleAxis,c=this._radiusAxis;return o.scale.type===i&&n.push(o),c.scale.type===i&&n.push(c),n},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(i){var n=this._angleAxis;return i===n?this._radiusAxis:n},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(i){var n=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},a.prototype.dataToPoint=function(i,n){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],n),this._angleAxis.dataToAngle(i[1],n)])},a.prototype.pointToData=function(i,n){var o=this.pointToCoord(i);return[this._radiusAxis.radiusToData(o[0],n),this._angleAxis.angleToData(o[1],n)]},a.prototype.pointToCoord=function(i){var n=i[0]-this.cx,o=i[1]-this.cy,c=this.getAngleAxis(),d=c.getExtent(),h=Math.min(d[0],d[1]),f=Math.max(d[0],d[1]);c.inverse?h=f-360:f=h+360;var p=Math.sqrt(n*n+o*o);n/=p,o/=p;for(var g=Math.atan2(-o,n)/Math.PI*180,v=gf;)g+=360*v;return[p,g]},a.prototype.coordToPoint=function(i){var n=i[0],o=i[1]/180*Math.PI;return[Math.cos(o)*n+this.cx,-Math.sin(o)*n+this.cy]},a.prototype.getArea=function(){var i=this.getAngleAxis(),o=this.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var c=i.getExtent(),d=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-c[0]*d,endAngle:-c[1]*d,clockwise:i.inverse,contain:function(h,f){var p=h-this.cx,g=f-this.cy,v=p*p+g*g-1e-4,_=this.r,y=this.r0;return v<=_*_&&v>=y*y}}},a.prototype.convertToPixel=function(i,n,o){return k$(n)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(i,n,o){return k$(n)===this?this.pointToData(o):null},a}();function k$(a){var i=a.seriesModel,n=a.polarModel;return n&&n.coordinateSystem||i&&i.coordinateSystem}const wk=I$;function R$(a,i){var n=this,o=n.getAngleAxis(),c=n.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),a.eachSeries(function(f){if(f.coordinateSystem===n){var p=f.getData();G(nl(p,"radius"),function(g){c.scale.unionExtentFromData(p,g)}),G(nl(p,"angle"),function(g){o.scale.unionExtentFromData(p,g)})}}),xf(o.scale,o.model),xf(c.scale,c.model),"category"===o.type&&!o.onBand){var d=o.getExtent(),h=360/o.scale.count();o.inverse?d[1]+=h:d[1]-=h,o.setExtent(d[0],d[1])}}function vc(a,i){if(a.type=i.get("type"),a.scale=iy(i),a.onBand=i.get("boundaryGap")&&"category"===a.type,a.inverse=i.get("inverse"),function pb(a){return"angleAxis"===a.mainType}(i)){a.inverse=a.inverse!==i.get("clockwise");var n=i.get("startAngle");a.setExtent(n,n+(a.inverse?-360:360))}i.axis=a,a.model=i}var xk={dimensions:Fu,create:function(a,i){var n=[];return a.eachComponent("polar",function(o,c){var d=new wk(c+"");d.update=R$;var h=d.getRadiusAxis(),f=d.getAngleAxis(),p=o.findAxisModel("radiusAxis"),g=o.findAxisModel("angleAxis");vc(h,p),vc(f,g),function P$(a,i,n){var o=i.get("center"),c=n.getWidth(),d=n.getHeight();a.cx=Ie(o[0],c),a.cy=Ie(o[1],d);var h=a.getRadiusAxis(),f=Math.min(c,d)/2,p=i.get("radius");null==p?p=[0,"100%"]:ye(p)||(p=[0,p]);var g=[Ie(p[0],f),Ie(p[1],f)];h.inverse?h.setExtent(g[1],g[0]):h.setExtent(g[0],g[1])}(d,o,i),n.push(d),o.coordinateSystem=d,d.model=o}),a.eachSeries(function(o){if("polar"===o.get("coordinateSystem")){var c=o.getReferringComponents("polar",yi).models[0];o.coordinateSystem=c.coordinateSystem}}),n}};const O$=xk;var L$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function S1(a,i,n){i[1]>i[0]&&(i=i.slice().reverse());var o=a.coordToPoint([i[0],n]),c=a.coordToPoint([i[1],n]);return{x1:o[0],y1:o[1],x2:c[0],y2:c[1]}}function D1(a){return a.getRadiusAxis().inverse?0:1}function Ir(a){var i=a[0],n=a[a.length-1];i&&n&&Math.abs(Math.abs(i.coord-n.coord)-360)<1e-4&&a.pop()}var ZQ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.axisPointerClass="PolarAxisPointer",n}return de(i,a),i.prototype.render=function(n,o){if(this.group.removeAll(),n.get("show")){var c=n.axis,d=c.polar,h=d.getRadiusAxis().getExtent(),f=c.getTicksCoords(),p=c.getMinorTicksCoords(),g=Se(c.getViewLabels(),function(v){v=nt(v);var _=c.scale,y="ordinal"===_.type?_.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=c.dataToCoord(y),v});Ir(g),Ir(f),G(L$,function(v){n.get([v,"show"])&&(!c.scale.isBlank()||"axisLine"===v)&&mb[v](this.group,n,d,f,p,h,g)},this)}},i.type="angleAxis",i}(wa),mb={axisLine:function(a,i,n,o,c,d){var g,h=i.getModel(["axisLine","lineStyle"]),f=D1(n),p=f?0:1;(g=0===d[p]?new ps({shape:{cx:n.cx,cy:n.cy,r:d[f]},style:h.getLineStyle(),z2:1,silent:!0}):new M_({shape:{cx:n.cx,cy:n.cy,r:d[f],r0:d[p]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,a.add(g)},axisTick:function(a,i,n,o,c,d){var h=i.getModel("axisTick"),f=(h.get("inside")?-1:1)*h.get("length"),p=d[D1(n)],g=Se(o,function(v){return new Gr({shape:S1(n,[p,p+f],v.coord)})});a.add(Na(g,{style:Ze(h.getModel("lineStyle").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,i,n,o,c,d){if(c.length){for(var h=i.getModel("axisTick"),f=i.getModel("minorTick"),p=(h.get("inside")?-1:1)*f.get("length"),g=d[D1(n)],v=[],_=0;_T?"left":"right",k=Math.abs(D[1]-A)/S<.3?"middle":D[1]>A?"top":"bottom";if(f&&f[x]){var L=f[x];Ee(L)&&L.textStyle&&(w=new Un(L.textStyle,p,p.ecModel))}var O=new Zt({silent:sl.isLabelSilent(i),style:Zn(w,{x:D[0],y:D[1],fill:w.getTextColor()||i.get(["axisLine","lineStyle","color"]),text:_.formattedLabel,align:E,verticalAlign:k})});if(a.add(O),v){var B=sl.makeAxisEventDataBase(i);B.targetType="axisLabel",B.value=_.rawLabel,st(O).eventData=B}},this)},splitLine:function(a,i,n,o,c,d){var f=i.getModel("splitLine").getModel("lineStyle"),p=f.get("color"),g=0;p=p instanceof Array?p:[p];for(var v=[],_=0;_=0?"p":"n",K=B;L&&(o[v][$]||(o[v][$]={p:B,n:B}),K=o[v][$][X]);var ee=void 0,te=void 0,ie=void 0,me=void 0;if("radius"===x.dim){var ue=x.dataToCoord(W)-B,we=p.dataToCoord($);Math.abs(ue)=me})}}})};var iJ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rJ={splitNumber:5},aJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="polar",i}(li);function f5(a,i){i=i||{};var o=a.axis,c={},d=o.position,h=o.orient,f=a.coordinateSystem.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],g={horizontal:{top:p[2],bottom:p[3]},vertical:{left:p[0],right:p[1]}};c.position=["vertical"===h?g.vertical[d]:p[0],"horizontal"===h?g.horizontal[d]:p[3]],c.rotation=Math.PI/2*{horizontal:0,vertical:1}[h],c.labelDirection=c.tickDirection=c.nameDirection={top:-1,bottom:1,right:1,left:-1}[d],a.get(["axisTick","inside"])&&(c.tickDirection=-c.tickDirection),it(i.labelInside,a.get(["axisLabel","inside"]))&&(c.labelDirection=-c.labelDirection);var y=i.rotate;return null==y&&(y=a.get(["axisLabel","rotate"])),c.labelRotation="top"===d?-y:y,c.z2=1,c}var sJ=["axisLine","axisTickLabel","axisName"],lJ=["splitArea","splitLine"],cJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.axisPointerClass="SingleAxisPointer",n}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this.group;h.removeAll();var f=this._axisGroup;this._axisGroup=new rt;var p=f5(n),g=new sl(n,p);G(sJ,g.add,g),h.add(this._axisGroup),h.add(g.getGroup()),G(lJ,function(v){n.get([v,"show"])&&np[v](this,this.group,this._axisGroup,n)},this),Pm(f,this._axisGroup,n),a.prototype.render.call(this,n,o,c,d)},i.prototype.remove=function(){iV(this)},i.type="singleAxis",i}(wa),np={splitLine:function(a,i,n,o){var c=o.axis;if(!c.scale.isBlank()){var d=o.getModel("splitLine"),h=d.getModel("lineStyle"),f=h.get("color");f=f instanceof Array?f:[f];for(var p=h.get("width"),g=o.coordinateSystem.getRect(),v=c.isHorizontal(),_=[],y=0,w=c.getTicksCoords({tickModel:d}),x=[],S=[],D=0;D=n.y&&i[1]<=n.y+n.height:o.contain(o.toLocalCoord(i[1]))&&i[0]>=n.y&&i[0]<=n.y+n.height},a.prototype.pointToData=function(i){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(i["horizontal"===n.orient?0:1]))]},a.prototype.dataToPoint=function(i){var n=this.getAxis(),o=this.getRect(),c=[],d="horizontal"===n.orient?0:1;return i instanceof Array&&(i=i[0]),c[d]=n.toGlobalCoord(n.dataToCoord(+i)),c[1-d]=0===d?o.y+o.height/2:o.x+o.width/2,c},a.prototype.convertToPixel=function(i,n,o){return z$(n)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(i,n,o){return z$(n)===this?this.pointToData(o):null},a}();function z$(a){var i=a.seriesModel,n=a.singleAxisModel;return n&&n.coordinateSystem||i&&i.coordinateSystem}const Dk=hJ;var yd={create:function Vu(a,i){var n=[];return a.eachComponent("singleAxis",function(o,c){var d=new Dk(o,a,i);d.name="single_"+c,d.resize(o,i),o.coordinateSystem=d,n.push(d)}),a.eachSeries(function(o){if("singleAxis"===o.get("coordinateSystem")){var c=o.getReferringComponents("singleAxis",yi).models[0];o.coordinateSystem=c&&c.coordinateSystem}}),n},dimensions:B$};const H$=yd;var gb=["x","y"],fJ=["width","height"],g5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.makeElOption=function(n,o,c,d,h){var f=c.axis,p=f.coordinateSystem,g=v5(p,1-T1(f)),v=p.dataToPoint(o)[0],_=d.get("type");if(_&&"none"!==_){var y=uk(d),w=pJ[_](f,v,g);w.style=y,n.graphicKey=w.type,n.pointer=w}gr(o,n,f5(c),c,d,h)},i.prototype.getHandleTransform=function(n,o,c){var d=f5(o,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var h=Yg(o.axis,n,d);return{x:h[0],y:h[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(n,o,c,d){var h=c.axis,f=h.coordinateSystem,p=T1(h),g=v5(f,p),v=[n.x,n.y];v[p]+=o[p],v[p]=Math.min(g[1],v[p]),v[p]=Math.max(g[0],v[p]);var _=v5(f,1-p),y=(_[1]+_[0])/2,w=[y,y];return w[p]=v[p],{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(a5),pJ={line:function(a,i,n){return{type:"Line",subPixelOptimize:!0,shape:ml([i,n[0]],[i,n[1]],T1(a))}},shadow:function(a,i,n){var o=a.getBandWidth();return{type:"Rect",shape:fk([i-o/2,n[0]],[o,n[1]-n[0]],T1(a))}}};function T1(a){return a.isHorizontal()?0:1}function v5(a,i){var n=a.getRect();return[n[gb[i]],n[gb[i]]+n[fJ[i]]]}const _c=g5;var mJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="single",i}(li),gJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o,c){var d=$h(n);a.prototype.init.apply(this,arguments),xi(n,d)},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),xi(this.option,n)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(en);function xi(a,i){var o,n=a.cellSize;1===(o=ye(n)?n:a.cellSize=[n,n]).length&&(o[1]=o[0]);var c=Se([0,1],function(d){return function Tw(a,i){return null!=a[eu[i][0]]||null!=a[eu[i][1]]&&null!=a[eu[i][2]]}(i,d)&&(o[d]="auto"),null!=o[d]&&"auto"!==o[d]});cs(a,i,{type:"box",ignoreSize:c})}const vJ=gJ;var Tk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){var d=this.group;d.removeAll();var h=n.coordinateSystem,f=h.getRangeInfo(),p=h.getOrient(),g=o.getLocaleModel();this._renderDayRect(n,f,d),this._renderLines(n,f,p,d),this._renderYearText(n,f,p,d),this._renderMonthText(n,g,p,d),this._renderWeekText(n,g,f,p,d)},i.prototype._renderDayRect=function(n,o,c){for(var d=n.coordinateSystem,h=n.getModel("itemStyle").getItemStyle(),f=d.getCellWidth(),p=d.getCellHeight(),g=o.start.time;g<=o.end.time;g=d.getNextNDay(g,1).time){var v=d.dataToRect([g],!1).tl,_=new _t({shape:{x:v[0],y:v[1],width:f,height:p},cursor:"default",style:h});c.add(_)}},i.prototype._renderLines=function(n,o,c,d){var h=this,f=n.coordinateSystem,p=n.getModel(["splitLine","lineStyle"]).getLineStyle(),g=n.get(["splitLine","show"]),v=p.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var _=o.start,y=0;_.time<=o.end.time;y++){x(_.formatedDate),0===y&&(_=f.getDateInfo(o.start.y+"-"+o.start.m));var w=_.date;w.setMonth(w.getMonth()+1),_=f.getDateInfo(w)}function x(S){h._firstDayOfMonth.push(f.getDateInfo(S)),h._firstDayPoints.push(f.dataToRect([S],!1).tl);var D=h._getLinePointsOfOneWeek(n,S,c);h._tlpoints.push(D[0]),h._blpoints.push(D[D.length-1]),g&&h._drawSplitline(D,p,d)}x(f.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(h._getEdgesPoints(h._tlpoints,v,c),p,d),g&&this._drawSplitline(h._getEdgesPoints(h._blpoints,v,c),p,d)},i.prototype._getEdgesPoints=function(n,o,c){var d=[n[0].slice(),n[n.length-1].slice()],h="horizontal"===c?0:1;return d[0][h]=d[0][h]-o/2,d[1][h]=d[1][h]+o/2,d},i.prototype._drawSplitline=function(n,o,c){var d=new io({z2:20,shape:{points:n},style:o});c.add(d)},i.prototype._getLinePointsOfOneWeek=function(n,o,c){for(var d=n.coordinateSystem,h=d.getDateInfo(o),f=[],p=0;p<7;p++){var g=d.getNextNDay(h.time,p),v=d.dataToRect([g.time],!1);f[2*g.day]=v.tl,f[2*g.day+1]=v["horizontal"===c?"bl":"tr"]}return f},i.prototype._formatterLabel=function(n,o){return Ae(n)&&n?function w8(a,i,n){return G(i,function(o,c){a=a.replace("{"+c+"}",n?da(o):o)}),a}(n,o):Xe(n)?n(o):o.nameMap},i.prototype._yearTextPositionControl=function(n,o,c,d,h){var f=o[0],p=o[1],g=["center","bottom"];"bottom"===d?(p+=h,g=["center","top"]):"left"===d?f-=h:"right"===d?(f+=h,g=["center","top"]):p-=h;var v=0;return("left"===d||"right"===d)&&(v=Math.PI/2),{rotation:v,x:f,y:p,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(n,o,c,d){var h=n.getModel("yearLabel");if(h.get("show")){var f=h.get("margin"),p=h.get("position");p||(p="horizontal"!==c?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(g[0][0]+g[1][0])/2,_=(g[0][1]+g[1][1])/2,y="horizontal"===c?0:1,w={top:[v,g[y][1]],bottom:[v,g[1-y][1]],left:[g[1-y][0],_],right:[g[y][0],_]},x=o.start.y;+o.end.y>+o.start.y&&(x=x+"-"+o.end.y);var S=h.get("formatter"),T=this._formatterLabel(S,{start:o.start.y,end:o.end.y,nameMap:x}),A=new Zt({z2:30,style:Zn(h,{text:T})});A.attr(this._yearTextPositionControl(A,w[p],c,p,f)),d.add(A)}},i.prototype._monthTextPositionControl=function(n,o,c,d,h){var f="left",p="top",g=n[0],v=n[1];return"horizontal"===c?(v+=h,o&&(f="center"),"start"===d&&(p="bottom")):(g+=h,o&&(p="middle"),"start"===d&&(f="right")),{x:g,y:v,align:f,verticalAlign:p}},i.prototype._renderMonthText=function(n,o,c,d){var h=n.getModel("monthLabel");if(h.get("show")){var f=h.get("nameMap"),p=h.get("margin"),g=h.get("position"),v=h.get("align"),_=[this._tlpoints,this._blpoints];(!f||Ae(f))&&(f&&(o=Uh(f)||o),f=o.get(["time","monthAbbr"])||[]);var y="start"===g?0:1,w="horizontal"===c?0:1;p="start"===g?-p:p;for(var x="center"===v,S=0;S<_[y].length-1;S++){var D=_[y][S].slice(),T=this._firstDayOfMonth[S];x&&(D[w]=(this._firstDayPoints[S][w]+_[0][S+1][w])/2);var E=h.get("formatter"),k=f[+T.m-1],L={yyyy:T.y,yy:(T.y+"").slice(2),MM:T.m,M:+T.m,nameMap:k},O=this._formatterLabel(E,L),B=new Zt({z2:30,style:_e(Zn(h,{text:O}),this._monthTextPositionControl(D,x,c,g,p))});d.add(B)}}},i.prototype._weekTextPositionControl=function(n,o,c,d,h){var f="center",p="middle",g=n[0],v=n[1],_="start"===c;return"horizontal"===o?(g=g+d+(_?1:-1)*h[0]/2,f=_?"right":"left"):(v=v+d+(_?1:-1)*h[1]/2,p=_?"bottom":"top"),{x:g,y:v,align:f,verticalAlign:p}},i.prototype._renderWeekText=function(n,o,c,d,h){var f=n.getModel("dayLabel");if(f.get("show")){var p=n.coordinateSystem,g=f.get("position"),v=f.get("nameMap"),_=f.get("margin"),y=p.getFirstDayOfWeek();v&&!Ae(v)||(v&&(o=Uh(v)||o),v=o.get(["time","dayOfWeekShort"])||Se(o.get(["time","dayOfWeekAbbr"]),function(L){return L[0]}));var x=p.getNextNDay(c.end.time,7-c.lweek).time,S=[p.getCellWidth(),p.getCellHeight()];_=Ie(_,Math.min(S[1],S[0])),"start"===g&&(x=p.getNextNDay(c.start.time,-(7+c.fweek)).time,_=-_);for(var D=0;D<7;D++){var E,T=p.getNextNDay(x,D),A=p.dataToRect([T.time],!1).center;E=Math.abs((D+y)%7);var k=new Zt({z2:30,style:_e(Zn(f,{text:v[E]}),this._weekTextPositionControl(A,d,g,_,S))});h.add(k)}}},i.type="calendar",i}(li);const M1=Tk;var _5=864e5,kr=function(){function a(i,n,o){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=i}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(i){var n=(i=os(i)).getFullYear(),o=i.getMonth()+1,c=o<10?"0"+o:""+o,d=i.getDate(),h=d<10?"0"+d:""+d,f=i.getDay();return{y:n+"",m:c,d:h,day:f=Math.abs((f+7-this.getFirstDayOfWeek())%7),time:i.getTime(),formatedDate:n+"-"+c+"-"+h,date:i}},a.prototype.getNextNDay=function(i,n){return 0===(n=n||0)||(i=new Date(this.getDateInfo(i).time)).setDate(i.getDate()+n),this.getDateInfo(i)},a.prototype.update=function(i,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var o=this._rangeInfo.weeks||1,c=["width","height"],d=this._model.getCellSize().slice(),h=this._model.getBoxLayoutParams(),f="horizontal"===this._orient?[o,7]:[7,o];G([0,1],function(_){v(d,_)&&(h[c[_]]=d[_]*f[_])});var p={width:n.getWidth(),height:n.getHeight()},g=this._rect=Dr(h,p);function v(_,y){return null!=_[y]&&"auto"!==_[y]}G([0,1],function(_){v(d,_)||(d[_]=g[c[_]]/f[_])}),this._sw=d[0],this._sh=d[1]},a.prototype.dataToPoint=function(i,n){ye(i)&&(i=i[0]),null==n&&(n=!0);var o=this.getDateInfo(i),c=this._rangeInfo;if(n&&!(o.time>=c.start.time&&o.timef.end.time&&n.reverse(),n},a.prototype._getRangeInfo=function(i){var o,n=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];n[0].time>n[1].time&&(o=!0,n.reverse());var c=Math.floor(n[1].time/_5)-Math.floor(n[0].time/_5)+1,d=new Date(n[0].time),h=d.getDate(),f=n[1].date.getDate();d.setDate(h+c-1);var p=d.getDate();if(p!==f)for(var g=d.getTime()-n[1].time>0?1:-1;(p=d.getDate())!==f&&(d.getTime()-n[1].time)*g>0;)c-=g,d.setDate(p-g);var v=Math.floor((c+n[0].day+6)/7),_=o?1-v:v-1;return o&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:c,weeks:v,nthWeek:_,fweek:n[0].day,lweek:n[1].day}},a.prototype._getDateByWeeksAndDay=function(i,n,o){var c=this._getRangeInfo(o);if(i>c.weeks||0===i&&nc.lweek)return null;var d=7*(i-1)-c.fweek+n,h=new Date(c.start.time);return h.setDate(+c.start.d+d),this.getDateInfo(h)},a.create=function(i,n){var o=[];return i.eachComponent("calendar",function(c){var d=new a(c,i,n);o.push(d),c.coordinateSystem=d}),i.eachSeries(function(c){"calendar"===c.get("coordinateSystem")&&(c.coordinateSystem=o[c.get("calendarIndex")||0])}),o},a.dimensions=["time","value"],a}();function y5(a){var i=a.calendarModel,n=a.seriesModel;return i?i.coordinateSystem:n?n.coordinateSystem:null}const U$=kr;function G$(a,i){var n;return G(i,function(o){null!=a[o]&&"auto"!==a[o]&&(n=!0)}),n}var Ga=["transition","enterFrom","leaveTo"],vb=Ga.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bu(a,i,n){if(n&&(!a[n]&&i[n]&&(a[n]={}),a=a[n],i=i[n]),a&&i)for(var o=n?Ga:vb,c=0;c=0;v--){var _,y,w;if(w=null!=(y=xr((_=c[v]).id,null))?h.get(y):null){T=Wi(x=w.parent);var x,E={},k=g_(w,_,x===d?{width:f,height:p}:{width:T.width,height:T.height},null,{hv:_.hv,boundingMode:_.bounding},E);if(!Wi(w).isNew&&k){for(var L=_.transition,O={},B=0;B=0)?O[U]=j:w[U]=j}zt(w,O,n,0)}else w.attr(E)}}},i.prototype._clear=function(){var n=this,o=this._elMap;o.each(function(c){Mk(c,Wi(c).option,o,n._lastGraphicModel)}),this._elMap=Me()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(li);function Qo(a){var n=new(Ue(vl,a)?vl[a]:Zw(a))({});return Wi(n).type=a,n}function W$(a,i,n,o){var c=Qo(n);return i.add(c),o.set(a,c),Wi(c).id=a,Wi(c).isNew=!0,c}function Mk(a,i,n,o){a&&a.parent&&("group"===a.type&&a.traverse(function(d){Mk(d,i,n,o)}),h1(a,i,o),n.removeKey(Wi(a).id))}function $$(a,i,n,o){a.isGroup||G([["cursor",zo.prototype.cursor],["zlevel",o||0],["z",n||0],["z2",0]],function(c){var d=c[0];Ue(i,d)?a[d]=gt(i[d],c[1]):null==a[d]&&(a[d]=c[1])}),G(Wt(i),function(c){if(0===c.indexOf("on")){var d=i[c];a[c]=Xe(d)?d:null}}),Ue(i,"draggable")&&(a.draggable=i.draggable),null!=i.name&&(a.name=i.name),null!=i.id&&(a.id=i.id)}var q$=["x","y","radius","angle","single"],bJ=["cartesian2d","polar","singleAxis"];function ap(a){return a+"Axis"}function Ak(a){var i=a.ecModel,n={infoList:[],infoMap:Me()};return a.eachTargetAxis(function(o,c){var d=i.getComponent(ap(o),c);if(d){var h=d.getCoordSysModel();if(h){var f=h.uid,p=n.infoMap.get(f);p||(n.infoList.push(p={model:h,axisModels:[]}),n.infoMap.set(f,p)),p.axisModels.push(d)}}}),n}var w5=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},a}(),CJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return de(i,a),i.prototype.init=function(n,o,c){var d=Z$(n);this.settledOption=d,this.mergeDefaultAndTheme(n,c),this._doInit(d)},i.prototype.mergeOption=function(n){var o=Z$(n);mt(this.option,n,!0),mt(this.settledOption,o,!0),this._doInit(o)},i.prototype._doInit=function(n){var o=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var c=this.settledOption;G([["start","startValue"],["end","endValue"]],function(d,h){"value"===this._rangePropMode[h]&&(o[d[0]]=c[d[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var n=this.get("orient",!0),o=this._targetAxisInfoMap=Me();this._fillSpecifiedTargetAxis(o)?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(d){d.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(n){var o=!1;return G(q$,function(c){var d=this.getReferringComponents(ap(c),Xv);if(d.specified){o=!0;var h=new w5;G(d.models,function(f){h.add(f.componentIndex)}),n.set(c,h)}},this),o},i.prototype._fillAutoTargetAxisByOrient=function(n,o){var c=this.ecModel,d=!0;if(d){var h="vertical"===o?"y":"x";p(c.findComponents({mainType:h+"Axis"}),h)}function p(g,v){var _=g[0];if(_){var y=new w5;if(y.add(_.componentIndex),n.set(v,y),d=!1,"x"===v||"y"===v){var w=_.getReferringComponents("grid",yi).models[0];w&&G(g,function(x){_.componentIndex!==x.componentIndex&&w===x.getReferringComponents("grid",yi).models[0]&&y.add(x.componentIndex)})}}}d&&p(c.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===o}}),"single"),d&&G(q$,function(g){if(d){var v=c.findComponents({mainType:ap(g),filter:function(y){return"category"===y.get("type",!0)}});if(v[0]){var _=new w5;_.add(v[0].componentIndex),n.set(g,_),d=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(o){!n&&(n=o)},this),"y"===n?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(n){var o=this._rangePropMode,c=this.get("rangeMode");G([["start","startValue"],["end","endValue"]],function(d,h){var f=null!=n[d[0]],p=null!=n[d[1]];f&&!p?o[h]="percent":!f&&p?o[h]="value":c?o[h]=c[h]:f&&(o[h]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(o,c){null==n&&(n=this.ecModel.getComponent(ap(o),c))},this),n},i.prototype.eachTargetAxis=function(n,o){this._targetAxisInfoMap.each(function(c,d){G(c.indexList,function(h){n.call(o,d,h)})})},i.prototype.getAxisProxy=function(n,o){var c=this.getAxisModel(n,o);if(c)return c.__dzAxisProxy},i.prototype.getAxisModel=function(n,o){var c=this._targetAxisInfoMap.get(n);if(c&&c.indexMap[o])return this.ecModel.getComponent(ap(n),o)},i.prototype.setRawRange=function(n){var o=this.option,c=this.settledOption;G([["start","startValue"],["end","endValue"]],function(d){(null!=n[d[0]]||null!=n[d[1]])&&(o[d[0]]=c[d[0]]=n[d[0]],o[d[1]]=c[d[1]]=n[d[1]])},this),this._updateRangeUse(n)},i.prototype.setCalculatedRange=function(n){var o=this.option;G(["start","startValue","end","endValue"],function(c){o[c]=n[c]})},i.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},i.prototype.getValueRange=function(n,o){if(null!=n||null!=o)return this.getAxisProxy(n,o).getDataValueWindow();var c=this.findRepresentativeAxisProxy();return c?c.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var o,c=this._targetAxisInfoMap.keys(),d=0;d=0}(n)){var o=ap(this._dimName),c=n.getReferringComponents(o,yi).models[0];c&&this._axisIndex===c.componentIndex&&i.push(n)}},this),i},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return nt(this._minMaxSpan)},a.prototype.calculateDataWindow=function(i){var g,n=this._dataExtent,c=this.getAxisModel().axis.scale,d=this._dataZoomModel.getRangePropMode(),h=[0,100],f=[],p=[];_b(["start","end"],function(y,w){var x=i[y],S=i[y+"Value"];"percent"===d[w]?(null==x&&(x=h[w]),S=c.parse(yn(x,h,n))):(g=!0,x=yn(S=null==S?n[w]:c.parse(S),n,h)),p[w]=null==S||isNaN(S)?n[w]:S,f[w]=null==x||isNaN(x)?h[w]:x}),X$(p),X$(f);var v=this._minMaxSpan;function _(y,w,x,S,D){var T=D?"Span":"ValueSpan";jf(0,y,x,"all",v["min"+T],v["max"+T]);for(var A=0;A<2;A++)w[A]=yn(y[A],x,S,!0),D&&(w[A]=c.parse(w[A]))}return g?_(p,f,n,h,!1):_(f,p,h,n,!0),{valueWindow:p,percentWindow:f}},a.prototype.reset=function(i){if(i===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=function EJ(a,i,n){var o=[1/0,-1/0];_b(n,function(h){!function Lj(a,i,n){i&&G(nl(i,n),function(o){var c=i.getApproximateExtent(o);c[0]a[1]&&(a[1]=c[1])})}(o,h.getData(),i)});var c=a.getAxisModel(),d=BF(c.axis.scale,c,o).calculate();return[d.min,d.max]}(this,this._dimName,n),this._updateMinMaxSpan();var o=this.calculateDataWindow(i.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(i,n){if(i===this._dataZoomModel){var o=this._dimName,c=this.getTargetSeriesModels(),d=i.get("filterMode"),h=this._valueWindow;"none"!==d&&_b(c,function(p){var g=p.getData(),v=g.mapDimensionsAll(o);if(v.length){if("weakFilter"===d){var _=g.getStore(),y=Se(v,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var x,S,D,T=0;Th[1];if(E&&!k&&!L)return!0;E&&(D=!0),k&&(x=!0),L&&(S=!0)}return D&&x&&S})}else _b(v,function(w){if("empty"===d)p.setData(g=g.map(w,function(S){return function f(p){return p>=h[0]&&p<=h[1]}(S)?S:NaN}));else{var x={};x[w]=h,g.selectRange(x)}});_b(v,function(w){g.setApproximateExtent(h,w)})}})}},a.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},n=this._dataZoomModel,o=this._dataExtent;_b(["min","max"],function(c){var d=n.get(c+"Span"),h=n.get(c+"ValueSpan");null!=h&&(h=this.getAxisModel().axis.scale.parse(h)),null!=h?d=yn(o[0]+h,o,[0,100],!0):null!=d&&(h=yn(d,[0,100],o,!0)-o[0]),i[c+"Span"]=d,i[c+"ValueSpan"]=h},this)},a.prototype._setAxisModel=function(){var i=this.getAxisModel(),n=this._percentWindow,o=this._valueWindow;if(n){var c=Gv(o,[0,500]);c=Math.min(c,20);var d=i.axis.scale.rawExtentInfo;0!==n[0]&&d.setDeterminedMinMax("min",+o[0].toFixed(c)),100!==n[1]&&d.setDeterminedMinMax("max",+o[1].toFixed(c)),d.freeze()}},a}();const IJ=AJ;var kJ={getTargetSeries:function(a){function i(c){a.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(h,f){var p=a.getComponent(ap(h),f);c(h,f,p,d)})})}i(function(c,d,h,f){h.__dzAxisProxy=null});var n=[];i(function(c,d,h,f){h.__dzAxisProxy||(h.__dzAxisProxy=new IJ(c,d,f,a),n.push(h.__dzAxisProxy))});var o=Me();return G(n,function(c){G(c.getTargetSeriesModels(),function(d){o.set(d.uid,d)})}),o},overallReset:function(a,i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,c){n.getAxisProxy(o,c).reset(n)}),n.eachTargetAxis(function(o,c){n.getAxisProxy(o,c).filterData(n,i)})}),a.eachComponent("dataZoom",function(n){var o=n.findRepresentativeAxisProxy();if(o){var c=o.getDataPercentWindow(),d=o.getDataValueWindow();n.setCalculatedRange({start:c[0],end:c[1],startValue:d[0],endValue:d[1]})}})}};const PJ=kJ;var K$=!1;function C5(a){K$||(K$=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,PJ),function RJ(a){a.registerAction("dataZoom",function(i,n){G(function xJ(a,i){var d,n=Me(),o=[],c=Me();a.eachComponent({mainType:"dataZoom",query:i},function(v){c.get(v.uid)||f(v)});do{d=!1,a.eachComponent("dataZoom",h)}while(d);function h(v){!c.get(v.uid)&&function p(v){var _=!1;return v.eachTargetAxis(function(y,w){var x=n.get(y);x&&x[w]&&(_=!0)}),_}(v)&&(f(v),d=!0)}function f(v){c.set(v.uid,!0),o.push(v),function g(v){v.eachTargetAxis(function(_,y){(n.get(_)||n.set(_,[]))[y]=!0})}(v)}return o}(n,i),function(c){c.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function OJ(a){a.registerComponentModel(SJ),a.registerComponentView(MJ),C5(a)}var _l=function a(){},Q$={};function yb(a,i){Q$[a]=i}function J$(a){return Q$[a]}var LJ=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;G(this.option.feature,function(o,c){var d=J$(c);d&&(d.getDefaultOption&&(d.defaultOption=d.getDefaultOption(n)),mt(o,d.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},i}(en);const FJ=LJ;function eY(a,i){var n=jh(i.get("padding")),o=i.getItemStyle(["color","opacity"]);return o.fill=i.get("backgroundColor"),new _t({shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[1]+n[3],height:a.height+n[0]+n[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1})}var S5=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c,d){var h=this.group;if(h.removeAll(),n.get("show")){var f=+n.get("itemSize"),p="vertical"===n.get("orient"),g=n.get("feature")||{},v=this._features||(this._features={}),_=[];G(g,function(x,S){_.push(S)}),new Qc(this._featureNames||[],_).add(y).update(y).remove(ct(y,null)).execute(),this._featureNames=_,function NJ(a,i,n){var o=i.getBoxLayoutParams(),c=i.get("padding"),d={width:n.getWidth(),height:n.getHeight()},h=Dr(o,d,c);Wh(i.get("orient"),a,i.get("itemGap"),h.width,h.height),g_(a,o,d,c)}(h,n,c),h.add(eY(h.getBoundingRect(),n)),p||h.eachChild(function(x){var S=x.__title,D=x.ensureState("emphasis"),T=D.textConfig||(D.textConfig={}),A=x.getTextContent(),E=A&&A.ensureState("emphasis");if(E&&!Xe(E)&&S){var k=E.style||(E.style={}),L=M0(S,Zt.makeFont(k)),O=x.x+h.x,U=!1;x.y+h.y+f+L.height>c.getHeight()&&(T.position="top",U=!0);var j=U?-5-L.height:f+10;O+L.width/2>c.getWidth()?(T.position=["100%",j],k.align="right"):O-L.width/2<0&&(T.position=[0,j],k.align="left")}})}function y(x,S){var k,D=_[x],T=_[S],A=g[D],E=new Un(A,n,n.ecModel);if(d&&null!=d.newTitle&&d.featureName===D&&(A.title=d.newTitle),D&&!T){if(function tY(a){return 0===a.indexOf("my")}(D))k={onclick:E.option.onclick,featureName:D};else{var L=J$(D);if(!L)return;k=new L}v[D]=k}else if(!(k=v[T]))return;k.uid=cm("toolbox-feature"),k.model=E,k.ecModel=o,k.api=c;var O=k instanceof _l;D||!T?!E.get("show")||O&&k.unusable?O&&k.remove&&k.remove(o,c):(function w(x,S,D){var L,O,T=x.getModel("iconStyle"),A=x.getModel(["emphasis","iconStyle"]),E=S instanceof _l&&S.getIcons?S.getIcons():x.get("icon"),k=x.get("title")||{};Ae(E)?(L={})[D]=E:L=E,Ae(k)?(O={})[D]=k:O=k;var B=x.iconPaths={};G(L,function(U,j){var W=Ks(U,{},{x:-f/2,y:-f/2,width:f,height:f});W.setStyle(T.getItemStyle()),W.ensureState("emphasis").style=A.getItemStyle();var X=new Zt({style:{text:O[j],align:A.get("textAlign"),borderRadius:A.get("textBorderRadius"),padding:A.get("textPadding"),fill:null},ignore:!0});W.setTextContent(X),nf({el:W,componentModel:n,itemName:j,formatterParamsExtra:{title:O[j]}}),W.__title=O[j],W.on("mouseover",function(){var K=A.getItemStyle(),ee=p?null==n.get("right")&&"right"!==n.get("left")?"right":"left":null==n.get("bottom")&&"bottom"!==n.get("top")?"bottom":"top";X.setStyle({fill:A.get("textFill")||K.fill||K.stroke||"#000",backgroundColor:A.get("textBackgroundColor")}),W.setTextConfig({position:A.get("textPosition")||ee}),X.ignore=!n.get("showTitle"),c.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==x.get(["iconStatus",j])&&c.leaveEmphasis(this),X.hide()}),("emphasis"===x.get(["iconStatus",j])?Xl:Kl)(W),h.add(W),W.on("click",he(S.onclick,S,o,c,j)),B[j]=W})}(E,k,D),E.setIconStatus=function(B,U){var j=this.option,W=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=U,W[B]&&("emphasis"===U?Xl:Kl)(W[B])},k instanceof _l&&k.render&&k.render(E,o,c,d)):O&&k.dispose&&k.dispose(o,c)}},i.prototype.updateView=function(n,o,c,d){G(this._features,function(h){h instanceof _l&&h.updateView&&h.updateView(h.model,o,c,d)})},i.prototype.remove=function(n,o){G(this._features,function(c){c instanceof _l&&c.remove&&c.remove(n,o)}),this.group.removeAll()},i.prototype.dispose=function(n,o){G(this._features,function(c){c instanceof _l&&c.dispose&&c.dispose(n,o)})},i.type="toolbox",i}(li);const VJ=S5;var BJ=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.onclick=function(n,o){var c=this.model,d=c.get("name")||n.get("title.0.text")||"echarts",h="svg"===o.getZr().painter.getType(),f=h?"svg":c.get("type",!0)||"png",p=o.getConnectedDataURL({type:f,backgroundColor:c.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:c.get("connectedBackgroundColor"),excludeComponents:c.get("excludeComponents"),pixelRatio:c.get("pixelRatio")}),g=tn.browser;if(Xe(MouseEvent)&&(g.newEdge||!g.ie&&!g.edge)){var v=document.createElement("a");v.download=d+"."+f,v.target="_blank",v.href=p;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(_)}else if(window.navigator.msSaveOrOpenBlob||h){var y=p.split(","),w=y[0].indexOf("base64")>-1,x=h?decodeURIComponent(y[1]):y[1];w&&(x=window.atob(x));var S=d+"."+f;if(window.navigator.msSaveOrOpenBlob){for(var D=x.length,T=new Uint8Array(D);D--;)T[D]=x.charCodeAt(D);var A=new Blob([T]);window.navigator.msSaveOrOpenBlob(A,S)}else{var E=document.createElement("iframe");document.body.appendChild(E);var k=E.contentWindow,L=k.document;L.open("image/svg+xml","replace"),L.write(x),L.close(),k.focus(),L.execCommand("SaveAs",!0,S),document.body.removeChild(E)}}else{var O=c.get("lang"),B='',U=window.open();U.document.write(B),U.document.title=d}},i.getDefaultOption=function(n){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(_l);const zJ=BJ;var nY="__ec_magicType_stack__",HJ=[["line","bar"],["stack"]],UJ=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.getIcons=function(){var n=this.model,o=n.get("icon"),c={};return G(n.get("type"),function(d){o[d]&&(c[d]=o[d])}),c},i.getDefaultOption=function(n){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(n,o,c){var d=this.model,h=d.get(["seriesIndex",c]);if(iY[c]){var f={series:[]};G(HJ,function(_){Ct(_,c)>=0&&G(_,function(y){d.setIconStatus(y,"normal")})}),d.setIconStatus(c,"emphasis"),n.eachComponent({mainType:"series",query:null==h?null:{seriesIndex:h}},function(_){var x=iY[c](_.subType,_.id,_,d);x&&(Ze(x,_.option),f.series.push(x));var S=_.coordinateSystem;if(S&&"cartesian2d"===S.type&&("line"===c||"bar"===c)){var D=S.getAxesByScale("ordinal")[0];if(D){var A=D.dim+"Axis",k=_.getReferringComponents(A,yi).models[0].componentIndex;f[A]=f[A]||[];for(var L=0;L<=k;L++)f[A][k]=f[A][k]||{};f[A][k].boundaryGap="bar"===c}}});var g,v=c;"stack"===c&&(g=mt({stack:d.option.title.tiled,tiled:d.option.title.stack},d.option.title),"emphasis"!==d.get(["iconStatus",c])&&(v="tiled")),o.dispatchAction({type:"changeMagicType",currentType:v,newOption:f,newTitle:g,featureName:"magicType"})}},i}(_l),iY={line:function(a,i,n,o){if("bar"===a)return mt({id:i,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(a,i,n,o){if("line"===a)return mt({id:i,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(a,i,n,o){var c=n.get("stack")===nY;if("line"===a||"bar"===a)return o.setIconStatus("stack",c?"normal":"emphasis"),mt({id:i,stack:c?"":nY},o.get(["option","stack"])||{},!0)}};ys({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,i){i.mergeOption(a.newOption)});const jJ=UJ;var Ik=new Array(60).join("-");function WJ(a){var i=[];return G(a,function(n,o){var c=n.categoryAxis,h=n.valueAxis.dim,f=[" "].concat(Se(n.series,function(w){return w.name})),p=[c.model.getCategories()];G(n.series,function(w){var x=w.getRawData();p.push(w.getRawData().mapArray(x.mapDimension(h),function(S){return S}))});for(var g=[f.join("\t")],v=0;v=0)return!0}(c)){var h=function ZJ(a){for(var i=a.split(/\n+/g),o=[],c=Se(kk(i.shift()).split(D5),function(p){return{name:p,data:[]}}),d=0;d=0)&&h(d,c._targetInfoList)})}return a.prototype.setOutputRanges=function(i,n){return this.matchOutputRanges(i,n,function(o,c,d){if((o.coordRanges||(o.coordRanges=[])).push(c),!o.coordRange){o.coordRange=c;var h=A5[o.brushType](0,d,c);o.__rangeOffset={offset:E5[o.brushType](h.values,o.range,[1,1]),xyMinMax:h.xyMinMax}}}),i},a.prototype.matchOutputRanges=function(i,n,o){G(i,function(c){var d=this.findTargetInfo(c,n);d&&!0!==d&&G(d.coordSyses,function(h){var f=A5[c.brushType](1,h,c.range,!0);o(c,f.values,h,n)})},this)},a.prototype.setInputRanges=function(i,n){G(i,function(o){var c=this.findTargetInfo(o,n);if(o.range=o.range||[],c&&!0!==c){o.panelId=c.panelId;var d=A5[o.brushType](0,c.coordSys,o.coordRange),h=o.__rangeOffset;o.range=h?E5[o.brushType](d.values,h.offset,function dee(a,i){var n=uY(a),o=uY(i),c=[n[0]/o[0],n[1]/o[1]];return isNaN(c[0])&&(c[0]=1),isNaN(c[1])&&(c[1]=1),c}(d.xyMinMax,h.xyMinMax)):d.values}},this)},a.prototype.makePanelOpts=function(i,n){return Se(this._targetInfoList,function(o){var c=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:n?n(o):null,clipPath:Ru(c),isTargetByCursor:Eo(c,i,o.coordSysModel),getLinearBrushOtherExtent:Fi(c)}})},a.prototype.controlSeries=function(i,n,o){var c=this.findTargetInfo(i,o);return!0===c||c&&Ct(c.coordSyses,n.coordinateSystem)>=0},a.prototype.findTargetInfo=function(i,n){for(var o=this._targetInfoList,c=oY(n,i),d=0;da[1]&&a.reverse(),a}function oY(a,i){return Zv(a,i,{includeMainTypes:see})}var cee={grid:function(a,i){var n=a.xAxisModels,o=a.yAxisModels,c=a.gridModels,d=Me(),h={},f={};!n&&!o&&!c||(G(n,function(p){var g=p.axis.grid.model;d.set(g.id,g),h[g.id]=!0}),G(o,function(p){var g=p.axis.grid.model;d.set(g.id,g),f[g.id]=!0}),G(c,function(p){d.set(p.id,p),h[p.id]=!0,f[p.id]=!0}),d.each(function(p){var v=[];G(p.coordinateSystem.getCartesians(),function(_,y){(Ct(n,_.getAxis("x").model)>=0||Ct(o,_.getAxis("y").model)>=0)&&v.push(_)}),i.push({panelId:"grid--"+p.id,gridModel:p,coordSysModel:p,coordSys:v[0],coordSyses:v,getPanelRect:lY.grid,xAxisDeclared:h[p.id],yAxisDeclared:f[p.id]})}))},geo:function(a,i){G(a.geoModels,function(n){var o=n.coordinateSystem;i.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:o,coordSyses:[o],getPanelRect:lY.geo})})}},sY=[function(a,i){var n=a.xAxisModel,o=a.yAxisModel,c=a.gridModel;return!c&&n&&(c=n.axis.grid.model),!c&&o&&(c=o.axis.grid.model),c&&c===i.gridModel},function(a,i){var n=a.geoModel;return n&&n===i.geoModel}],lY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,i=a.getBoundingRect().clone();return i.applyTransform(rc(a)),i}},A5={lineX:ct(cY,0),lineY:ct(cY,1),rect:function(a,i,n,o){var c=a?i.pointToData([n[0][0],n[1][0]],o):i.dataToPoint([n[0][0],n[1][0]],o),d=a?i.pointToData([n[0][1],n[1][1]],o):i.dataToPoint([n[0][1],n[1][1]],o),h=[M5([c[0],d[0]]),M5([c[1],d[1]])];return{values:h,xyMinMax:h}},polygon:function(a,i,n,o){var c=[[1/0,-1/0],[1/0,-1/0]];return{values:Se(n,function(h){var f=a?i.pointToData(h,o):i.dataToPoint(h,o);return c[0][0]=Math.min(c[0][0],f[0]),c[1][0]=Math.min(c[1][0],f[1]),c[0][1]=Math.max(c[0][1],f[0]),c[1][1]=Math.max(c[1][1],f[1]),f}),xyMinMax:c}}};function cY(a,i,n,o){var c=n.getAxis(["x","y"][a]),d=M5(Se([0,1],function(f){return i?c.coordToData(c.toLocalCoord(o[f]),!0):c.toGlobalCoord(c.dataToCoord(o[f]))})),h=[];return h[a]=d,h[1-a]=[NaN,NaN],{values:d,xyMinMax:h}}var E5={lineX:ct(dY,0),lineY:ct(dY,1),rect:function(a,i,n){return[[a[0][0]-n[0]*i[0][0],a[0][1]-n[0]*i[0][1]],[a[1][0]-n[1]*i[1][0],a[1][1]-n[1]*i[1][1]]]},polygon:function(a,i,n){return Se(a,function(o,c){return[o[0]-n[0]*i[c][0],o[1]-n[1]*i[c][1]]})}};function dY(a,i,n,o){return[i[0]-o[a]*n[0],i[1]-o[a]*n[1]]}function uY(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}const I5=lee;var k5=G,uee=function LH(a){return $v+a}("toolbox-dataZoom_"),hee=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c,d){this._brushController||(this._brushController=new TI(c.getZr()),this._brushController.on("brush",he(this._onBrush,this)).mount()),function P5(a,i,n,o,c){var d=n._isZoomActive;o&&"takeGlobalCursor"===o.type&&(d="dataZoomSelect"===o.key&&o.dataZoomSelectActive),n._isZoomActive=d,a.setIconStatus("zoom",d?"emphasis":"normal");var f=new I5(Pk(a),i,{include:["grid"]}).makePanelOpts(c,function(p){return p.xAxisDeclared&&!p.yAxisDeclared?"lineX":!p.xAxisDeclared&&p.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(f).enableBrush(!(!d||!f.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(n,o,this,d,c),function vr(a,i){a.setIconStatus("back",function ree(a){return T5(a).length}(i)>1?"emphasis":"normal")}(n,o)},i.prototype.onclick=function(n,o,c){fee[c].call(this)},i.prototype.remove=function(n,o){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(n,o){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(n){var o=n.areas;if(n.isEnd&&o.length){var c={},d=this.ecModel;this._brushController.updateCovers([]),new I5(Pk(this.model),d,{include:["grid"]}).matchOutputRanges(o,d,function(g,v,_){if("cartesian2d"===_.type){var y=g.brushType;"rect"===y?(f("x",_,v[0]),f("y",_,v[1])):f({lineX:"x",lineY:"y"}[y],_,v)}}),function tee(a,i){var n=T5(a);rY(i,function(o,c){for(var d=n.length-1;d>=0&&!n[d][c];d--);if(d<0){var f=a.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(f){var p=f.getPercentRange();n[0][c]={dataZoomId:c,start:p[0],end:p[1]}}}}),n.push(i)}(d,c),this._dispatchZoomAction(c)}function f(g,v,_){var y=v.getAxis(g),w=y.model,x=function p(g,v,_){var y;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,v.componentIndex)&&(y=w)}),y}(g,w,d),S=x.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=S.minValueSpan||null!=S.maxValueSpan)&&(_=jf(0,_.slice(),y.scale.getExtent(),0,S.minValueSpan,S.maxValueSpan)),x&&(c[x.id]={dataZoomId:x.id,startValue:_[0],endValue:_[1]})}},i.prototype._dispatchZoomAction=function(n){var o=[];k5(n,function(c,d){o.push(nt(c))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},i.getDefaultOption=function(n){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(_l),fee={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function nee(a){var i=T5(a),n=i[i.length-1];i.length>1&&i.pop();var o={};return rY(n,function(c,d){for(var h=i.length-1;h>=0;h--)if(c=i[h][d]){o[d]=c;break}}),o}(this.ecModel))}};function Pk(a){var i={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function fO(a,i){be(null==hO.get(a)&&i),hO.set(a,i)}("dataZoom",function(a){var i=a.getComponent("toolbox",0),n=["feature","dataZoom"];if(i&&null!=i.get(n)){var o=i.getModel(n),c=[],h=Zv(a,Pk(o));return k5(h.xAxisModels,function(p){return f(p,"xAxis","xAxisIndex")}),k5(h.yAxisModels,function(p){return f(p,"yAxis","yAxisIndex")}),c}function f(p,g,v){var _=p.componentIndex,y={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:uee+g+_};y[v]=_,c.push(y)}});const hY=hee;var fY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},i}(en);const R5=fY;function E1(a){var i=a.get("confine");return null!=i?!!i:"richText"===a.get("renderMode")}function Rk(a){if(tn.domSupported)for(var i=document.documentElement.style,n=0,o=a.length;n-1?(f+="top:50%",p+="translateY(-50%) rotate("+(g="left"===d?-225:-45)+"deg)"):(f+="left:50%",p+="translateX(-50%) rotate("+(g="top"===d?225:45)+"deg)");var v=g*Math.PI/180,_=h+c,y=_*Math.abs(Math.cos(v))+_*Math.abs(Math.sin(v)),x=i+" solid "+c+"px;";return'
'}(o,c,d)),Ae(i))h.innerHTML=i+f;else if(i){h.innerHTML="",ye(i)||(i=[i]);for(var p=0;p=0?this._tryShow(d,h):"leave"===c&&this._hide(h))},this))},i.prototype._keepShow=function(){var n=this._tooltipModel,o=this._ecModel,c=this._api,d=n.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==d&&"click"!==d){var h=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!c.isDisposed()&&h.manuallyShowTip(n,o,c,{x:h._lastX,y:h._lastY,dataByCoordSys:h._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(n,o,c,d){if(d.from!==this.uid&&!tn.node&&c.getDom()){var h=B5(d,c);this._ticket="";var f=d.dataByCoordSys,p=function H5(a,i,n){var o=MD(a).queryOptionMap,c=o.keys()[0];if(c&&"series"!==c){var p,h=Kv(i,c,o.get(c),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(h&&(n.getViewOfComponentModel(h).group.traverse(function(g){var v=st(g).tooltipConfig;if(v&&v.name===a.name)return p=g,!0}),p))return{componentMainType:c,componentIndex:h.componentIndex,el:p}}}(d,o,c);if(p){var g=p.el.getBoundingRect().clone();g.applyTransform(p.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:p.el,position:d.position,positionDefault:"bottom"},h)}else if(d.tooltip&&null!=d.x&&null!=d.y){var v=V5;v.x=d.x,v.y=d.y,v.update(),st(v).tooltipConfig={name:null,option:d.tooltip},this._tryShow({offsetX:d.x,offsetY:d.y,target:v},h)}else if(f)this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,dataByCoordSys:f,tooltipOption:d.tooltipOption},h);else if(null!=d.seriesIndex){if(this._manuallyAxisShowTip(n,o,c,d))return;var _=l5(d,o),y=_.point[0],w=_.point[1];null!=y&&null!=w&&this._tryShow({offsetX:y,offsetY:w,target:_.el,position:d.position,positionDefault:"bottom"},h)}else null!=d.x&&null!=d.y&&(c.dispatchAction({type:"updateAxisPointer",x:d.x,y:d.y}),this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,target:c.getZr().findHover(d.x,d.y).target},h))}},i.prototype.manuallyHideTip=function(n,o,c,d){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,d.from!==this.uid&&this._hide(B5(d,c))},i.prototype._manuallyAxisShowTip=function(n,o,c,d){var h=d.seriesIndex,f=d.dataIndex,p=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=h&&null!=f&&null!=p){var g=o.getSeriesByIndex(h);if(g&&"axis"===wb([g.getData().getItemModel(f),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return c.dispatchAction({type:"updateAxisPointer",seriesIndex:h,dataIndex:f,position:d.position}),!0}},i.prototype._tryShow=function(n,o){var c=n.target;if(this._tooltipModel){this._lastX=n.offsetX,this._lastY=n.offsetY;var h=n.dataByCoordSys;if(h&&h.length)this._showAxisTooltip(h,n);else if(c){var f,p;this._lastDataByCoordSys=null,fu(c,function(g){return null!=st(g).dataIndex?(f=g,!0):null!=st(g).tooltipConfig?(p=g,!0):void 0},!0),f?this._showSeriesItemTooltip(n,f,o):p?this._showComponentItemTooltip(n,p,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},i.prototype._showOrMove=function(n,o){var c=n.get("showDelay");o=he(o,this),clearTimeout(this._showTimout),c>0?this._showTimout=setTimeout(o,c):o()},i.prototype._showAxisTooltip=function(n,o){var c=this._ecModel,d=this._tooltipModel,h=[o.offsetX,o.offsetY],f=wb([o.tooltipOption],d),p=this._renderMode,g=[],v=Hr("section",{blocks:[],noHeader:!0}),_=[],y=new ou;G(n,function(A){G(A.dataByAxis,function(E){var k=c.getComponent(E.axisDim+"Axis",E.axisIndex),L=E.value;if(k&&null!=L){var O=hk(L,k.axis,c,E.seriesDataIndices,E.valueLabelOpt),B=Hr("section",{header:O,noHeader:!la(O),sortBlocks:!0,blocks:[]});v.blocks.push(B),G(E.seriesDataIndices,function(U){var j=c.getSeriesByIndex(U.seriesIndex),W=U.dataIndexInside,$=j.getDataParams(W);if(!($.dataIndex<0)){$.axisDim=E.axisDim,$.axisIndex=E.axisIndex,$.axisType=E.axisType,$.axisId=E.axisId,$.axisValue=Px(k.axis,{value:L}),$.axisValueLabel=O,$.marker=y.makeTooltipMarker("item",Gh($.color),p);var X=kO(j.formatTooltip(W,!0,null)),K=X.frag;if(K){var ee=wb([j],d).get("valueFormatter");B.blocks.push(ee?_e({valueFormatter:ee},K):K)}X.text&&_.push(X.text),g.push($)}})}})}),v.blocks.reverse(),_.reverse();var w=o.position,x=f.get("order"),S=qT(v,y,p,x,c.get("useUTC"),f.get("textStyle"));S&&_.unshift(S);var T=_.join("richText"===p?"\n\n":"
");this._showOrMove(f,function(){this._updateContentNotChangedOnAxis(n,g)?this._updatePosition(f,w,h[0],h[1],this._tooltipContent,g):this._showTooltipContent(f,T,g,Math.random()+"",h[0],h[1],w,null,y)})},i.prototype._showSeriesItemTooltip=function(n,o,c){var d=this._ecModel,h=st(o),f=h.seriesIndex,p=d.getSeriesByIndex(f),g=h.dataModel||p,v=h.dataIndex,_=h.dataType,y=g.getData(_),w=this._renderMode,x=n.positionDefault,S=wb([y.getItemModel(v),g,p&&(p.coordinateSystem||{}).model],this._tooltipModel,x?{position:x}:null),D=S.get("trigger");if(null==D||"item"===D){var T=g.getDataParams(v,_),A=new ou;T.marker=A.makeTooltipMarker("item",Gh(T.color),w);var E=kO(g.formatTooltip(v,!1,_)),k=S.get("order"),L=S.get("valueFormatter"),O=E.frag,B=O?qT(L?_e({valueFormatter:L},O):O,A,w,k,d.get("useUTC"),S.get("textStyle")):E.text,U="item_"+g.name+"_"+v;this._showOrMove(S,function(){this._showTooltipContent(S,B,T,U,n.offsetX,n.offsetY,n.position,n.target,A)}),c({type:"showTip",dataIndexInside:v,dataIndex:y.getRawIndex(v),seriesIndex:f,from:this.uid})}},i.prototype._showComponentItemTooltip=function(n,o,c){var d=st(o),f=d.tooltipConfig.option||{};Ae(f)&&(f={content:f,formatter:f});var g=[f],v=this._ecModel.getComponent(d.componentMainType,d.componentIndex);v&&g.push(v),g.push({formatter:f.content});var _=n.positionDefault,y=wb(g,this._tooltipModel,_?{position:_}:null),w=y.get("content"),x=Math.random()+"",S=new ou;this._showOrMove(y,function(){var D=nt(y.get("formatterParams")||{});this._showTooltipContent(y,w,D,x,n.offsetX,n.offsetY,n.position,o,S)}),c({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(n,o,c,d,h,f,p,g,v){if(this._ticket="",n.get("showContent")&&n.get("show")){var _=this._tooltipContent;_.setEnterable(n.get("enterable"));var y=n.get("formatter");p=p||n.get("position");var w=o,S=this._getNearestPoint([h,f],c,n.get("trigger"),n.get("borderColor")).color;if(y)if(Ae(y)){var D=n.ecModel.get("useUTC"),T=ye(c)?c[0]:c;w=y,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=Jd(T.axisValue,w,D)),w=vT(w,c,!0)}else if(Xe(y)){var E=he(function(k,L){k===this._ticket&&(_.setContent(L,v,n,S,p),this._updatePosition(n,p,h,f,_,c,g))},this);this._ticket=d,w=y(c,d,E)}else w=y;_.setContent(w,v,n,S,p),_.show(n,S),this._updatePosition(n,p,h,f,_,c,g)}},i.prototype._getNearestPoint=function(n,o,c,d){return"axis"===c||ye(o)?{color:d||("html"===this._renderMode?"#fff":"none")}:ye(o)?void 0:{color:d||o.color||o.borderColor}},i.prototype._updatePosition=function(n,o,c,d,h,f,p){var g=this._api.getWidth(),v=this._api.getHeight();o=o||n.get("position");var _=h.getSize(),y=n.get("align"),w=n.get("verticalAlign"),x=p&&p.getBoundingRect().clone();if(p&&x.applyTransform(p.transform),Xe(o)&&(o=o([c,d],f,h.el,x,{viewSize:[g,v],contentSize:_.slice()})),ye(o))c=Ie(o[0],g),d=Ie(o[1],v);else if(Ee(o)){var S=o;S.width=_[0],S.height=_[1];var D=Dr(S,{width:g,height:v});c=D.x,d=D.y,y=null,w=null}else if(Ae(o)&&p){var T=function z5(a,i,n,o){var c=n[0],d=n[1],h=Math.ceil(Math.SQRT2*o)+8,f=0,p=0,g=i.width,v=i.height;switch(a){case"inside":f=i.x+g/2-c/2,p=i.y+v/2-d/2;break;case"top":f=i.x+g/2-c/2,p=i.y-d-h;break;case"bottom":f=i.x+g/2-c/2,p=i.y+v+h;break;case"left":f=i.x-c-h,p=i.y+v/2-d/2;break;case"right":f=i.x+g+h,p=i.y+v/2-d/2}return[f,p]}(o,x,_,n.get("borderWidth"));c=T[0],d=T[1]}else T=function Mi(a,i,n,o,c,d,h){var f=n.getSize(),p=f[0],g=f[1];return null!=d&&(a+p+d+2>o?a-=p+d:a+=d),null!=h&&(i+g+h>c?i-=g+h:i+=h),[a,i]}(c,d,h,g,v,y?null:20,w?null:20),c=T[0],d=T[1];y&&(c-=P1(y)?_[0]/2:"right"===y?_[0]:0),w&&(d-=P1(w)?_[1]/2:"bottom"===w?_[1]:0),E1(n)&&(T=function yY(a,i,n,o,c){var d=n.getSize(),h=d[0],f=d[1];return a=Math.min(a+h,o)-h,i=Math.min(i+f,c)-f,[a=Math.max(a,0),i=Math.max(i,0)]}(c,d,h,g,v),c=T[0],d=T[1]),h.moveTo(c,d)},i.prototype._updateContentNotChangedOnAxis=function(n,o){var c=this._lastDataByCoordSys,d=this._cbParamsList,h=!!c&&c.length===n.length;return h&&G(c,function(f,p){var g=f.dataByAxis||[],_=(n[p]||{}).dataByAxis||[];(h=h&&g.length===_.length)&&G(g,function(y,w){var x=_[w]||{},S=y.seriesDataIndices||[],D=x.seriesDataIndices||[];(h=h&&y.value===x.value&&y.axisType===x.axisType&&y.axisId===x.axisId&&S.length===D.length)&&G(S,function(T,A){var E=D[A];h=h&&T.seriesIndex===E.seriesIndex&&T.dataIndex===E.dataIndex}),d&&G(y.seriesDataIndices,function(T){var A=T.seriesIndex,E=o[A],k=d[A];E&&k&&k.data!==E.data&&(h=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=o,!!h},i.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},i.prototype.dispose=function(n,o){tn.node||!o.getDom()||(af(this,"_updatePosition"),this._tooltipContent.dispose(),vk("itemTooltip",o))},i.type="tooltip",i}(li);function wb(a,i,n){var c,o=i.ecModel;n?(c=new Un(n,o,o),c=new Un(i.option,c,o)):c=i;for(var d=a.length-1;d>=0;d--){var h=a[d];h&&(h instanceof Un&&(h=h.get("tooltip",!0)),Ae(h)&&(h={formatter:h}),h&&(c=new Un(h,c,o)))}return c}function B5(a,i){return a.dispatchAction||he(i.dispatchAction,i)}function P1(a){return"center"===a||"middle"===a}const bY=_Y;var Hu=["rect","polygon","keep","clear"];function bee(a,i){var n=Mn(a?a.brush:[]);if(n.length){var o=[];G(n,function(p){var g=p.hasOwnProperty("toolbox")?p.toolbox:[];g instanceof Array&&(o=o.concat(g))});var c=a&&a.toolbox;ye(c)&&(c=c[0]),c||(a.toolbox=[c={feature:{}}]);var d=c.feature||(c.feature={}),h=d.brush||(d.brush={}),f=h.type||(h.type=[]);f.push.apply(f,o),function Nk(a){var i={};G(a,function(n){i[n]=1}),a.length=0,G(i,function(n,o){a.push(o)})}(f),i&&!f.length&&f.push.apply(f,Hu)}}var R1=G;function O1(a){if(a)for(var i in a)if(a.hasOwnProperty(i))return!0}function Vk(a,i,n){var o={};return R1(i,function(d){var h=o[d]=function c(){var d=function(){};return d.prototype.__hidden=d.prototype,new d}();R1(a[d],function(f,p){if(Zr.isValidType(p)){var g={type:p,visual:f};n&&n(g,d),h[p]=new Zr(g),"opacity"===p&&((g=nt(g)).type="colorAlpha",h.__hidden.__alphaForOpacity=new Zr(g))}})}),o}function Bk(a,i,n){var o;G(n,function(c){i.hasOwnProperty(c)&&O1(i[c])&&(o=!0)}),o&&G(n,function(c){i.hasOwnProperty(c)&&O1(i[c])?a[c]=nt(i[c]):delete a[c]})}var SY={lineX:Hk(0),lineY:Hk(1),rect:{point:function(a,i,n){return a&&n.boundingRect.contain(a[0],a[1])},rect:function(a,i,n){return a&&n.boundingRect.intersect(a)}},polygon:{point:function(a,i,n){return a&&n.boundingRect.contain(a[0],a[1])&&Cf(n.range,a[0],a[1])},rect:function(a,i,n){var o=n.range;if(!a||o.length<=1)return!1;var c=a.x,d=a.y,h=a.width,f=a.height,p=o[0];return!!(Cf(o,c,d)||Cf(o,c+h,d)||Cf(o,c,d+f)||Cf(o,c+h,d+f)||ce.create(a).contain(p[0],p[1])||L_(c,d,c+h,d,o)||L_(c,d,c,d+f,o)||L_(c+h,d,c+h,d+f,o)||L_(c,d+f,c+h,d+f,o))||void 0}}};function Hk(a){var i=["x","y"],n=["width","height"];return{point:function(o,c,d){if(o)return yl(o[a],d.range)},rect:function(o,c,d){if(o){var h=d.range,f=[o[i[a]],o[i[a]]+o[n[a]]];return f[1]i[0][1]&&(i[0][1]=d[0]),d[1]i[1][1]&&(i[1][1]=d[1])}return i&&Gk(i)}};function Gk(a){return new ce(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var V1=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){this.ecModel=n,this.api=o,(this._brushController=new TI(o.getZr())).on("brush",he(this._onBrush,this)).mount()},i.prototype.render=function(n,o,c,d){this.model=n,this._updateController(n,o,c,d)},i.prototype.updateTransform=function(n,o,c,d){jk(o),this._updateController(n,o,c,d)},i.prototype.updateVisual=function(n,o,c,d){this.updateTransform(n,o,c,d)},i.prototype.updateView=function(n,o,c,d){this._updateController(n,o,c,d)},i.prototype._updateController=function(n,o,c,d){(!d||d.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(c)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(n){var o=this.model.id,c=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:nt(c),$from:o}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:nt(c),$from:o})},i.type="brush",i}(li);const Wk=V1;var $k=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.areas=[],n.brushOption={},n}return de(i,a),i.prototype.optionUpdated=function(n,o){var c=this.option;!o&&Bk(c,n,["inBrush","outOfBrush"]);var d=c.inBrush=c.inBrush||{};c.outOfBrush=c.outOfBrush||{color:"#ddd"},d.hasOwnProperty("liftZ")||(d.liftZ=5)},i.prototype.setAreas=function(n){n&&(this.areas=Se(n,function(o){return Yk(this.option,o)},this))},i.prototype.setBrushOption=function(n){this.brushOption=Yk(this.option,n),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},i}(en);function Yk(a,i){return mt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Un(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},i,!0)}const W5=$k;var $5=["rect","polygon","lineX","lineY","keep","clear"],qk=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return de(i,a),i.prototype.render=function(n,o,c){var d,h,f;o.eachComponent({mainType:"brush"},function(p){d=p.brushType,h=p.brushOption.brushMode||"single",f=f||!!p.areas.length}),this._brushType=d,this._brushMode=h,G(n.get("type",!0),function(p){n.setIconStatus(p,("keep"===p?"multiple"===h:"clear"===p?f:p===d)?"emphasis":"normal")})},i.prototype.updateView=function(n,o,c){this.render(n,o,c)},i.prototype.getIcons=function(){var n=this.model,o=n.get("icon",!0),c={};return G(n.get("type",!0),function(d){o[d]&&(c[d]=o[d])}),c},i.prototype.onclick=function(n,o,c){var d=this._brushType,h=this._brushMode;"clear"===c?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===c?d:d!==c&&c,brushMode:"keep"===c?"multiple"===h?"single":"multiple":h}})},i.getDefaultOption=function(n){return{show:!0,type:$5.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])}},i}(_l);const Cee=qk;var TY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.layoutMode={type:"box",ignoreSize:!0},n}return de(i,a),i.type="title",i.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},i}(en),MY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.render=function(n,o,c){if(this.group.removeAll(),n.get("show")){var d=this.group,h=n.getModel("textStyle"),f=n.getModel("subtextStyle"),p=n.get("textAlign"),g=gt(n.get("textBaseline"),n.get("textVerticalAlign")),v=new Zt({style:Zn(h,{text:n.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10}),_=v.getBoundingRect(),y=n.get("subtext"),w=new Zt({style:Zn(f,{text:y,fill:f.getTextColor(),y:_.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),x=n.get("link"),S=n.get("sublink"),D=n.get("triggerEvent",!0);v.silent=!x&&!D,w.silent=!S&&!D,x&&v.on("click",function(){Cw(x,"_"+n.get("target"))}),S&&w.on("click",function(){Cw(S,"_"+n.get("subtarget"))}),st(v).eventData=st(w).eventData=D?{componentType:"title",componentIndex:n.componentIndex}:null,d.add(v),y&&d.add(w);var T=d.getBoundingRect(),A=n.getBoxLayoutParams();A.width=T.width,A.height=T.height;var E=Dr(A,{width:c.getWidth(),height:c.getHeight()},n.get("padding"));p||("middle"===(p=n.get("left")||n.get("right"))&&(p="center"),"right"===p?E.x+=E.width:"center"===p&&(E.x+=E.width/2)),g||("center"===(g=n.get("top")||n.get("bottom"))&&(g="middle"),"bottom"===g?E.y+=E.height:"middle"===g&&(E.y+=E.height/2),g=g||"top"),d.x=E.x,d.y=E.y,d.markRedraw();var k={align:p,verticalAlign:g};v.setStyle(k),w.setStyle(k),T=d.getBoundingRect();var L=E.margin,O=n.getItemStyle(["color","opacity"]);O.fill=n.get("backgroundColor");var B=new _t({shape:{x:T.x-L[3],y:T.y-L[0],width:T.width+L[1]+L[3],height:T.height+L[0]+L[2],r:n.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});d.add(B)}},i.type="title",i}(li),EY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.layoutMode="box",n}return de(i,a),i.prototype.init=function(n,o,c){this.mergeDefaultAndTheme(n,c),this._initData()},i.prototype.mergeOption=function(n){a.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(n){null==n&&(n=this.option.currentIndex);var o=this._data.count();this.option.loop?n=(n%o+o)%o:(n>=o&&(n=o-1),n<0&&(n=0)),this.option.currentIndex=n},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(n){this.option.autoPlay=!!n},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var h,n=this.option,o=n.data||[],c=n.axisType,d=this._names=[];"category"===c?(h=[],G(o,function(g,v){var y,_=xr(Yv(g),"");Ee(g)?(y=nt(g)).value=v:y=v,h.push(y),d.push(_)})):h=o,(this._data=new ya([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[c]||"number"}],this)).initData(h,d)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},i}(en);const Y5=EY;var q5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="timeline.slider",i.defaultOption=Ho(Y5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),i}(Y5);Di(q5,BT.prototype);const IY=q5;var Z5=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="timeline",i}(li);const X5=Z5;var kY=function(a){function i(n,o,c,d){var h=a.call(this,n,o,c)||this;return h.type=d||"value",h}return de(i,a),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(il);const PY=kY;var Xk=Math.PI,K5=qt(),Kk=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(n,o){this.api=o},i.prototype.render=function(n,o,c){if(this.model=n,this.api=c,this.ecModel=o,this.group.removeAll(),n.get("show",!0)){var d=this._layout(n,c),h=this._createGroup("_mainGroup"),f=this._createGroup("_labelGroup"),p=this._axis=this._createAxis(d,n);n.formatTooltip=function(g){return Hr("nameValue",{noName:!0,value:p.scale.getLabel({value:g})})},G(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](d,h,p,n)},this),this._renderAxisLabel(d,f,p,n),this._position(d,n)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(n,o){var f,c=n.get(["label","position"]),d=n.get("orient"),h=function See(a,i){return Dr(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},a.get("padding"))}(n,o),p={horizontal:"center",vertical:(f=null==c||"auto"===c?"horizontal"===d?h.y+h.height/2=0||"+"===f?"left":"right"},g={horizontal:f>=0||"+"===f?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:Xk/2},_="vertical"===d?h.height:h.width,y=n.getModel("controlStyle"),w=y.get("show",!0),x=w?y.get("itemSize"):0,S=w?y.get("itemGap"):0,D=x+S,T=n.get(["label","rotate"])||0;T=T*Xk/180;var A,E,k,L=y.get("position",!0),O=w&&y.get("showPlayBtn",!0),B=w&&y.get("showPrevBtn",!0),U=w&&y.get("showNextBtn",!0),j=0,W=_;"left"===L||"bottom"===L?(O&&(A=[0,0],j+=D),B&&(E=[j,0],j+=D),U&&(k=[W-x,0],W-=D)):(O&&(A=[W-x,0],W-=D),B&&(E=[0,0],j+=D),U&&(k=[W-x,0],W-=D));var $=[j,W];return n.get("inverse")&&$.reverse(),{viewRect:h,mainLength:_,orient:d,rotation:v[d],labelRotation:T,labelPosOpt:f,labelAlign:n.get(["label","align"])||p[d],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||g[d],playPosition:A,prevBtnPosition:E,nextBtnPosition:k,axisExtent:$,controlSize:x,controlGap:S}},i.prototype._position=function(n,o){var c=this._mainGroup,d=this._labelGroup,h=n.viewRect;if("vertical"===n.orient){var f=[1,0,0,1,0,0],p=h.x,g=h.y+h.height;ar(f,f,[-p,-g]),Rd(f,f,-Xk/2),ar(f,f,[p,g]),(h=h.clone()).applyTransform(f)}var v=A(h),_=A(c.getBoundingRect()),y=A(d.getBoundingRect()),w=[c.x,c.y],x=[d.x,d.y];x[0]=w[0]=v[0][0];var D,S=n.labelPosOpt;function T(k){k.originX=v[0][0]-k.x,k.originY=v[1][0]-k.y}function A(k){return[[k.x,k.x+k.width],[k.y,k.y+k.height]]}function E(k,L,O,B,U){k[B]+=O[B][U]-L[B][U]}null==S||Ae(S)?(E(w,_,v,1,D="+"===S?0:1),E(x,y,v,1,1-D)):(E(w,_,v,1,D=S>=0?0:1),x[1]=w[1]+S),c.setPosition(w),d.setPosition(x),c.rotation=d.rotation=n.rotation,T(c),T(d)},i.prototype._createAxis=function(n,o){var c=o.getData(),d=o.get("axisType"),h=function RY(a,i){if(i=i||a.get("type"))switch(i){case"category":return new ey({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new NF({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new cc}}(o,d);h.getTicks=function(){return c.mapArray(["value"],function(g){return{value:g}})};var f=c.getDataExtent("value");h.setExtent(f[0],f[1]),h.calcNiceTicks();var p=new PY("value",h,n.axisExtent,d);return p.model=o,p},i.prototype._createGroup=function(n){var o=this[n]=new rt;return this.group.add(o),o},i.prototype._renderAxisLine=function(n,o,c,d){var h=c.getExtent();if(d.get(["lineStyle","show"])){var f=new Gr({shape:{x1:h[0],y1:0,x2:h[1],y2:0},style:_e({lineCap:"round"},d.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(f);var p=this._progressLine=new Gr({shape:{x1:h[0],x2:this._currentPointer?this._currentPointer.x:h[0],y1:0,y2:0},style:Ze({lineCap:"round",lineWidth:f.style.lineWidth},d.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(p)}},i.prototype._renderAxisTick=function(n,o,c,d){var h=this,f=d.getData(),p=c.scale.getTicks();this._tickSymbols=[],G(p,function(g){var v=c.dataToCoord(g.value),_=f.getItemModel(g.value),y=_.getModel("itemStyle"),w=_.getModel(["emphasis","itemStyle"]),x=_.getModel(["progress","itemStyle"]),S={x:v,y:0,onclick:he(h._changeTimeline,h,g.value)},D=OY(_,y,o,S);D.ensureState("emphasis").style=w.getItemStyle(),D.ensureState("progress").style=x.getItemStyle(),Kd(D);var T=st(D);_.get("tooltip")?(T.dataIndex=g.value,T.dataModel=d):T.dataIndex=T.dataModel=null,h._tickSymbols.push(D)})},i.prototype._renderAxisLabel=function(n,o,c,d){var h=this;if(c.getLabelModel().get("show")){var p=d.getData(),g=c.getViewLabels();this._tickLabels=[],G(g,function(v){var _=v.tickValue,y=p.getItemModel(_),w=y.getModel("label"),x=y.getModel(["emphasis","label"]),S=y.getModel(["progress","label"]),D=c.dataToCoord(v.tickValue),T=new Zt({x:D,y:0,rotation:n.labelRotation-n.rotation,onclick:he(h._changeTimeline,h,_),silent:!1,style:Zn(w,{text:v.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});T.ensureState("emphasis").style=Zn(x),T.ensureState("progress").style=Zn(S),o.add(T),Kd(T),K5(T).dataIndex=_,h._tickLabels.push(T)})}},i.prototype._renderControl=function(n,o,c,d){var h=n.controlSize,f=n.rotation,p=d.getModel("controlStyle").getItemStyle(),g=d.getModel(["emphasis","controlStyle"]).getItemStyle(),v=d.getPlayState(),_=d.get("inverse",!0);function y(w,x,S,D){if(w){var T=Ka(gt(d.get(["controlStyle",x+"BtnSize"]),h),h),E=function Dee(a,i,n,o){var c=o.style,d=Ks(a.get(["controlStyle",i]),o||{},new ce(n[0],n[1],n[2],n[3]));return c&&d.setStyle(c),d}(d,x+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:h/2,originY:0,rotation:D?-f:0,rectHover:!0,style:p,onclick:S});E.ensureState("emphasis").style=g,o.add(E),Kd(E)}}y(n.nextBtnPosition,"next",he(this._changeTimeline,this,_?"-":"+")),y(n.prevBtnPosition,"prev",he(this._changeTimeline,this,_?"+":"-")),y(n.playPosition,v?"stop":"play",he(this._handlePlayClick,this,!v),!0)},i.prototype._renderCurrentPointer=function(n,o,c,d){var h=d.getData(),f=d.getCurrentIndex(),p=h.getItemModel(f).getModel("checkpointStyle"),g=this;this._currentPointer=OY(p,p,this._mainGroup,{},this._currentPointer,{onCreate:function(_){_.draggable=!0,_.drift=he(g._handlePointerDrag,g),_.ondragend=he(g._handlePointerDragend,g),LY(_,g._progressLine,f,c,d,!0)},onUpdate:function(_){LY(_,g._progressLine,f,c,d)}})},i.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},i.prototype._handlePointerDrag=function(n,o,c){this._clearTimer(),this._pointerChangeTimeline([c.offsetX,c.offsetY])},i.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},i.prototype._pointerChangeTimeline=function(n,o){var c=this._toAxisCoord(n)[0],h=Qr(this._axis.getExtent().slice());c>h[1]&&(c=h[1]),c=0&&(h[d]=+h[d].toFixed(y)),[h,_]}var U1={min:ct(uo,"min"),max:ct(uo,"max"),average:ct(uo,"average"),median:ct(uo,"median")};function Kg(a,i){if(i){var n=a.getData(),o=a.coordinateSystem,c=o&&o.dimensions;if(!function H1(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}(i)&&!ye(i.coord)&&ye(c)){var d=nP(i,n,o,a);if((i=nt(i)).type&&U1[i.type]&&d.baseAxis&&d.valueAxis){var h=Ct(c,d.baseAxis.dim),f=Ct(c,d.valueAxis.dim),p=U1[i.type](n,d.baseDataDim,d.valueDataDim,h,f);i.coord=p[0],i.value=p[1]}else i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}if(null!=i.coord&&ye(c))for(var g=i.coord,v=0;v<2;v++)U1[g[v]]&&(g[v]=Jg(n,n.mapDimension(c[v]),g[v]));else i.coord=[];return i}}function nP(a,i,n,o){var c={};return null!=a.valueIndex||null!=a.valueDim?(c.valueDataDim=null!=a.valueIndex?i.getDimension(a.valueIndex):a.valueDim,c.valueAxis=n.getAxis(function iP(a,i){var n=a.getData().getDimensionInfo(i);return n&&n.coordDim}(o,c.valueDataDim)),c.baseAxis=n.getOtherAxis(c.valueAxis),c.baseDataDim=i.mapDimension(c.baseAxis.dim)):(c.baseAxis=o.getBaseAxis(),c.valueAxis=n.getOtherAxis(c.baseAxis),c.baseDataDim=i.mapDimension(c.baseAxis.dim),c.valueDataDim=i.mapDimension(c.valueAxis.dim)),c}function Qg(a,i){return!(a&&a.containData&&i.coord&&!tP(i))||a.containData(i.coord)}function tz(a,i){return a?function(n,o,c,d){return Wc(d<2?n.coord&&n.coord[d]:n.value,i[d])}:function(n,o,c,d){return Wc(n.value,i[d])}}function Jg(a,i,n){if("average"===n){var o=0,c=0;return a.each(i,function(d,h){isNaN(d)||(o+=d,c++)}),o/c}return"median"===n?a.getMedian(i):a.getDataExtent(i)["max"===n?1:0]}var nz=qt(),rP=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.init=function(){this.markerGroupMap=Me()},i.prototype.render=function(n,o,c){var d=this,h=this.markerGroupMap;h.each(function(f){nz(f).keep=!1}),o.eachSeries(function(f){var p=ju.getMarkerModelFromSeries(f,d.type);p&&d.renderSeries(f,p,o,c)}),h.each(function(f){!nz(f).keep&&d.group.remove(f.group)})},i.prototype.markKeep=function(n){nz(n).keep=!0},i.prototype.toggleBlurSeries=function(n,o){var c=this;G(n,function(d){var h=ju.getMarkerModelFromSeries(d,c.type);h&&h.getData().eachItemGraphicEl(function(p){p&&(o?a_(p):o_(p))})})},i.type="marker",i}(li);const xb=rP;function aP(a,i,n){var o=i.coordinateSystem;a.each(function(c){var h,d=a.getItemModel(c),f=Ie(d.get("x"),n.getWidth()),p=Ie(d.get("y"),n.getHeight());if(isNaN(f)||isNaN(p)){if(i.getMarkerPosition)h=i.getMarkerPosition(a.getValues(a.dimensions,c));else if(o){var g=a.get(o.dimensions[0],c),v=a.get(o.dimensions[1],c);h=o.dataToPoint([g,v])}}else h=[f,p];isNaN(f)||(h[0]=f),isNaN(p)||(h[1]=p),a.setItemLayout(c,h)})}var NY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markPoint");h&&(aP(h.getData(),d,c),this.markerGroupMap.get(d.id).updateLayout())},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,new If),_=function VY(a,i,n){var o;o=a?Se(a&&a.dimensions,function(f){return _e(_e({},i.getData().getDimensionInfo(i.getData().mapDimension(f))||{}),{name:f,ordinalMeta:null})}):[{name:"value",type:"float"}];var c=new ya(o,n),d=Se(n.get("data"),ct(Kg,i));a&&(d=_n(d,ct(Qg,a)));var h=tz(!!a,o);return c.initData(d,null,h),c}(h,n,o);o.setData(_),aP(o.getData(),n,d),_.each(function(y){var w=_.getItemModel(y),x=w.getShallow("symbol"),S=w.getShallow("symbolSize"),D=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),A=w.getShallow("symbolKeepAspect");if(Xe(x)||Xe(S)||Xe(D)||Xe(T)){var E=o.getRawValue(y),k=o.getDataParams(y);Xe(x)&&(x=x(E,k)),Xe(S)&&(S=S(E,k)),Xe(D)&&(D=D(E,k)),Xe(T)&&(T=T(E,k))}var L=w.getModel("itemStyle").getItemStyle(),O=Va(p,"color");L.fill||(L.fill=O),_.setItemVisual(y,{symbol:x,symbolSize:S,symbolRotate:D,symbolOffset:T,symbolKeepAspect:A,style:L})}),v.updateData(_),this.group.add(v.group),_.eachItemGraphicEl(function(y){y.traverse(function(w){st(w).dataModel=o})}),this.markKeep(v),v.group.silent=o.get("silent")||n.get("silent")},i.type="markPoint",i}(xb);const BY=NY;var zY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.createMarkerModelFromSeries=function(n,o,c){return new i(n,o,c)},i.type="markLine",i.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},i}(ju);const iz=zY;var ev=qt(),HY=function(a,i,n,o){var d,c=a.getData();if(ye(o))d=o;else{var h=o.type;if("min"===h||"max"===h||"average"===h||"median"===h||null!=o.xAxis||null!=o.yAxis){var f=void 0,p=void 0;if(null!=o.yAxis||null!=o.xAxis)f=i.getAxis(null!=o.yAxis?"y":"x"),p=it(o.yAxis,o.xAxis);else{var g=nP(o,c,i,a);f=g.valueAxis,p=Jg(c,Cx(c,g.valueDataDim),h)}var _="x"===f.dim?0:1,y=1-_,w=nt(o),x={coord:[]};w.type=null,w.coord=[],w.coord[y]=-1/0,x.coord[y]=1/0;var S=n.get("precision");S>=0&&on(p)&&(p=+p.toFixed(Math.min(S,20))),w.coord[_]=x.coord[_]=p,d=[w,x,{type:h,valueIndex:o.valueIndex,value:p}]}else d=[]}var D=[Kg(a,d[0]),Kg(a,d[1]),_e({},d[2])];return D[2].type=D[2].type||null,mt(D[2],D[0]),mt(D[2],D[1]),D};function Cb(a){return!isNaN(a)&&!isFinite(a)}function oP(a,i,n,o){var c=1-a,d=o.dimensions[a];return Cb(i[c])&&Cb(n[c])&&i[a]===n[a]&&o.getAxis(d).containData(i[a])}function Eee(a,i){if("cartesian2d"===a.type){var n=i[0].coord,o=i[1].coord;if(n&&o&&(oP(1,n,o,a)||oP(0,n,o,a)))return!0}return Qg(a,i[0])&&Qg(a,i[1])}function rz(a,i,n,o,c){var f,d=o.coordinateSystem,h=a.getItemModel(i),p=Ie(h.get("x"),c.getWidth()),g=Ie(h.get("y"),c.getHeight());if(isNaN(p)||isNaN(g)){if(o.getMarkerPosition)f=o.getMarkerPosition(a.getValues(a.dimensions,i));else{var _=a.get((v=d.dimensions)[0],i),y=a.get(v[1],i);f=d.dataToPoint([_,y])}if(ug(d,"cartesian2d")){var v,w=d.getAxis("x"),x=d.getAxis("y");Cb(a.get((v=d.dimensions)[0],i))?f[0]=w.toGlobalCoord(w.getExtent()[n?0:1]):Cb(a.get(v[1],i))&&(f[1]=x.toGlobalCoord(x.getExtent()[n?0:1]))}isNaN(p)||(f[0]=p),isNaN(g)||(f[1]=g)}else f=[p,g];a.setItemLayout(i,f)}var UY=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markLine");if(h){var f=h.getData(),p=ev(h).from,g=ev(h).to;p.each(function(v){rz(p,v,!0,d,c),rz(g,v,!1,d,c)}),f.each(function(v){f.setItemLayout(v,[p.getItemLayout(v),g.getItemLayout(v)])}),this.markerGroupMap.get(d.id).updateLayout()}},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,new zC);this.group.add(v.group);var _=function jY(a,i,n){var o;o=a?Se(a&&a.dimensions,function(g){return _e(_e({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var c=new ya(o,n),d=new ya(o,n),h=new ya([],n),f=Se(n.get("data"),ct(HY,i,a,n));a&&(f=_n(f,ct(Eee,a)));var p=tz(!!a,o);return c.initData(Se(f,function(g){return g[0]}),null,p),d.initData(Se(f,function(g){return g[1]}),null,p),h.initData(Se(f,function(g){return g[2]})),h.hasItemOption=!0,{from:c,to:d,line:h}}(h,n,o),y=_.from,w=_.to,x=_.line;ev(o).from=y,ev(o).to=w,o.setData(x);var S=o.get("symbol"),D=o.get("symbolSize"),T=o.get("symbolRotate"),A=o.get("symbolOffset");function E(k,L,O){var B=k.getItemModel(L);rz(k,L,O,n,d);var U=B.getModel("itemStyle").getItemStyle();null==U.fill&&(U.fill=Va(p,"color")),k.setItemVisual(L,{symbolKeepAspect:B.get("symbolKeepAspect"),symbolOffset:gt(B.get("symbolOffset",!0),A[O?0:1]),symbolRotate:gt(B.get("symbolRotate",!0),T[O?0:1]),symbolSize:gt(B.get("symbolSize"),D[O?0:1]),symbol:gt(B.get("symbol",!0),S[O?0:1]),style:U})}ye(S)||(S=[S,S]),ye(D)||(D=[D,D]),ye(T)||(T=[T,T]),ye(A)||(A=[A,A]),_.from.each(function(k){E(y,k,!0),E(w,k,!1)}),x.each(function(k){var L=x.getItemModel(k).getModel("lineStyle").getLineStyle();x.setItemLayout(k,[y.getItemLayout(k),w.getItemLayout(k)]),null==L.stroke&&(L.stroke=y.getItemVisual(k,"style").fill),x.setItemVisual(k,{fromSymbolKeepAspect:y.getItemVisual(k,"symbolKeepAspect"),fromSymbolOffset:y.getItemVisual(k,"symbolOffset"),fromSymbolRotate:y.getItemVisual(k,"symbolRotate"),fromSymbolSize:y.getItemVisual(k,"symbolSize"),fromSymbol:y.getItemVisual(k,"symbol"),toSymbolKeepAspect:w.getItemVisual(k,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(k,"symbolOffset"),toSymbolRotate:w.getItemVisual(k,"symbolRotate"),toSymbolSize:w.getItemVisual(k,"symbolSize"),toSymbol:w.getItemVisual(k,"symbol"),style:L})}),v.updateData(x),_.line.eachItemGraphicEl(function(k){st(k).dataModel=o,k.traverse(function(L){st(L).dataModel=o})}),this.markKeep(v),v.group.silent=o.get("silent")||n.get("silent")},i.type="markLine",i}(xb);const GY=UY;var $Y=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.createMarkerModelFromSeries=function(n,o,c){return new i(n,o,c)},i.type="markArea",i.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(ju);const YY=$Y;var Sb=qt(),qY=function(a,i,n,o){var c=o[0],d=o[1];if(c&&d){var h=Kg(a,c),f=Kg(a,d),p=h.coord,g=f.coord;p[0]=it(p[0],-1/0),p[1]=it(p[1],-1/0),g[0]=it(g[0],1/0),g[1]=it(g[1],1/0);var v=Xb([{},h,f]);return v.coord=[h.coord,f.coord],v.x0=h.x,v.y0=h.y,v.x1=f.x,v.y1=f.y,v}};function G1(a){return!isNaN(a)&&!isFinite(a)}function az(a,i,n,o){var c=1-a;return G1(i[c])&&G1(n[c])}function ZY(a,i){var n=i.coord[0],o=i.coord[1],c={coord:n,x:i.x0,y:i.y0},d={coord:o,x:i.x1,y:i.y1};return ug(a,"cartesian2d")?!(!n||!o||!az(1,n,o)&&!az(0,n,o))||function j1(a,i,n){return!(a&&a.containZone&&i.coord&&n.coord&&!tP(i)&&!tP(n))||a.containZone(i.coord,n.coord)}(a,c,d):Qg(a,c)||Qg(a,d)}function $t(a,i,n,o,c){var f,d=o.coordinateSystem,h=a.getItemModel(i),p=Ie(h.get(n[0]),c.getWidth()),g=Ie(h.get(n[1]),c.getHeight());if(isNaN(p)||isNaN(g)){if(o.getMarkerPosition){var v=a.getValues(["x0","y0"],i),_=a.getValues(["x1","y1"],i),y=d.clampData(v),w=d.clampData(_),x=[];x[0]="x0"===n[0]?y[0]>w[0]?_[0]:v[0]:y[0]>w[0]?v[0]:_[0],x[1]="y0"===n[1]?y[1]>w[1]?_[1]:v[1]:y[1]>w[1]?v[1]:_[1],f=o.getMarkerPosition(x,n,!0)}else{var T=[S=a.get(n[0],i),D=a.get(n[1],i)];d.clampData&&d.clampData(T,T),f=d.dataToPoint(T,!0)}if(ug(d,"cartesian2d")){var A=d.getAxis("x"),E=d.getAxis("y"),S=a.get(n[0],i),D=a.get(n[1],i);G1(S)?f[0]=A.toGlobalCoord(A.getExtent()["x0"===n[0]?0:1]):G1(D)&&(f[1]=E.toGlobalCoord(E.getExtent()["y0"===n[1]?0:1]))}isNaN(p)||(f[0]=p),isNaN(g)||(f[1]=g)}else f=[p,g];return f}var XY=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Iee=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.updateTransform=function(n,o,c){o.eachSeries(function(d){var h=ju.getMarkerModelFromSeries(d,"markArea");if(h){var f=h.getData();f.each(function(p){var g=Se(XY,function(_){return $t(f,p,_,d,c)});f.setItemLayout(p,g),f.getItemGraphicEl(p).setShape("points",g)})}},this)},i.prototype.renderSeries=function(n,o,c,d){var h=n.coordinateSystem,f=n.id,p=n.getData(),g=this.markerGroupMap,v=g.get(f)||g.set(f,{group:new rt});this.group.add(v.group),this.markKeep(v);var _=function kee(a,i,n){var o,c;if(a){var h=Se(a&&a.dimensions,function(g){var v=i.getData();return _e(_e({},v.getDimensionInfo(v.mapDimension(g))||{}),{name:g,ordinalMeta:null})});c=Se(["x0","y0","x1","y1"],function(g,v){return{name:g,type:h[v%2].type}}),o=new ya(c,n)}else o=new ya(c=[{name:"value",type:"float"}],n);var f=Se(n.get("data"),ct(qY,i,a,n));a&&(f=_n(f,ct(ZY,a)));var p=a?function(g,v,_,y){return Wc(g.coord[Math.floor(y/2)][y%2],c[y])}:function(g,v,_,y){return Wc(g.value,c[y])};return o.initData(f,null,p),o.hasItemOption=!0,o}(h,n,o);o.setData(_),_.each(function(y){var w=Se(XY,function(U){return $t(_,y,U,n,d)}),x=h.getAxis("x").scale,S=h.getAxis("y").scale,D=x.getExtent(),T=S.getExtent(),A=[x.parse(_.get("x0",y)),x.parse(_.get("x1",y))],E=[S.parse(_.get("y0",y)),S.parse(_.get("y1",y))];Qr(A),Qr(E),_.setItemLayout(y,{points:w,allClipped:!!(D[0]>A[1]||D[1]E[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},i}(en);const Db=W1;var cp=ct,Tb=G,$1=rt,aa=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.newlineDisabled=!1,n}return de(i,a),i.prototype.init=function(){this.group.add(this._contentGroup=new $1),this.group.add(this._selectorGroup=new $1),this._isFirstRender=!0},i.prototype.getContentGroup=function(){return this._contentGroup},i.prototype.getSelectorGroup=function(){return this._selectorGroup},i.prototype.render=function(n,o,c){var d=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),n.get("show",!0)){var h=n.get("align"),f=n.get("orient");(!h||"auto"===h)&&(h="right"===n.get("left")&&"vertical"===f?"right":"left");var p=n.get("selector",!0),g=n.get("selectorPosition",!0);p&&(!g||"auto"===g)&&(g="horizontal"===f?"end":"start"),this.renderInner(h,n,o,c,p,f,g);var v=n.getBoxLayoutParams(),_={width:c.getWidth(),height:c.getHeight()},y=n.get("padding"),w=Dr(v,_,y),x=this.layoutInner(n,h,w,d,p,g),S=Dr(Ze({width:x.width,height:x.height},v),_,y);this.group.x=S.x-x.x,this.group.y=S.y-x.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eY(x,n))}},i.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},i.prototype.renderInner=function(n,o,c,d,h,f,p){var g=this.getContentGroup(),v=Me(),_=o.get("selectedMode"),y=[];c.eachRawSeries(function(w){!w.get("legendHoverLink")&&y.push(w.id)}),Tb(o.getData(),function(w,x){var S=w.get("name");if(!this.newlineDisabled&&(""===S||"\n"===S)){var D=new $1;return D.newline=!0,void g.add(D)}var T=c.getSeriesByName(S)[0];if(!v.get(S))if(T){var A=T.getData(),E=A.getVisual("legendLineStyle")||{},k=A.getVisual("legendIcon"),L=A.getVisual("style");this._createItem(T,S,x,w,o,n,E,L,k,_,d).on("click",cp(Y1,S,null,d,y)).on("mouseover",cp(lP,T.name,null,d,y)).on("mouseout",cp(cP,T.name,null,d,y)),v.set(S,!0)}else c.eachRawSeries(function(B){if(!v.get(S)&&B.legendVisualProvider){var U=B.legendVisualProvider;if(!U.containName(S))return;var j=U.indexOfName(S),W=U.getItemVisual(j,"style"),$=U.getItemVisual(j,"legendIcon"),X=Ea(W.fill);X&&0===X[3]&&(X[3]=.2,W=_e(_e({},W),{fill:No(X,"rgba")})),this._createItem(B,S,x,w,o,n,{},W,$,_,d).on("click",cp(Y1,null,S,d,y)).on("mouseover",cp(lP,null,S,d,y)).on("mouseout",cp(cP,null,S,d,y)),v.set(S,!0)}},this)},this),h&&this._createSelector(h,o,d,f,p)},i.prototype._createSelector=function(n,o,c,d,h){var f=this.getSelectorGroup();Tb(n,function(g){var v=g.type,_=new Zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){c.dispatchAction({type:"all"===v?"legendAllSelect":"legendInverseSelect"})}});f.add(_),Oa(_,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:g.title}),Kd(_)})},i.prototype._createItem=function(n,o,c,d,h,f,p,g,v,_,y){var w=n.visualDrawType,x=h.get("itemWidth"),S=h.get("itemHeight"),D=h.isSelected(o),T=d.get("symbolRotate"),A=d.get("symbolKeepAspect"),E=d.get("icon"),k=function dp(a,i,n,o,c,d,h){function f(D,T){"auto"===D.lineWidth&&(D.lineWidth=T.lineWidth>0?2:0),Tb(D,function(A,E){"inherit"===D[E]&&(D[E]=T[E])})}var p=i.getModel("itemStyle"),g=p.getItemStyle(),v=0===a.lastIndexOf("empty",0)?"fill":"stroke",_=p.getShallow("decal");g.decal=_&&"inherit"!==_?Qs(_,h):o.decal,"inherit"===g.fill&&(g.fill=o[c]),"inherit"===g.stroke&&(g.stroke=o[v]),"inherit"===g.opacity&&(g.opacity=("fill"===c?o:n).opacity),f(g,o);var y=i.getModel("lineStyle"),w=y.getLineStyle();if(f(w,n),"auto"===g.fill&&(g.fill=o.fill),"auto"===g.stroke&&(g.stroke=o.fill),"auto"===w.stroke&&(w.stroke=o.fill),!d){var x=i.get("inactiveBorderWidth");g.lineWidth="auto"===x?o.lineWidth>0&&g[v]?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),w.stroke=y.get("inactiveColor"),w.lineWidth=y.get("inactiveWidth")}return{itemStyle:g,lineStyle:w}}(v=E||v||"roundRect",d,p,g,w,D,y),L=new $1,O=d.getModel("textStyle");if(!Xe(n.getLegendIcon)||E&&"inherit"!==E){var B="inherit"===E&&n.getData().getVisual("symbol")?"inherit"===T?n.getData().getVisual("symbolRotate"):T:0;L.add(function KY(a){var i=a.icon||"roundRect",n=ji(i,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return n.setStyle(a.itemStyle),n.rotation=(a.iconRotate||0)*Math.PI/180,n.setOrigin([a.itemWidth/2,a.itemHeight/2]),i.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:x,itemHeight:S,icon:v,iconRotate:B,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:A}))}else L.add(n.getLegendIcon({itemWidth:x,itemHeight:S,icon:v,iconRotate:T,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:A}));var U="left"===f?x+5:-5,j=f,W=h.get("formatter"),$=o;Ae(W)&&W?$=W.replace("{name}",o??""):Xe(W)&&($=W(o));var X=D?O.getTextColor():d.get("inactiveColor");L.add(new Zt({style:Zn(O,{text:$,x:U,y:S/2,fill:X,align:j,verticalAlign:"middle"},{inheritColor:X})}));var K=new _t({shape:L.getBoundingRect(),invisible:!0}),ee=d.getModel("tooltip");return ee.get("show")&&nf({el:K,componentModel:h,itemName:o,itemTooltipOption:ee.option}),L.add(K),L.eachChild(function(te){te.silent=!0}),K.silent=!_,this.getContentGroup().add(L),Kd(L),L.__legendDataIndex=c,L},i.prototype.layoutInner=function(n,o,c,d,h,f){var p=this.getContentGroup(),g=this.getSelectorGroup();Wh(n.get("orient"),p,n.get("itemGap"),c.width,c.height);var v=p.getBoundingRect(),_=[-v.x,-v.y];if(g.markRedraw(),p.markRedraw(),h){Wh("horizontal",g,n.get("selectorItemGap",!0));var y=g.getBoundingRect(),w=[-y.x,-y.y],x=n.get("selectorButtonGap",!0),S=n.getOrient().index,D=0===S?"width":"height",T=0===S?"height":"width",A=0===S?"y":"x";"end"===f?w[S]+=v[D]+x:_[S]+=y[D]+x,w[1-S]+=v[T]/2-y[T]/2,g.x=w[0],g.y=w[1],p.x=_[0],p.y=_[1];var E={x:0,y:0};return E[D]=v[D]+x+y[D],E[T]=Math.max(v[T],y[T]),E[A]=Math.min(0,y[A]+w[1-S]),E}return p.x=_[0],p.y=_[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(li);function Y1(a,i,n,o){cP(a,i,n,o),n.dispatchAction({type:"legendToggleSelect",name:a??i}),lP(a,i,n,o)}function oz(a){for(var n,i=a.getZr().storage.getDisplayList(),o=0,c=i.length;oc[h],D=[-w.x,-w.y];o||(D[d]=v[g]);var T=[0,0],A=[-x.x,-x.y],E=gt(n.get("pageButtonGap",!0),n.get("itemGap",!0));S&&("end"===n.get("pageButtonPosition",!0)?A[d]+=c[h]-x[h]:T[d]+=x[h]+E),A[1-d]+=w[f]/2-x[f]/2,v.setPosition(D),_.setPosition(T),y.setPosition(A);var L={x:0,y:0};if(L[h]=S?c[h]:w[h],L[f]=Math.max(w[f],x[f]),L[p]=Math.min(0,x[p]+A[1-d]),_.__rectSize=c[h],S){var O={x:0,y:0};O[h]=Math.max(c[h]-x[h]-E,0),O[f]=L[f],_.setClipPath(new _t({shape:O})),_.__rectSize=O[h]}else y.eachChild(function(U){U.attr({invisible:!0,silent:!0})});var B=this._getPageInfo(n);return null!=B.pageIndex&&zt(v,{x:B.contentPosition[0],y:B.contentPosition[1]},S?n:null),this._updatePageInfoView(n,B),L},i.prototype._pageGo=function(n,o,c){var d=this._getPageInfo(o)[n];null!=d&&c.dispatchAction({type:"legendScroll",scrollDataIndex:d,legendId:o.id})},i.prototype._updatePageInfoView=function(n,o){var c=this._controllerGroup;G(["pagePrev","pageNext"],function(v){var y=null!=o[v+"DataIndex"],w=c.childOfName(v);w&&(w.setStyle("fill",n.get(y?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=y?"pointer":"default")});var d=c.childOfName("pageText"),h=n.get("pageFormatter"),f=o.pageIndex,p=null!=f?f+1:0,g=o.pageCount;d&&h&&d.setStyle("text",Ae(h)?h.replace("{current}",null==p?"":p+"").replace("{total}",null==g?"":g+""):h({current:p,total:g}))},i.prototype._getPageInfo=function(n){var o=n.get("scrollDataIndex",!0),c=this.getContentGroup(),d=this._containerGroup.__rectSize,h=n.getOrient().index,f=uP[h],p=q1[h],g=this._findTargetItemIndex(o),v=c.children(),_=v[g],y=v.length,w=y?1:0,x={contentPosition:[c.x,c.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!_)return x;var S=k(_);x.contentPosition[h]=-S.s;for(var D=g+1,T=S,A=S,E=null;D<=y;++D)(!(E=k(v[D]))&&A.e>T.s+d||E&&!L(E,T.s))&&(T=A.i>T.i?A:E)&&(null==x.pageNextDataIndex&&(x.pageNextDataIndex=T.i),++x.pageCount),A=E;for(D=g-1,T=S,A=S,E=null;D>=-1;--D)(!(E=k(v[D]))||!L(A,E.s))&&T.i=B&&O.s<=B+d}},i.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(h,f){var p=h.__legendDataIndex;null==d&&null!=p&&(d=f),p===n&&(o=f)}),o??d):0;var o,d},i.type="legend.scroll",i}(sz);const lz=tq;function dz(a){kt(QY),a.registerComponentModel(eq),a.registerComponentView(lz),function cz(a){a.registerAction("legendScroll","legendscroll",function(i,n){var o=i.scrollDataIndex;null!=o&&n.eachComponent({mainType:"legend",subType:"scroll",query:i},function(c){c.setScrollDataIndex(o)})})}(a)}var nq=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="dataZoom.inside",i.defaultOption=Ho(A1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(A1);const Z1=nq;var bl=qt();function uz(a,i){if(i){a.removeKey(i.model.uid);var n=i.controller;n&&n.dispose()}}function Oee(a,i){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function fP(a,i,n,o){return a.coordinateSystem.containPoint([n,o])}var hz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return de(i,a),i.prototype.render=function(n,o,c){a.prototype.render.apply(this,arguments),n.noTarget()?this._clear():(this.range=n.getPercentRange(),function Wu(a,i,n){bl(a).coordSysRecordMap.each(function(o){var c=o.dataZoomInfoMap.get(i.uid);c&&(c.getRange=n)})}(c,n,{pan:he(Ni.pan,this),zoom:he(Ni.zoom,this),scrollMove:he(Ni.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function iq(a,i){for(var n=bl(a).coordSysRecordMap,o=n.keys(),c=0;c0?f.pixelStart+f.pixelLength-f.pixel:f.pixel-f.pixelStart)/f.pixelLength*(d[1]-d[0])+d[0],g=Math.max(1/o.scale,0);d[0]=(d[0]-p)*g+p,d[1]=(d[1]-p)*g+p;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(jf(0,d,[0,100],0,v.minSpan,v.maxSpan),this.range=d,c[0]!==d[0]||c[1]!==d[1])return d}},pan:pP(function(a,i,n,o,c,d){var h=X1[o]([d.oldX,d.oldY],[d.newX,d.newY],i,c,n);return h.signal*(a[1]-a[0])*h.pixel/h.pixelLength}),scrollMove:pP(function(a,i,n,o,c,d){return X1[o]([0,0],[d.scrollDelta,d.scrollDelta],i,c,n).signal*(a[1]-a[0])*d.scrollDelta})};function pP(a){return function(i,n,o,c){var d=this.range,h=d.slice(),f=i.axisModels[0];if(f&&(jf(a(h,f,i,n,o,c),h,[0,100],"all"),this.range=h,d[0]!==h[0]||d[1]!==h[1]))return h}}var X1={grid:function(a,i,n,o,c){var d=n.axis,h={},f=c.model.coordinateSystem.getRect();return a=a||[0,0],"x"===d.dim?(h.pixel=i[0]-a[0],h.pixelLength=f.width,h.pixelStart=f.x,h.signal=d.inverse?1:-1):(h.pixel=i[1]-a[1],h.pixelLength=f.height,h.pixelStart=f.y,h.signal=d.inverse?-1:1),h},polar:function(a,i,n,o,c){var d=n.axis,h={},f=c.model.coordinateSystem,p=f.getRadiusAxis().getExtent(),g=f.getAngleAxis().getExtent();return a=a?f.pointToCoord(a):[0,0],i=f.pointToCoord(i),"radiusAxis"===n.mainType?(h.pixel=i[0]-a[0],h.pixelLength=p[1]-p[0],h.pixelStart=p[0],h.signal=d.inverse?1:-1):(h.pixel=i[1]-a[1],h.pixelLength=g[1]-g[0],h.pixelStart=g[0],h.signal=d.inverse?-1:1),h},singleAxis:function(a,i,n,o,c){var d=n.axis,h=c.model.coordinateSystem.getRect(),f={};return a=a||[0,0],"horizontal"===d.orient?(f.pixel=i[0]-a[0],f.pixelLength=h.width,f.pixelStart=h.x,f.signal=d.inverse?1:-1):(f.pixel=i[1]-a[1],f.pixelLength=h.height,f.pixelStart=h.y,f.signal=d.inverse?-1:1),f}};const K1=hz;function mP(a){C5(a),a.registerComponentModel(Z1),a.registerComponentView(K1),function rq(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(i,n){var o=bl(n),c=o.coordSysRecordMap||(o.coordSysRecordMap=Me());c.each(function(d){d.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(d){G(Ak(d).infoList,function(f){var p=f.model.uid,g=c.get(p)||c.set(p,function hP(a,i){var n={model:i,containsPoint:ct(fP,i),dispatchAction:ct(Oee,a),dataZoomInfoMap:null,controller:null},o=n.controller=new vg(a.getZr());return G(["pan","zoom","scrollMove"],function(c){o.on(c,function(d){var h=[];n.dataZoomInfoMap.each(function(f){if(d.isAvailableBehavior(f.model.option)){var p=(f.getRange||{})[c],g=p&&p(f.dzReferCoordSysInfo,n.model.mainType,n.controller,d);!f.model.get("disabled",!0)&&g&&h.push({dataZoomId:f.model.id,start:g[0],end:g[1]})}}),h.length&&n.dispatchAction(h)})}),n}(n,f.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=Me())).set(d.uid,{dzReferCoordSysInfo:f,model:d,getRange:null})})}),c.each(function(d){var f,h=d.controller,p=d.dataZoomInfoMap;if(p){var g=p.keys()[0];null!=g&&(f=p.get(g))}if(f){var v=function Lee(a){var i,n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return a.each(function(d){var h=d.model,f=!h.get("disabled",!0)&&(!h.get("zoomLock",!0)||"move");o[n+f]>o[n+i]&&(i=f),c=c&&h.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}(p);h.enable(v.controlType,v.opt),h.setPointerChecker(d.containsPoint),rf(d,"dispatchAction",f.model.get("throttle",!0),"fixRate")}else uz(c,d)})})}(a)}var fz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=Ho(A1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),i}(A1);const gP=fz;var up=_t,Vi="horizontal",kn="vertical",aq=["line","bar","candlestick","scatter"],lt={easing:"cubicOut",duration:100,delay:0},Vn=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._displayables={},n}return de(i,a),i.prototype.init=function(n,o){this.api=o,this._onBrush=he(this._onBrush,this),this._onBrushEnd=he(this._onBrushEnd,this)},i.prototype.render=function(n,o,c,d){if(a.prototype.render.apply(this,arguments),rf(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),!1!==n.get("show"))return n.noTarget()?(this._clear(),void this.group.removeAll()):((!d||"dataZoom"!==d.type||d.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){af(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(o),this._positionGroup()},i.prototype._resetLocation=function(){var n=this.dataZoomModel,o=this.api,d=n.get("brushSelect")?7:0,h=this._findCoordRect(),f={width:o.getWidth(),height:o.getHeight()},p=this._orient===Vi?{right:f.width-h.x-h.width,top:f.height-30-7-d,width:h.width,height:30}:{right:7,top:h.y,width:30,height:h.height},g=$h(n.option);G(["right","top","width","height"],function(_){"ph"===g[_]&&(g[_]=p[_])});var v=Dr(g,f);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===kn&&this._size.reverse()},i.prototype._positionGroup=function(){var n=this.group,o=this._location,c=this._orient,d=this.dataZoomModel.getFirstTargetAxisModel(),h=d&&d.get("inverse"),f=this._displayables.sliderGroup,p=(this._dataShadowInfo||{}).otherAxisInverse;f.attr(c!==Vi||h?c===Vi&&h?{scaleY:p?1:-1,scaleX:-1}:c!==kn||h?{scaleY:p?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:p?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:p?1:-1,scaleX:1});var g=n.getBoundingRect([f]);n.x=o.x-g.x,n.y=o.y-g.y,n.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var n=this.dataZoomModel,o=this._size,c=this._displayables.sliderGroup,d=n.get("brushSelect");c.add(new up({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var h=new up({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:he(this._onClickPanel,this)}),f=this.api.getZr();d?(h.on("mousedown",this._onBrushStart,this),h.cursor="crosshair",f.on("mousemove",this._onBrush),f.on("mouseup",this._onBrushEnd)):(f.off("mousemove",this._onBrush),f.off("mouseup",this._onBrushEnd)),c.add(h)},i.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],n){var o=this._size,c=this._shadowSize||[],d=n.series,h=d.getRawData(),f=d.getShadowDim&&d.getShadowDim(),p=f&&h.getDimensionInfo(f)?d.getShadowDim():n.otherDim;if(null!=p){var g=this._shadowPolygonPts,v=this._shadowPolylinePts;if(h!==this._shadowData||p!==this._shadowDim||o[0]!==c[0]||o[1]!==c[1]){var _=h.getDataExtent(p),y=.3*(_[1]-_[0]);_=[_[0]-y,_[1]+y];var k,w=[0,o[1]],S=[[o[0],0],[0,0]],D=[],T=o[0]/(h.count()-1),A=0,E=Math.round(h.count()/o[0]);h.each([p],function(j,W){if(E>0&&W%E)A+=T;else{var $=null==j||isNaN(j)||""===j,X=$?0:yn(j,_,w,!0);$&&!k&&W?(S.push([S[S.length-1][0],0]),D.push([D[D.length-1][0],0])):!$&&k&&(S.push([A,0]),D.push([A,0])),S.push([A,X]),D.push([A,X]),A+=T,k=$}}),g=this._shadowPolygonPts=S,v=this._shadowPolylinePts=D}this._shadowData=h,this._shadowDim=p,this._shadowSize=[o[0],o[1]];for(var W,$,X,K,L=this.dataZoomModel,B=0;B<3;B++){var U=(W=void 0,$=void 0,void 0,void 0,W=L.getModel(1===B?"selectedDataBackground":"dataBackground"),$=new rt,X=new no({shape:{points:g},segmentIgnoreThreshold:1,style:W.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),K=new io({shape:{points:v},segmentIgnoreThreshold:1,style:W.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),$.add(X),$.add(K),$);this._displayables.sliderGroup.add(U),this._displayables.dataShadowSegs.push(U)}}}},i.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,o=n.get("showDataShadow");if(!1!==o){var c,d=this.ecModel;return n.eachTargetAxis(function(h,f){G(n.getAxisProxy(h,f).getTargetSeriesModels(),function(g){if(!(c||!0!==o&&Ct(aq,g.get("type"))<0)){var y,v=d.getComponent(ap(h),f).axis,_=function nv(a){return{x:"y",y:"x",radius:"angle",angle:"radius"}[a]}(h),w=g.coordinateSystem;null!=_&&w.getOtherAxis&&(y=w.getOtherAxis(v).inverse),_=g.getData().mapDimension(_),c={thisAxis:v,series:g,thisDim:h,otherDim:_,otherAxisInverse:y}}},this)},this),c}},i.prototype._renderHandle=function(){var n=this.group,o=this._displayables,c=o.handles=[null,null],d=o.handleLabels=[null,null],h=this._displayables.sliderGroup,f=this._size,p=this.dataZoomModel,g=this.api,v=p.get("borderRadius")||0,_=p.get("brushSelect"),y=o.filler=new up({silent:_,style:{fill:p.get("fillerColor")},textConfig:{position:"inside"}});h.add(y),h.add(new up({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:f[0],height:f[1],r:v},style:{stroke:p.get("dataBackgroundColor")||p.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),G([0,1],function(E){var k=p.get("handleIcon");!Bm[k]&&k.indexOf("path://")<0&&k.indexOf("image://")<0&&(k="path://"+k);var L=ji(k,-1,0,2,2,null,!0);L.attr({cursor:Cn(this._orient),draggable:!0,drift:he(this._onDragMove,this,E),ondragend:he(this._onDragEnd,this),onmouseover:he(this._showDataInfo,this,!0),onmouseout:he(this._showDataInfo,this,!1),z2:5});var O=L.getBoundingRect(),B=p.get("handleSize");this._handleHeight=Ie(B,this._size[1]),this._handleWidth=O.width/O.height*this._handleHeight,L.setStyle(p.getModel("handleStyle").getItemStyle()),L.style.strokeNoScale=!0,L.rectHover=!0,L.ensureState("emphasis").style=p.getModel(["emphasis","handleStyle"]).getItemStyle(),Kd(L);var U=p.get("handleColor");null!=U&&(L.style.fill=U),h.add(c[E]=L);var j=p.getModel("textStyle");n.add(d[E]=new Zt({silent:!0,invisible:!0,style:Zn(j,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:j.getTextColor(),font:j.getFont()}),z2:10}))},this);var w=y;if(_){var x=Ie(p.get("moveHandleSize"),f[1]),S=o.moveHandle=new _t({style:p.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:f[1]-.5,height:x}}),D=.8*x,T=o.moveHandleIcon=ji(p.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);T.silent=!0,T.y=f[1]+x/2-.5,S.ensureState("emphasis").style=p.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var A=Math.min(f[1]/2,Math.max(x,10));(w=o.moveZone=new _t({invisible:!0,shape:{y:f[1]-A,height:x+A}})).on("mouseover",function(){g.enterEmphasis(S)}).on("mouseout",function(){g.leaveEmphasis(S)}),h.add(S),h.add(T),h.add(w)}w.attr({draggable:!0,cursor:Cn(this._orient),drift:he(this._onDragMove,this,"all"),ondragstart:he(this._showDataInfo,this,!0),ondragend:he(this._onDragEnd,this),onmouseover:he(this._showDataInfo,this,!0),onmouseout:he(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[yn(n[0],[0,100],o,!0),yn(n[1],[0,100],o,!0)]},i.prototype._updateInterval=function(n,o){var c=this.dataZoomModel,d=this._handleEnds,h=this._getViewExtent(),f=c.findRepresentativeAxisProxy().getMinMaxSpan(),p=[0,100];jf(o,d,h,c.get("zoomLock")?"all":n,null!=f.minSpan?yn(f.minSpan,p,h,!0):null,null!=f.maxSpan?yn(f.maxSpan,p,h,!0):null);var g=this._range,v=this._range=Qr([yn(d[0],h,p,!0),yn(d[1],h,p,!0)]);return!g||g[0]!==v[0]||g[1]!==v[1]},i.prototype._updateView=function(n){var o=this._displayables,c=this._handleEnds,d=Qr(c.slice()),h=this._size;G([0,1],function(w){var S=this._handleHeight;o.handles[w].attr({scaleX:S/2,scaleY:S/2,x:c[w]+(w?-1:1),y:h[1]/2-S/2})},this),o.filler.setShape({x:d[0],y:0,width:d[1]-d[0],height:h[1]});var f={x:d[0],width:d[1]-d[0]};o.moveHandle&&(o.moveHandle.setShape(f),o.moveZone.setShape(f),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",f.x+f.width/2));for(var p=o.dataShadowSegs,g=[0,d[0],d[1],h[0]],v=0;vo[0]||c[1]<0||c[1]>o[1])){var d=this._handleEnds,f=this._updateInterval("all",c[0]-(d[0]+d[1])/2);this._updateView(),f&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(n){this._brushStart=new St(n.offsetX,n.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(n){if(this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,o){o.attr("ignore",!0);var c=o.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(c.width)<5)){var h=this._getViewExtent(),f=[0,100];this._range=Qr([yn(c.x,h,f,!0),yn(c.x+c.width,h,f,!0)]),this._handleEnds=[c.x,c.x+c.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(n){this._brushing&&(Ps(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},i.prototype._updateBrushRect=function(n,o){var c=this._displayables,h=c.brushRect;h||(h=c.brushRect=new up({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),c.sliderGroup.add(h)),h.attr("ignore",!1);var f=this._brushStart,p=this._displayables.sliderGroup,g=p.transformCoordToLocal(n,o),v=p.transformCoordToLocal(f.x,f.y),_=this._size;g[0]=Math.max(Math.min(_[0],g[0]),0),h.setShape({x:v[0],y:0,width:g[0]-v[0],height:_[1]})},i.prototype._dispatchZoomAction=function(n){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?lt:null,start:o[0],end:o[1]})},i.prototype._findCoordRect=function(){var n,o=Ak(this.dataZoomModel).infoList;if(!n&&o.length){var c=o[0].model.coordinateSystem;n=c.getRect&&c.getRect()}if(!n){var d=this.api.getWidth(),h=this.api.getHeight();n={x:.2*d,y:.2*h,width:.6*d,height:.6*h}}return n},i.type="dataZoom.slider",i}(x5);function Cn(a){return"vertical"===a?"ns-resize":"ew-resize"}const Fee=Vn;function Eb(a){a.registerComponentModel(gP),a.registerComponentView(Fee),C5(a)}var eS={get:function(a,i,n){var o=nt((Vee[a]||{})[i]);return n&&ye(o)?o[o.length-1]:o}},Vee={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const oq=eS;var sq=Zr.mapVisual,Bee=Zr.eachVisual,zee=ye,pz=G,lq=Qr,cq=yn,Hee=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return de(i,a),i.prototype.init=function(n,o,c){this.mergeDefaultAndTheme(n,c)},i.prototype.optionUpdated=function(n,o){!o&&Bk(this.option,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(n){var o=this.stateList;n=he(n,this),this.controllerVisuals=Vk(this.option.controller,o,n),this.targetVisuals=Vk(this.option.target,o,n)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,o=[];return null==n||"all"===n?this.ecModel.eachSeries(function(c,d){o.push(d)}):o=Mn(n),o},i.prototype.eachTargetSeries=function(n,o){G(this.getTargetSeriesIndices(),function(c){var d=this.ecModel.getSeriesByIndex(c);d&&n.call(o,d)},this)},i.prototype.isTargetSeries=function(n){var o=!1;return this.eachTargetSeries(function(c){c===n&&(o=!0)}),o},i.prototype.formatValueText=function(n,o,c){var g,d=this.option,h=d.precision,f=this.dataBound,p=d.formatter;c=c||["<",">"],ye(n)&&(n=n.slice(),g=!0);var v=o?n:g?[_(n[0]),_(n[1])]:_(n);return Ae(p)?p.replace("{value}",g?v[0]:v).replace("{value2}",g?v[1]:v):Xe(p)?g?p(n[0],n[1]):p(n):g?n[0]===f[0]?c[0]+" "+v[1]:n[1]===f[1]?c[1]+" "+v[0]:v[0]+" - "+v[1]:v;function _(y){return y===f[0]?"min":y===f[1]?"max":(+y).toFixed(Math.min(h,20))}},i.prototype.resetExtent=function(){var n=this.option,o=lq([n.min,n.max]);this._dataExtent=o},i.prototype.getDataDimensionIndex=function(n){var o=this.option.dimension;if(null!=o)return n.getDimensionIndex(o);for(var c=n.dimensions,d=c.length-1;d>=0;d--){var f=n.getDimensionInfo(c[d]);if(!f.isCalculationCoord)return f.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var n=this.ecModel,o=this.option,c={inRange:o.inRange,outOfRange:o.outOfRange},d=o.target||(o.target={}),h=o.controller||(o.controller={});mt(d,c),mt(h,c);var f=this.isCategory();function p(_){zee(o.color)&&!_.inRange&&(_.inRange={color:o.color.slice().reverse()}),_.inRange=_.inRange||{color:n.get("gradientColor")}}p.call(this,d),p.call(this,h),function g(_,y,w){var x=_[y],S=_[w];x&&!S&&(S=_[w]={},pz(x,function(D,T){if(Zr.isValidType(T)){var A=oq.get(T,"inactive",f);null!=A&&(S[T]=A,"color"===T&&!S.hasOwnProperty("opacity")&&!S.hasOwnProperty("colorAlpha")&&(S.opacity=[0,0]))}}))}.call(this,d,"inRange","outOfRange"),function v(_){var y=(_.inRange||{}).symbol||(_.outOfRange||{}).symbol,w=(_.inRange||{}).symbolSize||(_.outOfRange||{}).symbolSize,x=this.get("inactiveColor"),D=this.getItemSymbol()||"roundRect";pz(this.stateList,function(T){var A=this.itemSize,E=_[T];E||(E=_[T]={color:f?x:[x]}),null==E.symbol&&(E.symbol=y&&nt(y)||(f?D:[D])),null==E.symbolSize&&(E.symbolSize=w&&nt(w)||(f?A[0]:[A[0],A[0]])),E.symbol=sq(E.symbol,function(O){return"none"===O?D:O});var k=E.symbolSize;if(null!=k){var L=-1/0;Bee(k,function(O){O>L&&(L=O)}),E.symbolSize=sq(k,function(O){return cq(O,[0,L],[0,A[0]],!0)})}},this)}.call(this,h)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(n){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(n){return null},i.prototype.getVisualMeta=function(n){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(en);const $u=Hee;var yP=[20,140],bP=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.optionUpdated=function(n,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(c){c.mappingMethod="linear",c.dataExtent=this.getExtent()}),this._resetRange()},i.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(null==n[0]||isNaN(n[0]))&&(n[0]=yP[0]),(null==n[1]||isNaN(n[1]))&&(n[1]=yP[1])},i.prototype._resetRange=function(){var n=this.getExtent(),o=this.option.range;!o||o.auto?(n.auto=1,this.option.range=n):ye(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],n[0]),o[1]=Math.min(o[1],n[1]))},i.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),G(this.stateList,function(n){var o=this.option.controller[n].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},i.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},i.prototype.getSelected=function(){var n=this.getExtent(),o=Qr((this.get("range")||[]).slice());return o[0]>n[1]&&(o[0]=n[1]),o[1]>n[1]&&(o[1]=n[1]),o[0]=c[1]||n<=o[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(n){var o=[];return this.eachTargetSeries(function(c){var d=[],h=c.getData();h.each(this.getDataDimensionIndex(h),function(f,p){n[0]<=f&&f<=n[1]&&d.push(p)},this),o.push({seriesId:c.id,dataIndex:d})},this),o},i.prototype.getVisualMeta=function(n){var o=mz(0,0,this.getExtent()),c=mz(0,0,this.option.range.slice()),d=[];function h(w,x){d.push({value:w,color:n(w,x)})}for(var f=0,p=0,g=c.length,v=o.length;pn[1])break;d.push({color:this.getControllerVisual(p,"color",o),offset:f/100})}return d.push({color:this.getControllerVisual(n[1],"color",o),offset:1}),d},i.prototype._createBarPoints=function(n,o){var c=this.visualMapModel.itemSize;return[[c[0]-o[0],n[0]],[c[0],n[0]],[c[0],n[1]],[c[0]-o[1],n[1]]]},i.prototype._createBarGroup=function(n){var o=this._orient,c=this.visualMapModel.get("inverse");return new rt("horizontal"!==o||c?"horizontal"===o&&c?{scaleX:"bottom"===n?-1:1,rotation:-Math.PI/2}:"vertical"!==o||c?{scaleX:"left"===n?1:-1}:{scaleX:"left"===n?1:-1,scaleY:-1}:{scaleX:"bottom"===n?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(n,o){if(this._useHandle){var c=this._shapes,d=this.visualMapModel,h=c.handleThumbs,f=c.handleLabels,p=d.itemSize,g=d.getExtent();vz([0,1],function(v){var _=h[v];_.setStyle("fill",o.handlesColor[v]),_.y=n[v];var y=Ts(n[v],[0,p[1]],g,!0),w=this.getControllerVisual(y,"symbolSize");_.scaleX=_.scaleY=w/p[0],_.x=p[0]-w/2;var x=Xs(c.handleLabelPoints[v],rc(_,this.group));f[v].setStyle({x:x[0],y:x[1],text:d.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",c.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(n,o,c,d){var h=this.visualMapModel,f=h.getExtent(),p=h.itemSize,g=[0,p[1]],v=this._shapes,_=v.indicator;if(_){_.attr("invisible",!1);var w=this.getControllerVisual(n,"color",{convertOpacityToAlpha:!0}),x=this.getControllerVisual(n,"symbolSize"),S=Ts(n,f,g,!0),D=p[0]-x/2,T={x:_.x,y:_.y};_.y=S,_.x=D;var A=Xs(v.indicatorLabelPoint,rc(_,this.group)),E=v.indicatorLabel;E.attr("invisible",!1);var k=this._applyTransform("left",v.mainGroup),O="horizontal"===this._orient;E.setStyle({text:(c||"")+h.formatValueText(o),verticalAlign:O?k:"middle",align:O?"center":k});var B={x:D,y:S,style:{fill:w}},U={style:{x:A[0],y:A[1]}};if(h.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var j={duration:100,easing:"cubicInOut",additive:!0};_.x=T.x,_.y=T.y,_.animateTo(B,j),E.animateTo(U,j)}else _.attr(B),E.attr(U);this._firstShowIndicator=!1;var W=this._shapes.handleLabels;if(W)for(var $=0;$h[1]&&(_[1]=1/0),o&&(_[0]===-1/0?this._showIndicator(v,_[1],"< ",p):_[1]===1/0?this._showIndicator(v,_[0],"> ",p):this._showIndicator(v,v,"\u2248 ",p));var y=this._hoverLinkDataIndices,w=[];(o||hq(c))&&(w=this._hoverLinkDataIndices=c.findTargetDataIndices(_));var x=function t2(a,i){var n={},o={};return c(a||[],n),c(i||[],o,n),[d(n),d(o)];function c(h,f,p){for(var g=0,v=h.length;g=0&&(d.dimension=h,o.push(d))}}),a.getData().setVisual("visualMeta",o)}}];function Hi(a,i,n,o){for(var c=i.targetVisuals[o],d=Zr.prepareVisualTypes(c),h={color:Va(a.getData(),"color")},f=0,p=d.length;f0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),a.registerAction(fq,Io),G(zi,function(i){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,i)}),a.registerPreprocessor(bz))}function pq(a){a.registerComponentModel(wP),a.registerComponentView(nS),MP(a)}var mq=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n._pieceList=[],n}return de(i,a),i.prototype.optionUpdated=function(n,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var c=this._mode=this._determineMode();this._pieceList=[],gq[this._mode].call(this,this._pieceList),this._resetSelected(n,o);var d=this.option.categories;this.resetVisual(function(h,f){"categories"===c?(h.mappingMethod="category",h.categories=nt(d)):(h.dataExtent=this.getExtent(),h.mappingMethod="piecewise",h.pieceList=Se(this._pieceList,function(p){return p=nt(p),"inRange"!==f&&(p.visual=null),p}))})},i.prototype.completeVisualOption=function(){var n=this.option,o={},c=Zr.listVisualTypes(),d=this.isCategory();function h(f,p,g){return f&&f[p]&&f[p].hasOwnProperty(g)}G(n.pieces,function(f){G(c,function(p){f.hasOwnProperty(p)&&(o[p]=1)})}),G(o,function(f,p){var g=!1;G(this.stateList,function(v){g=g||h(n,v,p)||h(n.target,v,p)},this),!g&&G(this.stateList,function(v){(n[v]||(n[v]={}))[p]=oq.get(p,"inRange"===v?"active":"inactive",d)})},this),a.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(n,o){var c=this.option,d=this._pieceList,h=(o?c:n).selected||{};if(c.selected=h,G(d,function(p,g){var v=this.getSelectedMapKey(p);h.hasOwnProperty(v)||(h[v]=!0)},this),"single"===c.selectedMode){var f=!1;G(d,function(p,g){var v=this.getSelectedMapKey(p);h[v]&&(f?h[v]=!1:f=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(n){return"categories"===this._mode?n.value+"":n.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(n){this.option.selected=nt(n)},i.prototype.getValueState=function(n){var o=Zr.findPieceIndex(n,this._pieceList);return null!=o&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(n){var o=[],c=this._pieceList;return this.eachTargetSeries(function(d){var h=[],f=d.getData();f.each(this.getDataDimensionIndex(f),function(p,g){Zr.findPieceIndex(p,c)===n&&h.push(g)},this),o.push({seriesId:d.id,dataIndex:h})},this),o},i.prototype.getRepresentValue=function(n){var o;if(this.isCategory())o=n.value;else if(null!=n.value)o=n.value;else{var c=n.interval||[];o=c[0]===-1/0&&c[1]===1/0?0:(c[0]+c[1])/2}return o},i.prototype.getVisualMeta=function(n){if(!this.isCategory()){var o=[],c=["",""],d=this,f=this._pieceList.slice();if(f.length){var p=f[0].interval[0];p!==-1/0&&f.unshift({interval:[-1/0,p]}),(p=f[f.length-1].interval[1])!==1/0&&f.push({interval:[p,1/0]})}else f.push({interval:[-1/0,1/0]});var g=-1/0;return G(f,function(v){var _=v.interval;_&&(_[0]>g&&h([g,_[0]],"outOfRange"),h(_.slice()),g=_[1])},this),{stops:o,outerColors:c}}function h(v,_){var y=d.getRepresentValue({interval:v});_||(_=d.getValueState(y));var w=n(y,_);v[0]===-1/0?c[0]=w:v[1]===1/0?c[1]=w:o.push({value:v[0],color:w},{value:v[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=Ho($u.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),i}($u),gq={splitNumber:function(a){var i=this.option,n=Math.min(i.precision,20),o=this.getExtent(),c=i.splitNumber;c=Math.max(parseInt(c,10),1),i.splitNumber=c;for(var d=(o[1]-o[0])/c;+d.toFixed(n)!==d&&n<5;)n++;i.precision=n,d=+d.toFixed(n),i.minOpen&&a.push({interval:[-1/0,o[0]],close:[0,0]});for(var h=0,f=o[0];h","\u2265"][o[0]]])},this)}};function xz(a,i){var n=a.inverse;("vertical"===a.orient?!n:n)&&i.reverse()}const vq=mq;var Cz=function(a){function i(){var n=null!==a&&a.apply(this,arguments)||this;return n.type=i.type,n}return de(i,a),i.prototype.doRender=function(){var n=this.group;n.removeAll();var o=this.visualMapModel,c=o.get("textGap"),d=o.textStyleModel,h=d.getFont(),f=d.getTextColor(),p=this._getItemAlign(),g=o.itemSize,v=this._getViewData(),_=v.endsText,y=it(o.get("showLabel",!0),!_);_&&this._renderEndsText(n,_[0],g,y,p),G(v.viewPieceList,function(w){var x=w.piece,S=new rt;S.onclick=he(this._onItemClick,this,x),this._enableHoverLink(S,w.indexInModelPieceList);var D=o.getRepresentValue(x);if(this._createItemSymbol(S,D,[0,0,g[0],g[1]]),y){var T=this.visualMapModel.getValueState(D);S.add(new Zt({style:{x:"right"===p?-c:g[0]+c,y:g[1]/2,text:x.text,verticalAlign:"middle",align:p,font:h,fill:f,opacity:"outOfRange"===T?.5:1}}))}n.add(S)},this),_&&this._renderEndsText(n,_[1],g,y,p),Wh(o.get("orient"),n,o.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},i.prototype._enableHoverLink=function(n,o){var c=this;n.on("mouseover",function(){return d("highlight")}).on("mouseout",function(){return d("downplay")});var d=function(h){var f=c.visualMapModel;f.option.hoverLink&&c.api.dispatchAction({type:h,batch:tS(f.findTargetDataIndices(o),f)})}},i.prototype._getItemAlign=function(){var n=this.visualMapModel,o=n.option;if("vertical"===o.orient)return gz(n,this.api,n.itemSize);var c=o.align;return(!c||"auto"===c)&&(c="left"),c},i.prototype._renderEndsText=function(n,o,c,d,h){if(o){var f=new rt;f.add(new Zt({style:Zn(this.visualMapModel.textStyleModel,{x:d?"right"===h?c[0]:0:c[0]/2,y:c[1]/2,verticalAlign:"middle",align:d?h:"center",text:o})})),n.add(f)}},i.prototype._getViewData=function(){var n=this.visualMapModel,o=Se(n.getPieceList(),function(f,p){return{piece:f,indexInModelPieceList:p}}),c=n.get("text"),d=n.get("orient"),h=n.get("inverse");return("horizontal"===d?h:!h)?o.reverse():c&&(c=c.slice().reverse()),{viewPieceList:o,endsText:c}},i.prototype._createItemSymbol=function(n,o,c){n.add(ji(this.getControllerVisual(o,"symbol"),c[0],c[1],c[2],c[3],this.getControllerVisual(o,"color")))},i.prototype._onItemClick=function(n){var o=this.visualMapModel,c=o.option,d=c.selectedMode;if(d){var h=nt(c.selected),f=o.getSelectedMapKey(n);"single"===d||!0===d?(h[f]=!0,G(h,function(p,g){h[g]=g===f})):h[f]=!h[f],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:h})}},i.type="visualMap.piecewise",i}(CP);const Sz=Cz;function AP(a){a.registerComponentModel(vq),a.registerComponentView(Sz),MP(a)}var Uee={label:{enabled:!0},decal:{show:!1}},_q=qt(),jee={};function Gee(a,i){var n=a.getModel("aria");if(n.get("enabled")){var o=nt(Uee);mt(o.label,a.getLocaleModel().get("aria"),!1),mt(n.option,o,!1),function c(){if(n.getModel("decal").get("show")){var _=Me();a.eachSeries(function(y){if(!y.isColorBySeries()){var w=_.get(y.type);w||_.set(y.type,w={}),_q(y).scope=w}}),a.eachRawSeries(function(y){if(!a.isSeriesFiltered(y))if(Xe(y.enableAriaDecal))y.enableAriaDecal();else{var w=y.getData();if(y.isColorBySeries()){var A=Aw(y.ecModel,y.name,jee,a.getSeriesCount()),E=w.getVisual("decal");w.setVisual("decal",k(E,A))}else{var x=y.getRawData(),S={},D=_q(y).scope;w.each(function(L){var O=w.getRawIndex(L);S[O]=L});var T=x.count();x.each(function(L){var O=S[L],B=x.getName(L)||L+"",U=Aw(y.ecModel,B,D,T),j=w.getItemVisual(O,"decal");w.setItemVisual(O,"decal",k(j,U))})}}function k(L,O){var B=L?_e(_e({},O),L):O;return B.dirty=!0,B}})}}(),function d(){var g=a.getLocaleModel().get("aria"),v=n.getModel("label");if(v.option=Ze(v.option,g),v.get("enabled")){var _=i.getZr().dom;if(v.get("description"))return void _.setAttribute("aria-label",v.get("description"));var D,y=a.getSeriesCount(),w=v.get(["data","maxCount"])||10,x=v.get(["series","maxCount"])||10,S=Math.min(y,x);if(!(y<1)){var T=function f(){var g=a.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();D=T?h(v.get(["general","withTitle"]),{title:T}):v.get(["general","withoutTitle"]);var E=[];D+=h(v.get(y>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:y}),a.eachSeries(function(U,j){if(j1?["series","multiple",X]:["series","single",X]),{seriesId:U.seriesIndex,seriesName:U.get("name"),seriesType:p(U.subType)});var K=U.getData();K.count()>w?W+=h(v.get(["data","partialData"]),{displayCnt:w}):W+=v.get(["data","allData"]);for(var te=v.get(["data","separator","middle"]),ie=v.get(["data","separator","end"]),me=[],ue=0;ue":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wee=function(){function a(i){null==(this._condVal=Ae(i)?new RegExp(i):fR(i)?i:null)&&gn("")}return a.prototype.evaluate=function(i){var n=typeof i;return Ae(n)?this._condVal.test(i):!!on(n)&&this._condVal.test(i+"")},a}(),xd=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),bq=function(){function a(){}return a.prototype.evaluate=function(){for(var i=this.children,n=0;n2&&o.push(c),c=[K,ee]}function v(K,ee,te,ie){kb(K,te)&&kb(ee,ie)||c.push(K,ee,te,ie,te,ie)}for(var y,w,x,S,D=0;DU:$2&&o.push(c),o}function rS(a,i,n,o,c,d,h,f,p,g){if(kb(a,n)&&kb(i,o)&&kb(c,h)&&kb(d,f))p.push(h,f);else{var v=2/g,_=v*v,y=h-a,w=f-i,x=Math.sqrt(y*y+w*w);y/=x,w/=x;var S=n-a,D=o-i,T=c-h,A=d-f,E=S*S+D*D,k=T*T+A*A;if(E<_&&k<_)p.push(h,f);else{var L=y*S+w*D,O=-y*T-w*A;if(E-L*L<_&&L>=0&&k-O*O<_&&O>=0)p.push(h,f);else{var j=[],W=[];Fd(a,n,c,h,.5,j),Fd(i,o,d,f,.5,W),rS(j[0],W[0],j[1],W[1],j[2],W[2],j[3],W[3],p,g),rS(j[4],W[4],j[5],W[5],j[6],W[6],j[7],W[7],p,g)}}}}function kz(a,i,n){var d=Math.abs(a[i]/a[1-i]),h=Math.ceil(Math.sqrt(d*n)),f=Math.floor(n/h);0===f&&(f=1,h=n);for(var p=[],g=0;g0)for(g=0;g<_;g++)p[g%h]+=1;return p}function Tq(a,i,n){for(var o=a.r0,c=a.r,d=a.startAngle,f=Math.abs(a.endAngle-d),p=f*c,g=c-o,v=p>Math.abs(g),_=kz([p,g],v?0:1,i),y=(v?f:g)/_.length,w=0;w<_.length;w++)for(var x=(v?g:f)/_[w],S=0;S<_[w];S++){var D={};v?(D.startAngle=d+y*w,D.endAngle=d+y*(w+1),D.r0=o+x*S,D.r=o+x*(S+1)):(D.startAngle=d+x*S,D.endAngle=d+x*(S+1),D.r0=o+y*w,D.r=o+y*(w+1)),D.clockwise=a.clockwise,D.cx=a.cx,D.cy=a.cy,n.push(D)}}function aS(a,i,n,o){return a*o-n*i}function $ee(a,i,n,o,c,d,h,f){var p=n-a,g=o-i,v=h-c,_=f-d,y=aS(v,_,p,g);if(Math.abs(y)<1e-6)return null;var S=aS(a-c,i-d,v,_)/y;return S<0||S>1?null:new St(S*p+a,S*g+i)}function Pz(a,i,n){var o=new St;St.sub(o,n,i),o.normalize();var c=new St;return St.sub(c,a,i),c.dot(o)}function Pn(a,i){var n=a[a.length-1];n&&n[0]===i[0]&&n[1]===i[1]||a.push(i)}function Aq(a){var i=a.points,n=[],o=[];Yp(i,n,o);var c=new ce(n[0],n[1],o[0]-n[0],o[1]-n[1]),d=c.width,h=c.height,f=c.x,p=c.y,g=new St,v=new St;return d>h?(g.x=v.x=f+d/2,g.y=p,v.y=p+h):(g.y=v.y=p+h/2,g.x=f,v.x=f+d),function oS(a,i,n){for(var o=a.length,c=[],d=0;d0)for(var L=o/n,O=-o/2;O<=o/2;O+=L){var B=Math.sin(O),U=Math.cos(O),j=0;for(E=0;E0;g/=2){var v=0,_=0;(a&g)>0&&(v=1),(i&g)>0&&(_=1),f+=g*g*(3*v^_),0===_&&(1===v&&(a=g-1-a,i=g-1-i),p=a,a=i,i=p)}return f}function Pr(a){var i=1/0,n=1/0,o=-1/0,c=-1/0,d=Se(a,function(f){var p=f.getBoundingRect(),g=f.getComputedTransform(),v=p.x+p.width/2+(g?g[4]:0),_=p.y+p.height/2+(g?g[5]:0);return i=Math.min(v,i),n=Math.min(_,n),o=Math.max(v,o),c=Math.max(_,c),[v,_]});return Se(d,function(f,p){return{cp:f,z:fp(f[0],f[1],i,n,o,c),path:a[p]}}).sort(function(f,p){return f.z-p.z}).map(function(f){return f.path})}function Lz(a){return function Xee(a,i){var c,n=[],o=a.shape;switch(a.type){case"rect":(function Mq(a,i,n){for(var o=a.width,c=a.height,d=o>c,h=kz([o,c],d?0:1,i),f=d?"width":"height",p=d?"height":"width",g=d?"x":"y",v=d?"y":"x",_=a[f]/h.length,y=0;y=0;c--)if(!n[c].many.length){var p=n[f].many;if(p.length<=1){if(!f)return n;f=0}d=p.length;var g=Math.ceil(d/2);n[c].many=p.slice(g,d),n[f].many=p.slice(0,g),f++}return n}var qu={clone:function(a){for(var i=[],n=1-Math.pow(1-a.path.style.opacity,1/a.count),o=0;o0){var g,v,f=o.getModel("universalTransition").get("delay"),p=Object.assign({setToFinal:!0},h);Fz(a)&&(g=a,v=i),Fz(i)&&(g=i,v=a);for(var y=g?g===a:a.length>i.length,w=g?$i(v,g):$i(y?i:a,[y?a:i]),x=0,S=0;SSd))for(var c=o.getIndices(),d=function hS(a){for(var i=a.dimensions,n=0;n0&&k.group.traverse(function(O){O instanceof It&&!O.animators.length&&O.animateFrom({style:{opacity:0}},L)})})}function VP(a){return a.getModel("universalTransition").get("seriesKey")||a.id}function Ob(a){return ye(a)?a.sort().join(","):a}function Dd(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function BP(a,i){for(var n=0;n=0&&c.push({dataGroupId:i.oldDataGroupIds[f],data:i.oldData[f],divide:Dd(i.oldData[f]),dim:h.dimension})}),G(Mn(a.to),function(h){var f=BP(n.updatedSeries,h);if(f>=0){var p=n.updatedSeries[f].getData();d.push({dataGroupId:i.oldDataGroupIds[f],data:p,divide:Dd(p),dim:h.dimension})}}),c.length>0&&d.length>0&&NP(c,d,o)}(w,c,o,n)});else{var h=function Bz(a,i){var n=Me(),o=Me(),c=Me();return G(a.oldSeries,function(h,f){var p=a.oldDataGroupIds[f],g=a.oldData[f],v=VP(h),_=Ob(v);o.set(_,{dataGroupId:p,data:g}),ye(v)&&G(v,function(y){c.set(y,{key:_,dataGroupId:p,data:g})})}),G(i.updatedSeries,function(h){if(h.isUniversalTransitionEnabled()&&h.isAnimationEnabled()){var f=h.get("dataGroupId"),p=h.getData(),g=VP(h),v=Ob(g),_=o.get(v);if(_)n.set(v,{oldSeries:[{dataGroupId:_.dataGroupId,divide:Dd(_.data),data:_.data}],newSeries:[{dataGroupId:f,divide:Dd(p),data:p}]});else if(ye(g)){var y=[];G(g,function(S){var D=o.get(S);D.data&&y.push({dataGroupId:D.dataGroupId,divide:Dd(D.data),data:D.data})}),y.length&&n.set(v,{oldSeries:y,newSeries:[{dataGroupId:f,data:p,divide:Dd(p)}]})}else{var w=c.get(g);if(w){var x=n.get(w.key);x||(x={oldSeries:[{dataGroupId:w.dataGroupId,data:w.data,divide:Dd(w.data)}],newSeries:[]},n.set(w.key,x)),x.newSeries.push({dataGroupId:f,data:p,divide:Dd(p)})}}}}),n}(c,o);G(h.keys(),function(w){var x=h.get(w);NP(x.oldSeries,x.newSeries,n)})}G(o.updatedSeries,function(w){w[Yc]&&(w[Yc]=!1)})}for(var f=i.getSeries(),p=c.oldSeries=[],g=c.oldDataGroupIds=[],v=c.oldData=[],_=0;_=200&&Mt.status<=299}function Da(Gt){try{Gt.dispatchEvent(new MouseEvent("click"))}catch{var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Mt)}}var Is=oa.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Ta=oa.saveAs||("object"!=typeof window||window!==oa?function(){}:"download"in HTMLAnchorElement.prototype&&!Is?function(Mt,Ii,yr){var Si=oa.URL||oa.webkitURL,rr=document.createElement("a");rr.download=Ii=Ii||Mt.name||"download",rr.rel="noopener","string"==typeof Mt?(rr.href=Mt,rr.origin!==location.origin?ei(rr.href)?Po(Mt,Ii,yr):Da(rr,rr.target="_blank"):Da(rr)):(rr.href=Si.createObjectURL(Mt),setTimeout(function(){Si.revokeObjectURL(rr.href)},4e4),setTimeout(function(){Da(rr)},0))}:"msSaveOrOpenBlob"in navigator?function(Mt,Ii,yr){if(Ii=Ii||Mt.name||"download","string"==typeof Mt)if(ei(Mt))Po(Mt,Ii,yr);else{var Si=document.createElement("a");Si.href=Mt,Si.target="_blank",setTimeout(function(){Da(Si)})}else navigator.msSaveOrOpenBlob(function Dn(Gt,Mt){return typeof Mt>"u"?Mt={autoBom:!1}:"object"!=typeof Mt&&(console.warn("Deprecated: Expected third argument to be a object"),Mt={autoBom:!Mt}),Mt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Gt.type)?new Blob([String.fromCharCode(65279),Gt],{type:Gt.type}):Gt}(Mt,yr),Ii)}:function(Mt,Ii,yr,Si){if((Si=Si||open("","_blank"))&&(Si.document.title=Si.document.body.innerText="downloading..."),"string"==typeof Mt)return Po(Mt,Ii,yr);var rr="application/octet-stream"===Mt.type,pv=/constructor/i.test(oa.HTMLElement)||oa.safari,eh=/CriOS\/[\d]+/.test(navigator.userAgent);if((eh||rr&&pv||Is)&&typeof FileReader<"u"){var de=new FileReader;de.onloadend=function(){var nh=de.result;nh=eh?nh:nh.replace(/^data:[^;]*;/,"data:attachment/file;"),Si?Si.location.href=nh:location=nh,Si=null},de.readAsDataURL(Mt)}else{var th=oa.URL||oa.webkitURL,mv=th.createObjectURL(Mt);Si?Si.location=mv:location.href=mv,Si=null,setTimeout(function(){th.revokeObjectURL(mv)},4e4)}});oa.saveAs=Ta.saveAs=Ta,_p.exports=Ta}},_p=>{_p(_p.s=550)}]); \ No newline at end of file diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 12546376d..b52d8c6ba 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -102,6 +102,6 @@ - + diff --git a/server/src/uds/transports/HTML5SSH/html5ssh.py b/server/src/uds/transports/HTML5SSH/html5ssh.py index 604d93bcf..09cdc779a 100644 --- a/server/src/uds/transports/HTML5SSH/html5ssh.py +++ b/server/src/uds/transports/HTML5SSH/html5ssh.py @@ -135,8 +135,9 @@ class HTML5SSHTransport(transports.Transport): ) ssh_host_key = gui.TextField( label=_('SSH Host Key'), + length=512, order=34, - tooltip=_('Host key of the SSH server. If not provided, no verification of host identity is done.'), + tooltip=_('Host key of the SSH server. If not provided, no verification of host identity is done. (as the line in known_hosts file)'), tab=types.ui.Tab.PARAMETERS, old_field_name='sshHostKey' )