diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..dd84ea78
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Desktop (please complete the following information):**
+ - OS: [e.g. iOS]
+ - Browser [e.g. chrome, safari]
+ - Version [e.g. 22]
+
+**Smartphone (please complete the following information):**
+ - Device: [e.g. iPhone6]
+ - OS: [e.g. iOS8.1]
+ - Browser [e.g. stock browser, safari]
+ - Version [e.g. 22]
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..bbcbbe7d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..a06b5bc6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,40 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - '*'
+
+jobs:
+ build-frontend:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ cd client
+ npm install --force
+
+ - name: Build frontend
+ run: |
+ cd client
+ npm run build
+
+ build-backend:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'adopt'
+ java-version: '17'
+
+ - name: Build backend
+ run: |
+ chmod +x ./mvnw
+ ./mvnw clean package
diff --git a/.idea/codestream.xml b/.idea/codestream.xml
index b3b049e9..2d51d026 100644
--- a/.idea/codestream.xml
+++ b/.idea/codestream.xml
@@ -4,5 +4,6 @@
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9f8cb987..6278a44d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,26 @@
+
+<<<<<<< HEAD
+
+
+
+
+
+
+
+
+
+=======
-
-
+>>>>>>> cbcae96abf9c046e3883394b4a83b21886fc237e
+
+
+
+
@@ -87,7 +102,7 @@
-
+ 1706258920356
@@ -105,6 +120,7 @@
+
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000..f302749a
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,128 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, religion, or sexual identity
+and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the
+ overall community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or
+ advances of any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at
+kavindu.kokila.info@gmail.com.
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series
+of actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or
+permanent ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within
+the community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.0, available at
+https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
+
+Community Impact Guidelines were inspired by [Mozilla's code of conduct
+enforcement ladder](https://github.com/mozilla/diversity).
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see the FAQ at
+https://www.contributor-covenant.org/faq. Translations are available at
+https://www.contributor-covenant.org/translations.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..0fc2ac2f
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,140 @@
+
+# Contributing to Urban air quality monitoring and prediction system
+
+First off, thanks for taking the time to contribute! โค๏ธ
+
+All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. ๐
+
+> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
+> - Star the project
+> - Tweet about it
+> - Refer this project in your project's readme
+> - Mention the project at local meetups and tell your friends/colleagues
+
+
+## Table of Contents
+
+- [I Have a Question](#i-have-a-question)
+- [I Want To Contribute](#i-want-to-contribute)
+- [Reporting Bugs](#reporting-bugs)
+- [Suggesting Enhancements](#suggesting-enhancements)
+- [Your First Code Contribution](#your-first-code-contribution)
+- [Improving The Documentation](#improving-the-documentation)
+- [Styleguides](#styleguides)
+- [Commit Messages](#commit-messages)
+- [Join The Project Team](#join-the-project-team)
+
+
+
+## I Have a Question
+
+> If you want to ask a question, we assume that you have read the available [Documentation](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/tree/main/Docs).
+
+Before you ask a question, it is best to search for existing [Issues](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
+
+If you then still feel the need to ask a question and need clarification, we recommend the following:
+
+- Open an [Issue](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/issues/new).
+- Provide as much context as you can about what you're running into.
+- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
+
+We will then take care of the issue as soon as possible.
+
+
+
+## I Want To Contribute
+
+> ### Legal Notice
+> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
+
+### Reporting Bugs
+
+
+#### Before Submitting a Bug Report
+
+A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
+
+- Make sure that you are using the latest version.
+- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/tree/main/Docs). If you are looking for support, you might want to check [this section](#i-have-a-question)).
+- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platformissues?q=label%3Abug).
+- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
+- Collect information about the bug:
+- Stack trace (Traceback)
+- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
+- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
+- Possibly your input and the output
+- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
+
+
+#### How Do I Submit a Good Bug Report?
+
+> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to .
+
+
+We use GitHub issues to track bugs and errors. If you run into an issue with the project:
+
+- Open an [Issue](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
+- Explain the behavior you would expect and the actual behavior.
+- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
+- Provide the information you collected in the previous section.
+
+Once it's filed:
+
+- The project team will label the issue accordingly.
+- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
+- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
+
+
+
+
+### Suggesting Enhancements
+
+This section guides you through submitting an enhancement suggestion for Urban air quality monitoring and prediction system, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
+
+
+#### Before Submitting an Enhancement
+
+- Make sure that you are using the latest version.
+- Read the [documentation](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/tree/main/Docs) carefully and find out if the functionality is already covered, maybe by an individual configuration.
+- Perform a [search](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
+- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
+
+
+#### How Do I Submit a Good Enhancement Suggestion?
+
+Enhancement suggestions are tracked as [GitHub issues](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/issues).
+
+- Use a **clear and descriptive title** for the issue to identify the suggestion.
+- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
+- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
+- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
+- **Explain why this enhancement would be useful** to most Urban air quality monitoring and prediction system users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
+
+
+
+### Your First Code Contribution
+- Read the [instructions](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/blob/main/Docs/Config%20Guide.md) to clone and store `.env` values and important data.
+
+### Improving The Documentation
+- First you need to check all release notes and documents in [Docs]() directory.
+- If I missed some important data, don't hesitate to open the PR๐
+
+## Styleguides
+### Commit Messages
+`Override the in componet for `
+
+## Join The Project Team
+- Open an issue. That's it! ๐
diff --git a/Docs/perfomance-test.pdf b/Docs/perfomance-test.pdf
new file mode 100644
index 00000000..4899b93a
Binary files /dev/null and b/Docs/perfomance-test.pdf differ
diff --git a/Docs/release notes v-1-0-0.md b/Docs/release notes v-1-0-0.md
new file mode 100644
index 00000000..e1c904cf
--- /dev/null
+++ b/Docs/release notes v-1-0-0.md
@@ -0,0 +1,55 @@
+# Release Notes v1.0.0
+## Overview
+We are excited to announce the initial release of our Air Quality Monitoring Application, version 1.0.0. This release lays the foundation for our platform, focusing on Spring Boot backend functionality and basic CRUD operations for the following entities:
+- Air Quality
+- Land Use
+- Meteorological
+
+## Key Features
+### Backend Structure
+The backend is built on the Spring Boot framework (version 3.2.0), utilizing Java 17. The MongoDB database is employed to store and manage data efficiently.
+
+### File Structure
+The application follows a modular file structure for enhanced organization:
+```text
+com.api.air_quality
+ - controller
+ - airQualityController
+ - landUseController
+ - metrologicalController
+ - model
+ - airQualityModel
+ - landUseModel
+ - metrologicalModel
+ - repository
+ - airQualityRepository
+ - landUseRepository
+ - metrologicalRepository
+ - service
+ - airQualityService
+ - landUseService
+ - metrologicalService
+ - dto
+ - ApiResponse
+ - AirQualityApplication
+ - CorsConfig
+ - MongoConfig
+```
+### CRUD Operations
+In this version, basic CRUD operations are implemented for Air Quality, Land Use, and Meteorological entities. Repository methods are utilized to handle operations, and service files remain unimplemented.
+
+### Technology Stack
+The application is built using the following technologies:
+- **Spring Boot**: version 3.2.0
+- **Java**: Version 17
+- **Database**: MongoDB
+
+### Configuration
+The application has disabled Spring Security, and route configurations are managed using the CorsConfig file. Responses are formatted into JSON using the ApiResponse class.
+
+### Next Steps
+While v1.0.0 provides a solid foundation for our platform, upcoming releases will focus on implementing service logic, adding authentication, and expanding CRUD functionalities. We appreciate your support and look forward to delivering more features in future releases.
+
+Thank you for being part of our journey!
+
+[- Kavindu Kokila(Fullstack developer)](mailto:kavindu.kokila.info@gmail.com)
diff --git a/Docs/release notes v-1-1-0.md b/Docs/release notes v-1-1-0.md
new file mode 100644
index 00000000..abbd9e27
--- /dev/null
+++ b/Docs/release notes v-1-1-0.md
@@ -0,0 +1,28 @@
+# Release Notes v1.1.0
+### Overview
+We are thrilled to introduce version 1.2.0 of our Air Quality Monitoring Application. This release focuses on implementing essential statistical analysis methods and enhancing data management capabilities.
+
+### New Features
+#### Statistical Analysis
+- **Get All Data by Date Range:** Introduces a method to retrieve data within a specified date range.
+- **Get Means for Each Factor by Date Range:** Adds a method to calculate means for each factor within a given date range.
+- **Get Median for Each Factor:** Implements a method to calculate the median for each factor.
+- **Get Mode for Each Factor:** Introduces a method to find the mode for each factor.
+- **Find Correlations Between Factors:** Adds a method to determine correlations between each pair of factors.
+
+#### Bulk Data Import
+- **Bulk Import Data from CSV File:** Implements a method to bulk import data from a CSV file into the database.
+
+#### New Dependencies
+- **opencsv:** Upgraded to version 5.7.1 for enhanced CSV processing.
+- **commons-math3:** Introduced version 3.6.1 to leverage advanced mathematical functions.
+
+#### DTO Enhancements
+- **CorrelationDTO:** A new DTO (Data Transfer Object) specifically for converting correlation values to double values.
+
+### Next Steps
+This release lays the groundwork for advanced data analysis and management. In future versions, we plan to build upon these features, introducing more sophisticated statistical methods and expanding the application's capabilities.
+
+Thank you for your ongoing support, and we look forward to delivering more powerful functionalities in the next release.
+
+[- Kavindu Kokila(Fullstack developer)](mailto:kavindu.kokila.info@gmail.com)
diff --git a/Docs/release notes v-1-2-0.md b/Docs/release notes v-1-2-0.md
new file mode 100644
index 00000000..e377a7e3
--- /dev/null
+++ b/Docs/release notes v-1-2-0.md
@@ -0,0 +1,189 @@
+# Release Notes v1.2.0
+
+## Overview
+
+Version 1.2.0 marks a significant milestone as we introduce AI prediction capabilities using pre-trained Python models.
+Leveraging the power of Py4J gateway, our application seamlessly communicates between Python and Java to provide
+accurate predictions for various factors. This release also includes the implementation of Linear Regression for
+training models, extensive documentation, and the introduction of essential dependencies.
+
+## New Features
+
+#### AI Prediction Methods
+
+- **Pre-trained Python Models:** Integrated AI prediction methods using pre-trained Python models for each factor.
+- **Py4J Gateway Communication:** Established communication between Python and Java using Py4J gateway.
+- **Linear Regression Models:** Implemented Linear Regression to train models for accurate predictions.
+
+#### Create and Train Models
+
+```python
+from faker import Faker
+import csv
+import random
+from datetime import datetime, timedelta
+import pandas as pd
+from sklearn.model_selection import train_test_split
+from sklearn.linear_model import LinearRegression
+from sklearn.metrics import mean_squared_error
+import pickle
+
+fake = Faker()
+
+
+# Function to generate improved dummy air quality data
+def generate_improved_air_quality_data(locations, start_time, end_time, frequency):
+ fieldnames = ['timestamp', 'location', 'pm25', 'pm10', 'co2', 'ozone', 'no2', 'airTemperature', 'airHumidity',
+ 'airWind_speed']
+ with open('improved_air_quality_data.csv', 'w', newline='') as csvfile:
+ writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
+ writer.writeheader()
+
+ current_time = start_time
+ while current_time <= end_time:
+ for location in locations:
+ temperature = random.uniform(20, 30)
+ humidity = random.uniform(15, 20)
+
+ # Simulate rush hour increase in pollution
+ if 8 <= current_time.hour <= 10 or 17 <= current_time.hour <= 19:
+ pollution_increase = random.uniform(5, 15)
+ else:
+ pollution_increase = 0
+
+ writer.writerow({
+ 'timestamp': current_time.strftime('%Y-%m-%d %H:%M:%S'),
+ 'location': location,
+ 'pm25': temperature + humidity + pollution_increase + random.uniform(-2, 2),
+ 'pm10': temperature + humidity + pollution_increase + random.uniform(-2, 2),
+ 'co2': temperature + humidity + pollution_increase + random.uniform(-3, 3),
+ 'ozone': temperature + humidity + pollution_increase + random.uniform(-2, 2),
+ 'no2': temperature + humidity + pollution_increase + random.uniform(-1, 1),
+ 'airTemperature': temperature,
+ 'airHumidity': humidity,
+ 'airWind_speed': random.uniform(3, 8)
+ })
+
+ # Sleep for 5 minutes before generating data for the next interval
+ # time.sleep(30)
+ current_time += frequency
+
+
+# Function to generate improved dummy meteorological data
+def generate_improved_meteorological_data(locations, start_time, end_time, frequency):
+ with open('improved_meteorological_data.csv', 'w', newline='') as csvfile:
+ fieldnames = ['timestamp', 'location', 'temperature', 'humidity', 'wind_speed', 'precipitation']
+ writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
+ writer.writeheader()
+
+ current_time = start_time
+ while current_time <= end_time:
+ for location in locations:
+ temperature = random.uniform(20, 30)
+ humidity = random.uniform(15, 20)
+
+ # Simulate higher precipitation during colder months
+ precipitation = random.uniform(0, 0.5) + max(0, (25 - temperature) / 25)
+
+ writer.writerow({
+ 'timestamp': current_time.strftime('%Y-%m-%d %H:%M:%S'),
+ 'location': location,
+ 'temperature': temperature,
+ 'humidity': humidity,
+ 'wind_speed': random.uniform(3, 8),
+ 'precipitation': precipitation
+ })
+ # time.sleep(30)
+ current_time += frequency
+
+
+# Function to generate improved dummy land use information
+def generate_improved_land_use_data(locations):
+ with open('improved_land_use_data.csv', 'w', newline='') as csvfile:
+ fieldnames = ['location', 'land_type']
+ writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
+ writer.writeheader()
+
+ for location in locations:
+ # Simulate variations in land use types
+ land_type = random.choice(['Residential', 'Commercial', 'Industrial', 'Park'])
+ writer.writerow({
+ 'location': location,
+ 'land_type': land_type
+ })
+
+
+# Train and save a model for a given feature
+def train_and_save_model(df, feature_name):
+ X = df.drop(['timestamp', 'location', feature_name], axis=1)
+ y = df[feature_name]
+
+ # Split the dataset into training and testing sets
+ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
+
+ # Train a model (example: Random Forest Regressor)
+ model = LinearRegression()
+ model.fit(X_train, y_train)
+
+ # Make predictions
+ predictions = model.predict(X_test)
+
+ # Evaluate the model
+ mse = mean_squared_error(y_test, predictions)
+ print(f'Mean Squared Error for {feature_name}: {mse}')
+
+ # Save the trained model
+ model_filename = f'{feature_name}_model.pkl'
+ with open(model_filename, 'wb') as f:
+ pickle.dump(model, f)
+
+ print(f'Model saved as {model_filename}')
+
+
+if __name__ == "__main__":
+ # Define parameters
+ locations = ['CentralPark', 'Downtown', 'SuburbA', 'SuburbB']
+ start_time = datetime.now()
+ end_time = start_time + timedelta(days=1) # Run for 1 day
+ frequency = timedelta(minutes=15)
+
+ # Generate dummy datasets continuously
+ generate_improved_air_quality_data(locations, start_time, end_time, frequency)
+ generate_improved_meteorological_data(locations, start_time, end_time, frequency)
+ generate_improved_land_use_data(locations)
+
+ # Load datasets for each factor
+ df_air_quality = pd.read_csv('improved_air_quality_data.csv')
+ df_meteorological = pd.read_csv('improved_meteorological_data.csv')
+
+ # Train and save models for each factor
+ for feature in ['pm25', 'pm10', 'co2', 'ozone', 'no2', 'temperature', 'humidity', 'airHumidity', 'wind_speed',
+ 'precipitation', 'airWind_speed', 'airTemperature']:
+ if feature in df_meteorological.columns:
+ train_and_save_model(df_meteorological, feature)
+ else:
+ print(f"Warning: {feature} not found in meteorological dataset. Skipping...")
+
+ if feature in df_air_quality.columns:
+ train_and_save_model(df_air_quality, feature)
+ else:
+ print(f"Warning: {feature} not found in air quality dataset. Skipping...")
+```
+
+#### Documentation
+- **Code Documentation:** Extensively documented AI prediction methods, Py4J gateway usage, and model training.
+- **Statistical API Tests:** Rigorously tested all statistical APIs and documented test cases.
+- **API Documentation:** Comprehensive documentation for all APIs, providing usage guidelines and examples.
+
+#### New Dependencies
+- **py4j:** Version 0.10.9.7 for seamless Python-Java integration.
+- **junit:** Used for testing purposes.
+- **pmml-sklearn:** Version 1.7.45 for working with PMML models.
+- **slf4j-jdk14:** Version 2.0.9 for logging in the JDK 14 environment.
+
+### Next Steps
+In upcoming releases, we plan to enhance the AI prediction capabilities, introduce more advanced machine learning models, and further refine the statistical analysis methods. Your feedback is invaluable as we continue to improve and expand the features of our Air Quality Monitoring Application.
+
+Thank you for your continued support.
+
+[- Kavindu Kokila(Fullstack developer)](mailto:kavindu.kokila.info@gmail.com)
diff --git a/Docs/release notes v-1-3-0.md b/Docs/release notes v-1-3-0.md
new file mode 100644
index 00000000..036f0069
--- /dev/null
+++ b/Docs/release notes v-1-3-0.md
@@ -0,0 +1,82 @@
+# Release Notes v1.3.0 (Generated)
+## What's New
+* This is completely frontend design
+* Removed backend for this release
+* Implemented `Home Page`, `About Page`, `Blog page`, `References Page` and `Contact Page`
+* Implemented `sign in` and `sign up` components
+* Added router guards to prevent unauthorized access for dashboard
+* Added test data models and stores to test the frontend
+* Added color theme switch (light and dark - default is light)
+
+## Libraries and Packages
+* Angular Material
+* Ngx Cookie Service
+* Bootstrap
+
+## What's Changed
+* backend init by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/5
+* re-init by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/6
+* implementation structure by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/7
+* create models and repos. checked two http methods for air_quality conโฆ by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/8
+* basic crud for all controllers by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/9
+* Backend by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/10
+* find averages of metrological factors by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/11
+* get average method for air quality by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/12
+* create find median methods for all factors of metrological by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/13
+* find median method for air quality factors by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/14
+* calculate mode method by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/15
+* mode methods for air quality by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/16
+* update readme by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/17
+* implement method to calculate correlations by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/18
+* correlation methods for air quality by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/19
+* correlation methods for metrological by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/20
+* Update README.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/21
+* api doc part 1 by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/22
+* Update API doc.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/23
+* Update API doc.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/24
+* Update API doc.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/25
+* Update API doc.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/26
+* air quality services unit tests by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/27
+* Create MetrologicalServiceTest.java by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/28
+* test doc for services by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/29
+* created AI Training model by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/30
+* update data train model by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/31
+* update data branch by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/32
+* implement py4j lib for connect java with python by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/33
+* add AI models by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/34
+* cleanup code py4j by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/35
+* py4j identified how to work by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/36
+* load model to java by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/37
+* bug fixed by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/39
+* code clean and fixed xml reading bug by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/42
+* fixed bug and load and predict correct values by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/43
+* change train model saving lib by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/44
+* changed AI models by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/45
+* add prediction methods for airTemperature and airHumidity models by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/46
+* make methods for receive prediction values from python models by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/47
+* python models for humidity, temperature, wind_speed and precipitation by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/48
+* python model classes for pm25, pm10, co2, ozone, and no2 by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/49
+* create a method for send data using API by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/50
+* make python file run when API call is true by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/51
+* implement cache mechanism for pm25 predict method by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/53
+* implement a python method for get java returning value by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/54
+* predict request for airHumidity and pm25 by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/55
+* finally integrate a method to retrieve predicted python values to springboot by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/56
+* change python files by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/57
+* change python files by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/58
+* change python files by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/59
+* Backend by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/60
+* Clean code and implement python integration services by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/61
+* Update PredictionController.java by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/62
+* fixed bugs by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/63
+* Update README.md by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/64
+* Update API doc by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/65
+* make environment variables by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/66
+* fix python dotenv problem by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/68
+* update model load classes by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/69
+* create environmental variables by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/70
+* create environmental variables by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/71
+* backend final 2024.01.01 by @kavicastelo in https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/pull/72
+
+
+**Full Changelog**: https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/compare/1.2.0...1.3.1
diff --git a/Docs/release notes v-1-4-0.md b/Docs/release notes v-1-4-0.md
new file mode 100644
index 00000000..88d8442c
--- /dev/null
+++ b/Docs/release notes v-1-4-0.md
@@ -0,0 +1,44 @@
+# Release Notes v1.4.0
+## What's New
+* This is completely frontend design
+* Extend version of [1.3.0 release](https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/releases/tag/1.3.1)
+* Implemented router guards to prevent unauthorized access for dashboard and admin panel
+* Added test data models and stores to test the frontend
+* Added `forecast`, `users`, `blogs`, `comments`, `feedback`, `faq` and `settings` pages for administration
+* Added `Privacy Policy` and `Terms of Conditions` pages for frontend
+* Implemented markdown support components
+* Created `coming-soon`, `contact-form`, `forbidden`, `sign-up`, `signin-form`, and `signup-form` components as shared components
+
+## New Libraries and Packages
+* Angular Material
+* markdown-it : v14.0.0
+* ngx-markdown : v15.1.2
+
+## Administration Panel Tree
+* Forecast
+ * Forecast New
+ * Forecast Edit
+* Users
+ * Users Requests
+ * Users List
+ * Admins
+ * New Admin
+* Blogs
+ * Blogs New
+ * Blogs List
+ * Blogs Edit
+* Comments
+ * Coming soon
+* Faq
+ * Faq New
+ * Faq List
+ * Faq Edit
+* Feedback
+* Settings
+ * User Privacy Policy
+ * User Terms of Conditions
+ * Admin Privacy Policy
+ * Change Privacy
+
+## What's changed
+**Full Changelog**: https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/compare/1.3.1...1.4.0
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..f288702d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..d8846632
--- /dev/null
+++ b/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,38 @@
+# Description
+
+Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
+
+Fixes # (issue)
+
+## Type of change
+
+Please delete options that are not relevant.
+
+- [ ] Bug fix (non-breaking change which fixes an issue)
+- [ ] New feature (non-breaking change which adds functionality)
+- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
+- [ ] This change requires a documentation update
+
+# How Has This Been Tested?
+
+Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
+
+- [ ] Test A
+- [ ] Test B
+
+**Test Configuration**:
+* Firmware version:
+* Hardware:
+* Toolchain:
+* SDK:
+
+# Checklist:
+
+- [ ] My code follows the style guidelines of this project
+- [ ] I have performed a self-review of my code
+- [ ] I have commented my code, particularly in hard-to-understand areas
+- [ ] I have made corresponding changes to the documentation
+- [ ] My changes generate no new warnings
+- [ ] I have added tests that prove my fix is effective or that my feature works
+- [ ] New and existing unit tests pass locally with my changes
+- [ ] Any dependent changes have been merged and published in downstream modules
diff --git a/README.md b/README.md
index beec6e79..f82e5d33 100644
--- a/README.md
+++ b/README.md
@@ -114,41 +114,75 @@
### Get Correlations
1. Air Quality
- - /api/v1/airQuality/correlation/pm25AndPm10
- - /api/v1/airQuality/correlation/pm25AndCo2
- - /api/v1/airQuality/correlation/pm25AndOzone
- - /api/v1/airQuality/correlation/pm25AndNo2
- - /api/v1/airQuality/correlation/pm25AndTemperature
- - /api/v1/airQuality/correlation/pm25AndHumidity
- - /api/v1/airQuality/correlation/pm25AndWindSpeed
- - /api/v1/airQuality/correlation/pm10AndCo2
- - /api/v1/airQuality/correlation/pm10AndOzone
- - /api/v1/airQuality/correlation/pm10AndNo2
- - /api/v1/airQuality/correlation/pm10AndTemperature
- - /api/v1/airQuality/correlation/pm10AndHumidity
- - /api/v1/airQuality/correlation/pm10AndWindSpeed
- - /api/v1/airQuality/correlation/co2AndOzone
- - /api/v1/airQuality/correlation/co2AndNo2
- - /api/v1/airQuality/correlation/co2AndTemperature
- - /api/v1/airQuality/correlation/co2AndHumidity
- - /api/v1/airQuality/correlation/co2AndWindSpeed
- - /api/v1/airQuality/correlation/ozoneAndNo2
- - /api/v1/airQuality/correlation/ozoneAndTemperature
- - /api/v1/airQuality/correlation/ozoneAndHumidity
- - /api/v1/airQuality/correlation/ozoneAndWindSpeed
- - /api/v1/airQuality/correlation/no2AndTemperature
- - /api/v1/airQuality/correlation/no2AndHumidity
- - /api/v1/airQuality/correlation/no2AndWindSpeed
- - /api/v1/airQuality/correlation/temperatureAndHumidity
- - /api/v1/airQuality/correlation/temperatureAndWindSpeed
- - /api/v1/airQuality/correlation/humidityAndWindSpeed
+ - /api/v1/airQuality/correlation/Pm25AndPm10
+ - /api/v1/airQuality/correlation/Pm25AndCo2
+ - /api/v1/airQuality/correlation/Pm25AndOzone
+ - /api/v1/airQuality/correlation/Pm25AndNo2
+ - /api/v1/airQuality/correlation/Pm25AndTemperature
+ - /api/v1/airQuality/correlation/Pm25AndHumidity
+ - /api/v1/airQuality/correlation/Pm25AndWindSpeed
+ - /api/v1/airQuality/correlation/Pm10AndCo2
+ - /api/v1/airQuality/correlation/Pm10AndOzone
+ - /api/v1/airQuality/correlation/Pm10AndNo2
+ - /api/v1/airQuality/correlation/Pm10AndTemperature
+ - /api/v1/airQuality/correlation/Pm10AndHumidity
+ - /api/v1/airQuality/correlation/Pm10AndWindSpeed
+ - /api/v1/airQuality/correlation/Co2AndOzone
+ - /api/v1/airQuality/correlation/Co2AndNo2
+ - /api/v1/airQuality/correlation/Co2AndTemperature
+ - /api/v1/airQuality/correlation/Co2AndHumidity
+ - /api/v1/airQuality/correlation/Co2AndWindSpeed
+ - /api/v1/airQuality/correlation/OzoneAndNo2
+ - /api/v1/airQuality/correlation/OzoneAndTemperature
+ - /api/v1/airQuality/correlation/OzoneAndHumidity
+ - /api/v1/airQuality/correlation/OzoneAndWindSpeed
+ - /api/v1/airQuality/correlation/No2AndTemperature
+ - /api/v1/airQuality/correlation/No2AndHumidity
+ - /api/v1/airQuality/correlation/No2AndWindSpeed
+ - /api/v1/airQuality/correlation/TemperatureAndHumidity
+ - /api/v1/airQuality/correlation/TemperatureAndWindSpeed
+ - /api/v1/airQuality/correlation/HumidityAndWindSpeed
+ - /api/v1/airQuality/correlation/Pm10AndPm25
+ - /api/v1/airQuality/correlation/Co2AndPm25
+ - /api/v1/airQuality/correlation/OzoneAndPm25
+ - /api/v1/airQuality/correlation/No2AndPm25
+ - /api/v1/airQuality/correlation/TemperatureAndPm25
+ - /api/v1/airQuality/correlation/HumidityAndPm25
+ - /api/v1/airQuality/correlation/WindSpeedAndPm25
+ - /api/v1/airQuality/correlation/Co2AndPm10
+ - /api/v1/airQuality/correlation/OzoneAndPm10
+ - /api/v1/airQuality/correlation/No2AndPm10
+ - /api/v1/airQuality/correlation/TemperatureAndPm10
+ - /api/v1/airQuality/correlation/HumidityAndPm10
+ - /api/v1/airQuality/correlation/WindSpeedAndPm10
+ - /api/v1/airQuality/correlation/OzoneAndCo2
+ - /api/v1/airQuality/correlation/No2AndCo2
+ - /api/v1/airQuality/correlation/TemperatureAndCo2
+ - /api/v1/airQuality/correlation/HumidityAndCo2
+ - /api/v1/airQuality/correlation/WindSpeedAndCo2
+ - /api/v1/airQuality/correlation/No2AndOzone
+ - /api/v1/airQuality/correlation/TemperatureAndOzone
+ - /api/v1/airQuality/correlation/HumidityAndOzone
+ - /api/v1/airQuality/correlation/WindSpeedAndOzone
+ - /api/v1/airQuality/correlation/TemperatureAndNo2
+ - /api/v1/airQuality/correlation/HumidityAndNo2
+ - /api/v1/airQuality/correlation/WindSpeedAndNo2
+ - /api/v1/airQuality/correlation/HumidityAndTemperature
+ - /api/v1/airQuality/correlation/WindSpeedAndTemperature
+ - /api/v1/airQuality/correlation/WindSpeedAndHumidity
2. Metrological
- - /api/v1/metrological/correlation/temperatureAndHumidity
- - /api/v1/metrological/correlation/temperatureAndWindSpeed
- - /api/v1/metrological/correlation/temperatureAndPrecipitation
- - /api/v1/metrological/correlation/humidityAndWindSpeed
- - /api/v1/metrological/correlation/humidityAndPrecipitation
- - /api/v1/metrological/correlation/windSpeedAndPrecipitation
+ - /api/v1/metrological/correlation/TemperatureAndHumidity
+ - /api/v1/metrological/correlation/TemperatureAndWindSpeed
+ - /api/v1/metrological/correlation/TemperatureAndPrecipitation
+ - /api/v1/metrological/correlation/HumidityAndWindSpeed
+ - /api/v1/metrological/correlation/HumidityAndPrecipitation
+ - /api/v1/metrological/correlation/WindSpeedAndPrecipitation
+ - /api/v1/metrological/correlation/HumidityAndTemperature
+ - /api/v1/metrological/correlation/WindSpeedAndTemperature
+ - /api/v1/metrological/correlation/PrecipitationAndTemperature
+ - /api/v1/metrological/correlation/WindSpeedAndHumidity
+ - /api/v1/metrological/correlation/PrecipitationAndHumidity
+ - /api/v1/metrological/correlation/PrecipitationAndWindSpeed
### Make Prediction
1. Air Quality
@@ -245,3 +279,12 @@
- /api/v1/UserTerms
- /api/v1/UserTerms/save
- /api/v1/UserTerms/update/{id}
+
+---
+## Repo's Stats
+![code lines](https://tokei.rs/b1/github/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform)
+![files](https://tokei.rs/b1/github/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform?category=files)
+![repo size](https://img.shields.io/github/repo-size/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform?label=Repo%20Size&style=for-the-badge&labelColor=black&color=20bf6b)
+![GitHub forks](https://img.shields.io/github/forks/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform?&labelColor=black&color=0fb9b1&style=for-the-badge)
+![GitHub stars](https://img.shields.io/github/stars/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform?&labelColor=black&color=f7b731&style=for-the-badge)
+![GitHub LastCommit](https://img.shields.io/github/last-commit/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform?logo=github&labelColor=black&color=d1d8e0&style=for-the-badge)
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 00000000..859baeb8
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,26 @@
+# Security Policy
+
+## Supported Versions
+
+These versions are currently supporting and `version 1.2.x` is supporting only APIs. `version 1.6.x` is the latest version and currently supporting version of the completed application.
+
+| Version | Supported |
+| ------- | ------------------ |
+| 1.6.x | :white_check_mark: |
+| 1.4.x | :x:
+| 1.3.x | :x: |
+| 1.2.x | :white_check_mark: |
+| < 1.2 | :x: |
+
+## Reporting a Vulnerability
+
+Reporting a Vulnerability
+
+Use the application's contact form to report vulnerabilities.
+[browse](https://urban-air-quality-monitor.netlify.app) > Contact > Fill the form > Send
+
+**If you are not able to send the message, sign in to the application using proper Gmail**
+
+--- Or ---
+
+Contact [author](mailto:kavindu.kokila.info@gmail.com) by email.
diff --git a/client/angular.json b/client/angular.json
index 059e6d1c..d770c4a8 100644
--- a/client/angular.json
+++ b/client/angular.json
@@ -33,7 +33,10 @@
"@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.scss"
],
- "scripts": []
+ "scripts": [],
+ "allowedCommonJsDependencies": [
+ "leaflet"
+ ]
},
"configurations": {
"production": {
diff --git a/client/dist/client/3rdpartylicenses.txt b/client/dist/client/3rdpartylicenses.txt
index 34be7934..719ca132 100644
--- a/client/dist/client/3rdpartylicenses.txt
+++ b/client/dist/client/3rdpartylicenses.txt
@@ -66,6 +66,62 @@ MIT
@angular/router
MIT
+@kurkle/color
+MIT
+The MIT License (MIT)
+
+Copyright (c) 2018-2021 Jukka Kurkela
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+chart.js
+MIT
+The MIT License (MIT)
+
+Copyright (c) 2014-2022 Chart.js Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+leaflet
+BSD-2-Clause
+BSD 2-Clause License
+
+Copyright (c) 2010-2023, Volodymyr Agafonkin
+Copyright (c) 2010-2011, CloudMade
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. 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.
+
+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.
+
+
marked
MIT
# License information
diff --git a/client/dist/client/assets/images/shared/humidity-icon.png b/client/dist/client/assets/images/shared/humidity-icon.png
new file mode 100644
index 00000000..e36bbf26
Binary files /dev/null and b/client/dist/client/assets/images/shared/humidity-icon.png differ
diff --git a/client/dist/client/assets/images/shared/loading-circle.gif b/client/dist/client/assets/images/shared/loading-circle.gif
new file mode 100644
index 00000000..aaac0761
Binary files /dev/null and b/client/dist/client/assets/images/shared/loading-circle.gif differ
diff --git a/client/dist/client/assets/images/shared/temp-icon.png b/client/dist/client/assets/images/shared/temp-icon.png
new file mode 100644
index 00000000..530eaf1b
Binary files /dev/null and b/client/dist/client/assets/images/shared/temp-icon.png differ
diff --git a/client/dist/client/assets/images/shared/wind-icon.png b/client/dist/client/assets/images/shared/wind-icon.png
new file mode 100644
index 00000000..4da4287e
Binary files /dev/null and b/client/dist/client/assets/images/shared/wind-icon.png differ
diff --git a/client/dist/client/assets/imgs/icons/dark.png b/client/dist/client/assets/imgs/icons/dark.png
new file mode 100644
index 00000000..de0cc01b
Binary files /dev/null and b/client/dist/client/assets/imgs/icons/dark.png differ
diff --git a/client/dist/client/assets/imgs/icons/light.png b/client/dist/client/assets/imgs/icons/light.png
new file mode 100644
index 00000000..f20edd39
Binary files /dev/null and b/client/dist/client/assets/imgs/icons/light.png differ
diff --git a/client/dist/client/assets/imgs/shared/author-1.jpg b/client/dist/client/assets/imgs/shared/author-1.jpg
new file mode 100644
index 00000000..af625464
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/author-1.jpg differ
diff --git a/client/dist/client/assets/imgs/shared/cookies-ico.png b/client/dist/client/assets/imgs/shared/cookies-ico.png
new file mode 100644
index 00000000..399fd15d
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/cookies-ico.png differ
diff --git a/client/dist/client/assets/imgs/shared/cover-1.jpg b/client/dist/client/assets/imgs/shared/cover-1.jpg
new file mode 100644
index 00000000..0ac015c4
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/cover-1.jpg differ
diff --git a/client/dist/client/assets/imgs/shared/load-circle.gif b/client/dist/client/assets/imgs/shared/load-circle.gif
new file mode 100644
index 00000000..aaac0761
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/load-circle.gif differ
diff --git a/client/dist/client/assets/imgs/shared/load.gif b/client/dist/client/assets/imgs/shared/load.gif
new file mode 100644
index 00000000..716850d4
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/load.gif differ
diff --git a/client/dist/client/assets/imgs/shared/profile-1.png b/client/dist/client/assets/imgs/shared/profile-1.png
new file mode 100644
index 00000000..1c927a4f
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/profile-1.png differ
diff --git a/client/dist/client/assets/imgs/shared/soon.gif b/client/dist/client/assets/imgs/shared/soon.gif
new file mode 100644
index 00000000..2f1856c5
Binary files /dev/null and b/client/dist/client/assets/imgs/shared/soon.gif differ
diff --git a/client/dist/client/favicon.ico b/client/dist/client/favicon.ico
index 997406ad..40c67584 100644
Binary files a/client/dist/client/favicon.ico and b/client/dist/client/favicon.ico differ
diff --git a/client/dist/client/index.html b/client/dist/client/index.html
index 7bce4c0f..6248fd97 100644
--- a/client/dist/client/index.html
+++ b/client/dist/client/index.html
@@ -1,36 +1,45 @@
-
+
+
+
+
+
+
+
+
+
Ethical AI driven Geographic Analytics Platform
-
-
-
+
-
-
+
+
-
+
-
-
+
+
diff --git a/client/dist/client/main.04cd3e49f742dbd0.js b/client/dist/client/main.04cd3e49f742dbd0.js
new file mode 100644
index 00000000..624f9096
--- /dev/null
+++ b/client/dist/client/main.04cd3e49f742dbd0.js
@@ -0,0 +1 @@
+(self.webpackChunkclient=self.webpackChunkclient||[]).push([[179],{491:(mf,gf,te)=>{"use strict";function ht(t){return"function"==typeof t}function Ot(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Fs=Ot(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function $t(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class mt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ht(i))try{i()}catch(o){n=o instanceof Fs?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Rs(o)}catch(s){n=n??[],s instanceof Fs?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Fs(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Rs(n);else{if(n instanceof mt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&$t(e,n)}remove(n){const{_finalizers:e}=this;e&&$t(e,n),n instanceof mt&&n._removeParent(this)}}mt.EMPTY=(()=>{const t=new mt;return t.closed=!0,t})();const gt=mt.EMPTY;function Od(t){return t instanceof mt||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function Rs(t){ht(t)?t():t.unsubscribe()}const Wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$i={setTimeout(t,n,...e){const{delegate:i}=$i;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=$i;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Zl(t){$i.setTimeout(()=>{const{onUnhandledError:n}=Wt;if(!n)throw t;n(t)})}function oo(){}const rn=Kl("C",void 0,void 0);function Kl(t,n,e){return{kind:t,value:n,error:e}}let Kn=null;function Ls(t){if(Wt.useDeprecatedSynchronousErrorHandling){const n=!Kn;if(n&&(Kn={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Kn;if(Kn=null,e)throw i}}else t()}class Ra extends mt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Od(n)&&n.add(this)):this.destination=so}static create(n,e,i){return new Ns(n,e,i)}next(n){this.isStopped?Rd(function F_(t){return Kl("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Rd(function _f(t){return Kl("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Rd(rn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const vf=Function.prototype.bind;function Xl(t,n){return vf.call(t,n)}class Fd{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Qn(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Qn(i)}else Qn(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Qn(e)}}}class Ns extends Ra{constructor(n,e,i){let r;if(super(),ht(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Wt.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Xl(n.next,o),error:n.error&&Xl(n.error,o),complete:n.complete&&Xl(n.complete,o)}):r=n}this.destination=new Fd(r)}}function Qn(t){Wt.useDeprecatedSynchronousErrorHandling?function Ql(t){Wt.useDeprecatedSynchronousErrorHandling&&Kn&&(Kn.errorThrown=!0,Kn.error=t)}(t):Zl(t)}function Rd(t,n){const{onStoppedNotification:e}=Wt;e&&$i.setTimeout(()=>e(t,n))}const so={closed:!0,next:oo,error:function sr(t){throw t},complete:oo},Ld="function"==typeof Symbol&&Symbol.observable||"@@observable";function Mn(t){return t}function Ne(t){return 0===t.length?Mn:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Ft=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Si(t){return t&&t instanceof Ra||function cn(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}(t)&&Od(t)}(e)?e:new Ns(e,i,r);return Ls(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Pe(i))((r,o)=>{const s=new Ns({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ld](){return this}pipe(...e){return Ne(e)(this)}toPromise(e){return new(e=Pe(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Pe(t){var n;return null!==(n=t??Wt.Promise)&&void 0!==n?n:Promise}const ki=Ot(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Q=(()=>{class t extends Ft{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Rt(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new ki}next(e){Ls(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ls(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ls(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?gt:(this.currentObservers=null,o.push(e),new mt(()=>{this.currentObservers=null,$t(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new Ft;return e.source=this,e}}return t.create=(n,e)=>new Rt(n,e),t})();class Rt extends Q{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:gt}}function lt(t){return ht(t?.lift)}function Tt(t){return n=>{if(lt(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Mt(t,n,e,i,r){return new bf(t,n,e,i,r)}class bf extends Ra{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ve(t,n){return Tt((e,i)=>{let r=0;e.subscribe(Mt(i,o=>{i.next(t.call(n,o,r++))}))})}function ao(t){return this instanceof ao?(this.v=t,this):new ao(t)}function Jl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function za(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(d){o({value:d,done:a})},s)}(a,c,(s=t[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ud=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function If(t){return ht(t?.then)}function Of(t){return ht(t[Ld])}function ec(t){return Symbol.asyncIterator&&ht(t?.[Symbol.asyncIterator])}function Ff(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 Rf=function $_(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Lf(t){return ht(t?.[Rf])}function yr(t){return function Sf(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(v){i[v]&&(r[v]=function(y){return new Promise(function(C,D){o.push([v,y,C,D])>1||a(v,y)})})}function a(v,y){try{!function c(v){v.value instanceof ao?Promise.resolve(v.value.v).then(d,h):_(o[0][2],v)}(i[v](y))}catch(C){_(o[0][3],C)}}function d(v){a("next",v)}function h(v){a("throw",v)}function _(v,y){v(y),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield ao(e.read());if(r)return yield ao(void 0);yield yield ao(i)}}finally{e.releaseLock()}})}function ge(t){return ht(t?.getReader)}function oi(t){if(t instanceof Ft)return t;if(null!=t){if(Of(t))return function Nf(t){return new Ft(n=>{const e=t[Ld]();if(ht(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ud(t))return function Bf(t){return new Ft(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Zl)})}(t);if(ec(t))return $d(t);if(Lf(t))return function jd(t){return new Ft(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ge(t))return function Bs(t){return $d(yr(t))}(t)}throw Ff(t)}function $d(t){return new Ft(n=>{(function zf(t,n){var e,i,r,o;return function Vd(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(h){try{d(i.next(h))}catch(_){s(_)}}function c(h){try{d(i.throw(h))}catch(_){s(_)}}function d(h){h.done?o(h.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(h.value).then(a,c)}d((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Jl(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function lo(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function zn(t,n,e=1/0){return ht(n)?zn((i,r)=>ve((o,s)=>n(i,o,r,s))(oi(t(i,r))),e):("number"==typeof n&&(e=n),Tt((i,r)=>function W_(t,n,e,i,r,o,s,a){const c=[];let d=0,h=0,_=!1;const v=()=>{_&&!c.length&&!d&&n.complete()},y=D=>d{o&&n.next(D),d++;let S=!1;oi(e(D,h++)).subscribe(Mt(n,E=>{r?.(E),o?y(E):n.next(E)},()=>{S=!0},void 0,()=>{if(S)try{for(d--;c.length&&dC(E)):C(E)}v()}catch(E){n.error(E)}}))};return t.subscribe(Mt(n,y,()=>{_=!0,v()})),()=>{a?.()}}(i,r,t,e)))}function Vs(t=1/0){return zn(Mn,t)}const ar=new Ft(t=>t.complete());function Hf(t){return t&&ht(t.schedule)}function Wd(t){return t[t.length-1]}function Uf(t){return ht(Wd(t))?t.pop():void 0}function Ua(t){return Hf(Wd(t))?t.pop():void 0}function nc(t,n=0){return Tt((e,i)=>{e.subscribe(Mt(i,r=>lo(i,t,()=>i.next(r),n),()=>lo(i,t,()=>i.complete(),n),r=>lo(i,t,()=>i.error(r),n)))})}function zs(t,n=0){return Tt((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function on(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ft(e=>{lo(e,n,()=>{const i=t[Symbol.asyncIterator]();lo(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Xt(t,n){return n?function Hs(t,n){if(null!=t){if(Of(t))return function jf(t,n){return oi(t).pipe(zs(n),nc(n))}(t,n);if(Ud(t))return function ja(t,n){return new Ft(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(If(t))return function $f(t,n){return oi(t).pipe(zs(n),nc(n))}(t,n);if(ec(t))return on(t,n);if(Lf(t))return function Ct(t,n){return new Ft(e=>{let i;return lo(e,n,()=>{i=t[Rf](),lo(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>ht(i?.return)&&i.return()})}(t,n);if(ge(t))return function ic(t,n){return on(yr(t),n)}(t,n)}throw Ff(t)}(t,n):oi(t)}function fi(...t){const n=Ua(t),e=function G_(t,n){return"number"==typeof Wd(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?oi(i[0]):Vs(e)(Xt(i,n)):ar}function Ue(t={}){const{connector:n=(()=>new Q),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,c,d=0,h=!1,_=!1;const v=()=>{a?.unsubscribe(),a=void 0},y=()=>{v(),s=c=void 0,h=_=!1},C=()=>{const D=s;y(),D?.unsubscribe()};return Tt((D,S)=>{d++,!_&&!h&&v();const E=c=c??n();S.add(()=>{d--,0===d&&!_&&!h&&(a=dn(C,r))}),E.subscribe(S),!s&&d>0&&(s=new Ns({next:P=>E.next(P),error:P=>{_=!0,v(),a=dn(y,e,P),E.error(P)},complete:()=>{h=!0,v(),a=dn(y,i),E.complete()}}),oi(D).subscribe(s))})(o)}}function dn(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Ns({next:()=>{i.unsubscribe(),t()}});return oi(n(...e)).subscribe(i)}function Lt(t){for(let n in t)if(t[n]===Lt)return n;throw Error("Could not find renamed property on target object.")}function Us(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Je(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Je).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Gd(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const rc=Lt({__forward_ref__:Lt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return Je(this())},t}function le(t){return co(t)?t():t}function co(t){return"function"==typeof t&&t.hasOwnProperty(rc)&&t.__forward_ref__===rt}function qo(t){return t&&!!t.\u0275providers}const js="https://g.co/ng/security#xss";class $ extends Error{constructor(n,e){super($s(n,e)),this.code=n}}function $s(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Te(t){return"string"==typeof t?t:null==t?"":String(t)}function $a(t,n){throw new $(-201,!1)}function Hn(t,n){null==t&&function St(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function W(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function qe(t){return{providers:t.providers||[],imports:t.imports||[]}}function et(t){return lr(t,ac)||lr(t,Kf)}function lr(t,n){return t.hasOwnProperty(n)?t[n]:null}function Yd(t){return t&&(t.hasOwnProperty(qa)||t.hasOwnProperty(Qf))?t[qa]:null}const ac=Lt({\u0275prov:Lt}),qa=Lt({\u0275inj:Lt}),Kf=Lt({ngInjectableDef:Lt}),Qf=Lt({ngInjectorDef:Lt});var we=(()=>((we=we||{})[we.Default=0]="Default",we[we.Host=1]="Host",we[we.Self=2]="Self",we[we.SkipSelf=4]="SkipSelf",we[we.Optional=8]="Optional",we))();let Zd;function cr(t){const n=Zd;return Zd=t,n}function wr(t,n,e){const i=et(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&we.Optional?null:void 0!==n?n:void $a(Je(t))}const Kt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ko={},Qd="__NG_DI_FLAG__",Ya="ngTempTokenPath",Xf="ngTokenPath",J_=/\n/gm,ev="\u0275",lc="__source";let Za;function Qo(t){const n=Za;return Za=t,n}function Jf(t,n=we.Default){if(void 0===Za)throw new $(-203,!1);return null===Za?wr(t,void 0,n):Za.get(t,n&we.Optional?null:void 0,n)}function F(t,n=we.Default){return(function Kd(){return Zd}()||Jf)(le(t),n)}function Ce(t,n=we.Default){return F(t,So(n))}function So(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ai(t){const n=[];for(let e=0;e((jr=jr||{})[jr.OnPush=0]="OnPush",jr[jr.Default=1]="Default",jr))(),xr=(()=>{return(t=xr||(xr={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",xr;var t})();const $r={},kt=[],Ei=Lt({\u0275cmp:Lt}),ko=Lt({\u0275dir:Lt}),Jd=Lt({\u0275pipe:Lt}),Wr=Lt({\u0275mod:Lt}),ho=Lt({\u0275fac:Lt}),Gr=Lt({__NG_ELEMENT_ID__:Lt});let nv=0;function G(t){return Cr(()=>{const n=Ka(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===jr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||xr.Emulated,id:"c"+nv++,styles:t.styles||kt,_:null,schemas:t.schemas||null,tView:null};eu(e);const i=t.dependencies;return e.directiveDefs=qs(i,!1),e.pipeDefs=qs(i,!0),e})}function cc(t){return Xe(t)||li(t)}function iv(t){return null!==t}function Ie(t){return Cr(()=>({type:t.type,bootstrap:t.bootstrap||kt,declarations:t.declarations||kt,imports:t.imports||kt,exports:t.exports||kt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function np(t,n){if(null==t)return $r;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function ee(t){return Cr(()=>{const n=Ka(t);return eu(n),n})}function ai(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 Xe(t){return t[Ei]||null}function li(t){return t[ko]||null}function En(t){return t[Jd]||null}function yn(t,n){const e=t[Wr]||null;if(!e&&!0===n)throw new Error(`Type ${Je(t)} does not have '\u0275mod' property.`);return e}function Ka(t){const n={};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:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||kt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:np(t.inputs,n),outputs:np(t.outputs)}}function eu(t){t.features?.forEach(n=>n(t))}function qs(t,n){if(!t)return null;const e=n?En:cc;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(iv)}const dr=0,oe=1,Fe=2,Gt=3,Ti=4,fo=5,Xn=6,Ys=7,sn=8,uc=9,Qa=10,Ye=11,hc=12,Xa=13,Dr=14,po=15,ci=16,Ao=17,Zs=18,Mr=19,Ja=20,Ks=21,Jt=22,fc=1,tu=2,pc=7,ur=8,Xo=9,di=10;function Wi(t){return Array.isArray(t)&&"object"==typeof t[fc]}function Pi(t){return Array.isArray(t)&&!0===t[fc]}function Jo(t){return 0!=(4&t.flags)}function Qs(t){return t.componentOffset>-1}function tl(t){return 1==(1&t.flags)}function Sr(t){return!!t.template}function ip(t){return 0!=(256&t[Fe])}function Re(t,n){return t.hasOwnProperty(ho)?t[ho]:null}class mi{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function je(){return Gi}function Gi(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xs),Ii}function Ii(){const t=ap(this),n=t?.current;if(n){const e=t.previous;if(e===$r)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Xs(t,n,e,i){const r=this.declaredInputs[e],o=ap(t)||function lv(t,n){return t[sp]=n}(t,{previous:$r,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[r];s[r]=new mi(c&&c.currentValue,n,a===$r),t[i]=n}je.ngInherit=!0;const sp="__ngSimpleChanges__";function ap(t){return t[sp]||null}const qi=function(t,n,e){},wn="svg";function Jn(t){for(;Array.isArray(t);)t=t[dr];return t}function _c(t,n){return Jn(n[t])}function gi(t,n){return Jn(n[t.index])}function cp(t,n){return t.data[n]}function vc(t,n){return t[n]}function hr(t,n){const e=n[t];return Wi(e)?e:e[dr]}function dp(t){return 64==(64&t[Fe])}function Js(t,n){return null==n?null:t[n]}function l1(t){t[Zs]=0}function uv(t,n){t[fo]+=n;let e=t,i=t[Gt];for(;null!==i&&(1===n&&1===e[fo]||-1===n&&0===e[fo]);)i[fo]+=n,e=i,i=i[Gt]}const Ve={lFrame:v1(null),bindingsEnabled:!0};function d1(){return Ve.bindingsEnabled}function q(){return Ve.lFrame.lView}function xt(){return Ve.lFrame.tView}function ct(t){return Ve.lFrame.contextLView=t,t[sn]}function dt(t){return Ve.lFrame.contextLView=null,t}function _i(){let t=u1();for(;null!==t&&64===t.type;)t=t.parent;return t}function u1(){return Ve.lFrame.currentTNode}function Eo(t,n){const e=Ve.lFrame;e.currentTNode=t,e.isParent=n}function hv(){return Ve.lFrame.isParent}function fv(){Ve.lFrame.isParent=!1}function Yi(){const t=Ve.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function bc(){return Ve.lFrame.bindingIndex++}function ts(t){const n=Ve.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function AR(t,n){const e=Ve.lFrame;e.bindingIndex=e.bindingRootIndex=t,pv(n)}function pv(t){Ve.lFrame.currentDirectiveIndex=t}function mv(t){const n=Ve.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function m1(){return Ve.lFrame.currentQueryIndex}function gv(t){Ve.lFrame.currentQueryIndex=t}function TR(t){const n=t[oe];return 2===n.type?n.declTNode:1===n.type?t[Xn]:null}function g1(t,n,e){if(e&we.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&we.Host||(r=TR(o),null===r||(o=o[po],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Ve.lFrame=_1();return i.currentTNode=n,i.lView=t,!0}function _v(t){const n=_1(),e=t[oe];Ve.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function _1(){const t=Ve.lFrame,n=null===t?null:t.child;return null===n?v1(t):n}function v1(t){const n={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=n),n}function b1(){const t=Ve.lFrame;return Ve.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const y1=b1;function vv(){const t=b1();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 Zi(){return Ve.lFrame.selectedIndex}function il(t){Ve.lFrame.selectedIndex=t}function Cn(){const t=Ve.lFrame;return cp(t.tView,t.selectedIndex)}function iu(){Ve.lFrame.currentNamespace=wn}function bv(){!function FR(){Ve.lFrame.currentNamespace=null}()}function up(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[Zs]+=65536),(a>11>16&&(3&t[Fe])===n){t[Fe]+=2048,qi(4,a,o);try{o.call(a)}finally{qi(5,a,o)}}}else{qi(4,a,o);try{o.call(a)}finally{qi(5,a,o)}}}const yc=-1;class ru{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Cv(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[po],e--;return i}let xv=!0;function gp(t){const n=xv;return xv=t,n}const S1=255,k1=5;let UR=0;const To={};function _p(t,n){const e=A1(t,n);if(-1!==e)return e;const i=n[oe];i.firstCreatePass&&(t.injectorIndex=n.length,Dv(i.data,t),Dv(n,null),Dv(i.blueprint,null));const r=Mv(t,n),o=t.injectorIndex;if(M1(r)){const s=pp(r),a=mp(r,n),c=a[oe].data;for(let d=0;d<8;d++)n[o+d]=a[s+d]|c[s+d]}return n[o+8]=r,o}function Dv(t,n){t.push(0,0,0,0,0,0,0,0,n)}function A1(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Mv(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=R1(r),null===i)return yc;if(e++,r=r[po],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return yc}function Sv(t,n,e){!function jR(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Gr)&&(i=e[Gr]),null==i&&(i=e[Gr]=UR++);const r=i&S1;n.data[t+(r>>k1)]|=1<=0?n&S1:qR:n}(e);if("function"==typeof o){if(!g1(n,t,i))return i&we.Host?E1(r,0,i):T1(n,e,i,r);try{const s=o(i);if(null!=s||i&we.Optional)return s;$a()}finally{y1()}}else if("number"==typeof o){let s=null,a=A1(t,n),c=yc,d=i&we.Host?n[ci][Xn]:null;for((-1===a||i&we.SkipSelf)&&(c=-1===a?Mv(t,n):n[a+8],c!==yc&&F1(i,!1)?(s=n[oe],a=pp(c),n=mp(c,n)):a=-1);-1!==a;){const h=n[oe];if(O1(o,a,h.data)){const _=WR(a,n,e,s,i,d);if(_!==To)return _}c=n[a+8],c!==yc&&F1(i,n[oe].data[a+8]===d)&&O1(o,a,n)?(s=h,a=pp(c),n=mp(c,n)):a=-1}}return r}function WR(t,n,e,i,r,o){const s=n[oe],a=s.data[t+8],h=vp(a,s,e,null==i?Qs(a)&&xv:i!=s&&0!=(3&a.type),r&we.Host&&o===a);return null!==h?rl(n,s,h,a):To}function vp(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,c=t.directiveStart,h=o>>20,v=r?a+h:t.directiveEnd;for(let y=i?a:a+h;y=c&&C.type===e)return y}if(r){const y=s[c];if(y&&Sr(y)&&y.type===e)return c}return null}function rl(t,n,e,i){let r=t[e];const o=n.data;if(function BR(t){return t instanceof ru}(r)){const s=r;s.resolving&&function qd(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new $(-200,`Circular dependency in DI detected for ${t}${e}`)}(function _t(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Te(t)}(o[e]));const a=gp(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?cr(s.injectImpl):null;g1(t,i,we.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function LR(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Gi(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==c&&cr(c),gp(a),s.resolving=!1,y1()}}return r}function O1(t,n,e){return!!(e[n+(t>>k1)]&1<{const n=t.prototype.constructor,e=n[ho]||kv(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[ho]||kv(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function kv(t){return co(t)?()=>{const n=kv(le(t));return n&&n()}:Re(t)}function R1(t){const n=t[oe],e=n.type;return 2===e?n.declTNode:1===e?t[Xn]:null}function Cc(t){return function $R(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function Av(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,d,h){const _=c.hasOwnProperty(Dc)?c[Dc]:Object.defineProperty(c,Dc,{value:[]})[Dc];for(;_.length<=h;)_.push(null);return(_[h]=_[h]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Z{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=W({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ol(t,n){t.forEach(e=>Array.isArray(e)?ol(e,n):n(e))}function N1(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function bp(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function lu(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function XR(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Tv(t,n){const e=kc(t,n);if(e>=0)return t[1|e]}function kc(t,n){return function B1(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<({token:t})),-1),ns=Ws(Sc("Optional"),8),ea=Ws(Sc("SkipSelf"),4);var fr=(()=>((fr=fr||{})[fr.Important=1]="Important",fr[fr.DashCase=2]="DashCase",fr))();const Rv=new Map;let yL=0;const Nv="__ngContext__";function Oi(t,n){Wi(n)?(t[Nv]=n[Ja],function CL(t){Rv.set(t[Ja],t)}(n)):t[Nv]=n}let Bv;function Vv(t,n){return Bv(t,n)}function hu(t){const n=t[Gt];return Pi(n)?n[Gt]:n}function zv(t){return rx(t[Xa])}function Hv(t){return rx(t[Ti])}function rx(t){for(;null!==t&&!Pi(t);)t=t[Ti];return t}function Ec(t,n,e,i,r){if(null!=i){let o,s=!1;Pi(i)?o=i:Wi(i)&&(s=!0,i=i[dr]);const a=Jn(i);0===t&&null!==e?null==r?dx(n,e,a):sl(n,e,a,r||null,!0):1===t&&null!==e?sl(n,e,a,r||null,!0):2===t?function Yv(t,n,e){const i=Dp(t,n);i&&function UL(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function WL(t,n,e,i,r){const o=e[pc];o!==Jn(e)&&Ec(n,t,i,o,r);for(let a=di;a0&&(t[e-1][Ti]=i[Ti]);const o=bp(t,di+n);!function FL(t,n){fu(t,n,n[Ye],2,null,null),n[dr]=null,n[Xn]=null}(i[oe],i);const s=o[Mr];null!==s&&s.detachView(o[oe]),i[Gt]=null,i[Ti]=null,i[Fe]&=-65}return i}function ax(t,n){if(!(128&n[Fe])){const e=n[Ye];e.destroyNode&&fu(t,n,e,3,null,null),function NL(t){let n=t[Xa];if(!n)return Wv(t[oe],t);for(;n;){let e=null;if(Wi(n))e=n[Xa];else{const i=n[di];i&&(e=i)}if(!e){for(;n&&!n[Ti]&&n!==t;)Wi(n)&&Wv(n[oe],n),n=n[Gt];null===n&&(n=t),Wi(n)&&Wv(n[oe],n),e=n&&n[Ti]}n=e}}(n)}}function Wv(t,n){if(!(128&n[Fe])){n[Fe]&=-65,n[Fe]|=128,function HL(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===xr.None||o===xr.Emulated)return null}return gi(i,e)}}(t,n.parent,e)}function sl(t,n,e,i,r){t.insertBefore(n,e,i,r)}function dx(t,n,e){t.appendChild(n,e)}function ux(t,n,e,i,r){null!==i?sl(t,n,e,i,r):dx(t,n,e)}function Dp(t,n){return t.parentNode(n)}function hx(t,n,e){return px(t,n,e)}let Gv,kp,Qv,Ap,px=function fx(t,n,e){return 40&t.type?gi(t,e):null};function Mp(t,n,e,i){const r=lx(t,i,n),o=n[Ye],a=hx(i.parent||n[Xn],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return kp}()?.createHTML(t)||t}function Xv(){if(void 0===Ap&&(Ap=null,Kt.trustedTypes))try{Ap=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ap}function wx(t){return Xv()?.createHTML(t)||t}function xx(t){return Xv()?.createScriptURL(t)||t}class al{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${js})`}}class XL extends al{getTypeName(){return"HTML"}}class JL extends al{getTypeName(){return"Style"}}class eN extends al{getTypeName(){return"Script"}}class tN extends al{getTypeName(){return"URL"}}class nN extends al{getTypeName(){return"ResourceURL"}}function Ar(t){return t instanceof al?t.changingThisBreaksApplicationSecurity:t}function Po(t,n){const e=function iN(t){return t instanceof al&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${js})`)}return e===n}class cN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Tc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class dN{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Tc(n),e}}const hN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ep(t){return(t=String(t)).match(hN)?t:"unsafe:"+t}function is(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function pu(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Mx=is("area,br,col,hr,img,wbr"),Sx=is("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kx=is("rp,rt"),Jv=pu(Mx,pu(Sx,is("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")),pu(kx,is("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")),pu(kx,Sx)),eb=is("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ax=pu(eb,is("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"),is("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")),fN=is("script,style,template");class pN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Jv.hasOwnProperty(e))return this.sanitizedSomething=!0,!fN.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();Jv.hasOwnProperty(e)&&!Mx.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Ex(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const mN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gN=/([^\#-~ |!])/g;function Ex(t){return t.replace(/&/g,"&").replace(mN,function(n){return""+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(gN,function(n){return""+n.charCodeAt(0)+";"}).replace(//g,">")}let Tp;function Tx(t,n){let e=null;try{Tp=Tp||function Dx(t){const n=new dN(t);return function uN(){try{return!!(new window.DOMParser).parseFromString(Tc(""),"text/html")}catch{return!1}}()?new cN(n):n}(t);let i=n?String(n):"";e=Tp.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Tp.getInertBodyElement(i)}while(i!==o);return Tc((new pN).sanitizeChildren(tb(e)||e))}finally{if(e){const i=tb(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function tb(t){return"content"in t&&function _N(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var en=(()=>((en=en||{})[en.NONE=0]="NONE",en[en.HTML=1]="HTML",en[en.STYLE=2]="STYLE",en[en.SCRIPT=3]="SCRIPT",en[en.URL=4]="URL",en[en.RESOURCE_URL=5]="RESOURCE_URL",en))();function Yr(t){const n=mu();return n?wx(n.sanitize(en.HTML,t)||""):Po(t,"HTML")?wx(Ar(t)):Tx(function yx(){return void 0!==Qv?Qv:typeof document<"u"?document:void 0}(),Te(t))}function Er(t){const n=mu();return n?n.sanitize(en.URL,t)||"":Po(t,"URL")?Ar(t):Ep(Te(t))}function Px(t){const n=mu();if(n)return xx(n.sanitize(en.RESOURCE_URL,t)||"");if(Po(t,"ResourceURL"))return xx(Ar(t));throw new $(904,!1)}function mu(){const t=q();return t&&t[hc]}const Pp=new Z("ENVIRONMENT_INITIALIZER"),Ox=new Z("INJECTOR",-1),Fx=new Z("INJECTOR_DEF_TYPES");class Rx{get(n,e=Ko){if(e===Ko){const i=new Error(`NullInjectorError: No provider for ${Je(n)}!`);throw i.name="NullInjectorError",i}return e}}function DN(...t){return{\u0275providers:Lx(0,t),\u0275fromNgModule:!0}}function Lx(t,...n){const e=[],i=new Set;let r;return ol(n,o=>{const s=o;nb(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Nx(r,e),e}function Nx(t,n){for(let e=0;e{n.push(o)})}}function nb(t,n,e,i){if(!(t=le(t)))return!1;let r=null,o=Yd(t);const s=!o&&Xe(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=Yd(c),!o)return!1;r=c}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const d of c)nb(d,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let d;i.add(r);try{ol(o.imports,h=>{nb(h,n,e,i)&&(d||(d=[]),d.push(h))})}finally{}void 0!==d&&Nx(d,n)}if(!a){const d=Re(r)||(()=>new r);n.push({provide:r,useFactory:d,deps:kt},{provide:Fx,useValue:r,multi:!0},{provide:Pp,useValue:()=>F(r),multi:!0})}const c=o.providers;null==c||a||ib(c,h=>{n.push(h)})}}return r!==t&&void 0!==t.providers}function ib(t,n){for(let e of t)qo(e)&&(e=e.\u0275providers),Array.isArray(e)?ib(e,n):n(e)}const MN=Lt({provide:String,useValue:Lt});function rb(t){return null!==t&&"object"==typeof t&&MN in t}function ll(t){return"function"==typeof t}const ob=new Z("Set Injector scope."),Ip={},kN={};let sb;function Op(){return void 0===sb&&(sb=new Rx),sb}class Io{}class zx extends Io{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lb(n,s=>this.processProvider(s)),this.records.set(Ox,Pc(void 0,this)),r.has("environment")&&this.records.set(Io,Pc(void 0,this));const o=this.records.get(ob);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Fx.multi,kt,we.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Qo(this),i=cr(void 0);try{return n()}finally{Qo(e),cr(i)}}get(n,e=Ko,i=we.Default){this.assertNotDestroyed(),i=So(i);const r=Qo(this),o=cr(void 0);try{if(!(i&we.SkipSelf)){let a=this.records.get(n);if(void 0===a){const c=function IN(t){return"function"==typeof t||"object"==typeof t&&t instanceof Z}(n)&&et(n);a=c&&this.injectableDefInScope(c)?Pc(ab(n),Ip):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&we.Self?Op():this.parent).get(n,e=i&we.Optional&&e===Ko?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ya]=s[Ya]||[]).unshift(Je(n)),r)throw s;return function tv(t,n,e,i){const r=t[Ya];throw n[lc]&&r.unshift(n[lc]),t.message=function Xd(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==ev?t.slice(2):t;let r=Je(n);if(Array.isArray(n))r=n.map(Je).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Je(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(J_,"\n ")}`}("\n"+t.message,r,e,i),t[Xf]=r,t[Ya]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{cr(o),Qo(r)}}resolveInjectorInitializers(){const n=Qo(this),e=cr(void 0);try{const i=this.get(Pp.multi,kt,we.Self);for(const r of i)r()}finally{Qo(n),cr(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Je(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(n){let e=ll(n=le(n))?n:le(n&&n.provide);const i=function EN(t){return rb(t)?Pc(void 0,t.useValue):Pc(Hx(t),Ip)}(n);if(ll(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Pc(void 0,Ip,!0),r.factory=()=>Ai(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Ip&&(e.value=kN,e.value=e.factory()),"object"==typeof e.value&&e.value&&function PN(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=le(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function ab(t){const n=et(t),e=null!==n?n.factory:Re(t);if(null!==e)return e;if(t instanceof Z)throw new $(204,!1);if(t instanceof Function)return function AN(t){const n=t.length;if(n>0)throw lu(n,"?"),new $(204,!1);const e=function Ga(t){return t&&(t[ac]||t[Kf])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new $(204,!1)}function Hx(t,n,e){let i;if(ll(t)){const r=le(t);return Re(r)||ab(r)}if(rb(t))i=()=>le(t.useValue);else if(function Vx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Ai(t.deps||[]));else if(function Bx(t){return!(!t||!t.useExisting)}(t))i=()=>F(le(t.useExisting));else{const r=le(t&&(t.useClass||t.provide));if(!function TN(t){return!!t.deps}(t))return Re(r)||ab(r);i=()=>new r(...Ai(t.deps))}return i}function Pc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function lb(t,n){for(const e of t)Array.isArray(e)?lb(e,n):e&&qo(e)?lb(e.\u0275providers,n):n(e)}class ON{}class Ux{}class RN{resolveComponentFactory(n){throw function FN(t){const n=Error(`No component factory found for ${Je(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let cl=(()=>{class t{}return t.NULL=new RN,t})();function LN(){return Ic(_i(),q())}function Ic(t,n){return new be(gi(t,n))}let be=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LN,t})();function NN(t){return t instanceof be?t.nativeElement:t}class gu{}let rs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function BN(){const t=q(),e=hr(_i().index,t);return(Wi(e)?e:t)[Ye]}(),t})(),VN=(()=>{class t{}return t.\u0275prov=W({token:t,providedIn:"root",factory:()=>null}),t})();class dl{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const zN=new dl("15.2.10"),cb={},db="ngOriginalError";function ub(t){return t[db]}class Oc{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&ub(n);for(;e&&ub(e);)e=ub(e);return e||null}}function os(t){return t instanceof Function?t():t}function Wx(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const Gx="ng-template";function QN(t,n,e){let i=0,r=!0;for(;io?"":r[_+1].toLowerCase();const y=8&i?v:null;if(y&&-1!==Wx(y,d,0)||2&i&&d!==v){if(mo(i))return!1;s=!0}}}}else{if(!s&&!mo(i)&&!mo(c))return!1;if(s&&mo(c))continue;s=!1,i=c|1&i}}return mo(i)||s}function mo(t){return 0==(1&t)}function e3(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!mo(s)&&(n+=Zx(o,r),r=""),i=s,o=o||!mo(i);e++}return""!==r&&(n+=Zx(o,r)),n}const ze={};function M(t){Kx(xt(),q(),Zi()+t,!1)}function Kx(t,n,e,i){if(!i)if(3==(3&n[Fe])){const o=t.preOrderCheckHooks;null!==o&&hp(n,o,e)}else{const o=t.preOrderHooks;null!==o&&fp(n,o,0,e)}il(e)}function eD(t,n=null,e=null,i){const r=tD(t,n,e,i);return r.resolveInjectorInitializers(),r}function tD(t,n=null,e=null,i,r=new Set){const o=[e||kt,DN(t)];return i=i||("object"==typeof t?void 0:Je(t)),new zx(o,n||Op(),i||null,r)}let _n=(()=>{class t{static create(e,i){if(Array.isArray(e))return eD({name:""},i,e,"");{const r=e.name??"";return eD({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Ko,t.NULL=new Rx,t.\u0275prov=W({token:t,providedIn:"any",factory:()=>F(Ox)}),t.__NG_ELEMENT_ID__=-1,t})();function x(t,n=we.Default){const e=q();return null===e?F(t,n):P1(_i(),e,le(t),n)}function ul(){throw new Error("invalid")}function lD(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;iJt&&Kx(t,n,Jt,!1),qi(s?2:0,r),e(i,r)}finally{il(o),qi(s?3:1,r)}}function vb(t,n,e){if(Jo(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,_u(t,e,r.hostVars,ze),r)}function Oo(t,n,e,i,r,o){const s=gi(t,n);!function Db(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Te(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Ye],s,o,t.value,e,i,r)}function G3(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let c=0;c0&&Mb(e)}}function Mb(t){for(let i=zv(t);null!==i;i=Hv(i))for(let r=di;r0&&Mb(o)}const e=t[oe].components;if(null!==e)for(let i=0;i0&&Mb(r)}}function Q3(t,n){const e=hr(n,t),i=e[oe];(function X3(t,n){for(let e=n.length;e-1&&($v(n,i),bp(e,i))}this._attachedToViewContainer=!1}ax(this._lView[oe],this._lView)}onDestroy(n){uD(this._lView[oe],this._lView,null,n)}markForCheck(){Bp(this._cdRefInjectingView||this._lView)}detach(){this._lView[Fe]&=-65}reattach(){this._lView[Fe]|=64}detectChanges(){Vp(this._lView[oe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function LL(t,n){fu(t,n,n[Ye],2,null,null)}(this._lView[oe],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=n}}class J3 extends vu{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Vp(n[oe],n,n[sn],!1)}checkNoChanges(){}get context(){return null}}class wD extends cl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Xe(n);return new bu(e,this.ngModule)}}function CD(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class tB{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=So(i);const r=this.injector.get(n,cb,i);return r!==cb||e===cb?r:this.parentInjector.get(n,e,i)}}class bu extends Ux{get inputs(){return CD(this.componentDef.inputs)}get outputs(){return CD(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function s3(t){return t.map(o3).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Io?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new tB(n,o):n,a=s.get(gu,null);if(null===a)throw new $(407,!1);const c=s.get(VN,null),d=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",_=i?function T3(t,n,e){return t.selectRootElement(n,e===xr.ShadowDom)}(d,i,this.componentDef.encapsulation):jv(d,h,function eB(t){const n=t.toLowerCase();return"svg"===n?wn:"math"===n?"math":null}(h)),v=this.componentDef.onPush?288:272,y=wb(0,null,null,1,0,null,null,null,null,null),C=Rp(null,y,null,v,null,null,a,d,c,s,null);let D,S;_v(C);try{const E=this.componentDef;let P,I=null;E.findHostDirectiveDefs?(P=[],I=new Map,E.findHostDirectiveDefs(E,P,I),P.push(E)):P=[E];const R=function iB(t,n){const e=t[oe],i=Jt;return t[i]=n,Lc(e,i,2,"#host",null)}(C,_),B=function rB(t,n,e,i,r,o,s,a){const c=r[oe];!function oB(t,n,e,i){for(const r of t)n.mergedAttrs=ou(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(zp(n,n.mergedAttrs,!0),null!==e&&bx(i,e,n))}(i,t,n,s);const d=o.createRenderer(n,e),h=Rp(r,dD(e),null,e.onPush?32:16,r[t.index],t,o,d,a||null,null,null);return c.firstCreatePass&&xb(c,t,i.length-1),Np(r,h),r[t.index]=h}(R,_,E,P,C,a,d);S=cp(y,Jt),_&&function aB(t,n,e,i){if(i)Cv(t,e,["ng-version",zN.full]);else{const{attrs:r,classes:o}=function a3(t){const n=[],e=[];let i=1,r=2;for(;i0&&vx(t,e,o.join(" "))}}(d,E,_,i),void 0!==e&&function lB(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ou(r.hostAttrs,e=ou(e,r.hostAttrs))}}(i)}function Ab(t){return t===$r?{}:t===kt?[]:t}function uB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function hB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function fB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Up(t){return!!Eb(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Eb(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Fo(t,n,e){return t[n]=e}function Fi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function hl(t,n,e,i){const r=Fi(t,n,e);return Fi(t,n+1,i)||r}function tt(t,n,e,i){const r=q();return Fi(r,bc(),n)&&(xt(),Oo(Cn(),r,t,n,e,i)),tt}function Bc(t,n,e,i){return Fi(t,bc(),e)?n+Te(e)+i:ze}function Vc(t,n,e,i,r,o){const a=hl(t,function es(){return Ve.lFrame.bindingIndex}(),e,r);return ts(2),a?n+Te(e)+i+Te(r)+o:ze}function U(t,n,e,i,r,o,s,a){const c=q(),d=xt(),h=t+Jt,_=d.firstCreatePass?function xB(t,n,e,i,r,o,s,a,c){const d=n.consts,h=Lc(n,t,4,s||null,Js(d,a));Cb(n,e,h,Js(d,c)),up(n,h);const _=h.tView=wb(2,h,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d);return null!==n.queries&&(n.queries.template(n,h),_.queries=n.queries.embeddedTView(h)),h}(h,d,c,n,e,i,r,o,s):d.data[h];Eo(_,!1);const v=c[Ye].createComment("");Mp(d,c,v,_),Oi(v,c),Np(c,c[h]=gD(v,c,v,_)),tl(_)&&bb(d,c,_),null!=s&&yb(c,_,a)}function ta(t){return vc(function SR(){return Ve.lFrame.contextLView}(),Jt+t)}function T(t,n,e){const i=q();return Fi(i,bc(),n)&&Tr(xt(),Cn(),i,t,n,i[Ye],e,!1),T}function Tb(t,n,e,i,r){const s=r?"class":"style";kb(t,e,n.inputs[s],s,i)}function p(t,n,e,i){const r=q(),o=xt(),s=Jt+t,a=r[Ye],c=o.firstCreatePass?function MB(t,n,e,i,r,o){const s=n.consts,c=Lc(n,t,2,i,Js(s,r));return Cb(n,e,c,Js(s,o)),null!==c.attrs&&zp(c,c.attrs,!1),null!==c.mergedAttrs&&zp(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],d=r[s]=jv(a,n,function RR(){return Ve.lFrame.currentNamespace}()),h=tl(c);return Eo(c,!0),bx(a,d,c),32!=(32&c.flags)&&Mp(o,r,d,c),0===function wR(){return Ve.lFrame.elementDepthCount}()&&Oi(d,r),function CR(){Ve.lFrame.elementDepthCount++}(),h&&(bb(o,r,c),vb(o,c,r)),null!==i&&yb(r,c),p}function f(){let t=_i();hv()?fv():(t=t.parent,Eo(t,!1));const n=t;!function xR(){Ve.lFrame.elementDepthCount--}();const e=xt();return e.firstCreatePass&&(up(e,t),Jo(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function VR(t){return 0!=(8&t.flags)}(n)&&Tb(e,n,q(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function zR(t){return 0!=(16&t.flags)}(n)&&Tb(e,n,q(),n.stylesWithoutHost,!1),f}function A(t,n,e,i){return p(t,n,e,i),f(),A}function vn(){return q()}function wu(t){return!!t&&"function"==typeof t.then}function ND(t){return!!t&&"function"==typeof t.subscribe}const Ob=ND;function H(t,n,e,i){const r=q(),o=xt(),s=_i();return BD(o,r,r[Ye],s,t,n,i),H}function Cu(t,n){const e=_i(),i=q(),r=xt();return BD(r,i,bD(mv(r.data),e,i),e,t,n),Cu}function BD(t,n,e,i,r,o,s){const a=tl(i),d=t.firstCreatePass&&vD(t),h=n[sn],_=_D(n);let v=!0;if(3&i.type||s){const D=gi(i,n),S=s?s(D):D,E=_.length,P=s?R=>s(Jn(R[i.index])):i.index;let I=null;if(!s&&a&&(I=function kB(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,v=!1;else{o=zD(i,n,h,o,!1);const R=e.listen(S,r,o);_.push(o,R),d&&d.push(r,P,E,E+1)}}else o=zD(i,n,h,o,!1);const y=i.outputs;let C;if(v&&null!==y&&(C=y[r])){const D=C.length;if(D)for(let S=0;S-1?hr(t.index,n):n);let c=VD(n,e,i,s),d=o.__ngNextListenerFn__;for(;d;)c=VD(n,e,d,s)&&c,d=d.__ngNextListenerFn__;return r&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function he(t=1){return function PR(t){return(Ve.lFrame.contextLView=function IR(t,n){for(;t>0;)n=n[po],t--;return n}(t,Ve.lFrame.contextLView))[sn]}(t)}function AB(t,n){let e=null;const i=function t3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function Fb(t){return 2|t}function fl(t){return(131068&t)>>2}function Rb(t,n){return-131069&t|n<<2}function Lb(t){return 1|t}function ZD(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?na(o):fl(o),c=!1;for(;0!==a&&(!1===c||s);){const h=t[a+1];FB(t[a],n)&&(c=!0,t[a+1]=i?Lb(h):Fb(h)),a=i?na(h):fl(h)}c&&(t[e+1]=i?Fb(o):Lb(o))}function FB(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&kc(t,n)>=0}const ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function KD(t){return t.substring(ti.key,ti.keyEnd)}function RB(t){return t.substring(ti.value,ti.valueEnd)}function QD(t,n){const e=ti.textEnd;return e===n?-1:(n=ti.keyEnd=function BB(t,n,e){for(;n32;)n++;return n}(t,ti.key=n,e),qc(t,n,e))}function XD(t,n){const e=ti.textEnd;let i=ti.key=qc(t,n,e);return e===i?-1:(i=ti.keyEnd=function VB(t,n,e){let i;for(;n=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=eM(t,i,e),i=ti.value=qc(t,i,e),i=ti.valueEnd=function zB(t,n,e){let i=-1,r=-1,o=-1,s=n,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&c}return a}(t,i,e),eM(t,i,e))}function JD(t){ti.key=0,ti.keyEnd=0,ti.value=0,ti.valueEnd=0,ti.textEnd=t.length}function qc(t,n,e){for(;n=0;e=XD(n,e))rM(t,KD(n),RB(n))}function Ro(t,n){for(let e=function LB(t){return JD(t),QD(t,qc(t,0,ti.textEnd))}(n);e>=0;e=QD(n,e))kr(t,KD(n),!0)}function go(t,n,e,i){const r=q(),o=xt(),s=ts(2);o.firstUpdatePass&&iM(o,t,s,i),n!==ze&&Fi(r,s,n)&&oM(o,o.data[Zi()],r,r[Ye],t,r[s+1]=function KB(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Je(Ar(t)))),t}(n,e),i,s)}function _o(t,n,e,i){const r=xt(),o=ts(2);r.firstUpdatePass&&iM(r,null,o,i);const s=q();if(e!==ze&&Fi(s,o,e)){const a=r.data[Zi()];if(aM(a,i)&&!nM(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=Gd(c,e||"")),Tb(r,a,s,e,i)}else!function ZB(t,n,e,i,r,o,s,a){r===ze&&(r=kt);let c=0,d=0,h=0=t.expandoStartIndex}function iM(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Zi()],s=nM(t,e);aM(o,i)&&null===n&&!s&&(n=!1),n=function jB(t,n,e,i){const r=mv(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=xu(e=Nb(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=Nb(r,t,n,e,i),null===o){let c=function $B(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==fl(i))return t[na(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=Nb(null,t,n,c[1],i),c=xu(c,n.attrs,i),function WB(t,n,e,i){t[na(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function GB(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(d=!0)):h=e,r)if(0!==c){const v=na(t[a+1]);t[i+1]=$p(v,a),0!==v&&(t[v+1]=Rb(t[v+1],i)),t[a+1]=function TB(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$p(a,0),0!==a&&(t[a+1]=Rb(t[a+1],i)),a=i;else t[i+1]=$p(c,0),0===a?a=i:t[c+1]=Rb(t[c+1],i),c=i;d&&(t[i+1]=Fb(t[i+1])),ZD(t,h,i,!0),ZD(t,h,i,!1),function OB(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&kc(o,n)>=0&&(e[i+1]=Lb(e[i+1]))}(n,h,t,i,o),s=$p(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function Nb(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const c=t[r],d=Array.isArray(c),h=d?c[1]:c,_=null===h;let v=e[r+1];v===ze&&(v=_?kt:void 0);let y=_?Tv(v,i):h===i?v:void 0;if(d&&!Wp(y)&&(y=Tv(c,i)),Wp(y)&&(a=y,s))return a;const C=t[r+1];r=s?na(C):fl(C)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=Tv(c,i))}return a}function Wp(t){return void 0!==t}function aM(t,n){return 0!=(t.flags&(n?8:16))}function m(t,n=""){const e=q(),i=xt(),r=t+Jt,o=i.firstCreatePass?Lc(i,r,1,n,null):i.data[r],s=e[r]=function Uv(t,n){return t.createText(n)}(e[Ye],n);Mp(i,e,s,o),Eo(o,!1)}function j(t){return bt("",t,""),j}function bt(t,n,e){const i=q(),r=Bc(i,t,n,e);return r!==ze&&ss(i,Zi(),r),bt}function Bb(t,n,e,i,r){const o=q(),s=Vc(o,t,n,e,i,r);return s!==ze&&ss(o,Zi(),s),Bb}function ls(t,n,e){const i=q();return Fi(i,bc(),n)&&Tr(xt(),Cn(),i,t,n,i[Ye],e,!0),ls}function Du(t,n,e){const i=q();if(Fi(i,bc(),n)){const o=xt(),s=Cn();Tr(o,s,i,t,n,bD(mv(o.data),s,i),e,!0)}return Du}const pl=void 0;var mV=["en",[["a","p"],["AM","PM"],pl],[["AM","PM"],pl,pl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",pl,"{1} 'at' {0}",pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pV(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Yc={};function Qi(t){const n=function gV(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=SM(n);if(e)return e;const i=n.split("-")[0];if(e=SM(i),e)return e;if("en"===i)return mV;throw new $(701,!1)}function SM(t){return t in Yc||(Yc[t]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[t]),Yc[t]}var se=(()=>((se=se||{})[se.LocaleId=0]="LocaleId",se[se.DayPeriodsFormat=1]="DayPeriodsFormat",se[se.DayPeriodsStandalone=2]="DayPeriodsStandalone",se[se.DaysFormat=3]="DaysFormat",se[se.DaysStandalone=4]="DaysStandalone",se[se.MonthsFormat=5]="MonthsFormat",se[se.MonthsStandalone=6]="MonthsStandalone",se[se.Eras=7]="Eras",se[se.FirstDayOfWeek=8]="FirstDayOfWeek",se[se.WeekendRange=9]="WeekendRange",se[se.DateFormat=10]="DateFormat",se[se.TimeFormat=11]="TimeFormat",se[se.DateTimeFormat=12]="DateTimeFormat",se[se.NumberSymbols=13]="NumberSymbols",se[se.NumberFormats=14]="NumberFormats",se[se.CurrencyCode=15]="CurrencyCode",se[se.CurrencySymbol=16]="CurrencySymbol",se[se.CurrencyName=17]="CurrencyName",se[se.Currencies=18]="Currencies",se[se.Directionality=19]="Directionality",se[se.PluralCase=20]="PluralCase",se[se.ExtraData=21]="ExtraData",se))();const Zc="en-US";let kM=Zc;function Hb(t,n,e,i,r){if(t=le(t),Array.isArray(t))for(let o=0;o>20;if(ll(t)||!t.multi){const y=new ru(c,r,x),C=jb(a,n,r?h:h+v,_);-1===C?(Sv(_p(d,s),o,a),Ub(o,t,n.length),n.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(y),s.push(y)):(e[C]=y,s[C]=y)}else{const y=jb(a,n,h+v,_),C=jb(a,n,h,h+v),S=C>=0&&e[C];if(r&&!S||!r&&!(y>=0&&e[y])){Sv(_p(d,s),o,a);const E=function f4(t,n,e,i,r){const o=new ru(t,e,x);return o.multi=[],o.index=n,o.componentProviders=0,XM(o,r,i&&!e),o}(r?h4:u4,e.length,r,i,c);!r&&S&&(e[C].providerFactory=E),Ub(o,t,n.length,0),n.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(E),s.push(E)}else Ub(o,t,y>-1?y:C,XM(e[r?C:y],c,!r&&i));!r&&i&&S&&e[C].componentProviders++}}}function Ub(t,n,e,i){const r=ll(n),o=function SN(t){return!!t.useClass}(n);if(r||o){const c=(o?le(n.useClass):n).prototype.ngOnDestroy;if(c){const d=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const h=d.indexOf(e);-1===h?d.push(e,[i,c]):d[h+1].push(i,c)}else d.push(e,c)}}}function XM(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function jb(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function d4(t,n,e){const i=xt();if(i.firstCreatePass){const r=Sr(t);Hb(e,i.data,i.blueprint,r,!0),Hb(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Kc{}class JM{}class eS extends Kc{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new wD(this);const i=yn(n);this._bootstrapComponents=os(i.bootstrap),this._r3Injector=tD(n,e,[{provide:Kc,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],Je(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Wb extends JM{constructor(n){super(),this.moduleType=n}create(n){return new eS(this.moduleType,n)}}class m4 extends Kc{constructor(n,e,i){super(),this.componentFactoryResolver=new wD(this),this.instance=null;const r=new zx([...n,{provide:Kc,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],e||Op(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Kp(t,n,e=null){return new m4(t,n,e).injector}let g4=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Lx(0,e.type),r=i.length>0?Kp([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=W({token:t,providedIn:"environment",factory:()=>new t(F(Io))}),t})();function Qp(t){t.getStandaloneInjector=n=>n.get(g4).getOrCreateStandaloneInjector(t)}function Nt(t,n,e,i){return aS(q(),Yi(),t,n,e,i)}function vo(t,n,e,i,r){return lS(q(),Yi(),t,n,e,i,r)}function Tu(t,n){const e=t[n];return e===ze?void 0:e}function aS(t,n,e,i,r,o){const s=n+e;return Fi(t,s,r)?Fo(t,s+1,o?i.call(o,r):i(r)):Tu(t,s+1)}function lS(t,n,e,i,r,o,s){const a=n+e;return hl(t,a,r,o)?Fo(t,a+2,s?i.call(s,r,o):i(r,o)):Tu(t,a+2)}function jn(t,n){const e=xt();let i;const r=t+Jt;e.firstCreatePass?(i=function O4(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Re(i.type)),s=cr(x);try{const a=gp(!1),c=o();return gp(a),function DB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,q(),r,c),c}finally{cr(s)}}function Lo(t,n,e){const i=t+Jt,r=q(),o=vc(r,i);return Pu(r,i)?aS(r,Yi(),n,o.transform,e,o):o.transform(e)}function bo(t,n,e,i){const r=t+Jt,o=q(),s=vc(o,r);return Pu(o,r)?lS(o,Yi(),n,s.transform,e,i,s):s.transform(e,i)}function Pu(t,n){return t[oe].data[n].pure}function qb(t){return n=>{setTimeout(t,void 0,n)}}const ae=class N4 extends Q{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=qb(o),r&&(r=qb(r)),s&&(s=qb(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof mt&&n.add(a),a}};function B4(){return this._results[Symbol.iterator]()}class Qc{get changes(){return this._changes||(this._changes=new ae)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Qc.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=B4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function qr(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function KR(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=H4,t})();const V4=Kr,z4=class extends V4{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Rp(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[Ao]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Mr];return null!==s&&(r[Mr]=s.createEmbeddedView(i)),_b(i,r,n),new vu(r)}};function H4(){return Xp(_i(),q())}function Xp(t,n){return 4&t.type?new z4(n,t,Ic(t,n)):null}let vi=(()=>{class t{}return t.__NG_ELEMENT_ID__=U4,t})();function U4(){return pS(_i(),q())}const j4=vi,hS=class extends j4{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ic(this._hostTNode,this._hostLView)}get injector(){return new wc(this._hostTNode,this._hostLView)}get parentInjector(){const n=Mv(this._hostTNode,this._hostLView);if(M1(n)){const e=mp(n,this._hostLView),i=pp(n);return new wc(e[oe].data[i+8],e)}return new wc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=fS(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-di}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function au(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const _=e||{};a=_.index,i=_.injector,r=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const c=s?n:new bu(Xe(n)),d=i||this.parentInjector;if(!o&&null==c.ngModule){const v=(s?d:this.parentInjector).get(Io,null);v&&(o=v)}const h=c.create(d,r,void 0,o);return this.insert(h.hostView,a),h}insert(n,e){const i=n._lView,r=i[oe];if(function yR(t){return Pi(t[Gt])}(i)){const h=this.indexOf(n);if(-1!==h)this.detach(h);else{const _=i[Gt],v=new hS(_,_[Xn],_[Gt]);v.detach(v.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function BL(t,n,e,i){const r=di+i,o=e.length;i>0&&(e[r-1][Ti]=n),i0)i.push(s[a/2]);else{const d=o[a+1],h=n[-c];for(let _=di;_{class t{constructor(e){this.appInits=e,this.resolve=em,this.reject=em,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:c})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(F(tm,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ed=new Z("AppId",{providedIn:"root",factory:function BS(){return`${oy()}${oy()}${oy()}`}});function oy(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const VS=new Z("Platform Initializer"),td=new Z("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Pr=new Z("AnimationModuleType");let g5=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const No=new Z("LocaleId",{providedIn:"root",factory:()=>Ce(No,we.Optional|we.SkipSelf)||function _5(){return typeof $localize<"u"&&$localize.locale||Zc}()});class b5{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let zS=(()=>{class t{compileModuleSync(e){return new Wb(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=os(yn(e).declarations).reduce((s,a)=>{const c=Xe(a);return c&&s.push(new bu(c)),s},[]);return new b5(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const C5=(()=>Promise.resolve(0))();function sy(t){typeof Zone>"u"?C5.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _e{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ae(!1),this.onMicrotaskEmpty=new ae(!1),this.onStable=new ae(!1),this.onError=new ae(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function x5(){let t=Kt.requestAnimationFrame,n=Kt.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function S5(t){const n=()=>{!function M5(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Kt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ly(t),t.isCheckStableRunning=!0,ay(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ly(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return jS(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),$S(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return jS(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),$S(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,ly(t),ay(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_e.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(_e.isInAngularZone())throw new $(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,D5,em,em);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const D5={};function ay(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 ly(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jS(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $S(t){t._nesting--,ay(t)}class k5{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ae,this.onMicrotaskEmpty=new ae,this.onStable=new ae,this.onError=new ae}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const WS=new Z(""),im=new Z("");let uy,cy=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,uy||(function A5(t){uy=t}(r),r.addToWindow(i)),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:()=>{_e.assertNotInAngularZone(),sy(()=>{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())sy(()=>{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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(F(_e),F(dy),F(im))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),dy=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}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,i=!0){return uy?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const cs=!1;let ia=null;const GS=new Z("AllowMultipleToken"),hy=new Z("PlatformDestroyListeners"),qS=new Z("appBootstrapListener");class YS{constructor(n,e){this.name=n,this.token=e}}function KS(t,n,e=[]){const i=`Platform: ${n}`,r=new Z(i);return(o=[])=>{let s=fy();if(!s||s.injector.get(GS,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function P5(t){if(ia&&!ia.get(GS,!1))throw new $(400,!1);ia=t;const n=t.get(XS);(function ZS(t){const n=t.get(VS,null);n&&n.forEach(e=>e())})(t)}(function QS(t=[],n){return _n.create({name:n,providers:[{provide:ob,useValue:"platform"},{provide:hy,useValue:new Set([()=>ia=null])},...t]})}(a,i))}return function O5(t){const n=fy();if(!n)throw new $(401,!1);return n}()}}function fy(){return ia?.get(XS)??null}let XS=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function ek(t,n){let e;return e="noop"===t?new k5:("zone.js"===t?void 0:t)||new _e(n),e}(i?.ngZone,function JS(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:_e,useValue:r}];return r.run(()=>{const s=_n.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),c=a.injector.get(Oc,null);if(!c)throw new $(402,!1);return r.runOutsideAngular(()=>{const d=r.onError.subscribe({next:h=>{c.handleError(h)}});a.onDestroy(()=>{rm(this._modules,a),d.unsubscribe()})}),function tk(t,n,e){try{const i=e();return wu(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(c,r,()=>{const d=a.injector.get(nm);return d.runInitializers(),d.donePromise.then(()=>(function AM(t){Hn(t,"Expected localeId to be defined"),"string"==typeof t&&(kM=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(No,Zc)||Zc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=nk({},i);return function E5(t,n,e){const i=new Wb(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(nd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new $(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(hy,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(F(_n))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function nk(t,n){return Array.isArray(n)?n.reduce(nk,t):{...t,...n}}let nd=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Ft(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Ft(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{_e.assertNotInAngularZone(),sy(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{_e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=fi(o,s.pipe(Ue()))}bootstrap(e,i){const r=e instanceof Ux;if(!this._injector.get(nm).done){!r&&function Gs(t){const n=Xe(t)||li(t)||En(t);return null!==n&&n.standalone}(e);throw new $(405,cs)}let s;s=r?e:this._injector.get(cl).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function T5(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Kc),d=s.create(_n.NULL,[],i||s.selector,a),h=d.location.nativeElement,_=d.injector.get(WS,null);return _?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),rm(this.components,d),_?.unregisterApplication(h)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new $(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;rm(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(qS,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rm(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new $(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(F(_e),F(Io),F(Oc))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rm(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Tn=(()=>{class t{}return t.__NG_ELEMENT_ID__=R5,t})();function R5(t){return function L5(t,n,e){if(Qs(t)&&!e){const i=hr(t.index,n);return new vu(i,i)}return 47&t.type?new vu(n[ci],n):null}(_i(),q(),16==(16&t))}class ak{constructor(){}supports(n){return Up(n)}create(n){return new U5(n)}}const H5=(t,n)=>n;class U5{constructor(n){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=n||H5}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new j5(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new lk),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lk),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class j5{constructor(n,e){this.item=n,this.trackById=e,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 $5{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class lk{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new $5,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ck(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new G5(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class G5{constructor(n){this.key=n,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 uk(){return new am([new ak])}let am=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||uk()),deps:[[t,new ea,new ns]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new $(901,!1)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:uk}),t})();function hk(){return new Ou([new dk])}let Ou=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||hk()),deps:[[t,new ea,new ns]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new $(901,!1)}}return t.\u0275prov=W({token:t,providedIn:"root",factory:hk}),t})();const Z5=KS(null,"core",[]);let K5=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(F(nd))},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();function id(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let vy=null;function ds(){return vy}class J5{}const Oe=new Z("DocumentToken");let by=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return function ez(){return F(fk)}()},providedIn:"platform"}),t})();const tz=new Z("Location Initialized");let fk=(()=>{class t extends by{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ds().getBaseHref(this._doc)}onPopState(e){const i=ds().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ds().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){pk()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){pk()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:function(){return function nz(){return new fk(F(Oe))}()},providedIn:"platform"}),t})();function pk(){return!!window.history.pushState}function yy(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function mk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function us(t){return t&&"?"!==t[0]?"?"+t:t}let gl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return Ce(_k)},providedIn:"root"}),t})();const gk=new Z("appBaseHref");let _k=(()=>{class t extends gl{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ce(Oe).location?.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 yy(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+us(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+us(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+us(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(F(by),F(gk,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),iz=(()=>{class t extends gl{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=yy(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+us(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+us(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(F(by),F(gk,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Fu=(()=>{class t{constructor(e){this._subject=new ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function sz(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(mk(vk(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+us(i))}normalize(e){return t.stripTrailingSlash(function oz(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,vk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+us(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+us(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=us,t.joinWithSlash=yy,t.stripTrailingSlash=mk,t.\u0275fac=function(e){return new(e||t)(F(gl))},t.\u0275prov=W({token:t,factory:function(){return function rz(){return new Fu(F(gl))}()},providedIn:"root"}),t})();function vk(t){return t.replace(/\/index.html$/,"")}var mr=(()=>((mr=mr||{})[mr.Decimal=0]="Decimal",mr[mr.Percent=1]="Percent",mr[mr.Currency=2]="Currency",mr[mr.Scientific=3]="Scientific",mr))(),Pn=(()=>((Pn=Pn||{})[Pn.Format=0]="Format",Pn[Pn.Standalone=1]="Standalone",Pn))(),ut=(()=>((ut=ut||{})[ut.Narrow=0]="Narrow",ut[ut.Abbreviated=1]="Abbreviated",ut[ut.Wide=2]="Wide",ut[ut.Short=3]="Short",ut))(),xn=(()=>((xn=xn||{})[xn.Short=0]="Short",xn[xn.Medium=1]="Medium",xn[xn.Long=2]="Long",xn[xn.Full=3]="Full",xn))(),Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Group=1]="Group",Me[Me.List=2]="List",Me[Me.PercentSign=3]="PercentSign",Me[Me.PlusSign=4]="PlusSign",Me[Me.MinusSign=5]="MinusSign",Me[Me.Exponential=6]="Exponential",Me[Me.SuperscriptingExponent=7]="SuperscriptingExponent",Me[Me.PerMille=8]="PerMille",Me[Me.Infinity=9]="Infinity",Me[Me.NaN=10]="NaN",Me[Me.TimeSeparator=11]="TimeSeparator",Me[Me.CurrencyDecimal=12]="CurrencyDecimal",Me[Me.CurrencyGroup=13]="CurrencyGroup",Me))();function lm(t,n){return Xr(Qi(t)[se.DateFormat],n)}function cm(t,n){return Xr(Qi(t)[se.TimeFormat],n)}function dm(t,n){return Xr(Qi(t)[se.DateTimeFormat],n)}function Qr(t,n){const e=Qi(t),i=e[se.NumberSymbols][n];if(typeof i>"u"){if(n===Me.CurrencyDecimal)return e[se.NumberSymbols][Me.Decimal];if(n===Me.CurrencyGroup)return e[se.NumberSymbols][Me.Group]}return i}function yk(t){if(!t[se.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[se.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xr(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Cy(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const bz=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ru={},yz=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ni=(()=>((ni=ni||{})[ni.Short=0]="Short",ni[ni.ShortGMT=1]="ShortGMT",ni[ni.Long=2]="Long",ni[ni.Extended=3]="Extended",ni))(),Ee=(()=>((Ee=Ee||{})[Ee.FullYear=0]="FullYear",Ee[Ee.Month=1]="Month",Ee[Ee.Date=2]="Date",Ee[Ee.Hours=3]="Hours",Ee[Ee.Minutes=4]="Minutes",Ee[Ee.Seconds=5]="Seconds",Ee[Ee.FractionalSeconds=6]="FractionalSeconds",Ee[Ee.Day=7]="Day",Ee))(),Qe=(()=>((Qe=Qe||{})[Qe.DayPeriods=0]="DayPeriods",Qe[Qe.Days=1]="Days",Qe[Qe.Months=2]="Months",Qe[Qe.Eras=3]="Eras",Qe))();function wz(t,n,e,i){let r=function Tz(t){if(xk(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return um(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(bz))return function Pz(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,c=Number(t[6]||0),d=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,c,d),n}(i)}const n=new Date(t);if(!xk(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=hs(e,n)||n;let a,s=[];for(;n;){if(a=yz.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const h=s.pop();if(!h)break;n=h}}let c=r.getTimezoneOffset();i&&(c=Ck(i,c),r=function Ez(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Az(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(Ck(n,r)-r))}(r,i,!0));let d="";return s.forEach(h=>{const _=function kz(t){if(Dy[t])return Dy[t];let n;switch(t){case"G":case"GG":case"GGG":n=an(Qe.Eras,ut.Abbreviated);break;case"GGGG":n=an(Qe.Eras,ut.Wide);break;case"GGGGG":n=an(Qe.Eras,ut.Narrow);break;case"y":n=Wn(Ee.FullYear,1,0,!1,!0);break;case"yy":n=Wn(Ee.FullYear,2,0,!0,!0);break;case"yyy":n=Wn(Ee.FullYear,3,0,!1,!0);break;case"yyyy":n=Wn(Ee.FullYear,4,0,!1,!0);break;case"Y":n=mm(1);break;case"YY":n=mm(2,!0);break;case"YYY":n=mm(3);break;case"YYYY":n=mm(4);break;case"M":case"L":n=Wn(Ee.Month,1,1);break;case"MM":case"LL":n=Wn(Ee.Month,2,1);break;case"MMM":n=an(Qe.Months,ut.Abbreviated);break;case"MMMM":n=an(Qe.Months,ut.Wide);break;case"MMMMM":n=an(Qe.Months,ut.Narrow);break;case"LLL":n=an(Qe.Months,ut.Abbreviated,Pn.Standalone);break;case"LLLL":n=an(Qe.Months,ut.Wide,Pn.Standalone);break;case"LLLLL":n=an(Qe.Months,ut.Narrow,Pn.Standalone);break;case"w":n=xy(1);break;case"ww":n=xy(2);break;case"W":n=xy(1,!0);break;case"d":n=Wn(Ee.Date,1);break;case"dd":n=Wn(Ee.Date,2);break;case"c":case"cc":n=Wn(Ee.Day,1);break;case"ccc":n=an(Qe.Days,ut.Abbreviated,Pn.Standalone);break;case"cccc":n=an(Qe.Days,ut.Wide,Pn.Standalone);break;case"ccccc":n=an(Qe.Days,ut.Narrow,Pn.Standalone);break;case"cccccc":n=an(Qe.Days,ut.Short,Pn.Standalone);break;case"E":case"EE":case"EEE":n=an(Qe.Days,ut.Abbreviated);break;case"EEEE":n=an(Qe.Days,ut.Wide);break;case"EEEEE":n=an(Qe.Days,ut.Narrow);break;case"EEEEEE":n=an(Qe.Days,ut.Short);break;case"a":case"aa":case"aaa":n=an(Qe.DayPeriods,ut.Abbreviated);break;case"aaaa":n=an(Qe.DayPeriods,ut.Wide);break;case"aaaaa":n=an(Qe.DayPeriods,ut.Narrow);break;case"b":case"bb":case"bbb":n=an(Qe.DayPeriods,ut.Abbreviated,Pn.Standalone,!0);break;case"bbbb":n=an(Qe.DayPeriods,ut.Wide,Pn.Standalone,!0);break;case"bbbbb":n=an(Qe.DayPeriods,ut.Narrow,Pn.Standalone,!0);break;case"B":case"BB":case"BBB":n=an(Qe.DayPeriods,ut.Abbreviated,Pn.Format,!0);break;case"BBBB":n=an(Qe.DayPeriods,ut.Wide,Pn.Format,!0);break;case"BBBBB":n=an(Qe.DayPeriods,ut.Narrow,Pn.Format,!0);break;case"h":n=Wn(Ee.Hours,1,-12);break;case"hh":n=Wn(Ee.Hours,2,-12);break;case"H":n=Wn(Ee.Hours,1);break;case"HH":n=Wn(Ee.Hours,2);break;case"m":n=Wn(Ee.Minutes,1);break;case"mm":n=Wn(Ee.Minutes,2);break;case"s":n=Wn(Ee.Seconds,1);break;case"ss":n=Wn(Ee.Seconds,2);break;case"S":n=Wn(Ee.FractionalSeconds,1);break;case"SS":n=Wn(Ee.FractionalSeconds,2);break;case"SSS":n=Wn(Ee.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=fm(ni.Short);break;case"ZZZZZ":n=fm(ni.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=fm(ni.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=fm(ni.Long);break;default:return null}return Dy[t]=n,n}(h);d+=_?_(r,e,c):"''"===h?"'":h.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function um(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function hs(t,n){const e=function az(t){return Qi(t)[se.LocaleId]}(t);if(Ru[e]=Ru[e]||{},Ru[e][n])return Ru[e][n];let i="";switch(n){case"shortDate":i=lm(t,xn.Short);break;case"mediumDate":i=lm(t,xn.Medium);break;case"longDate":i=lm(t,xn.Long);break;case"fullDate":i=lm(t,xn.Full);break;case"shortTime":i=cm(t,xn.Short);break;case"mediumTime":i=cm(t,xn.Medium);break;case"longTime":i=cm(t,xn.Long);break;case"fullTime":i=cm(t,xn.Full);break;case"short":const r=hs(t,"shortTime"),o=hs(t,"shortDate");i=hm(dm(t,xn.Short),[r,o]);break;case"medium":const s=hs(t,"mediumTime"),a=hs(t,"mediumDate");i=hm(dm(t,xn.Medium),[s,a]);break;case"long":const c=hs(t,"longTime"),d=hs(t,"longDate");i=hm(dm(t,xn.Long),[c,d]);break;case"full":const h=hs(t,"fullTime"),_=hs(t,"fullDate");i=hm(dm(t,xn.Full),[h,_])}return i&&(Ru[e][n]=i),i}function hm(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function wo(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Ee.Hours)0===a&&-12===e&&(a=12);else if(t===Ee.FractionalSeconds)return function Cz(t,n){return wo(t,3).substring(0,n)}(a,n);const c=Qr(s,Me.MinusSign);return wo(a,n,c,i,r)}}function an(t,n,e=Pn.Format,i=!1){return function(r,o){return function Dz(t,n,e,i,r,o){switch(e){case Qe.Months:return function dz(t,n,e){const i=Qi(t),o=Xr([i[se.MonthsFormat],i[se.MonthsStandalone]],n);return Xr(o,e)}(n,r,i)[t.getMonth()];case Qe.Days:return function cz(t,n,e){const i=Qi(t),o=Xr([i[se.DaysFormat],i[se.DaysStandalone]],n);return Xr(o,e)}(n,r,i)[t.getDay()];case Qe.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const d=function pz(t){const n=Qi(t);return yk(n),(n[se.ExtraData][2]||[]).map(i=>"string"==typeof i?Cy(i):[Cy(i[0]),Cy(i[1])])}(n),h=function mz(t,n,e){const i=Qi(t);yk(i);const o=Xr([i[se.ExtraData][0],i[se.ExtraData][1]],n)||[];return Xr(o,e)||[]}(n,r,i),_=d.findIndex(v=>{if(Array.isArray(v)){const[y,C]=v,D=s>=y.hours&&a>=y.minutes,S=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ni.Short:return(r>=0?"+":"")+wo(s,2,o)+wo(Math.abs(r%60),2,o);case ni.ShortGMT:return"GMT"+(r>=0?"+":"")+wo(s,1,o);case ni.Long:return"GMT"+(r>=0?"+":"")+wo(s,2,o)+":"+wo(Math.abs(r%60),2,o);case ni.Extended:return 0===i?"Z":(r>=0?"+":"")+wo(s,2,o)+":"+wo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const Mz=0,pm=4;function wk(t){return um(t.getFullYear(),t.getMonth(),t.getDate()+(pm-t.getDay()))}function xy(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=wk(e),s=function Sz(t){const n=um(t,Mz,1).getDay();return um(t,0,1+(n<=pm?pm:pm+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return wo(r,t,Qr(i,Me.MinusSign))}}function mm(t,n=!1){return function(e,i){return wo(wk(e).getFullYear(),t,Qr(i,Me.MinusSign),n)}}const Dy={};function Ck(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function xk(t){return t instanceof Date&&!isNaN(t.valueOf())}const Iz=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Dk=22,gm=".",Lu="0",Oz=";",Fz=",",My="#";function Ay(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function kk(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const Ty=/\s+/,Ak=[];let Ji=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=Ak,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Ty):Ak}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ty):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Ty).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(x(am),x(Ou),x(be),x(rs))},t.\u0275dir=ee({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class $z{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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 Dt=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new $z(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),Pk(a,r)}});for(let r=0,o=i.length;r{Pk(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(x(vi),x(Kr),x(am))},t.\u0275dir=ee({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Pk(t,n){t.context.$implicit=n.item}let Le=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Gz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ik("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ik("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,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(x(vi),x(Kr))},t.\u0275dir=ee({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Gz{constructor(){this.$implicit=null,this.ngIf=null}}function Ik(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Je(n)}'.`)}class Py{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let rd=(()=>{class t{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 i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),_m=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Py(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(x(vi),x(Kr),x(rd,9))},t.\u0275dir=ee({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),Ok=(()=>{class t{constructor(e,i,r){r._addDefault(new Py(e,i))}}return t.\u0275fac=function(e){return new(e||t)(x(vi),x(Kr),x(rd,9))},t.\u0275dir=ee({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Iy=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,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,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:fr.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Ou),x(rs))},t.\u0275dir=ee({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Rk=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(x(vi))},t.\u0275dir=ee({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[je]}),t})();function Co(t,n){return new $(2100,!1)}class Yz{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class Zz{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Kz=new Zz,Qz=new Yz;let Lk=(()=>{class t{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,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(wu(e))return Kz;if(ND(e))return Qz;throw Co()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(x(Tn,16))},t.\u0275pipe=ai({name:"async",type:t,pure:!1,standalone:!0}),t})();const iH=new Z("DATE_PIPE_DEFAULT_TIMEZONE"),rH=new Z("DATE_PIPE_DEFAULT_OPTIONS");let Nu=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return wz(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Co()}}}return t.\u0275fac=function(e){return new(e||t)(x(No,16),x(iH,24),x(rH,24))},t.\u0275pipe=ai({name:"date",type:t,pure:!0,standalone:!0}),t})(),vm=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function Oy(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function Bz(t,n,e){return function Sy(t,n,e,i,r,o,s=!1){let a="",c=!1;if(isFinite(t)){let d=function zz(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(gm))>-1&&(n=n.replace(gm,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===Lu;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===Lu;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>Dk&&(i=i.splice(0,Dk-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(d=function Vz(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(d));let h=n.minInt,_=n.minFrac,v=n.maxFrac;if(o){const P=o.match(Iz);if(null===P)throw new Error(`${o} is not a valid digit info`);const I=P[1],R=P[3],B=P[5];null!=I&&(h=Ay(I)),null!=R&&(_=Ay(R)),null!=B?v=Ay(B):null!=R&&_>v&&(v=_)}!function Hz(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let _=s;_=5)if(s-1<0){for(let _=0;_>s;_--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=d?C.pop():c=!1),v>=10?1:0},0);h&&(i.unshift(h),t.integerLen++)}(d,_,v);let y=d.digits,C=d.integerLen;const D=d.exponent;let S=[];for(c=y.every(P=>!P);C0?S=y.splice(C,y.length):(S=y,y=[0]);const E=[];for(y.length>=n.lgSize&&E.unshift(y.splice(-n.lgSize,y.length).join(""));y.length>n.gSize;)E.unshift(y.splice(-n.gSize,y.length).join(""));y.length&&E.unshift(y.join("")),a=E.join(Qr(e,i)),S.length&&(a+=Qr(e,r)+S.join("")),D&&(a+=Qr(e,Me.Exponential)+"+"+D)}else a=Qr(e,Me.Infinity);return a=t<0&&!c?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function ky(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(Oz),r=i[0],o=i[1],s=-1!==r.indexOf(gm)?r.split(gm):[r.substring(0,r.lastIndexOf(Lu)+1),r.substring(r.lastIndexOf(Lu)+1)],a=s[0],c=s[1]||"";e.posPre=a.substring(0,a.indexOf(My));for(let h=0;h{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();const Bk="browser";function ra(t){return t===Bk}let gH=(()=>{class t{}return t.\u0275prov=W({token:t,providedIn:"root",factory:()=>new _H(F(Oe),window)}),t})();class _H{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function vH(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Vk(this.window.history)||Vk(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Vk(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class zk{}class WH extends J5{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ny extends WH{static makeCurrent(){!function X5(t){vy||(vy=t)}(new Ny)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function GH(){return Vu=Vu||document.querySelector("base"),Vu?Vu.getAttribute("href"):null}();return null==e?null:function qH(t){wm=wm||document.createElement("a"),wm.setAttribute("href",t);const n=wm.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Vu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return kk(document.cookie,n)}}let wm,Vu=null;const Wk=new Z("TRANSITION_ID"),ZH=[{provide:tm,useFactory:function YH(t,n,e){return()=>{e.get(nm).donePromise.then(()=>{const i=ds(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const Cm=new Z("EventManagerPlugins");let xm=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),zu=(()=>{class t extends qk{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const By={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/"},Vy=/%COMP%/g,Kk=new Z("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Qk(t,n){return n.flat(100).map(e=>e.replace(Vy,t))}function Xk(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Dm=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new zy(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof tA?r.applyToHost(e):r instanceof Hy&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(i.encapsulation){case xr.Emulated:o=new tA(s,a,i,this.appId,c);break;case xr.ShadowDom:return new r8(s,a,e,i);default:o=new Hy(s,a,i,c)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(F(xm),F(zu),F(ed),F(Kk))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();class zy{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(By[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(eA(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(eA(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=By[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=By[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(fr.DashCase|fr.Important)?n.style.setProperty(e,i,r&fr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&fr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Xk(i)):this.eventManager.addEventListener(n,e,Xk(i))}}function eA(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class r8 extends zy{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Qk(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Hy extends zy{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=Qk(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class tA extends Hy{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function t8(t){return"_ngcontent-%COMP%".replace(Vy,t)}(s),this.hostAttr=function n8(t){return"_nghost-%COMP%".replace(Vy,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let o8=(()=>{class t extends Gk{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const nA=["alt","control","meta","shift"],s8={"\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"},a8={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let l8=(()=>{class t extends Gk{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ds().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),nA.forEach(d=>{const h=i.indexOf(d);h>-1&&(i.splice(h,1),s+=d+".")}),s+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=s8[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),nA.forEach(s=>{s!==r&&(0,a8[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const h8=KS(Z5,"browser",[{provide:td,useValue:Bk},{provide:VS,useValue:function c8(){Ny.makeCurrent()},multi:!0},{provide:Oe,useFactory:function u8(){return function QL(t){Qv=t}(document),document},deps:[]}]),oA=new Z(""),sA=[{provide:im,useClass:class KH{addToWindow(n){Kt.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Kt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Kt.getAllAngularRootElements=()=>n.getAllRootElements(),Kt.frameworkStabilizers||(Kt.frameworkStabilizers=[]),Kt.frameworkStabilizers.push(i=>{const r=Kt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(c){s=s||c,o--,0==o&&i(s)};r.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ds().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:WS,useClass:cy,deps:[_e,dy,im]},{provide:cy,useClass:cy,deps:[_e,dy,im]}],aA=[{provide:ob,useValue:"root"},{provide:Oc,useFactory:function d8(){return new Oc},deps:[]},{provide:Cm,useClass:o8,multi:!0,deps:[Oe,_e,td]},{provide:Cm,useClass:l8,multi:!0,deps:[Oe]},{provide:Dm,useClass:Dm,deps:[xm,zu,ed,Kk]},{provide:gu,useExisting:Dm},{provide:qk,useExisting:zu},{provide:zu,useClass:zu,deps:[Oe]},{provide:xm,useClass:xm,deps:[Cm,_e]},{provide:zk,useClass:QH,deps:[]},[]];let lA=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ed,useValue:e.appId},{provide:Wk,useExisting:ed},ZH]}}}return t.\u0275fac=function(e){return new(e||t)(F(oA,12))},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[...aA,...sA],imports:[fs,K5]}),t})(),cA=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:function(e){let i=null;return i=e?new e:function p8(){return new cA(F(Oe))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let _l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(e){let i=null;return i=e?new(e||t):F(hA),i},providedIn:"root"}),t})(),hA=(()=>{class t extends _l{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case en.NONE:return i;case en.HTML:return Po(i,"HTML")?Ar(i):Tx(this._doc,String(i)).toString();case en.STYLE:return Po(i,"Style")?Ar(i):i;case en.SCRIPT:if(Po(i,"Script"))return Ar(i);throw new Error("unsafe value used in a script context");case en.URL:return Po(i,"URL")?Ar(i):Ep(String(i));case en.RESOURCE_URL:if(Po(i,"ResourceURL"))return Ar(i);throw new Error(`unsafe value used in a resource URL context (see ${js})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${js})`)}}bypassSecurityTrustHtml(e){return function rN(t){return new XL(t)}(e)}bypassSecurityTrustStyle(e){return function oN(t){return new JL(t)}(e)}bypassSecurityTrustScript(e){return function sN(t){return new eN(t)}(e)}bypassSecurityTrustUrl(e){return function aN(t){return new tN(t)}(e)}bypassSecurityTrustResourceUrl(e){return function lN(t){return new nN(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:function(e){let i=null;return i=e?new e:function b8(t){return new hA(t.get(Oe))}(F(_n)),i},providedIn:"root"}),t})();function pe(...t){return Xt(t,Ua(t))}class Ir extends Q{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const Mm=Ot(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:y8}=Array,{getPrototypeOf:w8,prototype:C8,keys:x8}=Object;function fA(t){if(1===t.length){const n=t[0];if(y8(n))return{args:n,keys:null};if(function D8(t){return t&&"object"==typeof t&&w8(t)===C8}(n)){const e=x8(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:M8}=Array;function $y(t){return ve(n=>function S8(t,n){return M8(n)?t(...n):t(n)}(t,n))}function pA(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Wy(...t){const n=Ua(t),e=Uf(t),{args:i,keys:r}=fA(t);if(0===i.length)return Xt([],n);const o=new Ft(function k8(t,n,e=Mn){return i=>{mA(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let c=0;c{const d=Xt(t[c],n);let h=!1;d.subscribe(Mt(i,_=>{o[c]=_,h||(h=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>pA(r,s):Mn));return e?o.pipe($y(e)):o}function mA(t,n,e){t?lo(e,t,n):n()}function Sm(...t){return function A8(){return Vs(1)}()(Xt(t,Ua(t)))}function Hu(t){return new Ft(n=>{oi(t()).subscribe(n)})}function Uu(t,n){const e=ht(t)?t:()=>t,i=r=>r.error(e());return new Ft(n?r=>n.schedule(i,0,r):i)}function Gy(){return Tt((t,n)=>{let e=null;t._refCount++;const i=Mt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class gA extends Ft{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,lt(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new mt;const e=this.getSubject();n.add(this.source.subscribe(Mt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=mt.EMPTY)}return n}refCount(){return Gy()(this)}}function Or(t,n){return Tt((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(Mt(i,c=>{r?.unsubscribe();let d=0;const h=o++;oi(t(c,h)).subscribe(r=Mt(i,_=>i.next(n?n(c,_,h,d++):_),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function On(t){return t<=0?()=>ar:Tt((n,e)=>{let i=0;n.subscribe(Mt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Fr(...t){const n=Ua(t);return Tt((e,i)=>{(n?Sm(t,e,n):Sm(t,e)).subscribe(i)})}function qt(t,n){return Tt((e,i)=>{let r=0;e.subscribe(Mt(i,o=>t.call(n,o,r++)&&i.next(o)))})}function km(t){return Tt((n,e)=>{let i=!1;n.subscribe(Mt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function _A(t=E8){return Tt((n,e)=>{let i=!1;n.subscribe(Mt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function E8(){return new Mm}function ps(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qt((r,o)=>t(r,o,i)):Mn,On(1),e?km(n):_A(()=>new Mm))}function sa(t,n){return ht(n)?zn(t,n,1):zn(t,1)}function yi(t,n,e){const i=ht(t)||n||e?{next:t,error:n,complete:e}:t;return i?Tt((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Mt(o,c=>{var d;null===(d=i.next)||void 0===d||d.call(i,c),o.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var d;a=!1,null===(d=i.error)||void 0===d||d.call(i,c),o.error(c)},()=>{var c,d;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):Mn}function Bo(t){return Tt((n,e)=>{let o,i=null,r=!1;i=n.subscribe(Mt(e,void 0,void 0,s=>{o=oi(t(s,Bo(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function vA(t,n){return Tt(function T8(t,n,e,i,r){return(o,s)=>{let a=e,c=n,d=0;o.subscribe(Mt(s,h=>{const _=d++;c=a?t(c,h,_):(a=!0,h),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(t,n,arguments.length>=2,!0))}function qy(t){return t<=0?()=>ar:Tt((n,e)=>{let i=[];n.subscribe(Mt(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function bA(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qt((r,o)=>t(r,o,i)):Mn,qy(1),e?km(n):_A(()=>new Mm))}function yA(t,n=!1){return Tt((e,i)=>{let r=0;e.subscribe(Mt(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}function Am(t){return ve(()=>t)}function Yy(t){return Tt((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const Ge="primary",ju=Symbol("RouteTitle");class P8{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function od(t){return new P8(t)}function I8(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function CA(t){return Array.prototype.concat.apply([],t)}function xA(t){return t.length>0?t[t.length-1]:null}function wi(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function aa(t){return Ob(t)?t:wu(t)?Xt(Promise.resolve(t)):pe(t)}const Em=!1,F8={exact:function SA(t,n,e){if(!vl(t.segments,n.segments)||!Tm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!SA(t.children[i],n.children[i],e))return!1;return!0},subset:kA},DA={exact:function R8(t,n){return Vo(t,n)},subset:function L8(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>wA(t[e],n[e]))},ignored:()=>!0};function MA(t,n,e){return F8[e.paths](t.root,n.root,e.matrixParams)&&DA[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function kA(t,n,e){return AA(t,n,n.segments,e)}function AA(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!vl(r,e)||n.hasChildren()||!Tm(r,e,i))}if(t.segments.length===e.length){if(!vl(t.segments,e)||!Tm(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!kA(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(vl(t.segments,r)&&Tm(t.segments,r,i)&&t.children[Ge])&&AA(t.children[Ge],n,o,i)}}function Tm(t,n,e){return n.every((i,r)=>DA[e](t[r].parameters,i.parameters))}class la{constructor(n=new it([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return V8.serialize(this)}}class it{constructor(n,e){this.segments=n,this.children=e,this.parent=null,wi(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pm(this)}}class $u{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=od(this.parameters)),this._parameterMap}toString(){return PA(this)}}function vl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return new Zy},providedIn:"root"}),t})();class Zy{parse(n){const e=new Y8(n);return new la(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Gu(n.root,!0)}`,i=function U8(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Im(e)}=${Im(r)}`).join("&"):`${Im(e)}=${Im(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function z8(t){return encodeURI(t)}(n.fragment)}`:""}`}}const V8=new Zy;function Pm(t){return t.segments.map(n=>PA(n)).join("/")}function Gu(t,n){if(!t.hasChildren())return Pm(t);if(n){const e=t.children[Ge]?Gu(t.children[Ge],!1):"",i=[];return wi(t.children,(r,o)=>{o!==Ge&&i.push(`${o}:${Gu(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function B8(t,n){let e=[];return wi(t.children,(i,r)=>{r===Ge&&(e=e.concat(n(i,r)))}),wi(t.children,(i,r)=>{r!==Ge&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ge?[Gu(t.children[Ge],!1)]:[`${r}:${Gu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ge]?`${Pm(t)}/${e[0]}`:`${Pm(t)}/(${e.join("//")})`}}function EA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Im(t){return EA(t).replace(/%3B/gi,";")}function Ky(t){return EA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Om(t){return decodeURIComponent(t)}function TA(t){return Om(t.replace(/\+/g,"%20"))}function PA(t){return`${Ky(t.path)}${function H8(t){return Object.keys(t).map(n=>`;${Ky(n)}=${Ky(t[n])}`).join("")}(t.parameters)}`}const j8=/^[^\/()?;=#]+/;function Fm(t){const n=t.match(j8);return n?n[0]:""}const $8=/^[^=?]+/,G8=/^[^]+/;class Y8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new it([],{}):new it([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ge]=new it(n,e)),i}parseSegment(){const n=Fm(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new $(4009,Em);return this.capture(n),new $u(Om(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Fm(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Fm(this.remaining);r&&(i=r,this.capture(i))}n[Om(e)]=Om(i)}parseQueryParam(n){const e=function W8(t){const n=t.match($8);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function q8(t){const n=t.match(G8);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=TA(e),o=TA(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Fm(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new $(4010,Em);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ge);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ge]:new it([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new $(4011,Em)}}function Qy(t){return t.segments.length>0?new it([],{[Ge]:t}):t}function Rm(t){const n={};for(const i of Object.keys(t.children)){const o=Rm(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function Z8(t){if(1===t.numberOfChildren&&t.children[Ge]){const n=t.children[Ge];return new it(t.segments.concat(n.segments),n.children)}return t}(new it(t.segments,n))}function bl(t){return t instanceof la}const Xy=!1;function K8(t,n,e,i,r){if(0===e.length)return sd(n.root,n.root,n.root,i,r);const o=function LA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new RA(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return wi(o.outlets,(c,d)=>{a[d]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new RA(e,n,i)}(e);return o.toRoot()?sd(n.root,n.root,new it([],{}),i,r):function s(c){const d=function X8(t,n,e,i){if(t.isAbsolute)return new ad(n.root,!0,0);if(-1===i)return new ad(e,e===n.root,0);return function NA(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new $(4005,Xy&&"Invalid number of '../'");r=i.segments.length}return new ad(i,!1,r-o)}(e,i+(qu(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,c),h=d.processChildren?ld(d.segmentGroup,d.index,o.commands):Jy(d.segmentGroup,d.index,o.commands);return sd(n.root,d.segmentGroup,h,i,r)}(t.snapshot?._lastPathIndex)}function qu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Yu(t){return"object"==typeof t&&null!=t&&t.outlets}function sd(t,n,e,i,r){let s,o={};i&&wi(i,(c,d)=>{o[d]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`}),s=t===n?e:FA(t,n,e);const a=Qy(Rm(s));return new la(a,o,r)}function FA(t,n,e){const i={};return wi(t.children,(r,o)=>{i[o]=r===n?e:FA(r,n,e)}),new it(t.segments,i)}class RA{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&qu(i[0]))throw new $(4003,Xy&&"Root segment cannot have matrix parameters");const r=i.find(Yu);if(r&&r!==xA(i))throw new $(4004,Xy&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ad{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Jy(t,n,e){if(t||(t=new it([],{})),0===t.segments.length&&t.hasChildren())return ld(t,n,e);const i=function e6(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Yu(a))break;const c=`${a}`,d=i0&&void 0===c)break;if(c&&d&&"object"==typeof d&&void 0===d.outlets){if(!VA(c,d,s))return o;i+=2}else{if(!VA(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=Jy(t.children[s],n,o))}),wi(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new it(t.segments,r)}}function e0(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=e0(new it([],{}),0,e))}),n}function BA(t){const n={};return wi(t,(e,i)=>n[i]=`${e}`),n}function VA(t,n,e){return t==e.path&&Vo(n,e.parameters)}const Zu="imperative";class zo{constructor(n,e){this.id=n,this.url=e}}class t0 extends zo{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fn extends zo{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lm extends zo{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nm extends zo{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class n0 extends zo{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class n6 extends zo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class i6 extends zo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class r6 extends zo{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class o6 extends zo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class s6 extends zo{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class a6{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class l6{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class c6{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class d6{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class u6{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h6{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zA{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let m6=(()=>{class t{createUrlTree(e,i,r,o,s,a){return K8(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),_6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(n){return m6.\u0275fac(n)},providedIn:"root"}),t})();class HA{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=r0(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=r0(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=o0(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return o0(n,this._root).map(e=>e.value)}}function r0(t,n){if(t===n.value)return n;for(const e of n.children){const i=r0(t,e);if(i)return i}return null}function o0(t,n){if(t===n.value)return[n];for(const e of n.children){const i=o0(t,e);if(i.length)return i.unshift(n),i}return[]}class ms{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function cd(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class UA extends HA{constructor(n,e){super(n),this.snapshot=e,s0(this,n)}toString(){return this.snapshot.toString()}}function jA(t,n){const e=function v6(t,n){const s=new Bm([],{},{},"",{},Ge,n,null,t.root,-1,{});return new WA("",new ms(s,[]))}(t,n),i=new Ir([new $u("",{})]),r=new Ir({}),o=new Ir({}),s=new Ir({}),a=new Ir(""),c=new yl(i,r,s,a,o,Ge,n,e.root);return c.snapshot=e.root,new UA(new ms(c,[]),e)}class yl{constructor(n,e,i,r,o,s,a,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(ve(d=>d[ju]))??pe(void 0),this._futureSnapshot=c}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(ve(n=>od(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ve(n=>od(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $A(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function b6(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Bm{get title(){return this.data?.[ju]}constructor(n,e,i,r,o,s,a,c,d,h,_){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._urlSegment=d,this._lastPathIndex=h,this._resolve=_}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=od(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class WA extends HA{constructor(n,e){super(e),this.url=n,s0(this,e)}toString(){return GA(this._root)}}function s0(t,n){n.value._routerState=t,n.children.forEach(e=>s0(t,e))}function GA(t){const n=t.children.length>0?` { ${t.children.map(GA).join(", ")} } `:"";return`${t.value}${n}`}function a0(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Vo(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Vo(n.params,e.params)||t.params.next(e.params),function O8(t,n){if(t.length!==n.length)return!1;for(let e=0;eVo(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||l0(t.parent,n.parent))}function Ku(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function w6(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Ku(t,i,r);return Ku(t,i)})}(t,n,e);return new ms(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ku(t,a)),s}}const i=function C6(t){return new yl(new Ir(t.url),new Ir(t.params),new Ir(t.queryParams),new Ir(t.fragment),new Ir(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Ku(t,o));return new ms(i,r)}}const c0="ngNavigationCancelingError";function qA(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=bl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=YA(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function YA(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[c0]=!0,i.cancellationCode=n,e&&(i.url=e),i}function ZA(t){return KA(t)&&bl(t.url)}function KA(t){return t&&t[c0]}class x6{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Qu,this.attachRef=null}}let Qu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new x6,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vm=!1;let Ci=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ge,this.activateEvents=new ae,this.deactivateEvents=new ae,this.attachEvents=new ae,this.detachEvents=new ae,this.parentContexts=Ce(Qu),this.location=Ce(vi),this.changeDetector=Ce(Tn),this.environmentInjector=Ce(Io)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);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 $(4012,Vm);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new $(4012,Vm);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new $(4012,Vm);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),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,i){if(this.isActivated)throw new $(4013,Vm);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new D6(e,a,r.injector);if(i&&function M6(t){return!!t.resolveComponentFactory}(i)){const d=i.resolveComponentFactory(s);this.activated=r.createComponent(d,r.length,c)}else this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[je]}),t})();class D6{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===yl?this.route:n===Qu?this.childContexts:this.parent.get(n,e)}}let d0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=G({type:t,selectors:[["ng-component"]],standalone:!0,features:[Qp],decls:1,vars:0,template:function(e,i){1&e&&A(0,"router-outlet")},dependencies:[Ci],encapsulation:2}),t})();function QA(t,n){return t.providers&&!t._injector&&(t._injector=Kp(t.providers,n,`Route: ${t.path}`)),t._injector??n}function h0(t){const n=t.children&&t.children.map(h0),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ge&&(e.component=d0),e}function Jr(t){return t.outlet||Ge}function XA(t,n){const e=t.filter(i=>Jr(i)===n);return e.push(...t.filter(i=>Jr(i)!==n)),e}function Xu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class T6{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),a0(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=cd(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),wi(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=cd(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=cd(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=cd(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new h6(o.value.snapshot))}),n.children.length&&this.forwardEvent(new d6(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(a0(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),a0(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Xu(r.snapshot),c=a?.get(cl)??null;s.attachRef=null,s.route=r,s.resolver=c,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class JA{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class zm{constructor(n,e){this.component=n,this.route=e}}function P6(t,n,e){const i=t._root;return Ju(i,n?n._root:null,e,[i.value])}function dd(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function K_(t){return null!==et(t)}(t)?n.get(t):t:i}function Ju(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=cd(n);return t.children.forEach(s=>{(function O6(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function F6(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!vl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!vl(t.url,n.url)||!Vo(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!l0(t,n)||!Vo(t.queryParams,n.queryParams);default:return!l0(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new JA(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ju(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new zm(a.outlet.component,s))}else s&&eh(n,a,r),r.canActivateChecks.push(new JA(i)),Ju(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),wi(o,(s,a)=>eh(s,e.getContext(a),r)),r}function eh(t,n,e){const i=cd(t),r=t.value;wi(i,(o,s)=>{eh(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new zm(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function th(t){return"function"==typeof t}function f0(t){return t instanceof Mm||"EmptyError"===t?.name}const Hm=Symbol("INITIAL_VALUE");function ud(){return Or(t=>Wy(t.map(n=>n.pipe(On(1),Fr(Hm)))).pipe(ve(n=>{for(const e of n)if(!0!==e){if(e===Hm)return Hm;if(!1===e||e instanceof la)return e}return!0}),qt(n=>n!==Hm),On(1)))}function eE(t){return function La(...t){return Ne(t)}(yi(n=>{if(bl(n))throw qA(0,n)}),ve(n=>!0===n))}const p0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function tE(t,n,e,i,r){const o=m0(t,n,e);return o.matched?function Q6(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?pe(r.map(s=>{const a=dd(s,t);return aa(function z6(t){return t&&th(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(ud(),eE()):pe(!0)}(i=QA(n,i),n,e).pipe(ve(s=>!0===s?o:{...p0})):pe(o)}function m0(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...p0}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||I8)(e,t,n);if(!r)return{...p0};const o={};wi(r.posParams,(a,c)=>{o[c]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Um(t,n,e,i){if(e.length>0&&function eU(t,n,e){return e.some(i=>jm(t,n,i)&&Jr(i)!==Ge)}(t,e,i)){const o=new it(n,function J6(t,n,e,i){const r={};r[Ge]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Jr(o)!==Ge){const s=new it([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Jr(o)]=s}return r}(t,n,i,new it(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function tU(t,n,e){return e.some(i=>jm(t,n,i))}(t,e,i)){const o=new it(t.segments,function X6(t,n,e,i,r){const o={};for(const s of i)if(jm(t,e,s)&&!r[Jr(s)]){const a=new it([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Jr(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new it(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function jm(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function nE(t,n,e,i){return!!(Jr(t)===i||i!==Ge&&jm(n,e,t))&&("**"===t.path||m0(n,t,e).matched)}function iE(t,n,e){return 0===n.length&&!t.children[e]}const $m=!1;class Wm{constructor(n){this.segmentGroup=n||null}}class rE{constructor(n){this.urlTree=n}}function nh(t){return Uu(new Wm(t))}function oE(t){return Uu(new rE(t))}class oU{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Um(this.urlTree.root,[],[],this.config).segmentGroup,e=new it(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ge).pipe(ve(o=>this.createUrlTree(Rm(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Bo(o=>{if(o instanceof rE)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Wm?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ge).pipe(ve(r=>this.createUrlTree(Rm(r),n.queryParams,n.fragment))).pipe(Bo(r=>{throw r instanceof Wm?this.noMatchError(r):r}))}noMatchError(n){return new $(4002,$m)}createUrlTree(n,e,i){const r=Qy(n);return new la(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(ve(o=>new it([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Xt(r).pipe(sa(o=>{const s=i.children[o],a=XA(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(ve(c=>({segment:c,outlet:o})))}),vA((o,s)=>(o[s.outlet]=s.segment,o),{}),bA())}expandSegment(n,e,i,r,o,s){return Xt(i).pipe(sa(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Bo(d=>{if(d instanceof Wm)return pe(null);throw d}))),ps(a=>!!a),Bo((a,c)=>{if(f0(a))return iE(e,r,o)?pe(new it([],{})):nh(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return nE(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):nh(e):nh(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?oE(o):this.lineralizeSegments(i,o).pipe(zn(s=>{const a=new it(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:c,remainingSegments:d,positionalParamSegments:h}=m0(e,r,o);if(!a)return nh(e);const _=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?oE(_):this.lineralizeSegments(r,_).pipe(zn(v=>this.expandSegment(n,e,i,v.concat(d),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=QA(i,n),i.loadChildren?(i._loadedRoutes?pe({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(ve(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new it(r,{})))):pe(new it(r,{}))):tE(e,i,r,n).pipe(Or(({matched:s,consumedSegments:a,remainingSegments:c})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(zn(h=>{const _=h.injector??n,v=h.routes,{segmentGroup:y,slicedSegments:C}=Um(e,a,c,v),D=new it(y.segments,y.children);if(0===C.length&&D.hasChildren())return this.expandChildren(_,v,D).pipe(ve(I=>new it(a,I)));if(0===v.length&&0===C.length)return pe(new it(a,{}));const S=Jr(i)===o;return this.expandSegment(_,D,v,C,S?Ge:o,!0).pipe(ve(P=>new it(a.concat(P.segments),P.children)))})):nh(e)))}getChildConfig(n,e,i){return e.children?pe({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?pe({routes:e._loadedRoutes,injector:e._loadedInjector}):function K6(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?pe(!0):pe(r.map(s=>{const a=dd(s,t);return aa(function L6(t){return t&&th(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(ud(),eE())}(n,e,i).pipe(zn(r=>r?this.configLoader.loadChildren(n,e).pipe(yi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function iU(t){return Uu(YA($m,3))}())):pe({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return pe(i);if(r.numberOfChildren>1||!r.children[Ge])return n.redirectTo,Uu(new $(4e3,$m));r=r.children[Ge]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new la(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return wi(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return wi(e.children,(a,c)=>{s[c]=this.createSegmentGroup(n,a,i,r)}),new it(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new $(4001,$m);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class aU{}class dU{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=Um(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ge).pipe(ve(e=>{if(null===e)return null;const i=new Bm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ge,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ms(i,e),o=new WA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=$A(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return Xt(Object.keys(i.children)).pipe(sa(r=>{const o=i.children[r],s=XA(e,r);return this.processSegmentGroup(n,s,o,r)}),vA((r,o)=>r&&o?(r.push(...o),r):null),yA(r=>null!==r),km(null),bA(),ve(r=>{if(null===r)return null;const o=aE(r);return function uU(t){t.sort((n,e)=>n.value.outlet===Ge?-1:e.value.outlet===Ge?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return Xt(e).pipe(sa(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),ps(s=>!!s),Bo(s=>{if(f0(s))return iE(i,r,o)?pe([]):pe(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!nE(e,i,r,o))return pe(null);let s;if("**"===e.path){const a=r.length>0?xA(r).parameters:{},c=cE(i)+r.length;s=pe({snapshot:new Bm(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,dE(e),Jr(e),e.component??e._loadedComponent??null,e,lE(i),c,uE(e)),consumedSegments:[],remainingSegments:[]})}else s=tE(i,e,r,n).pipe(ve(({matched:a,consumedSegments:c,remainingSegments:d,parameters:h})=>{if(!a)return null;const _=cE(i)+c.length;return{snapshot:new Bm(c,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,dE(e),Jr(e),e.component??e._loadedComponent??null,e,lE(i),_,uE(e)),consumedSegments:c,remainingSegments:d}}));return s.pipe(Or(a=>{if(null===a)return pe(null);const{snapshot:c,consumedSegments:d,remainingSegments:h}=a;n=e._injector??n;const _=e._loadedInjector??n,v=function hU(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:y,slicedSegments:C}=Um(i,d,h,v.filter(S=>void 0===S.redirectTo));if(0===C.length&&y.hasChildren())return this.processChildren(_,v,y).pipe(ve(S=>null===S?null:[new ms(c,S)]));if(0===v.length&&0===C.length)return pe([new ms(c,[])]);const D=Jr(e)===o;return this.processSegment(_,v,y,C,D?Ge:o).pipe(ve(S=>null===S?null:[new ms(c,S)]))}))}}function fU(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function aE(t){const n=[],e=new Set;for(const i of t){if(!fU(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=aE(i.children);n.push(new ms(i.value,r))}return n.filter(i=>!e.has(i))}function lE(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function cE(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function dE(t){return t.data||{}}function uE(t){return t.resolve||{}}function hE(t){return"string"==typeof t.title||null===t.title}function g0(t){return Or(n=>{const e=t(n);return e?Xt(e).pipe(ve(()=>n)):pe(n)})}const hd=new Z("ROUTES");let _0=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ce(zS)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return pe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=aa(e.loadComponent()).pipe(ve(pE),yi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Yy(()=>{this.componentLoaders.delete(e)})),r=new gA(i,()=>new Q).pipe(Gy());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return pe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(ve(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let c,d,h=!1;Array.isArray(a)?d=a:(c=a.create(e).injector,d=CA(c.get(hd,[],we.Self|we.Optional)));return{routes:d.map(h0),injector:c}}),Yy(()=>{this.childrenLoaders.delete(i)})),s=new gA(o,()=>new Q).pipe(Gy());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return aa(e()).pipe(ve(pE),zn(i=>i instanceof JM||Array.isArray(i)?pe(i):Xt(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function pE(t){return function wU(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let qm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Q,this.configLoader=Ce(_0),this.environmentInjector=Ce(Io),this.urlSerializer=Ce(Wu),this.rootContexts=Ce(Qu),this.navigationId=0,this.afterPreactivation=()=>pe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new l6(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new a6(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Ir({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zu,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qt(i=>0!==i.id),ve(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),Or(i=>{let r=!1,o=!1;return pe(i).pipe(yi(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Or(s=>{const a=e.browserUrlTree.toString(),c=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!c&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const h="";return this.events.next(new Nm(s.id,e.serializeUrl(i.rawUrl),h,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),ar}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return mE(s.source)&&(e.browserUrlTree=s.extractedUrl),pe(s).pipe(Or(h=>{const _=this.transitions?.getValue();return this.events.next(new t0(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),_!==this.transitions?.getValue()?ar:Promise.resolve(h)}),function sU(t,n,e,i){return Or(r=>function rU(t,n,e,i,r){return new oU(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(ve(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),yi(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},i.urlAfterRedirects=h.urlAfterRedirects}),function mU(t,n,e,i,r){return zn(o=>function cU(t,n,e,i,r,o,s="emptyOnly"){return new dU(t,n,e,i,r,s,o).recognize().pipe(Or(a=>null===a?function lU(t){return new Ft(n=>n.error(t))}(new aU):pe(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(ve(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),yi(h=>{if(i.targetSnapshot=h.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!h.extras.skipLocationChange){const v=e.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);e.setBrowserUrl(v,h)}e.browserUrlTree=h.urlAfterRedirects}const _=new n6(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(_)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:h,extractedUrl:_,source:v,restoredState:y,extras:C}=s,D=new t0(h,this.urlSerializer.serialize(_),v,y);this.events.next(D);const S=jA(_,this.rootComponentType).snapshot;return pe(i={...s,targetSnapshot:S,urlAfterRedirects:_,extras:{...C,skipLocationChange:!1,replaceUrl:!1}})}{const h="";return this.events.next(new Nm(s.id,e.serializeUrl(i.extractedUrl),h,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),ar}}),yi(s=>{const a=new i6(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ve(s=>i={...s,guards:P6(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function U6(t,n){return zn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?pe({...e,guardsResult:!0}):function j6(t,n,e,i){return Xt(t).pipe(zn(r=>function Z6(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?pe(o.map(a=>{const c=Xu(n)??r,d=dd(a,c);return aa(function V6(t){return t&&th(t.canDeactivate)}(d)?d.canDeactivate(t,n,e,i):c.runInContext(()=>d(t,n,e,i))).pipe(ps())})).pipe(ud()):pe(!0)}(r.component,r.route,e,n,i)),ps(r=>!0!==r,!0))}(s,i,r,t).pipe(zn(a=>a&&function R6(t){return"boolean"==typeof t}(a)?function $6(t,n,e,i){return Xt(n).pipe(sa(r=>Sm(function G6(t,n){return null!==t&&n&&n(new c6(t)),pe(!0)}(r.route.parent,i),function W6(t,n){return null!==t&&n&&n(new u6(t)),pe(!0)}(r.route,i),function Y6(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function I6(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Hu(()=>pe(s.guards.map(c=>{const d=Xu(s.node)??e,h=dd(c,d);return aa(function B6(t){return t&&th(t.canActivateChild)}(h)?h.canActivateChild(i,t):d.runInContext(()=>h(i,t))).pipe(ps())})).pipe(ud())));return pe(o).pipe(ud())}(t,r.path,e),function q6(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return pe(!0);const r=i.map(o=>Hu(()=>{const s=Xu(n)??e,a=dd(o,s);return aa(function N6(t){return t&&th(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(ps())}));return pe(r).pipe(ud())}(t,r.route,e))),ps(r=>!0!==r,!0))}(i,o,t,n):pe(a)),ve(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),yi(s=>{if(i.guardsResult=s.guardsResult,bl(s.guardsResult))throw qA(0,s.guardsResult);const a=new r6(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),qt(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),g0(s=>{if(s.guards.canActivateChecks.length)return pe(s).pipe(yi(a=>{const c=new o6(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),Or(a=>{let c=!1;return pe(a).pipe(function gU(t,n){return zn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return pe(e);let o=0;return Xt(r).pipe(sa(s=>function _U(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!hE(r)&&(o[ju]=r.title),function vU(t,n,e,i){const r=function bU(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return pe({});const o={};return Xt(r).pipe(zn(s=>function yU(t,n,e,i){const r=Xu(n)??i,o=dd(t,r);return aa(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(ps(),yi(a=>{o[s]=a}))),qy(1),Am(o),Bo(s=>f0(s)?ar:Uu(s)))}(o,t,n,i).pipe(ve(s=>(t._resolvedData=s,t.data=$A(t,e).resolve,r&&hE(r)&&(t.data[ju]=r.title),null)))}(s.route,i,t,n)),yi(()=>o++),qy(1),zn(s=>o===r.length?pe(e):ar))})}(e.paramsInheritanceStrategy,this.environmentInjector),yi({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),yi(a=>{const c=new s6(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),g0(s=>{const a=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(yi(h=>{c.component=h}),ve(()=>{})));for(const h of c.children)d.push(...a(h));return d};return Wy(a(s.targetSnapshot.root)).pipe(km(),On(1))}),g0(()=>this.afterPreactivation()),ve(s=>{const a=function y6(t,n,e){const i=Ku(t,n._root,e?e._root:void 0);return new UA(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),yi(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>ve(i=>(new T6(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),On(1),yi({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Fn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),Yy(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Bo(s=>{if(o=!0,KA(s)){ZA(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new Lm(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),ZA(s)){const c=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||mE(i.source)};e.scheduleNavigation(c,Zu,null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new n0(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(c){i.reject(c)}}return ar}))}))}cancelNavigationTransition(e,i,r){const o=new Lm(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mE(t){return t!==Zu}let gE=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ge);return i}getResolvedTitleForRoute(e){return e.data[ju]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return Ce(CU)},providedIn:"root"}),t})(),CU=(()=>{class t extends gE{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(F(cA))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return Ce(MU)},providedIn:"root"}),t})();class DU{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let MU=(()=>{class t extends DU{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ym=new Z("",{providedIn:"root",factory:()=>({})});let kU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:function(){return Ce(AU)},providedIn:"root"}),t})(),AU=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function EU(t){throw t}function TU(t,n,e){return n.parse("/")}const PU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ot=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Ce(g5),this.isNgZoneEnabled=!1,this.options=Ce(Ym,{optional:!0})||{},this.errorHandler=this.options.errorHandler||EU,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||TU,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Ce(kU),this.routeReuseStrategy=Ce(xU),this.urlCreationStrategy=Ce(_6),this.titleStrategy=Ce(gE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=CA(Ce(hd,{optional:!0})??[]),this.navigationTransitions=Ce(qm),this.urlSerializer=Ce(Wu),this.location=Ce(Fu),this.isNgZoneEnabled=Ce(_e)instanceof _e&&_e.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new la,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=jA(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Zu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(h0),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,d=c?this.currentUrlTree.fragment:s;let h=null;switch(a){case"merge":h={...this.currentUrlTree.queryParams,...o};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,h,d??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=bl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Zu,null,i)}navigate(e,i={skipLocationChange:!1}){return function OU(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,d,h;return s?(a=s.resolve,c=s.reject,d=s.promise):d=new Promise((_,v)=>{a=_,c=v}),h="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:h,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(_=>Promise.reject(_))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yt=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Q;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(d=>{d instanceof Fn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=id(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=id(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=id(e)}get replaceUrl(){return this._replaceUrl}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,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function Ix(t,n,e){return function CN(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?Px:Er}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,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.\u0275fac=function(e){return new(e||t)(x(ot),x(yl),Cc("tabindex"),x(rs),x(be),x(gl))},t.\u0275dir=ee({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&H("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&tt("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[je]}),t})();class _E{}let LU=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qt(e=>e instanceof Fn),sa(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Kp(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Xt(r).pipe(Vs())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):pe(null);const o=r.pipe(zn(s=>null===s?pe(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Xt([o,this.loader.loadComponent(i)]).pipe(Vs()):o})}}return t.\u0275fac=function(e){return new(e||t)(F(ot),F(zS),F(Io),F(_E),F(_0))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const b0=new Z("");let vE=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof t0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof zA&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){ul()},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();var Rr=(()=>((Rr=Rr||{})[Rr.COMPLETE=0]="COMPLETE",Rr[Rr.FAILED=1]="FAILED",Rr[Rr.REDIRECTING=2]="REDIRECTING",Rr))();const fd=!1;function ca(t,n){return{\u0275kind:t,\u0275providers:n}}const y0=new Z("",{providedIn:"root",factory:()=>!1});function yE(){const t=Ce(_n);return n=>{const e=t.get(nd);if(n!==e.components[0])return;const i=t.get(ot),r=t.get(wE);1===t.get(w0)&&i.initialNavigation(),t.get(CE,null,we.Optional)?.setUpPreloading(),t.get(b0,null,we.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const wE=new Z(fd?"bootstrap done indicator":"",{factory:()=>new Q}),w0=new Z(fd?"initial navigation":"",{providedIn:"root",factory:()=>1});function HU(){let t=[];return t=fd?[{provide:Pp,multi:!0,useFactory:()=>{const n=Ce(ot);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function f6(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],ca(1,t)}const CE=new Z(fd?"router preloader":"");function UU(t){return ca(0,[{provide:CE,useExisting:LU},{provide:_E,useExisting:t}])}const ih=!1,xE=new Z(ih?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),jU=[Fu,{provide:Wu,useClass:Zy},ot,Qu,{provide:yl,useFactory:function bE(t){return t.routerState.root},deps:[ot]},_0,ih?{provide:y0,useValue:!0}:[]];function $U(){return new YS("Router",ot)}let DE=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jU,ih&&i?.enableTracing?HU().\u0275providers:[],{provide:hd,multi:!0,useValue:e},{provide:xE,useFactory:YU,deps:[[ot,new ns,new ea]]},{provide:Ym,useValue:i||{}},i?.useHash?{provide:gl,useClass:iz}:{provide:gl,useClass:_k},{provide:b0,useFactory:()=>{const t=Ce(gH),n=Ce(_e),e=Ce(Ym),i=Ce(qm),r=Ce(Wu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new vE(r,i,t,n,e)}},i?.preloadingStrategy?UU(i.preloadingStrategy).\u0275providers:[],{provide:YS,multi:!0,useFactory:$U},i?.initialNavigation?ZU(i):[],[{provide:ME,useFactory:yE},{provide:qS,multi:!0,useExisting:ME}]]}}static forChild(e){return{ngModule:t,providers:[{provide:hd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(F(xE,8))},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[d0]}),t})();function YU(t){if(ih&&t)throw new $(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ZU(t){return["disabled"===t.initialNavigation?ca(3,[{provide:tm,multi:!0,useFactory:()=>{const n=Ce(ot);return()=>{n.setUpLocationChangeListener()}}},{provide:w0,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?ca(2,[{provide:w0,useValue:0},{provide:tm,multi:!0,deps:[_n],useFactory:n=>{const e=n.get(tz,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(ot),o=n.get(wE);(function NU(t,n){t.events.pipe(qt(e=>e instanceof Fn||e instanceof Lm||e instanceof n0||e instanceof Nm),ve(e=>e instanceof Fn||e instanceof Nm?Rr.COMPLETE:e instanceof Lm&&(0===e.code||1===e.code)?Rr.REDIRECTING:Rr.FAILED),qt(e=>e!==Rr.REDIRECTING),On(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(qm).afterPreactivation=()=>(i(!0),o.closed?pe(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const ME=new Z(ih?"Router Initializer":"");let er=(()=>{class t{constructor(){this.isDarkMode=!1,this.themeSubject=new Ir(this.isDarkMode)}toggleTheme(){this.isDarkMode=!this.isDarkMode,document.body.classList.toggle("dark-theme",this.isDarkMode),this.themeSubject.next(this.isDarkMode)}isDarkTheme(){return this.isDarkMode}getThemeObservable(){return this.themeSubject.asObservable()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Lr_apiUrl="https://air-quality-platform.onrender.com/api/v1/";class Zm{}class C0{}class gs{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof gs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new gs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof gs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class QU{encodeKey(n){return SE(n)}encodeValue(n){return SE(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const JU=/%(\d[a-f0-9])/gi,ej={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function SE(t){return encodeURIComponent(t).replace(JU,(n,e)=>ej[e]??n)}function Km(t){return`${t}`}class da{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new QU,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function XU(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(Km):[Km(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new da({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Km(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Km(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class tj{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function kE(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function AE(t){return typeof Blob<"u"&&t instanceof Blob}function EE(t){return typeof FormData<"u"&&t instanceof FormData}class rh{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function nj(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new gs),this.context||(this.context=new tj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a_.set(v,n.setHeaders[v]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((_,v)=>_.set(v,n.setParams[v]),d)),new rh(e,i,o,{params:d,headers:c,context:h,reportProgress:a,responseType:r,withCredentials:s})}}var Gn=(()=>((Gn=Gn||{})[Gn.Sent=0]="Sent",Gn[Gn.UploadProgress=1]="UploadProgress",Gn[Gn.ResponseHeader=2]="ResponseHeader",Gn[Gn.DownloadProgress=3]="DownloadProgress",Gn[Gn.Response=4]="Response",Gn[Gn.User=5]="User",Gn))();class x0{constructor(n,e=200,i="OK"){this.headers=n.headers||new gs,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class D0 extends x0{constructor(n={}){super(n),this.type=Gn.ResponseHeader}clone(n={}){return new D0({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Qm extends x0{constructor(n={}){super(n),this.type=Gn.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Qm({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class TE extends x0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function M0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let tr=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof rh)o=e;else{let c,d;c=r.headers instanceof gs?r.headers:new gs(r.headers),r.params&&(d=r.params instanceof da?r.params:new da({fromObject:r.params})),o=new rh(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=pe(o).pipe(sa(c=>this.handler.handle(c)));if(e instanceof rh||"events"===r.observe)return s;const a=s.pipe(qt(c=>c instanceof Qm));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ve(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(ve(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(ve(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(ve(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new da).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,M0(r,i))}post(e,i,r={}){return this.request("POST",e,M0(r,i))}put(e,i,r={}){return this.request("PUT",e,M0(r,i))}}return t.\u0275fac=function(e){return new(e||t)(F(Zm))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function PE(t,n){return n(t)}function rj(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const sj=new Z("HTTP_INTERCEPTORS"),oh=new Z("HTTP_INTERCEPTOR_FNS");function aj(){let t=null;return(n,e)=>(null===t&&(t=(Ce(sj,{optional:!0})??[]).reduceRight(rj,PE)),t(n,e))}let IE=(()=>{class t extends Zm{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(oh)));this.chain=i.reduceRight((r,o)=>function oj(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),PE)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(F(C0),F(Io))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const uj=/^\)\]\}',?\n/;let FE=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ft(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((y,C)=>r.setRequestHeader(y,C.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const y=e.detectContentTypeHeader();null!==y&&r.setRequestHeader("Content-Type",y)}if(e.responseType){const y=e.responseType.toLowerCase();r.responseType="json"!==y?y:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const y=r.statusText||"OK",C=new gs(r.getAllResponseHeaders()),D=function hj(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new D0({headers:C,status:r.status,statusText:y,url:D}),s},c=()=>{let{headers:y,status:C,statusText:D,url:S}=a(),E=null;204!==C&&(E=typeof r.response>"u"?r.responseText:r.response),0===C&&(C=E?200:0);let P=C>=200&&C<300;if("json"===e.responseType&&"string"==typeof E){const I=E;E=E.replace(uj,"");try{E=""!==E?JSON.parse(E):null}catch(R){E=I,P&&(P=!1,E={error:R,text:E})}}P?(i.next(new Qm({body:E,headers:y,status:C,statusText:D,url:S||void 0})),i.complete()):i.error(new TE({error:E,headers:y,status:C,statusText:D,url:S||void 0}))},d=y=>{const{url:C}=a(),D=new TE({error:y,status:r.status||0,statusText:r.statusText||"Unknown Error",url:C||void 0});i.error(D)};let h=!1;const _=y=>{h||(i.next(a()),h=!0);let C={type:Gn.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),"text"===e.responseType&&r.responseText&&(C.partialText=r.responseText),i.next(C)},v=y=>{let C={type:Gn.UploadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),i.next(C)};return r.addEventListener("load",c),r.addEventListener("error",d),r.addEventListener("timeout",d),r.addEventListener("abort",d),e.reportProgress&&(r.addEventListener("progress",_),null!==o&&r.upload&&r.upload.addEventListener("progress",v)),r.send(o),i.next({type:Gn.Sent}),()=>{r.removeEventListener("error",d),r.removeEventListener("abort",d),r.removeEventListener("load",c),r.removeEventListener("timeout",d),e.reportProgress&&(r.removeEventListener("progress",_),null!==o&&r.upload&&r.upload.removeEventListener("progress",v)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(F(zk))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const S0=new Z("XSRF_ENABLED"),RE=new Z("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),LE=new Z("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class NE{}let mj=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,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=kk(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(F(Oe),F(td),F(RE))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function gj(t,n){const e=t.url.toLowerCase();if(!Ce(S0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ce(NE).getToken(),r=Ce(LE);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Rn=(()=>((Rn=Rn||{})[Rn.Interceptors=0]="Interceptors",Rn[Rn.LegacyInterceptors=1]="LegacyInterceptors",Rn[Rn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Rn[Rn.NoXsrfProtection=3]="NoXsrfProtection",Rn[Rn.JsonpSupport=4]="JsonpSupport",Rn[Rn.RequestsMadeViaParent=5]="RequestsMadeViaParent",Rn))();function pd(t,n){return{\u0275kind:t,\u0275providers:n}}function _j(...t){const n=[tr,FE,IE,{provide:Zm,useExisting:IE},{provide:C0,useExisting:FE},{provide:oh,useValue:gj,multi:!0},{provide:S0,useValue:!0},{provide:NE,useClass:mj}];for(const e of t)n.push(...e.\u0275providers);return function xN(t){return{\u0275providers:t}}(n)}const BE=new Z("LEGACY_INTERCEPTOR_FN");let A0,bj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[_j(pd(Rn.LegacyInterceptors,[{provide:BE,useFactory:aj},{provide:oh,useExisting:BE,multi:!0}]))]}),t})(),k0=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getForecast(){return this.http.get(this.baseUrl+"forecast/all")}createForecast(e){return this.http.post(this.baseUrl+"forecast",{id:1,title:e.title,dateTime:e.dateTime,description:e.description,likes:e.likes,visible:!0})}updateForecast(e){return this.http.put(this.baseUrl+"forecast/"+e.id,{id:1,title:e.title,dateTime:e.dateTime,description:e.description,likes:e.likes,visible:e.visible})}likeForecast(e){return this.http.put(this.baseUrl+"forecast/like/"+e.id,{id:1,title:e.title,dateTime:e.dateTime,description:e.description,likes:e.likes,visible:e.visible})}deleteForecast(e){return this.http.delete(this.baseUrl+"forecast/delete/"+e)}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();try{A0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A0=!1}let md,Dn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ra(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&&!A0)&&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.\u0275fac=function(e){return new(e||t)(F(td))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const VE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function zE(){if(md)return md;if("object"!=typeof document||!document)return md=new Set(VE),md;let t=document.createElement("input");return md=new Set(VE.filter(n=>(t.setAttribute("type",n),t.type===n))),md}let sh,Xm,wl,E0;function gd(t){return function yj(){if(null==sh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sh=!0}))}finally{sh=sh||!1}return sh}()?t:!!t.capture}function HE(){if(null==wl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wl=!1,wl;if("scrollBehavior"in document.documentElement.style)wl=!0;else{const t=Element.prototype.scrollTo;wl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return wl}function ah(){if("object"!=typeof document||!document)return 0;if(null==Xm){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Xm=0,0===t.scrollLeft&&(t.scrollLeft=1,Xm=0===t.scrollLeft?1:2),t.remove()}return Xm}function lh(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ua(t){return t.composedPath?t.composedPath()[0]:t.target}function T0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function nr(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Oj extends mt{constructor(n,e){super()}schedule(n,e=0){return this}}const tg={setInterval(t,n,...e){const{delegate:i}=tg;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=tg;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class P0 extends Oj{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return tg.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&tg.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,$t(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const I0={now:()=>(I0.delegate||Date).now(),delegate:void 0};class uh{constructor(n,e=uh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}uh.now=I0.now;class O0 extends uh{constructor(n,e=uh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const F0=new O0(P0),Fj=F0;function ng(t,n=F0){return Tt((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const d=o;o=null,i.next(d)}};function c(){const d=s+t,h=n.now();if(h{o=d,s=n.now(),r||(r=n.schedule(c,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function jE(t){return qt((n,e)=>t<=e)}function ig(t,n=Mn){return t=t??Rj,Tt((e,i)=>{let r,o=!0;e.subscribe(Mt(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function Rj(t,n){return t===n}function yt(t){return Tt((n,e)=>{oi(t).subscribe(Mt(e,()=>e.complete(),oo)),!e.closed&&n.subscribe(e)})}function wt(t){return null!=t&&"false"!=`${t}`}function xl(t,n=0){return function Lj(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function rg(t){return Array.isArray(t)?t:[t]}function qn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function bs(t){return t instanceof be?t.nativeElement:t}let $E=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bj=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=bs(e);return new Ft(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Q,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(F($E))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vj=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=wt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=xl(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new ae,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(ng(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(x(Bj),x(be),x(_e))},t.\u0275dir=ee({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),WE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[$E]}),t})();const GE=new Set;let _d,zj=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Uj}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Hj(t){if(!GE.has(t))try{_d||(_d=document.createElement("style"),_d.setAttribute("type","text/css"),document.head.appendChild(_d)),_d.sheet&&(_d.sheet.insertRule(`@media ${t} {body{ }}`,0),GE.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(F(Dn))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Uj(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let R0=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return qE(rg(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Wy(qE(rg(e)).map(s=>this._registerQuery(s).observable));return o=Sm(o.pipe(On(1)),o.pipe(jE(1),ng(0))),o.pipe(ve(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:d})=>{a.matches=a.matches||c,a.breakpoints[d]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new Ft(s=>{const a=c=>this._zone.run(()=>s.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Fr(i),ve(({matches:s})=>({query:e,matches:s})),yt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(F(zj),F(_e))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function qE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function og(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const ZE="cdk-describedby-message",sg="cdk-describedby-host";let L0=0,Gj=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+L0++,this._document=e,this._id=Ce(ed)+"-"+L0++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=N0(i,r);"string"!=typeof i?(KE(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=N0(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${sg}="${this._id}"]`);for(let i=0;i0!=r.indexOf(ZE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function $j(t,n,e){const i=og(t,n);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(sg,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function Wj(t,n,e){const r=og(t,n).filter(o=>o!=e.trim());r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(sg)}_isElementDescribedByMessage(e,i){const r=og(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(F(Oe),F(Dn))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function N0(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function KE(t,n){t.id||(t.id=`${ZE}-${n}-${L0++}`)}class qj{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Q,this._typeaheadSubscription=mt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Q,this.change=new Q,n instanceof Qc&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(yi(e=>this._pressedLetters.push(e)),ng(n),qt(()=>this._pressedLetters.length>0),ve(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.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(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Qc?this._items.toArray():this._items}}class Yj extends qj{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}let hh=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Kj(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 i=function Zj(t){try{return t.frameElement}catch{return null}}(function r$(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===XE(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=XE(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function n$(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function i$(t){return!function Xj(t){return function e$(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Qj(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function Jj(t){return function t$(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||QE(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(F(Dn))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QE(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function XE(t){if(!QE(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class o${get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(On(1)).subscribe(n)}}let fh=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new o$(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(F(hh),F(_e),F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),s$=(()=>{class t{get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=wt(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=wt(e)}constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=lh(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(fh),x(Oe))},t.\u0275dir=ee({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[je]}),t})();function JE(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function eT(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const a$=new Z("cdk-input-modality-detector-options"),l$={ignoreKeys:[18,17,224,91,16]},vd=gd({passive:!0,capture:!0});let c$=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ir(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ua(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(JE(s)?"keyboard":"mouse"),this._mostRecentTarget=ua(s))},this._onTouchstart=s=>{eT(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ua(s))},this._options={...l$,...o},this.modalityDetected=this._modality.pipe(jE(1)),this.modalityChanged=this.modalityDetected.pipe(ig()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,vd),r.addEventListener("mousedown",this._onMousedown,vd),r.addEventListener("touchstart",this._onTouchstart,vd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,vd),document.removeEventListener("mousedown",this._onMousedown,vd),document.removeEventListener("touchstart",this._onTouchstart,vd))}}return t.\u0275fac=function(e){return new(e||t)(F(Dn),F(_e),F(Oe),F(a$,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const d$=new Z("liveAnnouncerElement",{providedIn:"root",factory:function u$(){return null}}),h$=new Z("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let f$=0,B0=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 Q,this._rootNodeFocusAndBlurListener=a=>{for(let d=ua(a);d;d=d.parentElement)"focus"===a.type?this._onFocus(a,d):this._onBlur(a,d)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=bs(e);if(!this._platform.isBrowser||1!==r.nodeType)return pe(null);const o=function Cj(t){if(function wj(){if(null==E0){const t=typeof document<"u"?document.head:null;E0=!(!t||!t.createShadowRoot&&!t.attachShadow)}return E0}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Q,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=bs(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=bs(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=ua(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ag),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ag)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ag),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ag),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new ae}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Dl))},t.\u0275dir=ee({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const iT="cdk-high-contrast-black-on-white",rT="cdk-high-contrast-white-on-black",V0="cdk-high-contrast-active";let oT=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Ce(R0).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 i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){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(V0,iT,rT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(V0,iT):2===i&&e.add(V0,rT)}}}return t.\u0275fac=function(e){return new(e||t)(F(Dn),F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),z0=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(F(oT))},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[WE]}),t})();const m$=new Z("cdk-dir-doc",{providedIn:"root",factory:function g$(){return Ce(Oe)}}),_$=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ri=(()=>{class t{constructor(e){this.value="ltr",this.change=new ae,e&&(this.value=function v$(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?_$.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(F(m$,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();const b$=["text"];function y$(t,n){if(1&t&&A(0,"mat-pseudo-checkbox",6),2&t){const e=he();T("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function w$(t,n){1&t&&A(0,"mat-pseudo-checkbox",7),2&t&&T("disabled",he().disabled)}function C$(t,n){if(1&t&&(p(0,"span",8),m(1),f()),2&t){const e=he();M(1),bt("(",e.group.label,")")}}const x$=[[["mat-icon"]],"*"],D$=["mat-icon","*"],S$=new Z("mat-sanity-checks",{providedIn:"root",factory:function M$(){return!0}});let Ln=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!T0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(F(oT),F(S$,8),F(Oe))},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[ph,ph]}),t})();function lT(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=wt(n)}constructor(...n){super(...n),this._disabled=!1}}}function cT(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function dT(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=wt(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function k$(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?xl(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function H0(t){return class extends t{updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}const A$=new Z("MAT_DATE_LOCALE",{providedIn:"root",factory:function E$(){return Ce(No)}});class Nn{constructor(){this._localeChanges=new Q,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}}const Ho=new Z("mat-date-formats"),T$=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function U0(t,n){const e=Array(t);for(let i=0;i{class t extends Nn{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return U0(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return U0(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return U0(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,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,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth(),o}today(){return new Date}parse(e,i){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...i,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}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(T$.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return t.\u0275fac=function(e){return new(e||t)(F(A$,8),F(Dn))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const I$={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 O$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[{provide:Nn,useClass:P$}]}),t})(),F$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[{provide:Ho,useValue:I$}],imports:[O$]}),t})(),mh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class R${constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const uT=gd({passive:!0,capture:!0});class L${constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=ua(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){const o=this._events.get(e);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,uT)})}removeHandler(n,e,i){const r=this._events.get(n);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,uT)))}}const hT={enterDuration:225,exitDuration:150},fT=gd({passive:!0,capture:!0}),pT=["mousedown","touchstart"],mT=["mouseup","mouseleave","touchend","touchcancel"];class _h{constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=bs(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...hT,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function B$(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),a=n-r.left,c=e-r.top,d=o.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=a-s+"px",h.style.top=c-s+"px",h.style.height=2*s+"px",h.style.width=2*s+"px",null!=i.color&&(h.style.backgroundColor=i.color),h.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(h);const _=window.getComputedStyle(h),y=_.transitionDuration,C="none"===_.transitionProperty||"0s"===y||"0s, 0s"===y||0===r.width&&0===r.height,D=new R$(this,h,i,C);h.style.transform="scale3d(1, 1, 1)",D.state=0,i.persistent||(this._mostRecentTransientRipple=D);let S=null;return!C&&(d||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const E=()=>this._finishRippleTransition(D),P=()=>this._destroyRipple(D);h.addEventListener("transitionend",E),h.addEventListener("transitioncancel",P),S={onTransitionEnd:E,onTransitionCancel:P}}),this._activeRipples.set(D,S),(C||!d)&&this._finishRippleTransition(D),D}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i={...hT,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=bs(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,pT.forEach(i=>{_h._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{mT.forEach(e=>{this._triggerElement.addEventListener(e,this,fT)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=JE(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(pT.forEach(e=>_h._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&mT.forEach(e=>n.removeEventListener(e,this,fT)))}}_h._eventManager=new L$;const V$=new Z("mat-ripple-global-options");let lg=(()=>{class t{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,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new _h(this,i,e,r)}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,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(_e),x(Dn),x(V$,8),x(Pr,8))},t.\u0275dir=ee({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ne("mat-ripple-unbounded",i.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"]}),t})(),gT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[Ln,Ln]}),t})(),z$=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return t.\u0275fac=function(e){return new(e||t)(x(Pr,8))},t.\u0275cmp=G({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&ne("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},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-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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}),t})(),H$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[Ln]}),t})();const _T=new Z("MAT_OPTION_PARENT_COMPONENT"),vT=new Z("MatOptgroup");let U$=0;class j${constructor(n,e=!1){this.source=n,this.isUserInput=e}}let $$=(()=>{class t{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=wt(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+U$++,this.onSelectionChange=new ae,this._stateChanges=new Q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}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)&&!nr(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 j$(this,e))}}return t.\u0275fac=function(e){ul()},t.\u0275dir=ee({type:t,viewQuery:function(e,i){if(1&e&&tn(b$,7),2&e){let r;$e(r=We())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Bn=(()=>{class t extends $${constructor(e,i,r,o){super(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Tn),x(_T,8),x(vT,8))},t.\u0275cmp=G({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,i){1&e&&H("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(ls("id",i.id),tt("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),ne("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[ye],ngContentSelectors:D$,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Ki(x$),U(0,y$,1,2,"mat-pseudo-checkbox",0),Ut(1),p(2,"span",1,2),Ut(4,1),f(),U(5,w$,1,1,"mat-pseudo-checkbox",3),U(6,C$,2,1,"span",4),A(7,"div",5)),2&e&&(T("ngIf",i.multiple),M(5),T("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),M(1),T("ngIf",i.group&&i.group._inert),M(1),T("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[lg,Le,z$],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;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.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}),t})(),bT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[gT,fs,Ln,H$]}),t})();const q$=["mat-button",""],Y$=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Z$=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Q$=["mat-icon-button",""],X$=["*"],J$=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],e7=cT(lT(dT(class{constructor(t){this._elementRef=t}})));let yT=(()=>{class t extends e7{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=Ce(Dl),this._isFab=!1;const s=e.nativeElement.classList;for(const a of J$)this._hasHostAttributes(a.selector)&&a.mdcClasses.forEach(c=>{s.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return t.\u0275fac=function(e){ul()},t.\u0275dir=ee({type:t,viewQuery:function(e,i){if(1&e&&tn(lg,5),2&e){let r;$e(r=We())&&(i.ripple=r.first)}},features:[ye]}),t})(),j0=(()=>{class t extends yT{constructor(e,i,r,o){super(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Dn),x(_e),x(Pr,8))},t.\u0275cmp=G({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(tt("disabled",i.disabled||null),ne("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ye],attrs:q$,ngContentSelectors:Z$,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Ki(Y$),A(0,"span",0),Ut(1),p(2,"span",1),Ut(3,1),f(),Ut(4,2),A(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(ne("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),M(6),T("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[lg],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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );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{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 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))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 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))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 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))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 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))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.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, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.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-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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.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}),t})(),wT=(()=>{class t extends yT{constructor(e,i,r,o){super(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Dn),x(_e),x(Pr,8))},t.\u0275cmp=G({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(tt("disabled",i.disabled||null),ne("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ye],attrs:Q$,ngContentSelectors:X$,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(Ki(),A(0,"span",0),Ut(1),A(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(M(3),T("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[lg],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.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, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.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-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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-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}',".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}),t})(),cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[Ln,gT,Ln]}),t})();class CT{}class i7{}const ys="*";function ws(t,n){return{type:7,name:t,definitions:n,options:{}}}function ir(t,n=null){return{type:4,styles:n,timings:t}}function DT(t,n=null){return{type:2,steps:t,options:n}}function un(t){return{type:6,styles:t,offset:null}}function eo(t,n,e){return{type:0,name:t,styles:n,options:e}}function MT(t){return{type:5,steps:t}}function Li(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function $0(t=null){return{type:9,options:t}}function W0(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function ST(t){Promise.resolve().then(t)}class vh{constructor(n=0,e=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ST(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class kT{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?ST(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const G0="!";class q0{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class ga extends q0{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class dg extends q0{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class r7 extends q0{constructor(n){super(),this.element=n instanceof be?n.nativeElement:n}}class ug{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof ga?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof dg?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof r7?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class o7 extends ug{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||_n.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Ml=(()=>{class t extends ug{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ae,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}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 i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(x(cl),x(vi),x(Oe))},t.\u0275dir=ee({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ye]}),t})(),bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();const s7=["addListener","removeListener"],a7=["addEventListener","removeEventListener"],l7=["on","off"];function bh(t,n,e,i){if(ht(e)&&(i=e,e=void 0),i)return bh(t,n,e).pipe($y(i));const[r,o]=function u7(t){return ht(t.addEventListener)&&ht(t.removeEventListener)}(t)?a7.map(s=>a=>t[s](n,a,e)):function c7(t){return ht(t.addListener)&&ht(t.removeListener)}(t)?s7.map(AT(t,n)):function d7(t){return ht(t.on)&&ht(t.off)}(t)?l7.map(AT(t,n)):[];if(!r&&Ud(t))return zn(s=>bh(s,n,e))(oi(t));if(!r)throw new TypeError("Invalid event target");return new Ft(s=>{const a=(...c)=>s.next(1o(a)})}function AT(t,n){return e=>i=>t[e](n,i)}const yh={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=yh;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new mt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=yh;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=yh;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},p7=new class f7 extends O0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class h7 extends P0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=yh.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(yh.cancelAnimationFrame(e),n._scheduled=void 0)}});let Y0,m7=1;const hg={};function ET(t){return t in hg&&(delete hg[t],!0)}const g7={setImmediate(t){const n=m7++;return hg[n]=!0,Y0||(Y0=Promise.resolve()),Y0.then(()=>ET(n)&&t()),n},clearImmediate(t){ET(t)}},{setImmediate:_7,clearImmediate:v7}=g7,fg={setImmediate(...t){const{delegate:n}=fg;return(n?.setImmediate||_7)(...t)},clearImmediate(t){const{delegate:n}=fg;return(n?.clearImmediate||v7)(t)},delegate:void 0},w7=new class y7 extends O0{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class b7 extends P0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=fg.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(fg.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function TT(t=0,n,e=Fj){let i=-1;return null!=n&&(Hf(n)?e=n:i=n),new Ft(r=>{let o=function x7(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Z0(t,n=F0){return function C7(t){return Tt((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const d=r;r=null,e.next(d)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};n.subscribe(Mt(e,d=>{i=!0,r=d,o||oi(t(d)).subscribe(o=Mt(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>TT(t,n))}const D7=["contentWrapper"],M7=["*"],S7=new Z("VIRTUAL_SCROLL_STRATEGY");let yd=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Q,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ft(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Z0(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):pe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(qt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=bs(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>bh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(F(_e),F(Dn),F(Oe,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wh=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Q,this._elementScrolled=new Ft(s=>this.ngZone.runOutsideAngular(()=>bh(this.elementRef.nativeElement,"scroll").pipe(yt(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=ah()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==ah()?e.left=e.right:1==ah()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;HE()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&2==ah()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==ah()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(yd),x(_e),x(Ri,8))},t.\u0275dir=ee({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),Ch=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Q,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Z0(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.\u0275fac=function(e){return new(e||t)(F(Dn),F(_e),F(Oe,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PT=new Z("VIRTUAL_SCROLLABLE");let E7=(()=>{class t extends wh{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(yd),x(_e),x(Ri,8))},t.\u0275dir=ee({type:t,features:[ye]}),t})();const P7=typeof requestAnimationFrame<"u"?p7:w7;let I7=(()=>{class t extends E7{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=wt(e)}constructor(e,i,r,o,s,a,c,d){super(e,a,r,s),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=d,this._platform=Ce(Dn),this._detachedSubject=new Q,this._renderedRangeSubject=new Q,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Ft(h=>this._scrollStrategy.scrolledIndexChange.subscribe(_=>Promise.resolve().then(()=>this.ngZone.run(()=>h.next(_))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=mt.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Fr(null),Z0(0,P7)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(yt(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function T7(t,n){return t.start==n.start&&t.end==n.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,s=o?"X":"Y";let c=`translate${s}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(c+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",s="rtl"==this.dir?.value;i="start"==e?s?o:r:"end"==e?s?r:o:e||("horizontal"===this.orientation?"left":"top");const a=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-a}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Tn),x(_e),x(S7,8),x(Ri,8),x(yd),x(Ch),x(PT,8))},t.\u0275cmp=G({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&tn(D7,7),2&e){let r;$e(r=We())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&ne("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[nt([{provide:wh,useFactory:(n,e)=>n||e,deps:[[new ns,new wp(PT)],t]}]),ye,Qp],ngContentSelectors:M7,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Ki(),p(0,"div",0,1),Ut(2),f(),A(3,"div",2)),2&e&&(M(3),as("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})(),IT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[ph,Sl,I7,ph,Sl]}),t})();const OT=HE();class O7{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=qn(-this._previousScrollPosition.left),n.style.top=qn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),OT&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),OT&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class F7{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(qt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class FT{enable(){}disable(){}attach(){}}function K0(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function RT(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class R7{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();K0(e,[{width:i,height:r,bottom:r,right:i,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 L7=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new FT,this.close=s=>new F7(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new O7(this._viewportRuler,this._document),this.reposition=s=>new R7(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(F(yd),F(Ch),F(_e),F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class xh{constructor(n){if(this.scrollStrategy=new FT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class N7{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let LT=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(F(Oe))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),B7=(()=>{class t extends LT{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);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.\u0275fac=function(e){return new(e||t)(F(Oe),F(_e,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V7=(()=>{class t extends LT{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ua(o)},this._clickListener=o=>{const s=ua(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const h=c[d];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(h.overlayElement.contains(s)||h.overlayElement.contains(a))break;const _=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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.\u0275fac=function(e){return new(e||t)(F(Oe),F(Dn),F(_e,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pg=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||T0()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(_),this._backdropTransitionendHandler=_=>{this._disposeBackdrop(_.target)},this._keydownEvents=new Q,this._outsidePointerEvents=new Q,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(On(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 e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=qn(this._config.width),n.height=qn(this._config.height),n.minWidth=qn(this._config.minWidth),n.minHeight=qn(this._config.minHeight),n.maxWidth=qn(this._config.maxWidth),n.maxHeight=qn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const r=rg(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(yt(fi(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const NT="cdk-overlay-connected-position-bounding-box",z7=/([A-Za-z%]+)$/;class BT{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,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 Q,this._resizeSubscription=mt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(NT),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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 n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,r,a),d=this._getOverlayPoint(c,e,a),h=this._getOverlayFit(d,e,i,a);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(h,d,i)?o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleAreac&&(c=h,a=d)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&kl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(NT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=zT(e);let{x:s,y:a}=n,c=this._getOffset(r,"x"),d=this._getOffset(r,"y");c&&(s+=c),d&&(a+=d);let v=0-a,y=a+o.height-i.height,C=this._subtractOverflows(o.width,0-s,s+o.width-i.width),D=this._subtractOverflows(o.height,v,y),S=C*D;return{visibleArea:S,isCompletelyWithinViewport:o.width*o.height===S,fitsInViewportVertically:D===o.height,fitsInViewportHorizontally:C==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=VT(this._overlayRef.getConfig().minHeight),a=VT(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=zT(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),d=Math.max(o.left-i.left-n.x,0);let h=0,_=0;return h=r.width<=o.width?d||-s:n.xC&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-C/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)v=i.width-n.x+this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)_=n.x,h=i.right-n.x;else{const y=Math.min(i.right-n.x+i.left,n.x),C=this._lastBoundingBoxSize.width;h=2*y,_=n.x-y,h>C&&!this._isInitialRender&&!this._growAfterOpen&&(_=n.x-C/2)}return{top:s,left:_,bottom:a,right:v,width:h,height:o}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=qn(i.height),r.top=qn(i.top),r.bottom=qn(i.bottom),r.width=qn(i.width),r.left=qn(i.left),r.right=qn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=qn(o)),s&&(r.maxWidth=qn(s))}this._lastBoundingBoxSize=i,kl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){kl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){kl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const h=this._viewportRuler.getViewportScrollPosition();kl(i,this._getExactOverlayY(e,n,h)),kl(i,this._getExactOverlayX(e,n,h))}else i.position="static";let a="",c=this._getOffset(e,"x"),d=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=qn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=qn(s.maxWidth):o&&(i.maxWidth="")),kl(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=qn(o.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=qn(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:RT(n,i),isOriginOutsideView:K0(n,i),isOverlayClipped:RT(e,i),isOverlayOutsideView:K0(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&rg(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof be)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function kl(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function VT(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(z7);return e&&"px"!==e?null:parseFloat(n)}return t||null}function zT(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 HT="cdk-global-overlay-wrapper";class H7{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(HT),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),d=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),h=this._xPosition,_=this._xOffset,v="rtl"===this._overlayRef.getConfig().direction;let y="",C="",D="";c?D="flex-start":"center"===h?(D="center",v?C=_:y=_):v?"left"===h||"end"===h?(D="flex-end",y=_):("right"===h||"start"===h)&&(D="flex-start",C=_):"left"===h||"start"===h?(D="flex-start",y=_):("right"===h||"end"===h)&&(D="flex-end",C=_),n.position=this._cssPosition,n.marginLeft=c?"0":y,n.marginTop=d?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":C,e.justifyContent=D,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(HT),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let U7=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new H7}flexibleConnectedTo(e){return new BT(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(F(Ch),F(Oe),F(Dn),F(pg))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),j7=0,gr=(()=>{class t{constructor(e,i,r,o,s,a,c,d,h,_,v,y){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=d,this._directionality=h,this._location=_,this._outsideClickDispatcher=v,this._animationsModuleType=y}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new xh(e);return s.direction=s.direction||this._directionality.value,new Dh(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+j7++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(nd)),new o7(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(F(L7),F(pg),F(cl),F(U7),F(B7),F(_n),F(_e),F(Oe),F(Ri),F(Fu),F(V7),F(Pr,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $7=[{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"}],UT=new Z("cdk-connected-overlay-scroll-strategy");let Q0=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(x(be))},t.\u0275dir=ee({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),jT=(()=>{class t{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 hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=wt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=wt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=wt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=wt(e)}get push(){return this._push}set push(e){this._push=wt(e)}constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=mt.EMPTY,this._attachSubscription=mt.EMPTY,this._detachSubscription=mt.EMPTY,this._positionSubscription=mt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ae,this.positionChange=new ae,this.attach=new ae,this.detach=new ae,this.overlayKeydown=new ae,this.overlayOutsideClick=new ae,this._templatePortal=new dg(i,r),this._scrollStrategyFactory=o,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=$7);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!nr(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new xh({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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 Q0?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(yA(()=>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.\u0275fac=function(e){return new(e||t)(x(gr),x(Kr),x(vi),x(UT),x(Ri,8))},t.\u0275dir=ee({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"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[je]}),t})();const G7={provide:UT,deps:[gr],useFactory:function W7(t){return()=>t.scrollStrategies.reposition()}};let wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[gr,G7],imports:[ph,bd,IT,IT]}),t})();function q7(t,n){if(1&t){const e=vn();p(0,"div",2)(1,"button",3),H("click",function(){return ct(e),dt(he().action())}),m(2),f()()}if(2&t){const e=he();M(2),bt(" ",e.data.action," ")}}const Y7=["label"];function Z7(t,n){}const K7=Math.pow(2,31)-1;class X0{constructor(n,e){this._overlayRef=e,this._afterDismissed=new Q,this._afterOpened=new Q,this._onAction=new Q,this._dismissedByAction=!1,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,K7))}_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 $T=new Z("MatSnackBarData");class mg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Q7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),X7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),J7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),e9=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(x(X0),x($T))},t.\u0275cmp=G({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(p(0,"div",0),m(1),f(),U(2,q7,3,1,"div",1)),2&e&&(M(1),bt(" ",i.data.message,"\n"),M(1),T("ngIf",i.hasAction))},dependencies:[Le,j0,Q7,X7,J7],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const t9={snackBarState:ws("state",[eo("void, hidden",un({transform:"scale(0.8)",opacity:0})),eo("visible",un({transform:"scale(1)",opacity:1})),Li("* => visible",ir("150ms cubic-bezier(0, 0, 0.2, 1)")),Li("* => void, * => hidden",ir("75ms cubic-bezier(0.4, 0.0, 1, 1)",un({opacity:0})))])};let n9=0,i9=(()=>{class t extends ug{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=Ce(Oe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Q,this._onExit=new Q,this._onEnter=new Q,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+n9++,this.attachDomPortal=a=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.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(){this._ngZone.onMicrotaskEmpty.pipe(On(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):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]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(x(_e),x(be),x(Tn),x(Dn),x(mg))},t.\u0275dir=ee({type:t,viewQuery:function(e,i){if(1&e&&tn(Ml,7),2&e){let r;$e(r=We())&&(i._portalOutlet=r.first)}},features:[ye]}),t})(),r9=(()=>{class t extends i9{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275cmp=G({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&tn(Y7,7),2&e){let r;$e(r=We())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&Cu("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Du("@state",i._animationState)},features:[ye],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1,2)(3,"div",3),U(4,Z7,0,0,"ng-template",4),f(),A(5,"div"),f()()),2&e&&(M(5),tt("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[Ml],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__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;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:[t9.snackBarState]}}),t})(),WT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[wd,bd,fs,cg,Ln,Ln]}),t})();const GT=new Z("mat-snack-bar-default-options",{providedIn:"root",factory:function o9(){return new mg}});let s9=(()=>{class t{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,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=_n.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:mg,useValue:i}]}),s=new ga(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new mg,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new X0(s,o);if(e instanceof Kr){const c=new dg(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),d=new ga(e,void 0,c),h=s.attachComponentPortal(d);a.instance=h.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new xh;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return _n.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:X0,useValue:i},{provide:$T,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(F(gr),F(B0),F(_n),F(R0),F(t,12),F(GT))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),Qt=(()=>{class t extends s9{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=e9,this.snackBarContainerComponent=r9,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(F(gr),F(B0),F(_n),F(R0),F(t,12),F(GT))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:WT}),t})(),Cs=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllAirQuality(){return this.http.get(this.baseUrl+"getAllAirQuality")}predictPm25(e){return this.http.post(this.baseUrl+"airQuality/predict/pm25",e)}predictPm10(e){return this.http.post(this.baseUrl+"airQuality/predict/pm10",e)}predictCo2(e){return this.http.post(this.baseUrl+"airQuality/predict/co2",e)}predictOzone(e){return this.http.post(this.baseUrl+"airQuality/predict/ozone",e)}predictNo2(e){return this.http.post(this.baseUrl+"airQuality/predict/no2",e)}calculateMedian(e){return this.http.get(this.baseUrl+"getMedianAirQuality"+e)}calculateMode(e){return this.http.get(this.baseUrl+"getModeAirQuality"+e)}calculateAvgByDateRange(e){return this.http.get(this.baseUrl+"getAQAverage"+e.factor+"ByDateRange?"+e.dateRange)}getCorrelation(e){return this.http.get(`${this.baseUrl}airQuality/correlation/${e}`)}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_a=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllMetrological(){return this.http.get(this.baseUrl+"getAllMetrological")}predictTemperature(e){return this.http.post(this.baseUrl+"airQuality/predict/temperature",e)}predictHumidity(e){return this.http.post(this.baseUrl+"airQuality/predict/humidity",e)}predictWindSpeed(e){return this.http.post(this.baseUrl+"airQuality/predict/windSpeed",e)}predictPrecipitation(e){return this.http.post(this.baseUrl+"airQuality/predict/precipitation",e)}calculateMedian(e){return this.http.get(this.baseUrl+"getMedianMetrological"+e)}calculateMode(e){return this.http.get(this.baseUrl+"getModeMetrological"+e)}calculateAvgByDateRange(e){return this.http.get(this.baseUrl+"getAverage"+e.factor+"ByDateRange?"+e.dateRange)}getCorrelation(e){return this.http.get(`${this.baseUrl}metrological/correlation/${e}`)}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var J0=te(407);let a9=(()=>{class t{constructor(){}ngOnInit(){this.initializeMap(),this.addMarker(6.9271,79.8612,"Colombo"),this.addMarker(6.0535,80.217,"Galle"),this.addMarker(5.948,80.5352,"Matara"),this.addMarker(6.124,81.1185,"Hambantota")}initializeMap(){this.map=J0.map("map",{center:[7.8731,80.7718],zoom:8}),J0.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(this.map)}addMarker(e,i,r){J0.marker([e,i]).addTo(this.map).bindPopup(r).openPopup()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-map"]],decls:1,vars:0,consts:[["id","map",2,"height","600px"]],template:function(i,r){1&i&&A(0,"div",0)}})}return t})();function l9(t,n){1&t&&(p(0,"div",50),A(1,"img",51),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function c9(t,n){if(1&t){const e=vn();p(0,"div",52)(1,"div",53)(2,"h4"),m(3),f(),p(4,"h5"),m(5),f(),A(6,"p",54),f(),p(7,"div",55)(8,"button",56),H("click",function(){return ct(e),dt(he().like())}),A(9,"i",57),m(10),f()()()}if(2&t){const e=n.$implicit,i=he();M(3),j(e.title),M(2),bt("Issued at ",e.dateTime,""),M(1),T("innerHTML",e.description,Yr),M(4),Bb(" ",i.isLiked?"Liked":"Like"," ",e.likes,"")}}const d9=function(t,n){return{"theme-light":t,"theme-dark":n}};let u9=(()=>{class t{constructor(e,i,r,o,s,a){this.themeService=e,this.sanitizer=i,this.forecastService=r,this.matSnackBar=o,this.airQualityService=s,this.metrologicalService=a,this.isLiked=!1,this.isLoading=!0,this.avgTemperature=0,this.avgHumidity=0,this.avgWindSpeed=0,this.avgCo2=0,this.avgPm10=0,this.avgPm25=0,this.avgO3=0,this.avgNo2=0,this.themeSubscription=this.themeService.getThemeObservable().subscribe(c=>{this.isDarkMode=c})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){this.loadForecast(),this.checkLike(),this.loadAverageValues()}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}loadForecast(){this.isLoading=!0,this.forecastService.getForecast().subscribe(e=>{this.isLoading=!1,e.length>0&&1==e[0].visible?(this.forecastData=e,this.forecastData.description=this.sanitizer.bypassSecurityTrustHtml(this.forecastData.description)):this.forecastData=[{id:1,title:"AIR QUALITY FORECAST ALERT",dateTime:this.loadDate(),description:"SEEMS CURRENTLY NO DATA AVAILABLE OR WE ARE WORKING ON IT. SORRY FOR THE INCONVENIENCE",likes:0}]})}like(){let e;this.isLiked=!this.isLiked,this.forecastService.getForecast().subscribe(i=>{e=parseInt(i[0].likes),this.isLiked?(localStorage.setItem("forecast-like",JSON.stringify(!0)),e++):(localStorage.setItem("forecast-like",JSON.stringify(!1)),e-=1),this.forecastService.likeForecast({id:1,title:i.title,dateTime:i.dateTime,description:i.description,likes:e,visible:i.visible}).subscribe(r=>{this.matSnackBar.open(this.isLiked?"Liked Forecast":"Disliked Forecast","OK",{duration:1500}),this.loadForecast()})})}checkLike(){this.isLiked="true"==localStorage.getItem("forecast-like")}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:1500})}loadAverageValues(){this.calculateTemperature(),this.calculateHumidity(),this.calculateWindSpeed(),this.calculateCo2(),this.calculatePm10(),this.calculatePm25(),this.calculateO3(),this.calculateNo2()}calculateTemperature(){let e=0;return this.metrologicalService.getAllMetrological().subscribe(i=>{let r=i.map(o=>o.temperature).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgTemperature=e}),this.avgTemperature}calculateHumidity(){let e=0;return this.metrologicalService.getAllMetrological().subscribe(i=>{let r=i.map(o=>o.humidity).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgHumidity=e}),this.avgHumidity}calculateWindSpeed(){let e=0;return this.metrologicalService.getAllMetrological().subscribe(i=>{let r=i.map(o=>o.windSpeed).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgWindSpeed=e}),this.avgWindSpeed}calculateCo2(){let e=0;return this.airQualityService.getAllAirQuality().subscribe(i=>{let r=i.map(o=>o.co2).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgCo2=e}),this.avgCo2}calculatePm10(){let e=0;return this.airQualityService.getAllAirQuality().subscribe(i=>{let r=i.map(o=>o.pm10).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgPm10=e}),this.avgPm10}calculatePm25(){let e=0;return this.airQualityService.getAllAirQuality().subscribe(i=>{let r=i.map(o=>o.pm25).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgPm25=e}),this.avgPm25}calculateO3(){let e=0;return this.airQualityService.getAllAirQuality().subscribe(i=>{let r=i.map(o=>o.ozone).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgO3=e}),this.avgO3}calculateNo2(){let e=0;return this.airQualityService.getAllAirQuality().subscribe(i=>{let r=i.map(o=>o.no2).splice(-100);r.forEach(o=>{let s=parseFloat(o);e+=s}),e/=r.length,this.avgNo2=e}),this.avgNo2}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(_l),x(k0),x(Qt),x(Cs),x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-home"]],decls:139,vars:38,consts:[["class","loading-screen",4,"ngIf"],[3,"ngClass"],[1,"bg"],[1,"container"],[1,"row"],[1,"col-12","col-md-6","col-lg-8"],[1,"content-loader"],[1,"top-carousal"],["id","carouselExampleAutoplaying","data-bs-ride","carousel",1,"carousel","slide"],[1,"carousel-inner"],[1,"carousel-item","active"],["src","./assets/images/home/carousal-1.jpg","alt","banner",1,"d-block","w-100"],[1,"carousel-item"],["src","./assets/images/home/carousal-2.jpg","alt","banner",1,"d-block","w-100"],["src","./assets/images/home/carousal-3.jpg","alt","banner",1,"d-block","w-100"],["type","button","data-bs-target","#carouselExampleAutoplaying","data-bs-slide","prev",1,"carousel-control-prev"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"visually-hidden"],["type","button","data-bs-target","#carouselExampleAutoplaying","data-bs-slide","next",1,"carousel-control-next"],["aria-hidden","true",1,"carousel-control-next-icon"],[1,"card-container"],["class","card",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-lg-4"],[1,"map-loader"],[2,"width","100%"],[1,"content-wrapper"],[1,"col-12","col-sm-6","col-md-3"],[1,"title-1"],[1,"hr-1"],[1,"image-wrapper"],["href","https://www.data.jma.go.jp/mscweb/data/himawari/sat_img.php?area=ha5","target","_blank"],["src","./assets/images/home/satellite.jpg","alt","satellite",1,"img-fluid"],[1,"d-flex","summary-stats"],[1,"icon"],["src","./assets/images/shared/temp-icon.png","alt","temperature","width","50","height","50"],[1,"d-flex","flex-column","justify-content-center","h-100"],["src","./assets/images/shared/humidity-icon.png","alt","humidity","width","50","height","50"],["src","./assets/images/shared/wind-icon.png","alt","wind speed","width","50","height","50"],[2,"padding","0 30px"],[1,"d-flex","align-items-center","justify-content","center"],[1,"content"],[1,"title-2"],["href","https://www.meteo.gov.lk/index.php?lang=en","target","_blank"],["src","./assets/images/home/forecast.jpg","alt","forecast",1,"img-fluid"],["href","https://www.meteo.gov.lk/index.php?option=com_content&view=article&id=102&Itemid=360&lang=en","target","_blank"],["src","./assets/images/home/weathermap.jpg","alt","forecast",1,"img-fluid"],["href","https://www.meteo.gov.lk/index.php?option=com_content&view=article&id=94&Itemid=310&lang=en","target","_blank"],["src","./assets/images/home/climate.jpg","alt","forecast",1,"img-fluid"],["href","https://www.meteo.gov.lk/index.php?option=com_content&view=article&id=28&Itemid=301&lang=en","target","_blank"],["src","./assets/images/home/agro.jpg","alt","forecast",1,"img-fluid"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"card"],[1,"card-body"],[3,"innerHTML"],[1,"card-bottom"],[1,"button-1",2,"margin","0 0 10px 10px",3,"click"],["aria-hidden","true",1,"fa","fa-thumbs-up"]],template:function(i,r){1&i&&(U(0,l9,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10),A(11,"img",11),f(),p(12,"div",12),A(13,"img",13),f(),p(14,"div",12),A(15,"img",14),f()(),p(16,"button",15),A(17,"span",16),p(18,"span",17),m(19,"Previous"),f()(),p(20,"button",18),A(21,"span",19),p(22,"span",17),m(23,"Next"),f()()()(),p(24,"h3"),m(25,"AIR QUALITY FORECASTS"),f(),p(26,"div",20),U(27,c9,11,5,"div",21),f()()(),p(28,"div",22)(29,"div",23)(30,"div",24),A(31,"app-map"),f()()()()(),p(32,"div",25)(33,"div",3)(34,"div",4)(35,"div",26)(36,"div",27),m(37,"SATELLITE IMAGES"),f(),A(38,"div",28),p(39,"div",29)(40,"a",30),A(41,"img",31),f(),p(42,"span"),m(43,"Courtesy of Himawari Satellite"),f()()(),p(44,"div",26)(45,"div",27),m(46,"LAST 24 HOURS"),f(),A(47,"div",28),p(48,"div",32)(49,"div",33),A(50,"img",34),f(),p(51,"div",35)(52,"p"),m(53,"Temperature"),f(),p(54,"h5"),m(55),jn(56,"number"),f()()(),p(57,"div",32)(58,"div",33),A(59,"img",36),f(),p(60,"div",35)(61,"p"),m(62,"Humidity"),f(),p(63,"h5"),m(64),jn(65,"number"),f()()(),p(66,"div",32)(67,"div",33),A(68,"img",37),f(),p(69,"div",35)(70,"p"),m(71,"Wind Speed"),f(),p(72,"h5"),m(73),jn(74,"number"),f()()()(),p(75,"div",26)(76,"div",27),m(77,"LATEST AVERAGE"),f(),A(78,"div",28),p(79,"div",38)(80,"div",39)(81,"h5"),m(82,"PM10 :\xa0"),f(),p(83,"h5"),m(84),jn(85,"number"),f()(),p(86,"div",39)(87,"h5"),m(88,"PM2.5 :\xa0"),f(),p(89,"h5"),m(90),jn(91,"number"),f()(),p(92,"div",39)(93,"h5"),m(94,"Co2 :\xa0"),f(),p(95,"h5"),m(96),jn(97,"number"),f()(),p(98,"div",39)(99,"h5"),m(100,"O3 :\xa0"),f(),p(101,"h5"),m(102),jn(103,"number"),f()(),p(104,"div",39)(105,"h5"),m(106,"NO2 :\xa0"),f(),p(107,"h5"),m(108),jn(109,"number"),f()()()(),A(110,"div",26),f(),p(111,"div",40)(112,"div",27),m(113,"QUICK LINKS"),f(),p(114,"div",4)(115,"div",26)(116,"div",41),m(117,"WEATHER FORECAST"),f(),p(118,"div",29)(119,"a",42),A(120,"img",43),f()()(),p(121,"div",26)(122,"div",41),m(123,"WEATHER MAP"),f(),p(124,"div",29)(125,"a",44),A(126,"img",45),f()()(),p(127,"div",26)(128,"div",41),m(129,"SRI LANKA CLIMATE"),f(),p(130,"div",29)(131,"a",46),A(132,"img",47),f()()(),p(133,"div",26)(134,"div",41),m(135,"AGRO BULLETIN"),f(),p(136,"div",29)(137,"a",48),A(138,"img",49),f()()()()()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("ngClass",vo(35,d9,!r.isDarkMode,r.isDarkMode)),M(26),T("ngForOf",r.forecastData),M(28),j(bo(56,11,r.avgTemperature,"1.2-4")),M(9),j(bo(65,14,r.avgHumidity,"1.2-4")),M(9),j(bo(74,17,r.avgWindSpeed,"1.2-4")),M(11),j(bo(85,20,r.avgPm10,"1.2-4")),M(6),j(bo(91,23,r.avgPm25,"1.2-4")),M(6),j(bo(97,26,r.avgCo2,"1.2-4")),M(6),j(bo(103,29,r.avgO3,"1.2-4")),M(6),j(bo(109,32,r.avgNo2,"1.2-4")))},dependencies:[Ji,Dt,Le,a9,vm],styles:[".map-loader[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.content-loader[_ngcontent-%COMP%] .top-carousal[_ngcontent-%COMP%]{margin-bottom:22px}.content-loader[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{background-color:var(--color-surface-mixed-100);border:1px solid var(--color-primary-600)}.content-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:200px;background-color:var(--color-primary-600);margin-top:20px}.content-wrapper[_ngcontent-%COMP%] .title-1[_ngcontent-%COMP%]{color:var(--color-text-200);font-size:20px;text-align:center}.content-wrapper[_ngcontent-%COMP%] .hr-1[_ngcontent-%COMP%]{width:100%;height:2px;background-color:var(--color-primary-400);margin:5px 0 15px}.content-wrapper[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;padding:15px;background-color:var(--color-surface-mixed-200)}.content-wrapper[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.content-wrapper[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-size:12px;color:var(--color-text-200)}.content-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:100%;background-color:var(--color-surface-mixed-200);min-height:200px;margin-top:20px;padding:2vw}.content-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title-2[_ngcontent-%COMP%]{color:var(--color-text-100);font-size:14px;text-align:center;margin-bottom:10px;font-weight:700}.content-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .image-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.content-wrapper[_ngcontent-%COMP%] .summary-stats[_ngcontent-%COMP%]{padding:0 25px}.content-wrapper[_ngcontent-%COMP%] .summary-stats[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:30px}.content-wrapper[_ngcontent-%COMP%] .summary-stats[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.content-wrapper[_ngcontent-%COMP%] .summary-stats[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}@media screen and (max-width: 576px){.content-wrapper[_ngcontent-%COMP%] .title-1[_ngcontent-%COMP%]{margin-top:10px}}"]})}return t})();function h9(t,n){}class gg{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 qT=(()=>{class t extends ug{constructor(e,i,r,o,s,a,c,d){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=h=>{this._portalOutlet.hasAttached();const _=this._portalOutlet.attachDomPortal(h);return this._contentAttached(),_},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||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 i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=lh(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=lh();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=lh())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(fh),x(Oe,8),x(gg),x(hh),x(_e),x(Dh),x(Dl))},t.\u0275cmp=G({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&tn(Ml,7),2&e){let r;$e(r=We())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&tt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[ye],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&U(0,h9,0,0,"ng-template",0)},dependencies:[Ml],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class ew{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new Q,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!nr(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const YT=new Z("DialogScrollStrategy"),f9=new Z("DialogData"),p9=new Z("DefaultDialogConfig"),g9={provide:YT,deps:[gr],useFactory:function m9(t){return()=>t.scrollStrategies.block()}};let _9=0,ZT=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Q,this._afterOpenedAtThisLevel=new Q,this._ariaHiddenElements=new Map,this.afterAllClosed=Hu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Fr(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new gg,...i}).id=i.id||"cdk-dialog-"+_9++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new ew(s,i),c=this._attachContainer(s,a,i);return a.containerInstance=c,this._attachDialogContent(e,a,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){tw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){tw(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),tw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new xh({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&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:gg,useValue:r},{provide:ew,useValue:i},{provide:Dh,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=qT;const c=new ga(a,r.viewContainerRef,_n.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof Kr){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new dg(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new ga(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:f9,useValue:e.data},{provide:ew,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Ri,null,{optional:!0}))&&a.push({provide:Ri,useValue:{value:e.direction,change:pe()}}),_n.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(F(gr),F(_n),F(p9,8),F(t,12),F(pg),F(YT))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();function tw(t,n){let e=t.length;for(;e--;)n(t[e])}let v9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[ZT,g9],imports:[wd,bd,z0,bd]}),t})();function b9(t,n){}class _g{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 nw="mdc-dialog--open",KT="mdc-dialog--opening",QT="mdc-dialog--closing";let C9=(()=>{class t extends qT{constructor(e,i,r,o,s,a,c,d){super(e,i,r,o,s,a,c,d),this._animationStateChanged=new ae}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(fh),x(Oe,8),x(_g),x(hh),x(_e),x(Dh),x(Dl))},t.\u0275cmp=G({type:t,selectors:[["ng-component"]],features:[ye],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();const XT="--mat-dialog-transition-duration";function JT(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?xl(t.substring(0,t.length-2)):t.endsWith("s")?1e3*xl(t.substring(0,t.length-1)):"0"===t?0:null}let x9=(()=>{class t extends C9{constructor(e,i,r,o,s,a,c,d,h){super(e,i,r,o,s,a,c,h),this._animationMode=d,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?JT(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?JT(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(XT,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(KT,nw)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(nw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(nw),this._animationsEnabled?(this._hostElement.style.setProperty(XT,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(QT)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(KT,QT)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(fh),x(Oe,8),x(_g),x(hh),x(_e),x(Dh),x(Pr,8),x(Dl))},t.\u0275cmp=G({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,i){2&e&&(ls("id",i._config.id),tt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!i._animationsEnabled))},features:[ye],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(p(0,"div",0)(1,"div",1),U(2,b9,0,0,"ng-template",2),f()())},dependencies:[Ml],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}.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__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{display:block;width:100%;height:100%}.mat-mdc-dialog-container{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, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.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}),t})();class D9{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Q,this._beforeClosed=new Q,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(qt(r=>"opened"===r.state),On(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(qt(r=>"closed"===r.state),On(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),fi(this.backdropClick(),this.keydownEvents().pipe(qt(r=>27===r.keyCode&&!this.disableClose&&!nr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function M9(t,n,e){t._closeInteractionType=n,t.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(qt(e=>"closing"===e.state),On(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const S9=new Z("MatMdcDialogData"),k9=new Z("mat-mdc-dialog-default-options"),eP=new Z("mat-mdc-dialog-scroll-strategy"),E9={provide:eP,deps:[gr],useFactory:function A9(t){return()=>t.scrollStrategies.block()}};let T9=0,P9=(()=>{class t{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,i,r,o,s,a,c,d,h,_){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=d,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Q,this._afterOpenedAtThisLevel=new Q,this._idPrefix="mat-dialog-",this.dialogConfigClass=_g,this.afterAllClosed=Hu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Fr(void 0))),this._scrollStrategy=a,this._dialog=i.get(ZT)}open(e,i){let r;(i={...this._defaultOptions||new _g,...i}).id=i.id||`${this._idPrefix}${T9++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:gg,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){ul()},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),iw=(()=>{class t extends P9{constructor(e,i,r,o,s,a,c,d){super(e,i,o,a,c,s,D9,x9,S9,d),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(F(gr),F(_n),F(Fu,8),F(k9,8),F(eP),F(t,12),F(pg),F(Pr,8))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),I9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),t})(),O9=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,i){2&e&&ne("mat-mdc-dialog-actions-align-center","center"===i.align)("mat-mdc-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),t})(),tP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[iw,E9],imports:[v9,wd,bd,Ln,Ln]}),t})();const F9=["matFormFieldNotchedOutline",""],R9=["*"],L9=["textField"],N9=["iconPrefixContainer"],B9=["textPrefixContainer"];function V9(t,n){1&t&&A(0,"span",19)}function z9(t,n){if(1&t){const e=vn();p(0,"label",17),H("cdkObserveContent",function(){return ct(e),dt(he(2)._refreshOutlineNotchWidth())}),Ut(1,1),U(2,V9,1,0,"span",18),f()}if(2&t){const e=he(2);T("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),tt("for",e._control.id)("aria-owns",e._control.id),M(2),T("ngIf",!e.hideRequiredMarker&&e._control.required)}}function H9(t,n){1&t&&U(0,z9,3,6,"label",16),2&t&&T("ngIf",he()._hasFloatingLabel())}function U9(t,n){1&t&&A(0,"div",20)}function j9(t,n){}function $9(t,n){1&t&&U(0,j9,0,0,"ng-template",22),2&t&&(he(2),T("ngTemplateOutlet",ta(1)))}function W9(t,n){if(1&t&&(p(0,"div",21),U(1,$9,1,1,"ng-template",9),f()),2&t){const e=he();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),M(1),T("ngIf",!e._forceDisplayInfixLabel())}}function G9(t,n){1&t&&(p(0,"div",23,24),Ut(2,2),f())}function q9(t,n){1&t&&(p(0,"div",25,26),Ut(2,3),f())}function Y9(t,n){}function Z9(t,n){1&t&&U(0,Y9,0,0,"ng-template",22),2&t&&(he(),T("ngTemplateOutlet",ta(1)))}function K9(t,n){1&t&&(p(0,"div",27),Ut(1,4),f())}function Q9(t,n){1&t&&(p(0,"div",28),Ut(1,5),f())}function X9(t,n){1&t&&A(0,"div",29)}function J9(t,n){1&t&&(p(0,"div",30),Ut(1,6),f()),2&t&&T("@transitionMessages",he()._subscriptAnimationState)}function eW(t,n){if(1&t&&(p(0,"mat-hint",34),m(1),f()),2&t){const e=he(2);T("id",e._hintLabelId),M(1),j(e.hintLabel)}}function tW(t,n){if(1&t&&(p(0,"div",31),U(1,eW,2,2,"mat-hint",32),Ut(2,7),A(3,"div",33),Ut(4,8),f()),2&t){const e=he();T("@transitionMessages",e._subscriptAnimationState),M(1),T("ngIf",e.hintLabel)}}const nW=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iW=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["mat-label"]]}),t})();const rW=new Z("MatError");let oW=0,vg=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+oW++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(ls("id",i.id),tt("align",null),ne("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),t})();const sW=new Z("MatPrefix"),iP=new Z("MatSuffix");let rP=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[nt([{provide:iP,useExisting:t}])]}),t})(),oP=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function aW(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(x(be))},t.\u0275dir=ee({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&ne("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),t})();const sP="mdc-line-ripple--active",bg="mdc-line-ripple--deactivating";let aP=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(bg);"opacity"===r.propertyName&&s&&o.remove(sP,bg)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(bg),e.add(sP)}deactivate(){this._elementRef.nativeElement.classList.add(bg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(_e))},t.\u0275dir=ee({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),lP=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,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")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(_e))},t.\u0275cmp=G({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&ne("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:F9,ngContentSelectors:R9,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(Ki(),A(0,"div",0),p(1,"div",1),Ut(2),f(),A(3,"div",2)),2&e&&(M(1),as("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const lW={transitionMessages:ws("transitionMessages",[eo("enter",un({opacity:1,transform:"translateY(0%)"})),Li("void => enter",[un({opacity:0,transform:"translateY(-5px)"}),ir("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t}),t})();const Mh=new Z("MatFormField"),cW=new Z("MAT_FORM_FIELD_DEFAULT_OPTIONS");let cP=0,jt=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=wt(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.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,i,r,o,s,a,c,d){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=c,this._document=d,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-"+cP++,this._hintLabelId="mat-mdc-hint-"+cP++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Q,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=Boolean(a?.hideRequiredMarker),a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),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(yt(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(),fi(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(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.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(yt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(yt(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 i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_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 i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){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 i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,s=r?.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"} * (${o+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Tn),x(_e),x(Ri),x(Dn),x(cW,8),x(Pr,8),x(Oe))},t.\u0275cmp=G({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(bi(r,Pt,5),bi(r,Pt,7),bi(r,yg,5),bi(r,sW,5),bi(r,iP,5),bi(r,rW,5),bi(r,vg,5)),2&e){let o;$e(o=We())&&(i._labelChildNonStatic=o.first),$e(o=We())&&(i._labelChildStatic=o.first),$e(o=We())&&(i._formFieldControl=o.first),$e(o=We())&&(i._prefixChildren=o),$e(o=We())&&(i._suffixChildren=o),$e(o=We())&&(i._errorChildren=o),$e(o=We())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(tn(L9,5),tn(N9,5),tn(B9,5),tn(oP,5),tn(lP,5),tn(aP,5)),2&e){let r;$e(r=We())&&(i._textField=r.first),$e(r=We())&&(i._iconPrefixContainer=r.first),$e(r=We())&&(i._textPrefixContainer=r.first),$e(r=We())&&(i._floatingLabel=r.first),$e(r=We())&&(i._notchedOutline=r.first),$e(r=We())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&ne("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[nt([{provide:Mh,useExisting:t}])],ngContentSelectors:iW,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[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"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(Ki(nW),U(0,H9,1,1,"ng-template",null,0,yS),p(2,"div",1,2),H("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),U(4,U9,1,0,"div",3),p(5,"div",4),U(6,W9,2,3,"div",5),U(7,G9,3,0,"div",6),U(8,q9,3,0,"div",7),p(9,"div",8),U(10,Z9,1,1,"ng-template",9),Ut(11),f(),U(12,K9,2,0,"div",10),U(13,Q9,2,0,"div",11),f(),U(14,X9,1,0,"div",12),f(),p(15,"div",13),U(16,J9,2,1,"div",14),U(17,tW,5,2,"div",15),f()),2&e&&(M(2),ne("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),M(2),T("ngIf",!i._hasOutline()&&!i._control.disabled),M(2),T("ngIf",i._hasOutline()),M(1),T("ngIf",i._hasIconPrefix),M(1),T("ngIf",i._hasTextPrefix),M(2),T("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),M(2),T("ngIf",i._hasTextSuffix),M(1),T("ngIf",i._hasIconSuffix),M(1),T("ngIf",!i._hasOutline()),M(1),ne("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),T("ngSwitch",i._getDisplayedMessages()),M(1),T("ngSwitchCase","error"),M(1),T("ngSwitchCase","hint"))},dependencies:[Le,Rk,rd,_m,Vj,vg,oP,lP,aP],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.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%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.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;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.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{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.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}.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{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.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-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-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}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}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}.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}[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-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}[dir=rtl] .mat-mdc-form-field{text-align:right}.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}.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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-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(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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)}'],encapsulation:2,data:{animation:[lW.transitionMessages]},changeDetection:0}),t})(),Sh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[Ln,fs,WE,Ln]}),t})();const hP=gd({passive:!0});let hW=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ar;const i=bs(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Q,s="cdk-text-field-autofilled",a=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,hP),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,hP)}}),o}stopMonitoring(e){const i=bs(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(F(Dn),F(_e))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();function rw(...t){const n=Uf(t),{args:e,keys:i}=fA(t),r=new Ft(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let c=s,d=s;for(let h=0;h{_||(_=!0,d--),a[h]=v},()=>c--,void 0,()=>{(!c||!_)&&(d||o.next(i?pA(i,a):a),o.complete())}))}});return n?r.pipe($y(n)):r}let fP=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(x(rs),x(be))},t.\u0275dir=ee({type:t}),t})(),Al=(()=>{class t extends fP{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275dir=ee({type:t,features:[ye]}),t})();const Nr=new Z("NgValueAccessor"),mW={provide:Nr,useExisting:rt(()=>bn),multi:!0},_W=new Z("CompositionEventMode");let bn=(()=>{class t extends fP{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function gW(){const t=ds()?ds().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.\u0275fac=function(e){return new(e||t)(x(rs),x(be),x(_W,8))},t.\u0275dir=ee({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,i){1&e&&H("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[nt([mW]),ye]}),t})();const vW=!1;function va(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function mP(t){return null!=t&&"number"==typeof t.length}const ii=new Z("NgValidators"),ba=new Z("NgAsyncValidators"),bW=/^(?=.{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 ue{static min(n){return function gP(t){return n=>{if(va(n.value)||va(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(va(n.value)||va(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return vP(n)}static requiredTrue(n){return function bP(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function yP(t){return va(t.value)||bW.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function wP(t){return n=>va(n.value)||!mP(n.value)?null:n.value.lengthmP(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function xP(t){if(!t)return wg;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(va(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return EP(n)}static composeAsync(n){return TP(n)}}function vP(t){return va(t.value)?{required:!0}:null}function wg(t){return null}function DP(t){return null!=t}function MP(t){const n=wu(t)?Xt(t):t;if(vW&&!Ob(n)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new $(-1101,e)}return n}function SP(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function kP(t,n){return n.map(e=>e(t))}function AP(t){return t.map(n=>function yW(t){return!t.validate}(n)?n:e=>n.validate(e))}function EP(t){if(!t)return null;const n=t.filter(DP);return 0==n.length?null:function(e){return SP(kP(e,n))}}function ow(t){return null!=t?EP(AP(t)):null}function TP(t){if(!t)return null;const n=t.filter(DP);return 0==n.length?null:function(e){return rw(kP(e,n).map(MP)).pipe(ve(SP))}}function sw(t){return null!=t?TP(AP(t)):null}function PP(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function IP(t){return t._rawValidators}function OP(t){return t._rawAsyncValidators}function aw(t){return t?Array.isArray(t)?t:[t]:[]}function Cg(t,n){return Array.isArray(t)?t.includes(n):t===n}function FP(t,n){const e=aw(n);return aw(t).forEach(r=>{Cg(e,r)||e.push(r)}),e}function RP(t,n){return aw(n).filter(e=>!Cg(t,e))}class LP{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(n){this._rawValidators=n||[],this._composedValidatorFn=ow(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=sw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ni extends LP{get formDirective(){return null}get path(){return null}}class xo extends LP{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class NP{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let At=(()=>{class t extends NP{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(xo,2))},t.\u0275dir=ee({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ne("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ye]}),t})(),Bt=(()=>{class t extends NP{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Ni,10))},t.\u0275dir=ee({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&ne("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ye]}),t})();function BP(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const dw=!1,kh="VALID",Dg="INVALID",Cd="PENDING",Ah="DISABLED";function uw(t){return(Mg(t)?t.validators:t)||null}function hw(t,n){return(Mg(n)?n.asyncValidators:t)||null}function Mg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function VP(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new $(1e3,dw?function DW(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new $(1001,dw?function MW(t,n){return`Cannot find form control ${BP(t,n)}`}(n,e):"")}function zP(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new $(1002,dw?function SW(t,n){return`Must supply a value for form control ${BP(t,n)}`}(n,r):"")})}class Sg{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===kh}get invalid(){return this.status===Dg}get pending(){return this.status==Cd}get disabled(){return this.status===Ah}get enabled(){return this.status!==Ah}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(FP(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(FP(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(RP(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(RP(n,this._rawAsyncValidators))}hasValidator(n){return Cg(this._rawValidators,n)}hasAsyncValidator(n){return Cg(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Cd,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ah,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=kh,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===Cd)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ah:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Cd,this._hasOwnPendingAsyncValidator=!0;const e=MP(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ae,this.statusChanges=new ae}_calculateStatus(){return this._allControlsDisabled()?Ah:this.errors?Dg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Cd)?Cd:this._anyControlsHaveStatus(Dg)?Dg:kh}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Mg(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function kW(t){return Array.isArray(t)?ow(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function AW(t){return Array.isArray(t)?sw(t):t||null}(this._rawAsyncValidators)}}class st extends Sg{constructor(n,e,i){super(uw(e),hw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){zP(this,!0,n),Object.keys(n).forEach(i=>{VP(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class HP extends st{}const El=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>Eh}),Eh="always";function kg(t,n){return[...n.path,t]}function Th(t,n,e=Eh){fw(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function TW(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&UP(t,n)})}(t,n),function IW(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function PW(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&UP(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function EW(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Ag(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Tg(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Eg(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function fw(t,n){const e=IP(t);null!==n.validator?t.setValidators(PP(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=OP(t);null!==n.asyncValidator?t.setAsyncValidators(PP(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Eg(n._rawValidators,r),Eg(n._rawAsyncValidators,r)}function Tg(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=IP(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=OP(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Eg(n._rawValidators,i),Eg(n._rawAsyncValidators,i),e}function UP(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function jP(t,n){fw(t,n)}function mw(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function $P(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function gw(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===bn?e=o:function RW(t){return Object.getPrototypeOf(t.constructor)===Al}(o)?i=o:r=o}),r||i||e||null}const NW={provide:Ni,useExisting:rt(()=>ya)},Ph=(()=>Promise.resolve())();let ya=(()=>{class t extends Ni{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ae,this.form=new st({},ow(e),sw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ph.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Th(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ph.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ph.then(()=>{const i=this._findContainer(e.path),r=new st({});jP(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ph.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ph.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,$P(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){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.\u0275fac=function(e){return new(e||t)(x(ii,10),x(ba,10),x(El,8))},t.\u0275dir=ee({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&H("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([NW]),ye]}),t})();function WP(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function GP(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const ie=class extends Sg{constructor(n=null,e,i){super(uw(e),hw(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Mg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=GP(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){WP(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){WP(this._onDisabledChange,n)}_forEachChild(n){}_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(n){GP(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let qP=(()=>{class t extends Ni{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return kg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275dir=ee({type:t,features:[ye]}),t})();const zW={provide:xo,useExisting:rt(()=>Pg)},ZP=(()=>Promise.resolve())();let Pg=(()=>{class t extends xo{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new ie,this._registered=!1,this.update=new ae,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gw(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),mw(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(){Th(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){ZP.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&id(i);ZP.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?kg(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(x(Ni,9),x(ii,10),x(ba,10),x(Nr,10),x(Tn,8),x(El,8))},t.\u0275dir=ee({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:[nt([zW]),ye,je]}),t})(),Vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const HW={provide:Nr,useExisting:rt(()=>Ig),multi:!0};let Ig=(()=>{class t extends Al{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275dir=ee({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&H("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[nt([HW]),ye]}),t})(),KP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({}),t})();const _w=new Z("NgModelWithFormControlWarning"),GW={provide:Ni,useExisting:rt(()=>at)};let at=(()=>{class t extends Ni{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ae,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tg(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 i=this.form.get(e.path);return Th(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ag(e.control||null,e,!1),function LW(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,$P(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Ag(i||null,e),(t=>t instanceof ie)(r)&&(Th(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);jP(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function OW(t,n){return Tg(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){fw(this.form,this),this._oldForm&&Tg(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(x(ii,10),x(ba,10),x(El,8))},t.\u0275dir=ee({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&H("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([GW]),ye,je]}),t})();const qW={provide:Ni,useExisting:rt(()=>Ih)};let Ih=(()=>{class t extends qP{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){eI(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(x(Ni,13),x(ii,10),x(ba,10))},t.\u0275dir=ee({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[nt([qW]),ye]}),t})();const YW={provide:Ni,useExisting:rt(()=>vw)};let vw=(()=>{class t extends Ni{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return kg(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){eI(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(x(Ni,13),x(ii,10),x(ba,10))},t.\u0275dir=ee({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[nt([YW]),ye]}),t})();function eI(t){return!(t instanceof Ih||t instanceof at||t instanceof vw)}const ZW={provide:xo,useExisting:rt(()=>It)};let It=(()=>{class t extends xo{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ae,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gw(0,o)}ngOnChanges(e){this._added||this._setUpControl(),mw(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return kg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(x(Ni,13),x(ii,10),x(ba,10),x(Nr,10),x(_w,8))},t.\u0275dir=ee({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[nt([ZW]),ye,je]}),t})(),Tl=(()=>{class t{constructor(){this._validator=wg}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):wg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,features:[je]}),t})();const rG={provide:ii,useExisting:rt(()=>Pl),multi:!0};let Pl=(()=>{class t extends Tl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=id,this.createValidator=e=>vP}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275dir=ee({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&tt("required",i._enabled?"":null)},inputs:{required:"required"},features:[nt([rG]),ye]}),t})(),hI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[KP]}),t})();class fI extends Sg{constructor(n,e,i){super(uw(e),hw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){zP(this,!1,n),n.forEach((i,r)=>{VP(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function pI(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let mI=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return pI(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new st(r,o)}record(e,i=null){const r=this._reduceControls(e);return new HP(r,i)}control(e,i,r){let o={};return this.useNonNullable?(pI(i)?o=i:(o.validators=i,o.asyncValidators=r),new ie(e,{...o,nonNullable:!0})):new ie(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new fI(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof ie||e instanceof Sg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dG=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:El,useValue:e.callSetDisabledState??Eh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[hI]}),t})(),gI=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_w,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:El,useValue:e.callSetDisabledState??Eh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[hI]}),t})();const _I=new Z("MAT_INPUT_VALUE_ACCESSOR"),uG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hG=0;const fG=H0(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Q}});let xi=(()=>{class t extends fG{get disabled(){return this._disabled}set disabled(e){this._disabled=wt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ue.required)??!1}set required(e){this._required=wt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&zE().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=wt(e)}constructor(e,i,r,o,s,a,c,d,h,_){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=d,this._formField=_,this._uid="mat-input-"+hG++,this.focused=!1,this.stateChanges=new Q,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(C=>zE().has(C)),this._iOSKeyupListener=C=>{const D=C.target;!D.value&&0===D.selectionStart&&0===D.selectionEnd&&(D.setSelectionRange(1,1),D.setSelectionRange(0,0))};const v=this._elementRef.nativeElement,y=v.nodeName.toLowerCase();this._inputValueAccessor=c||v,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&h.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===y,this._isTextarea="textarea"===y,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=v.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){uG.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.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.\u0275fac=function(e){return new(e||t)(x(be),x(Dn),x(xo,10),x(ya,8),x(at,8),x(mh),x(_I,10),x(hW),x(_e),x(Mh,8))},t.\u0275dir=ee({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&H("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ls("id",i.id)("disabled",i.disabled)("required",i.required),tt("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),ne("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._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:[nt([{provide:yg,useExisting:t}]),ye,je]}),t})(),vI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[Ln,Sh,Sh,fW,Ln]}),t})();var bI=[{code:"AF",code3:"AFG",name:"Afghanistan",number:"004"},{code:"AL",code3:"ALB",name:"Albania",number:"008"},{code:"DZ",code3:"DZA",name:"Algeria",number:"012"},{code:"AS",code3:"ASM",name:"American Samoa",number:"016"},{code:"AD",code3:"AND",name:"Andorra",number:"020"},{code:"AO",code3:"AGO",name:"Angola",number:"024"},{code:"AI",code3:"AIA",name:"Anguilla",number:"660"},{code:"AQ",code3:"ATA",name:"Antarctica",number:"010"},{code:"AG",code3:"ATG",name:"Antigua and Barbuda",number:"028"},{code:"AR",code3:"ARG",name:"Argentina",number:"032"},{code:"AM",code3:"ARM",name:"Armenia",number:"051"},{code:"AW",code3:"ABW",name:"Aruba",number:"533"},{code:"AU",code3:"AUS",name:"Australia",number:"036"},{code:"AT",code3:"AUT",name:"Austria",number:"040"},{code:"AZ",code3:"AZE",name:"Azerbaijan",number:"031"},{code:"BS",code3:"BHS",name:"Bahamas (the)",number:"044"},{code:"BH",code3:"BHR",name:"Bahrain",number:"048"},{code:"BD",code3:"BGD",name:"Bangladesh",number:"050"},{code:"BB",code3:"BRB",name:"Barbados",number:"052"},{code:"BY",code3:"BLR",name:"Belarus",number:"112"},{code:"BE",code3:"BEL",name:"Belgium",number:"056"},{code:"BZ",code3:"BLZ",name:"Belize",number:"084"},{code:"BJ",code3:"BEN",name:"Benin",number:"204"},{code:"BM",code3:"BMU",name:"Bermuda",number:"060"},{code:"BT",code3:"BTN",name:"Bhutan",number:"064"},{code:"BO",code3:"BOL",name:"Bolivia (Plurinational State of)",number:"068"},{code:"BQ",code3:"BES",name:"Bonaire, Sint Eustatius and Saba",number:"535"},{code:"BA",code3:"BIH",name:"Bosnia and Herzegovina",number:"070"},{code:"BW",code3:"BWA",name:"Botswana",number:"072"},{code:"BV",code3:"BVT",name:"Bouvet Island",number:"074"},{code:"BR",code3:"BRA",name:"Brazil",number:"076"},{code:"IO",code3:"IOT",name:"British Indian Ocean Territory (the)",number:"086"},{code:"BN",code3:"BRN",name:"Brunei Darussalam",number:"096"},{code:"BG",code3:"BGR",name:"Bulgaria",number:"100"},{code:"BF",code3:"BFA",name:"Burkina Faso",number:"854"},{code:"BI",code3:"BDI",name:"Burundi",number:"108"},{code:"CV",code3:"CPV",name:"Cabo Verde",number:"132"},{code:"KH",code3:"KHM",name:"Cambodia",number:"116"},{code:"CM",code3:"CMR",name:"Cameroon",number:"120"},{code:"CA",code3:"CAN",name:"Canada",number:"124"},{code:"KY",code3:"CYM",name:"Cayman Islands (the)",number:"136"},{code:"CF",code3:"CAF",name:"Central African Republic (the)",number:"140"},{code:"TD",code3:"TCD",name:"Chad",number:"148"},{code:"CL",code3:"CHL",name:"Chile",number:"152"},{code:"CN",code3:"CHN",name:"China",number:"156"},{code:"CX",code3:"CXR",name:"Christmas Island",number:"162"},{code:"CC",code3:"CCK",name:"Cocos (Keeling) Islands (the)",number:"166"},{code:"CO",code3:"COL",name:"Colombia",number:"170"},{code:"KM",code3:"COM",name:"Comoros (the)",number:"174"},{code:"CD",code3:"COD",name:"Congo (the Democratic Republic of the)",number:"180"},{code:"CG",code3:"COG",name:"Congo (the)",number:"178"},{code:"CK",code3:"COK",name:"Cook Islands (the)",number:"184"},{code:"CR",code3:"CRI",name:"Costa Rica",number:"188"},{code:"HR",code3:"HRV",name:"Croatia",number:"191"},{code:"CU",code3:"CUB",name:"Cuba",number:"192"},{code:"CW",code3:"CUW",name:"Cura\xe7ao",number:"531"},{code:"CY",code3:"CYP",name:"Cyprus",number:"196"},{code:"CZ",code3:"CZE",name:"Czechia",number:"203"},{code:"CI",code3:"CIV",name:"C\xf4te d'Ivoire",number:"384"},{code:"DK",code3:"DNK",name:"Denmark",number:"208"},{code:"DJ",code3:"DJI",name:"Djibouti",number:"262"},{code:"DM",code3:"DMA",name:"Dominica",number:"212"},{code:"DO",code3:"DOM",name:"Dominican Republic (the)",number:"214"},{code:"EC",code3:"ECU",name:"Ecuador",number:"218"},{code:"EG",code3:"EGY",name:"Egypt",number:"818"},{code:"SV",code3:"SLV",name:"El Salvador",number:"222"},{code:"GQ",code3:"GNQ",name:"Equatorial Guinea",number:"226"},{code:"ER",code3:"ERI",name:"Eritrea",number:"232"},{code:"EE",code3:"EST",name:"Estonia",number:"233"},{code:"SZ",code3:"SWZ",name:"Eswatini",number:"748"},{code:"ET",code3:"ETH",name:"Ethiopia",number:"231"},{code:"FK",code3:"FLK",name:"Falkland Islands (the) [Malvinas]",number:"238"},{code:"FO",code3:"FRO",name:"Faroe Islands (the)",number:"234"},{code:"FJ",code3:"FJI",name:"Fiji",number:"242"},{code:"FI",code3:"FIN",name:"Finland",number:"246"},{code:"FR",code3:"FRA",name:"France",number:"250"},{code:"GF",code3:"GUF",name:"French Guiana",number:"254"},{code:"PF",code3:"PYF",name:"French Polynesia",number:"258"},{code:"TF",code3:"ATF",name:"French Southern Territories (the)",number:"260"},{code:"GA",code3:"GAB",name:"Gabon",number:"266"},{code:"GM",code3:"GMB",name:"Gambia (the)",number:"270"},{code:"GE",code3:"GEO",name:"Georgia",number:"268"},{code:"DE",code3:"DEU",name:"Germany",number:"276"},{code:"GH",code3:"GHA",name:"Ghana",number:"288"},{code:"GI",code3:"GIB",name:"Gibraltar",number:"292"},{code:"GR",code3:"GRC",name:"Greece",number:"300"},{code:"GL",code3:"GRL",name:"Greenland",number:"304"},{code:"GD",code3:"GRD",name:"Grenada",number:"308"},{code:"GP",code3:"GLP",name:"Guadeloupe",number:"312"},{code:"GU",code3:"GUM",name:"Guam",number:"316"},{code:"GT",code3:"GTM",name:"Guatemala",number:"320"},{code:"GG",code3:"GGY",name:"Guernsey",number:"831"},{code:"GN",code3:"GIN",name:"Guinea",number:"324"},{code:"GW",code3:"GNB",name:"Guinea-Bissau",number:"624"},{code:"GY",code3:"GUY",name:"Guyana",number:"328"},{code:"HT",code3:"HTI",name:"Haiti",number:"332"},{code:"HM",code3:"HMD",name:"Heard Island and McDonald Islands",number:"334"},{code:"VA",code3:"VAT",name:"Holy See (the)",number:"336"},{code:"HN",code3:"HND",name:"Honduras",number:"340"},{code:"HK",code3:"HKG",name:"Hong Kong",number:"344"},{code:"HU",code3:"HUN",name:"Hungary",number:"348"},{code:"IS",code3:"ISL",name:"Iceland",number:"352"},{code:"IN",code3:"IND",name:"India",number:"356"},{code:"ID",code3:"IDN",name:"Indonesia",number:"360"},{code:"IR",code3:"IRN",name:"Iran (Islamic Republic of)",number:"364"},{code:"IQ",code3:"IRQ",name:"Iraq",number:"368"},{code:"IE",code3:"IRL",name:"Ireland",number:"372"},{code:"IM",code3:"IMN",name:"Isle of Man",number:"833"},{code:"IL",code3:"ISR",name:"Israel",number:"376"},{code:"IT",code3:"ITA",name:"Italy",number:"380"},{code:"JM",code3:"JAM",name:"Jamaica",number:"388"},{code:"JP",code3:"JPN",name:"Japan",number:"392"},{code:"JE",code3:"JEY",name:"Jersey",number:"832"},{code:"JO",code3:"JOR",name:"Jordan",number:"400"},{code:"KZ",code3:"KAZ",name:"Kazakhstan",number:"398"},{code:"KE",code3:"KEN",name:"Kenya",number:"404"},{code:"KI",code3:"KIR",name:"Kiribati",number:"296"},{code:"KP",code3:"PRK",name:"Korea (the Democratic People's Republic of)",number:"408"},{code:"KR",code3:"KOR",name:"Korea (the Republic of)",number:"410"},{code:"KW",code3:"KWT",name:"Kuwait",number:"414"},{code:"KG",code3:"KGZ",name:"Kyrgyzstan",number:"417"},{code:"LA",code3:"LAO",name:"Lao People's Democratic Republic (the)",number:"418"},{code:"LV",code3:"LVA",name:"Latvia",number:"428"},{code:"LB",code3:"LBN",name:"Lebanon",number:"422"},{code:"LS",code3:"LSO",name:"Lesotho",number:"426"},{code:"LR",code3:"LBR",name:"Liberia",number:"430"},{code:"LY",code3:"LBY",name:"Libya",number:"434"},{code:"LI",code3:"LIE",name:"Liechtenstein",number:"438"},{code:"LT",code3:"LTU",name:"Lithuania",number:"440"},{code:"LU",code3:"LUX",name:"Luxembourg",number:"442"},{code:"MO",code3:"MAC",name:"Macao",number:"446"},{code:"MG",code3:"MDG",name:"Madagascar",number:"450"},{code:"MW",code3:"MWI",name:"Malawi",number:"454"},{code:"MY",code3:"MYS",name:"Malaysia",number:"458"},{code:"MV",code3:"MDV",name:"Maldives",number:"462"},{code:"ML",code3:"MLI",name:"Mali",number:"466"},{code:"MT",code3:"MLT",name:"Malta",number:"470"},{code:"MH",code3:"MHL",name:"Marshall Islands (the)",number:"584"},{code:"MQ",code3:"MTQ",name:"Martinique",number:"474"},{code:"MR",code3:"MRT",name:"Mauritania",number:"478"},{code:"MU",code3:"MUS",name:"Mauritius",number:"480"},{code:"YT",code3:"MYT",name:"Mayotte",number:"175"},{code:"MX",code3:"MEX",name:"Mexico",number:"484"},{code:"FM",code3:"FSM",name:"Micronesia (Federated States of)",number:"583"},{code:"MD",code3:"MDA",name:"Moldova (the Republic of)",number:"498"},{code:"MC",code3:"MCO",name:"Monaco",number:"492"},{code:"MN",code3:"MNG",name:"Mongolia",number:"496"},{code:"ME",code3:"MNE",name:"Montenegro",number:"499"},{code:"MS",code3:"MSR",name:"Montserrat",number:"500"},{code:"MA",code3:"MAR",name:"Morocco",number:"504"},{code:"MZ",code3:"MOZ",name:"Mozambique",number:"508"},{code:"MM",code3:"MMR",name:"Myanmar",number:"104"},{code:"NA",code3:"NAM",name:"Namibia",number:"516"},{code:"NR",code3:"NRU",name:"Nauru",number:"520"},{code:"NP",code3:"NPL",name:"Nepal",number:"524"},{code:"NL",code3:"NLD",name:"Netherlands (the)",number:"528"},{code:"NC",code3:"NCL",name:"New Caledonia",number:"540"},{code:"NZ",code3:"NZL",name:"New Zealand",number:"554"},{code:"NI",code3:"NIC",name:"Nicaragua",number:"558"},{code:"NE",code3:"NER",name:"Niger (the)",number:"562"},{code:"NG",code3:"NGA",name:"Nigeria",number:"566"},{code:"NU",code3:"NIU",name:"Niue",number:"570"},{code:"NF",code3:"NFK",name:"Norfolk Island",number:"574"},{code:"MP",code3:"MNP",name:"Northern Mariana Islands (the)",number:"580"},{code:"NO",code3:"NOR",name:"Norway",number:"578"},{code:"OM",code3:"OMN",name:"Oman",number:"512"},{code:"PK",code3:"PAK",name:"Pakistan",number:"586"},{code:"PW",code3:"PLW",name:"Palau",number:"585"},{code:"PS",code3:"PSE",name:"Palestine, State of",number:"275"},{code:"PA",code3:"PAN",name:"Panama",number:"591"},{code:"PG",code3:"PNG",name:"Papua New Guinea",number:"598"},{code:"PY",code3:"PRY",name:"Paraguay",number:"600"},{code:"PE",code3:"PER",name:"Peru",number:"604"},{code:"PH",code3:"PHL",name:"Philippines (the)",number:"608"},{code:"PN",code3:"PCN",name:"Pitcairn",number:"612"},{code:"PL",code3:"POL",name:"Poland",number:"616"},{code:"PT",code3:"PRT",name:"Portugal",number:"620"},{code:"PR",code3:"PRI",name:"Puerto Rico",number:"630"},{code:"QA",code3:"QAT",name:"Qatar",number:"634"},{code:"MK",code3:"MKD",name:"Republic of North Macedonia",number:"807"},{code:"RO",code3:"ROU",name:"Romania",number:"642"},{code:"RU",code3:"RUS",name:"Russian Federation (the)",number:"643"},{code:"RW",code3:"RWA",name:"Rwanda",number:"646"},{code:"RE",code3:"REU",name:"R\xe9union",number:"638"},{code:"BL",code3:"BLM",name:"Saint Barth\xe9lemy",number:"652"},{code:"SH",code3:"SHN",name:"Saint Helena, Ascension and Tristan da Cunha",number:"654"},{code:"KN",code3:"KNA",name:"Saint Kitts and Nevis",number:"659"},{code:"LC",code3:"LCA",name:"Saint Lucia",number:"662"},{code:"MF",code3:"MAF",name:"Saint Martin (French part)",number:"663"},{code:"PM",code3:"SPM",name:"Saint Pierre and Miquelon",number:"666"},{code:"VC",code3:"VCT",name:"Saint Vincent and the Grenadines",number:"670"},{code:"WS",code3:"WSM",name:"Samoa",number:"882"},{code:"SM",code3:"SMR",name:"San Marino",number:"674"},{code:"ST",code3:"STP",name:"Sao Tome and Principe",number:"678"},{code:"SA",code3:"SAU",name:"Saudi Arabia",number:"682"},{code:"SN",code3:"SEN",name:"Senegal",number:"686"},{code:"RS",code3:"SRB",name:"Serbia",number:"688"},{code:"SC",code3:"SYC",name:"Seychelles",number:"690"},{code:"SL",code3:"SLE",name:"Sierra Leone",number:"694"},{code:"SG",code3:"SGP",name:"Singapore",number:"702"},{code:"SX",code3:"SXM",name:"Sint Maarten (Dutch part)",number:"534"},{code:"SK",code3:"SVK",name:"Slovakia",number:"703"},{code:"SI",code3:"SVN",name:"Slovenia",number:"705"},{code:"SB",code3:"SLB",name:"Solomon Islands",number:"090"},{code:"SO",code3:"SOM",name:"Somalia",number:"706"},{code:"ZA",code3:"ZAF",name:"South Africa",number:"710"},{code:"GS",code3:"SGS",name:"South Georgia and the South Sandwich Islands",number:"239"},{code:"SS",code3:"SSD",name:"South Sudan",number:"728"},{code:"ES",code3:"ESP",name:"Spain",number:"724"},{code:"LK",code3:"LKA",name:"Sri Lanka",number:"144"},{code:"SD",code3:"SDN",name:"Sudan (the)",number:"729"},{code:"SR",code3:"SUR",name:"Suriname",number:"740"},{code:"SJ",code3:"SJM",name:"Svalbard and Jan Mayen",number:"744"},{code:"SE",code3:"SWE",name:"Sweden",number:"752"},{code:"CH",code3:"CHE",name:"Switzerland",number:"756"},{code:"SY",code3:"SYR",name:"Syrian Arab Republic",number:"760"},{code:"TW",code3:"TWN",name:"Taiwan",number:"158"},{code:"TJ",code3:"TJK",name:"Tajikistan",number:"762"},{code:"TZ",code3:"TZA",name:"Tanzania, United Republic of",number:"834"},{code:"TH",code3:"THA",name:"Thailand",number:"764"},{code:"TL",code3:"TLS",name:"Timor-Leste",number:"626"},{code:"TG",code3:"TGO",name:"Togo",number:"768"},{code:"TK",code3:"TKL",name:"Tokelau",number:"772"},{code:"TO",code3:"TON",name:"Tonga",number:"776"},{code:"TT",code3:"TTO",name:"Trinidad and Tobago",number:"780"},{code:"TN",code3:"TUN",name:"Tunisia",number:"788"},{code:"TR",code3:"TUR",name:"Turkey",number:"792"},{code:"TM",code3:"TKM",name:"Turkmenistan",number:"795"},{code:"TC",code3:"TCA",name:"Turks and Caicos Islands (the)",number:"796"},{code:"TV",code3:"TUV",name:"Tuvalu",number:"798"},{code:"UG",code3:"UGA",name:"Uganda",number:"800"},{code:"UA",code3:"UKR",name:"Ukraine",number:"804"},{code:"AE",code3:"ARE",name:"United Arab Emirates (the)",number:"784"},{code:"GB",code3:"GBR",name:"United Kingdom of Great Britain and Northern Ireland (the)",number:"826"},{code:"UM",code3:"UMI",name:"United States Minor Outlying Islands (the)",number:"581"},{code:"US",code3:"USA",name:"United States of America (the)",number:"840"},{code:"UY",code3:"URY",name:"Uruguay",number:"858"},{code:"UZ",code3:"UZB",name:"Uzbekistan",number:"860"},{code:"VU",code3:"VUT",name:"Vanuatu",number:"548"},{code:"VE",code3:"VEN",name:"Venezuela (Bolivarian Republic of)",number:"862"},{code:"VN",code3:"VNM",name:"Viet Nam",number:"704"},{code:"VG",code3:"VGB",name:"Virgin Islands (British)",number:"092"},{code:"VI",code3:"VIR",name:"Virgin Islands (U.S.)",number:"850"},{code:"WF",code3:"WLF",name:"Wallis and Futuna",number:"876"},{code:"EH",code3:"ESH",name:"Western Sahara",number:"732"},{code:"YE",code3:"YEM",name:"Yemen",number:"887"},{code:"ZM",code3:"ZMB",name:"Zambia",number:"894"},{code:"ZW",code3:"ZWE",name:"Zimbabwe",number:"716"},{code:"AX",code3:"ALA",name:"\xc5land Islands",number:"248"}];class pG{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Q,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}const mG=["trigger"],gG=["panel"];function _G(t,n){if(1&t&&(p(0,"span",10),m(1),f()),2&t){const e=he();M(1),j(e.placeholder)}}function vG(t,n){if(1&t&&(p(0,"span",14),m(1),f()),2&t){const e=he(2);M(1),j(e.triggerValue)}}function bG(t,n){1&t&&Ut(0,0,["*ngSwitchCase","true"])}function yG(t,n){1&t&&(p(0,"span",11),U(1,vG,2,1,"span",12),U(2,bG,1,0,"ng-content",13),f()),2&t&&(T("ngSwitch",!!he().customTrigger),M(2),T("ngSwitchCase",!0))}function wG(t,n){if(1&t){const e=vn();iu(),bv(),p(0,"div",15,16),H("@transformPanel.done",function(r){return ct(e),dt(he()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return ct(e),dt(he()._handleKeydown(r))}),Ut(2,1),f()}if(2&t){const e=he();(function mM(t,n,e){_o(kr,Ro,Bc(q(),t,n,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),tt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const CG=[[["mat-select-trigger"]],"*"],xG=["mat-select-trigger","*"],DG={transformPanelWrap:ws("transformPanelWrap",[Li("* => void",W0("@transformPanel",[$0()],{optional:!0}))]),transformPanel:ws("transformPanel",[eo("void",un({opacity:0,transform:"scale(1, 0.8)"})),Li("void => showing",ir("120ms cubic-bezier(0, 0, 0.2, 1)",un({opacity:1,transform:"scale(1, 1)"}))),Li("* => void",ir("100ms linear",un({opacity:0})))])};let yI=0;const wI=new Z("mat-select-scroll-strategy"),SG=new Z("MAT_SELECT_CONFIG"),kG={provide:wI,deps:[gr],useFactory:function MG(t){return()=>t.scrollStrategies.reposition()}},AG=new Z("MatSelectTrigger");class EG{constructor(n,e){this.source=n,this.value=e}}const TG=dT(k$(lT(H0(class{constructor(t,n,e,i,r){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Q}}))));let PG=(()=>{class t extends TG{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ue.required)??!1}set required(e){this._required=wt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=wt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=wt(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=xl(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,s,a,c,d,h,_,v,y,C,D){super(s,o,c,d,_),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=h,this._liveAnnouncer=C,this._defaultOptions=D,this._panelOpen=!1,this._compareWith=(S,E)=>S===E,this._uid="mat-select-"+yI++,this._triggerAriaLabelledBy=null,this._destroy=new Q,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+yI++,this._panelDoneAnimatingStream=new Q,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Hu(()=>{const S=this.options;return S?S.changes.pipe(Fr(S),Or(()=>fi(...S.map(E=>E.onSelectionChange)))):this._ngZone.onStable.pipe(On(1),Or(()=>this.optionSelectionChanges))}),this.openedChange=new ae,this._openedStream=this.openedChange.pipe(qt(S=>S),ve(()=>{})),this._closedStream=this.openedChange.pipe(qt(S=>!S),ve(()=>{})),this.selectionChange=new ae,this.valueChange=new ae,this.ngControl&&(this.ngControl.valueAccessor=this),null!=D?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=D.typeaheadDebounceInterval),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(v)||0,this.id=this.id}ngOnInit(){this._selectionModel=new pG(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ig(),yt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(yt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Fr(null),yt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}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(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.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 i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!nr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||nr(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(On(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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new Yj(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),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=fi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),fi(...this.options.map(i=>i._stateChanges)).pipe(yt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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.\u0275fac=function(e){return new(e||t)(x(Ch),x(Tn),x(_e),x(mh),x(be),x(Ri,8),x(ya,8),x(at,8),x(Mh,8),x(xo,10),Cc("tabindex"),x(wI),x(B0),x(SG,8))},t.\u0275dir=ee({type:t,viewQuery:function(e,i){if(1&e&&(tn(mG,5),tn(gG,5),tn(jT,5)),2&e){let r;$e(r=We())&&(i.trigger=r.first),$e(r=We())&&(i.panel=r.first),$e(r=We())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",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"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ye,je]}),t})(),Yn=(()=>{class t extends PG{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(yt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=function W$(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,t-i+n):e}(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EG(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof Q0?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=wt(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275cmp=G({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(bi(r,AG,5),bi(r,Bn,5),bi(r,vT,5)),2&e){let o;$e(o=We())&&(i.customTrigger=o.first),$e(o=We())&&(i.options=o),$e(o=We())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&H("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(tt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[nt([{provide:yg,useExisting:t},{provide:_T,useExisting:t}]),ye],ngContentSelectors:xG,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["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",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Ki(CG),p(0,"div",0,1),H("click",function(){return i.toggle()}),p(3,"div",2),U(4,_G,2,1,"span",3),U(5,yG,3,2,"span",4),f(),p(6,"div",5)(7,"div",6),iu(),p(8,"svg",7),A(9,"path",8),f()()()(),U(10,wG,3,9,"ng-template",9),H("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=ta(1);tt("aria-owns",i.panelOpen?i.id+"-panel":null),M(3),T("ngSwitch",i.empty),tt("id",i._valueId),M(1),T("ngSwitchCase",!0),M(1),T("ngSwitchCase",!1),M(5),T("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[Ji,rd,_m,Ok,jT,Q0],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.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}.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}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.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)}._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.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:[DG.transformPanel]},changeDetection:0}),t})(),CI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[kG],imports:[fs,wd,bT,Ln,Sl,Sh,bT,Ln]}),t})(),IG=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}sendMessage(e,i,r){return this.http.post(this.baseUrl+"contact",{name:e,email:i,message:r})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function OG(t,n){1&t&&(p(0,"div",13),A(1,"img",14),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}const FG=function(t,n){return{"theme-light":t,"theme-dark":n}};let xI=(()=>{class t{constructor(e,i,r){this.themeService=e,this.contactService=i,this.matSnackBar=r,this.contactForm=new st({name:new ie(null,[ue.required]),email:new ie(null,[ue.required,ue.email]),message:new ie(null,[ue.required])}),this.isLoading=!1,this.themeSubscription=this.themeService.getThemeObservable().subscribe(o=>{this.isDarkMode=o})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){}submit(){this.isLoading=!0,this.contactForm.valid?this.contactService.sendMessage(this.contactForm.value.name,this.contactForm.value.email,this.contactForm.value.message).subscribe(e=>{this.isLoading=!1,this.contactForm.reset(),this.openSnackbar("Message Sent Successfully")}):this.openSnackbar("Please Fill All Details")}openSnackbar(e){this.matSnackBar.open(e,"OK",{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(IG),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-contact-form"]],decls:23,vars:6,consts:[["class","loading-screen",4,"ngIf"],[3,"ngClass"],[1,"contact-form",3,"formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"contact-form-full-width"],["matInput","","formControlName","name","placeholder","Ex. kavindu kokila"],["matInput","","formControlName","email","placeholder","Ex. sample@gmail.com"],[1,"col-12"],["matInput","","formControlName","message","placeholder","Your message here.."],[1,"d-flex","justify-content-end"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-end"],["type","submit",1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,OG,6,0,"div",0),p(1,"div",1)(2,"form",2)(3,"div",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),m(7,"Name"),f(),A(8,"input",6),f()(),p(9,"div",4)(10,"mat-form-field",5)(11,"mat-label"),m(12,"Email"),f(),A(13,"input",7),f()(),p(14,"div",8)(15,"mat-form-field",5)(16,"mat-label"),m(17,"Message"),f(),A(18,"textarea",9),f()(),p(19,"div",10)(20,"div",11)(21,"button",12),H("click",function(){return r.submit()}),m(22,"Send Message"),f()()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("ngClass",vo(3,FG,!r.isDarkMode,r.isDarkMode)),M(1),T("formGroup",r.contactForm))},dependencies:[Ji,Le,jt,Pt,xi,Vt,bn,At,Bt,at,It]})}return t})(),Il=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}createUser(e){return this.http.post(this.baseUrl+"user/request",{name:e.name,email:e.email,phone:e.phone,country:e.country,remarks:e.remarks,active:e.active})}getAllUsers(){return this.http.get(this.baseUrl+"user/all")}getUserById(e){return this.http.get(this.baseUrl+"user/"+e)}getUserByEmail(e){return this.http.get(this.baseUrl+"user/email/"+e)}updateUser(e){return this.http.put(this.baseUrl+"user/update/"+e.id,{name:e.name,email:e.email,phone:e.phone,country:e.country,remarks:e.remarks,active:e.active})}approveUser(e){return this.http.put(this.baseUrl+"user/approve/"+e,{active:!0})}deleteUser(e){return this.http.delete(this.baseUrl+"user/delete/"+e)}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const DI=function(t,n){return{"theme-light":t,"theme-dark":n}},Uo=function(t){return{"list-style":t}};function RG(t,n){1&t&&(p(0,"div",19),A(1,"img",20),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function LG(t,n){if(1&t&&(p(0,"mat-option",21),m(1),f()),2&t){const e=n.$implicit;T("value",e.name),M(1),j(e.name)}}let NG=(()=>{class t{constructor(e,i){this.themeService=e,this.dialog=i,this.platformName="Ethical AI-driven Geographic Analytics Platform",this.themeSubscription=this.themeService.getThemeObservable().subscribe(r=>{this.isDarkMode=r})}openDialog(){this.dialog.open(BG).afterClosed().subscribe(i=>{console.log(`Dialog result: ${i}`)})}ngOnDestroy(){this.themeSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(iw))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-about"]],decls:150,vars:52,consts:[[3,"ngClass"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/about"],[1,"container"],[1,"sub-list"],[1,"author-div"],[1,"card","mb-3",2,"max-width","640px"],[1,"row","g-0"],[1,"col-md-4"],["src","./assets/images/shared/author.jpg","alt","...",1,"img-fluid","rounded-start"],[1,"col-md-8"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"text-body-secondary"],[1,"author-contact"],["href","https://admin.flexi-art.com/","title","Portfolio","target","_blank"],["aria-hidden","true",1,"fa","fa-heart"],["href","https://linkedin.com/in/kavindu-kokila-710963250","title","Linkedin","target","_blank"],["aria-hidden","true",1,"fa","fa-linkedin"],["href","https://web.facebook.com/kavi.castelo/","title","Facebook","target","_blank"],["aria-hidden","true",1,"fa","fa-facebook"],["href","https://twitter.com/kavicastelo","title","Twitter","target","_blank"],["aria-hidden","true",1,"fa","fa-twitter"],["href","https://kavicastelo.netlify.app/","title","Garden","target","_blank"],["aria-hidden","true",1,"fa","fa-globe"],["href","https://blogs.flexi-art.com/","title","Blog","target","_blank"],["aria-hidden","true",1,"fa","fa-rss"],["href","https://github.com/Kavicastelo/","title","Github","target","_blank"],["aria-hidden","true",1,"fa","fa-github"],["href","https://stackoverflow.com/users/20531015/kavi-castelo?tab=profile","title","Stackoverflow","target","_blank"],["aria-hidden","true",1,"fa","fa-stack-overflow"],[1,"button-1",3,"click"],[2,"color","var(--color-primary-600)"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"About Our Platform"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"About"),f()()()(),p(14,"div",8)(15,"h3"),m(16),f(),p(17,"p"),m(18),f(),p(19,"h3"),m(20),f(),p(21,"ul")(22,"li"),m(23,"Cutting-Edge Technology"),f(),p(24,"p"),m(25,"We embrace the latest technologies, utilizing machine learning models to forecast air quality and meteorological conditions. Our predictive models are built on state-of-the-art algorithms, ensuring reliability and precision in the information we provide."),f(),p(26,"li"),m(27,"Data-Driven Insights"),f(),p(28,"p"),m(29,"Access real-time and historical data to gain deep insights into air quality factors such as humidity, temperature, wind speed, and more. Understand environmental patterns, make informed decisions, and stay ahead of changes that impact your surroundings."),f(),p(30,"li"),m(31,"User-Friendly Interface"),f(),p(32,"p"),m(33),f()(),p(34,"h3"),m(35,"What Can You Discover?"),f(),p(36,"ul")(37,"li"),m(38,"Air Quality Metrics"),f(),p(39,"ul",9)(40,"li")(41,"span"),m(42,"Air Humidity:"),f(),m(43," Understand the moisture content in the air, a crucial factor in various environmental processes. "),f(),p(44,"li")(45,"span"),m(46,"Temperature:"),f(),m(47," Explore temperature patterns and trends, aiding in weather analysis. "),f(),p(48,"li")(49,"span"),m(50,"Wind Speed:"),f(),m(51," Learn about the speed of the wind, crucial for predicting weather conditions. "),f(),p(52,"li")(53,"span"),m(54,"Precipitation:"),f(),m(55," Stay informed about rainfall and other forms of precipitation in your area. "),f()()(),p(56,"h3"),m(57,"Our Purpose and Aim"),f(),p(58,"p"),m(59),f(),p(60,"ul",9)(61,"li"),m(62," Provide accessible and reliable air quality and meteorological data. "),f(),p(63,"li"),m(64," Foster a community of environmentally conscious individuals. "),f(),p(65,"li"),m(66," Support research and initiatives focused on sustainable living. "),f()(),p(67,"h3"),m(68,"Ethical Concerns"),f(),p(69,"p"),m(70,"We prioritize ethical considerations in all aspects of our platform:"),f(),p(71,"ul",9)(72,"li")(73,"span"),m(74,"Privacy:"),f(),m(75," User data is handled with utmost care, ensuring privacy and confidentiality. "),f(),p(76,"li")(77,"span"),m(78,"Transparency:"),f(),m(79," We are transparent about the sources of our data and the methodologies behind our predictions. "),f(),p(80,"li")(81,"span"),m(82,"Fairness:"),f(),m(83," Our algorithms are designed to be fair and unbiased, ensuring equitable results. "),f()(),p(84,"h3"),m(85,"Meet the Creator"),f(),p(86,"p"),m(87),f(),p(88,"div",10)(89,"div",11)(90,"div",12)(91,"div",13),A(92,"img",14),f(),p(93,"div",15)(94,"div",16)(95,"h5",17),m(96,"Kavindu Kokila Gayashan"),f(),p(97,"p",18)(98,"span"),m(99,"Nick: "),f(),p(100,"small",19),m(101,"Kavi Castelo"),f(),A(102,"br"),p(103,"span"),m(104,"Position: "),f(),p(105,"small",19),m(106,"Full Stack Developer"),f(),A(107,"br"),p(108,"span"),m(109,"University: "),f(),p(110,"small",19),m(111,"University of Cardiff Metropolitan UK"),f(),A(112,"br"),p(113,"span"),m(114,"Institute: "),f(),p(115,"small",19),m(116,"ICBT Southern Campus"),f()(),p(117,"div",20)(118,"a",21),A(119,"i",22),f(),p(120,"a",23),A(121,"i",24),f(),p(122,"a",25),A(123,"i",26),f(),p(124,"a",27),A(125,"i",28),f(),p(126,"a",29),A(127,"i",30),f(),p(128,"a",31),A(129,"i",32),f(),p(130,"a",33),A(131,"i",34),f(),p(132,"a",35),A(133,"i",36),f()()()()()()(),p(134,"p"),m(135),f(),p(136,"h3"),m(137,"Join Us on the Journey"),f(),p(138,"p"),m(139),f(),p(140,"button",37),H("click",function(){return r.openDialog()}),m(141,"SIGNUP TODAY \u25b8"),f(),A(142,"hr",38),p(143,"h3"),m(144,"Contact us"),f(),p(145,"p"),m(146,"If you have any questions or concerns, please feel free to contact us:"),f(),A(147,"app-contact-form"),p(148,"p"),m(149,"last update: 2024.01.05"),f()()()()),2&i&&(T("ngClass",vo(29,DI,!r.isDarkMode,r.isDarkMode)),M(16),bt("Welcome to ",r.platformName,""),M(2),bt("",r.platformName," is an advanced Geographic Analytics Platform driven by Ethical AI. Designed to provide valuable insights into air quality, meteorological conditions, and more, our platform leverages the power of machine learning to deliver accurate predictions and analysis."),M(2),bt("Why ",r.platformName,"?"),M(13),bt("Our user interface is designed with simplicity and functionality in mind. Whether you're a weather enthusiast, researcher, or just curious about your local environment, ",r.platformName," makes it easy to access and interpret complex data."),M(7),ft(Nt(32,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(34,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(36,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(38,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(7),bt("At ",r.platformName,", our primary purpose is to empower individuals and communities with accurate and actionable environmental insights. We aim to:"),M(2),ft(Nt(40,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(2),ft(Nt(42,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(2),ft(Nt(44,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(7),ft(Nt(46,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(48,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(50,Uo,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(7),bt("",r.platformName," is the brainchild of a dedicated individual who envisioned and brought this project to life as a culmination of their university final project. Meet the mind behind the platform:"),M(48),bt("As the sole creator of ",r.platformName,", Kavindu Kokila poured their passion for technology, environmental science, and ethical AI into every aspect of the platform. From conceptualization to development, this project reflects their commitment to creating an innovative solution for environmental awareness."),M(4),bt("Whether you're a weather enthusiast, researcher, or someone passionate about environmental awareness, we invite you to join us on this journey. Explore ",r.platformName," and discover the fascinating world of Geographic Analytics and Ethical AI."))},dependencies:[Ji,Yt,xI],styles:["ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-weight:700;font-size:16px;list-style:url(list-1.5f39ff16e3ba4868.png)}.sub-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-weight:400}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{max-width:640px;background-color:var(--color-surface-mixed-100)}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:var(--color-text-200)}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] .text-body-secondary[_ngcontent-%COMP%]{color:var(--color-text-300)!important}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .author-contact[_ngcontent-%COMP%]{display:flex;align-items:center}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .author-contact[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-text-300);text-decoration:none;margin:0 10px;transition:color .3s ease-in-out}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .author-contact[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{margin-left:0;color:#ff1493}.author-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .author-contact[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-primary-600)}"]})}return t})(),BG=(()=>{class t{constructor(e,i,r,o){this.themeService=e,this.dialog=i,this.matSnackBar=r,this.userService=o,this.countries=bI,this.signupForm=new st({name:new ie(null,[ue.required]),email:new ie(null,[ue.required,ue.email]),phone:new ie(null,[ue.required]),country:new ie(null,[ue.required]),remarks:new ie(null)}),this.isLoading=!1,this.themeSubscription=this.themeService.getThemeObservable().subscribe(s=>{this.isDarkMode=s})}submit(){this.isLoading=!0,this.signupForm.valid?this.userService.getAllUsers().subscribe(e=>{this.isLoading=!1,e.find(r=>r.email===this.signupForm.value.email)?this.openSnackbar("User Already Requested"):this.userService.createUser({id:null,name:this.signupForm.value.name,email:this.signupForm.value.email,phone:this.signupForm.value.phone,country:this.signupForm.value.country,remarks:this.signupForm.value.remarks,active:!1}).subscribe(r=>{this.isLoading=!1,this.signupForm.reset(),this.openSnackbar("User Requested Successfully")})}):this.openSnackbar("Please Fill All Details")}openSnackbar(e){this.matSnackBar.open(e,"OK",{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(iw),x(Qt),x(Il))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-sign-up"]],standalone:!0,features:[Qp],decls:43,vars:7,consts:[["class","loading-screen",4,"ngIf"],[3,"ngClass"],[1,"bg"],[2,"padding","50px 0 0 20px"],[1,"mat-typography"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["matInput","","formControlName","name","placeholder","Ex. kavindu kokila"],["matInput","","formControlName","email","placeholder","Ex. sample@gmail.com"],["matInput","","formControlName","phone","placeholder","Ex. 0762343567"],["formControlName","country",1,"example-full-width","field"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-12"],["matInput","","formControlName","remarks","placeholder","Ex. I'm a university student"],["align","end"],["type","submit",1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,RG,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"h3",3),m(4,"Sign Up"),f(),p(5,"mat-dialog-content",4)(6,"p"),m(7,"Are you willing to join the Ethical AI-driven Geographic Analytics Platform, Here is your opportunity. You can join us if you're a weather enthusiast, researcher, or someone passionate about environmental awareness. Submit the registration form below. Our administration will accept your request as soon as possible."),f(),A(8,"br"),p(9,"form",5)(10,"div",6)(11,"div",7)(12,"mat-form-field",8)(13,"mat-label"),m(14,"Name"),f(),A(15,"input",9),f()(),p(16,"div",7)(17,"mat-form-field",8)(18,"mat-label"),m(19,"Email"),f(),A(20,"input",10),f()(),p(21,"div",7)(22,"mat-form-field",8)(23,"mat-label"),m(24,"Phone"),f(),A(25,"input",11),f()(),p(26,"div",7)(27,"mat-form-field",8)(28,"mat-label"),m(29,"Country"),f(),p(30,"mat-select",12)(31,"mat-option",13),m(32,"Select Country *"),f(),U(33,LG,2,2,"mat-option",14),f()()(),p(34,"div",15)(35,"mat-form-field",8)(36,"mat-label"),m(37,"Remarks (Optional)"),f(),A(38,"textarea",16),f()()()()(),p(39,"mat-dialog-actions",17)(40,"div",15)(41,"button",18),H("click",function(){return r.submit()}),m(42,"Request"),f()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("ngClass",vo(4,DI,!r.isDarkMode,r.isDarkMode)),M(8),T("formGroup",r.signupForm),M(24),T("ngForOf",r.countries))},dependencies:[tP,I9,O9,cg,Ji,Sh,jt,Pt,vI,xi,gI,Vt,bn,At,Bt,at,It,CI,Yn,Bn,Dt,Le],encapsulation:2})}return t})();const VG=function(t,n){return{"theme-light":t,"theme-dark":n}},rr=function(t){return{"list-style":t}};let zG=(()=>{class t{constructor(e){this.themeService=e,this.themeSubscription=this.themeService.getThemeObservable().subscribe(i=>{this.isDarkMode=i})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(x(er))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-references"]],decls:590,vars:64,consts:[[3,"ngClass"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/references"],[1,"container"],[1,"py-code-snippet"],[1,"import"],[1,"lib"],[1,"val"],[1,"name"],[1,"comment"],["href","https://gist.github.com/kavicastelo/824cae2e1df5b9fc2e7e55799fdeb092"],["href","https://github.com/kavicastelo/Ethical-AI-driven-Geographic-Analytics-Platform/blob/data/generate_data_time_to_time.py","target","_blank"],[1,"sub-list"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"References"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"References"),f()()()(),p(14,"div",8)(15,"h3"),m(16,"Data Generation for Educational Purposes"),f(),p(17,"p"),m(18,"The statistical calculations and predictions presented on this platform are based on generated data created explicitly for educational purposes. Given the extensive range of factors influencing air quality and the associated high costs of obtaining real-world data, we have developed Python scripts to simulate model values for statistical calculations and training purposes."),f(),p(19,"h4"),m(20,"Import Libraries"),f(),p(21,"div",9)(22,"span",10),m(23,"from "),f(),m(24,"faker "),p(25,"span",10),m(26,"import "),f(),p(27,"span",11),m(28,"Faker"),f(),A(29,"br"),p(30,"span",10),m(31,"import "),f(),m(32,"csv"),A(33,"br"),p(34,"span",10),m(35,"import "),f(),m(36,"random"),A(37,"br"),p(38,"span",10),m(39,"from "),f(),m(40,"datetime "),p(41,"span",10),m(42,"import "),f(),m(43,"datetime, timedelta "),A(44,"br"),p(45,"span",10),m(46,"import "),f(),m(47,"time "),A(48,"br"),p(49,"span",10),m(50,"import "),f(),m(51,"pandas "),p(52,"span",10),m(53,"as "),f(),m(54,"pd "),A(55,"br"),p(56,"span",10),m(57,"from "),f(),m(58,"sklearn.model_selection "),p(59,"span",10),m(60,"import "),f(),m(61,"train_test_split "),A(62,"br"),p(63,"span",10),m(64,"from "),f(),m(65,"sklearn.linear_model "),p(66,"span",10),m(67,"import "),f(),p(68,"span",11),m(69,"LinearRegression"),f(),A(70,"br"),p(71,"span",10),m(72,"from "),f(),m(73,"sklearn.metrics "),p(74,"span",10),m(75,"import "),f(),m(76,"mean_squared_error "),A(77,"br"),p(78,"span",10),m(79,"from "),f(),m(80,"joblib "),p(81,"span",10),m(82,"import "),f(),m(83,"dump "),A(84,"br"),p(85,"span",10),m(86,"import "),f(),m(87,"pickle "),A(88,"br")(89,"br"),m(90," fake "),p(91,"span",12),m(92,"= "),f(),p(93,"span",11),m(94,"Faker"),f(),m(95,"()"),A(96,"br"),f(),p(97,"h4"),m(98,"Function to generate data"),f(),p(99,"p"),m(100,"I improved the method for generate random data with more correlations."),f(),p(101,"div",9)(102,"span",10),m(103,"def "),f(),p(104,"span",13),m(105,"generate_improved_air_quality_data "),f(),m(106,"(locations, start_time, end_time, frequency):"),A(107,"br"),m(108," \xa0\xa0\xa0fieldnames "),p(109,"span",12),m(110,"= "),f(),m(111,"["),p(112,"span",12),m(113,"'timestamp'"),f(),m(114,", "),p(115,"span",12),m(116,"'location'"),f(),m(117,", "),p(118,"span",12),m(119,"'pm25'"),f(),m(120,", "),p(121,"span",12),m(122,"'pm10'"),f(),m(123,", "),p(124,"span",12),m(125,"'co2'"),f(),m(126," ...]"),A(127,"br"),m(128," \xa0\xa0\xa0"),p(129,"span",10),m(130,"with "),f(),p(131,"span",13),m(132,"open "),f(),m(133,"("),p(134,"span",12),m(135,"'improved_air_quality_data.csv'"),f(),m(136,", "),p(137,"span",12),m(138,"'w'"),f(),m(139,", newline "),p(140,"span",12),m(141,"=''"),f(),m(142,") "),p(143,"span",10),m(144,"as "),f(),m(145,"csvfile:"),A(146,"br"),m(147," \xa0\xa0\xa0\xa0\xa0\xa0writer "),p(148,"span",12),m(149,"= "),f(),m(150,"csv."),p(151,"span",11),m(152,"DictWriter"),f(),m(153,"(csvfile, fieldnames "),p(154,"span",12),m(155,"= "),f(),m(156,"fieldnames)"),A(157,"br"),m(158," \xa0\xa0\xa0\xa0\xa0\xa0writer."),p(159,"span",13),m(160,"writeheader"),f(),m(161,"()"),A(162,"br")(163,"br"),m(164," \xa0\xa0\xa0\xa0\xa0\xa0current_time "),p(165,"span",12),m(166,"= "),f(),m(167,"start_time"),A(168,"br"),m(169," \xa0\xa0\xa0\xa0\xa0\xa0"),p(170,"span",10),m(171,"while "),f(),m(172,"current_time "),p(173,"span",12),m(174,"<="),f(),m(175," end_time:"),A(176,"br"),m(177," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(178,"span",10),m(179,"for "),f(),m(180,"location "),p(181,"span",12),m(182,"in "),f(),m(183,"locations:"),A(184,"br"),m(185," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0temperature "),p(186,"span",12),m(187,"= "),f(),m(188,"random."),p(189,"span",13),m(190,"uniform"),f(),m(191,"("),p(192,"span",12),m(193,"20"),f(),m(194,", "),p(195,"span",12),m(196,"30"),f(),m(197,")"),A(198,"br"),m(199," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0humidity "),p(200,"span",12),m(201,"= "),f(),m(202,"random."),p(203,"span",13),m(204,"uniform"),f(),m(205,"("),p(206,"span",12),m(207,"15"),f(),m(208,", "),p(209,"span",12),m(210,"20"),f(),m(211,")"),A(212,"br")(213,"br"),m(214," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(215,"span",10),m(216,"if "),f(),p(217,"span",12),m(218,"8 <= "),f(),m(219,"current_time.hour "),p(220,"span",12),m(221,"<= 10 or 17 <= "),f(),m(222,"current_time.hour "),p(223,"span",12),m(224,"<= 19"),f(),m(225,":"),A(226,"br"),m(227," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0pollution_increase "),p(228,"span",12),m(229,"= "),f(),m(230,"random."),p(231,"span",13),m(232,"uniform"),f(),m(233,"("),p(234,"span",12),m(235,"5"),f(),m(236,", "),p(237,"span",12),m(238,"15"),f(),m(239,")"),A(240,"br"),m(241," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(242,"span",10),m(243,"else"),f(),m(244,":"),A(245,"br"),m(246," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0pollution_increase "),p(247,"span",12),m(248,"= 0"),f(),A(249,"br")(250,"br"),m(251," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0writer."),p(252,"span",13),m(253,"writerow"),f(),m(254,"({"),A(255,"br"),m(256," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(257,"span",12),m(258,"'timestamp'"),f(),m(259,": current_time."),p(260,"span",13),m(261,"strftime"),f(),m(262,"("),p(263,"span",12),m(264,"'%Y-%m-%d %H:%M:%S'"),f(),m(265,"),"),A(266,"br"),m(267," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(268,"span",12),m(269,"'location'"),f(),m(270,": location,"),A(271,"br"),m(272," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(273,"span",12),m(274,"'pm25'"),f(),m(275,": temperature "),p(276,"span",12),m(277,"+ "),f(),m(278,"humidity "),p(279,"span",12),m(280,"+ "),f(),m(281,"pollution_increase "),p(282,"span",12),m(283,"+ "),f(),m(284,"random."),p(285,"span",13),m(286,"uniform"),f(),m(287,"("),p(288,"span",12),m(289,"-2"),f(),m(290,", "),p(291,"span",12),m(292,"2"),f(),m(293,")"),A(294,"br"),m(295," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(296,"span",12),m(297,"'pm10'"),f(),m(298,": temperature "),p(299,"span",12),m(300,"+ "),f(),m(301,"humidity "),p(302,"span",12),m(303,"+ "),f(),m(304,"pollution_increase "),p(305,"span",12),m(306,"+ "),f(),m(307,"random."),p(308,"span",13),m(309,"uniform"),f(),m(310,"("),p(311,"span",12),m(312,"-2"),f(),m(313,", "),p(314,"span",12),m(315,"2"),f(),m(316,")"),A(317,"br"),m(318," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(319,"span",12),m(320,"'co2'"),f(),m(321,": temperature "),p(322,"span",12),m(323,"+ "),f(),m(324,"humidity "),p(325,"span",12),m(326,"+ "),f(),m(327,"pollution_increase "),p(328,"span",12),m(329,"+ "),f(),m(330,"random."),p(331,"span",13),m(332,"uniform"),f(),m(333,"("),p(334,"span",12),m(335,"-3"),f(),m(336,", "),p(337,"span",12),m(338,"3"),f(),m(339,")"),A(340,"br"),m(341," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0..."),A(342,"br"),m(343," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(344,"span",12),m(345,"'temperature'"),f(),m(346,": temperature,"),A(347,"br"),m(348," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),p(349,"span",12),m(350,"'humidity'"),f(),m(351,": humidity"),A(352,"br"),m(353," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0})"),A(354,"br")(355,"br"),m(356," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0current_time "),p(357,"span",12),m(358,"+= "),f(),m(359,"frequency"),A(360,"br")(361,"br"),p(362,"span",14),m(363,"# Other datasets generate methods"),f()(),p(364,"p"),m(365,"PS: You can replace with '...' with all other factors for data sets"),f(),p(366,"h4"),m(367,"Train & save model"),f(),p(368,"p"),m(369,"I used the scikit-learn LinerRegression model to train and save the model. My statistical analysis of this generated dataset confirmed the most suitable Linear regression to train them. Here is the "),p(370,"a",15),m(371," statistical analysis part"),f(),m(372," and explanations."),f(),p(373,"div",9)(374,"span",10),m(375,"def "),f(),p(376,"span",13),m(377,"train_and_save_model"),f(),m(378,"(df, feature_name):"),A(379,"br"),m(380," \xa0\xa0\xa0\xa0"),p(381,"span",11),m(382,"X "),f(),p(383,"span",12),m(384,"= "),f(),m(385,"df."),p(386,"span",13),m(387,"drop"),f(),m(388,"(["),p(389,"span",12),m(390,"'timestamp'"),f(),m(391,", "),p(392,"span",12),m(393,"'location'"),f(),m(394,"], axis"),p(395,"span",12),m(396,"="),f(),p(397,"span",12),m(398,"1"),f(),m(399,")"),A(400,"br"),m(401," \xa0\xa0\xa0\xa0y "),p(402,"span",12),m(403,"= "),f(),m(404,"df[[feature_name]]"),A(405,"br")(406,"br"),m(407," \xa0\xa0\xa0\xa0"),p(408,"span",11),m(409,"X_train"),f(),m(410,", "),p(411,"span",11),m(412,"X_test"),f(),m(413,", y_train, y_test "),p(414,"span",12),m(415,"= "),f(),p(416,"span",13),m(417,"train_test_split"),f(),m(418,"("),p(419,"span",11),m(420,"X"),f(),m(421,", y, test_size"),p(422,"span",12),m(423,"= 0.2 "),f(),m(424,", random_state"),p(425,"span",12),m(426,"= 42"),f(),m(427,")"),A(428,"br")(429,"br"),m(430," \xa0\xa0\xa0\xa0model "),p(431,"span",12),m(432,"= "),f(),p(433,"span",11),m(434,"LinearRegression"),f(),m(435,"()"),A(436,"br"),m(437," \xa0\xa0\xa0\xa0model."),p(438,"span",13),m(439,"fit"),f(),m(440,"("),p(441,"span",11),m(442,"X_train"),f(),m(443,", y_train)"),A(444,"br")(445,"br"),m(446," \xa0\xa0\xa0\xa0predictions "),p(447,"span",12),m(448,"= "),f(),m(449,"model."),p(450,"span",13),m(451,"predict"),f(),m(452,"("),p(453,"span",11),m(454,"X_test"),f(),m(455,")"),A(456,"br")(457,"br"),m(458," \xa0\xa0\xa0\xa0mse "),p(459,"span",12),m(460,"= "),f(),p(461,"span",13),m(462,"mean_squared_error"),f(),m(463,"(y_test, predictions)"),A(464,"br"),m(465," \xa0\xa0\xa0\xa0"),p(466,"span",13),m(467,"print"),f(),m(468,"("),p(469,"span",12),m(470,"f'Mean Squared Error for "),f(),m(471,"{feature_name}"),p(472,"span",12),m(473,": "),f(),m(474,"{mse}"),p(475,"span",12),m(476,"'"),f(),m(477,")"),A(478,"br")(479,"br"),m(480," \xa0\xa0\xa0\xa0model_filename "),p(481,"span",12),m(482,"= f'"),f(),m(483,"{feature_name}"),p(484,"span",12),m(485,"_model.pkl'"),f(),A(486,"br"),m(487," \xa0\xa0\xa0\xa0"),p(488,"span",10),m(489,"with "),f(),p(490,"span",13),m(491,"open"),f(),m(492,"(model_filename, "),p(493,"span",12),m(494,"'wb'"),f(),m(495,") "),p(496,"span",10),m(497,"as "),f(),m(498,"f:"),A(499,"br"),m(500," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0pickle."),p(501,"span",13),m(502,"dump"),f(),m(503,"(model, f)"),A(504,"br")(505,"br"),m(506," \xa0\xa0\xa0\xa0"),p(507,"span",13),m(508,"print"),f(),m(509,"("),p(510,"span",12),m(511,"f'Model saved as "),f(),m(512,"{model_filename}"),p(513,"span",12),m(514,"'"),f(),m(515,")"),A(516,"br")(517,"br"),f(),p(518,"p"),m(519,"Get the full code from here "),p(520,"a",16),m(521,"Complete Code"),f()(),p(522,"h3"),m(523,"Utilized Libraries"),f(),p(524,"h4"),m(525,"Python"),f(),p(526,"ul",17)(527,"li")(528,"span"),m(529,"NumPy:"),f(),m(530," A fundamental package for scientific computing, providing support for large, multi-dimensional arrays and matrices. "),f(),p(531,"li")(532,"span"),m(533,"Pandas:"),f(),m(534," A versatile data manipulation and analysis library, facilitating the handling of structured data. "),f(),p(535,"li")(536,"span"),m(537,"scikit-learn:"),f(),m(538," An open-source machine learning library that provides simple and efficient tools for data analysis and modeling. "),f(),p(539,"li")(540,"span"),m(541,"Faker:"),f(),m(542," A Python library for generating fake data, useful for creating realistic datasets for testing and educational purposes. "),f(),p(543,"li")(544,"span"),m(545,"Joblib:"),f(),m(546," A library for lightweight pipelining in Python, particularly with regard to data parallel computing. "),f(),p(547,"li")(548,"span"),m(549,"Pickle:"),f(),m(550," A standard Python library for serializing and deserializing objects, commonly used for saving and loading machine learning models. "),f(),p(551,"li")(552,"span"),m(553,"Py4J:"),f(),m(554," A bridge between Python and Java, enabling seamless communication between the two languages. "),f(),p(555,"li")(556,"span"),m(557,"Python Dotenv:"),f(),m(558," A Python library for loading environment variables from a .env file. "),f()(),p(559,"h4"),m(560,"Spring Boot"),f(),p(561,"ul",17)(562,"li")(563,"span"),m(564,"Spring Boo:"),f(),m(565," A powerful framework for building Java-based enterprise applications. Its simplicity and convention-over-configuration approach make it an excellent choice for developing robust and scalable backend systems. "),f(),p(566,"li")(567,"span"),m(568,"OpenCSV:"),f(),m(569," A simple library for reading and writing CSV files in Java. "),f(),p(570,"li")(571,"span"),m(572,"Commons Math3:"),f(),m(573," A library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language. "),f(),p(574,"li")(575,"span"),m(576,"Py4J:"),f(),m(577," A bridge between Python and Java, enabling seamless communication between the two languages. "),f(),p(578,"li")(579,"span"),m(580,"JUnit:"),f(),m(581," A widely used testing framework for Java. "),f(),p(582,"li")(583,"span"),m(584,"PMML-sklearn:"),f(),m(585," A library for exporting scikit-learn models to the Predictive Model Markup Language (PMML). "),f(),p(586,"li")(587,"span"),m(588,"Spring Dotenv:"),f(),m(589," A Spring Boot library for loading environment variables from a .env file. "),f()()()()()),2&i&&(T("ngClass",vo(31,VG,!r.isDarkMode,r.isDarkMode)),M(527),ft(Nt(34,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(36,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(38,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(40,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(42,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(44,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(46,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(48,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(7),ft(Nt(50,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(52,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(54,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(56,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(58,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(60,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")),M(4),ft(Nt(62,rr,r.isDarkMode?"url(./assets/images/icons/list-2-dark.png)":"url(./assets/images/icons/list-2.png)")))},dependencies:[Ji,Yt]})}return t})();const HG=function(t,n){return{"theme-light":t,"theme-dark":n}};let UG=(()=>{class t{constructor(e){this.themeService=e,this.themeSubscription=this.themeService.getThemeObservable().subscribe(i=>{this.isDarkMode=i})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(x(er))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-contact"]],decls:83,vars:4,consts:[[3,"ngClass"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/contact"],[1,"container"],[1,"d-md-flex","justify-content-center","align-items-center"],[1,"con-column"],[1,"d-flex","align-items-center"],["href","mailto:contact@analytics-platform.com"],["href","tel:+94 77 343 1660"],["src","./assets/images/contact/banner-1.jpg","alt","banner"],[1,"d-md-flex","justify-content-center","align-items-center","flex-row-reverse"],["href","mailto:business@analytics-platform.com"],["src","./assets/images/contact/banner-2.jpg","alt","banner"],[1,"contact-social-wrapper"],[1,"contact-social-div"],[1,"container",2,"padding-left","22px"],["href","https://www.facebook.com"],["aria-hidden","true",1,"fa","fa-facebook"],["href","https://www.twitter.com"],["aria-hidden","true",1,"fa","fa-twitter"],["href","https://www.linkein.com"],["aria-hidden","true",1,"fa","fa-linkedin"],["href","https://www.instagram.com"],["aria-hidden","true",1,"fa","fa-instagram"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"Contact Us"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"Contact Us"),f()()()(),p(14,"div",8)(15,"div",9)(16,"div",10)(17,"h4"),m(18,"General Inquiries"),f(),p(19,"p"),m(20,"If you have any general inquiries or feedback regarding our platform, please don't hesitate to reach out to us. We appreciate your thoughts and suggestions!"),f(),p(21,"div",11)(22,"span"),m(23,"Email: "),f(),m(24,"\xa0 "),p(25,"a",12),m(26,"contact@analytics-platform.com"),f()(),p(27,"div",11)(28,"span"),m(29,"Phone: "),f(),m(30,"\xa0 "),p(31,"a",13),m(32,"+94 (77) 343 1660"),f()()(),p(33,"div",10),A(34,"img",14),f()(),p(35,"div",15)(36,"div",10)(37,"h4"),m(38,"Business Inquiries"),f(),p(39,"p"),m(40,"For business-related inquiries, partnerships, or collaborations, please contact our business development team."),f(),p(41,"div",11)(42,"span"),m(43,"Email: "),f(),m(44,"\xa0 "),p(45,"a",16),m(46,"business@analytics-platform.com"),f()()(),p(47,"div",10),A(48,"img",17),f()()(),p(49,"div",8)(50,"h3"),m(51,"Send your inquiries.."),f(),A(52,"app-contact-form"),f(),p(53,"div",18)(54,"div",19)(55,"div",20)(56,"h2"),m(57,"Get in touch"),f(),p(58,"p"),m(59,"Follow Us On..."),f(),p(60,"ul")(61,"li")(62,"a",21),A(63,"i",22),m(64,"\xa0- Facebook"),f()(),p(65,"li")(66,"a",23),A(67,"i",24),m(68,"\xa0- Twitter"),f()(),p(69,"li")(70,"a",25),A(71,"i",26),m(72,"\xa0- Linkedin"),f()(),p(73,"li")(74,"a",27),A(75,"i",28),m(76,"\xa0- Instagram"),f()()(),p(77,"p"),m(78,"Visit us at our headquarters:"),f(),p(79,"p"),m(80,"123 Innovation Street, Suite 456"),A(81,"br"),m(82," Sri Lanka, 21377"),f()()()()()()),2&i&&T("ngClass",vo(1,HG,!r.isDarkMode,r.isDarkMode))},dependencies:[Ji,Yt,xI],styles:[".con-column[_ngcontent-%COMP%]{width:100%;padding:12px}.con-column[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;transition:.3s ease-in-out}.con-column[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.02);box-shadow:var(--color-secondary-100) 2px 5px 15px}.con-column[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700;color:var(--color-text-200)}.con-column[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:var(--color-primary-200)}.con-column[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-primary-600)}.contact-social-wrapper[_ngcontent-%COMP%]{width:100%;background-image:url(bg-1.4f2e76ed3df4a76a.jpg);background-size:cover;background-position:center;background-repeat:no-repeat;min-height:300px}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%]{width:60%;height:100%;clip-path:polygon(100% 0,80% 100%,0 100%,0 0);opacity:.8;background-color:var(--color-primary-600)}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:var(--color-text-200)}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-primary-200)}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:20px}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .fa-facebook[_ngcontent-%COMP%]{color:#382bf0}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .fa-twitter[_ngcontent-%COMP%]{color:#00acee}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .fa-linkedin[_ngcontent-%COMP%]{color:#0e76a8}.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .fa-instagram[_ngcontent-%COMP%]{color:#bc2a8d}@media screen and (max-width: 560px){.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%]{width:80%}}@media screen and (max-width: 400px){.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%]{width:95%}}@media screen and (min-width: 1100px){.contact-social-wrapper[_ngcontent-%COMP%] .contact-social-div[_ngcontent-%COMP%]{background-image:url(logo-extended.e93b92e96c570a30.png);background-size:500px;background-repeat:no-repeat;background-position:right}}"]})}return t})(),jG=(()=>{class t{constructor(){this.sectionSource=new Q,this.section$=this.sectionSource.asObservable()}scrollToSection(e){const i=document.getElementById(e);i&&(i.scrollIntoView({behavior:"smooth"}),this.sectionSource.next(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oh=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllBlogs(){return this.http.get(this.baseUrl+"blog/all")}getBlogById(e){return this.http.get(this.baseUrl+"blog/"+e)}deleteBlog(e){return this.http.delete(this.baseUrl+"blog/delete/"+e)}createBlog(e){return this.http.post(this.baseUrl+"blog/create",{title:e.title,description:e.description,content:e.content,image:e.image,tags:e.tags,created_at:e.created_at,updated_at:e.updated_at,author:e.author})}updateBlog(e){return this.http.put(this.baseUrl+"blog/update/"+e.id,{title:e.title,description:e.description,content:e.content,image:e.image,tags:e.tags,created_at:e.created_at,updated_at:e.updated_at,author:e.author})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $G(t,n){1&t&&(p(0,"div",12),A(1,"img",13),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function WG(t,n){if(1&t){const e=vn();p(0,"div",14)(1,"div",15),H("click",function(){const o=ct(e).$implicit;return dt(he().OpenBlog(o.id))}),A(2,"img",16),p(3,"div",17)(4,"h5",18),m(5),f(),p(6,"p",19),m(7),f(),p(8,"p",19)(9,"small",20),m(10),f()()()()()}if(2&t){const e=n.$implicit;M(2),ui("src",e.image,Er),ui("alt",e.image),M(3),j(e.title),M(2),j(e.description),M(3),j(e.updated_at)}}const GG=function(t,n){return{"theme-light":t,"theme-dark":n}};let qG=(()=>{class t{constructor(e,i,r,o,s){this.themeService=e,this.router=i,this.scrollService=r,this.blogService=o,this.matSnackBar=s,this.isLoading=!0,this.themeSubscription=this.themeService.getThemeObservable().subscribe(a=>{this.isDarkMode=a})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){this.loadBlogs(),this.router.events.pipe(qt(e=>e instanceof Fn)).subscribe(()=>{window.location.reload(),window.scrollTo(0,0)})}loadBlogs(){this.blogService.getAllBlogs().subscribe(e=>{this.isLoading=!1,this.blogData=e},e=>{this.openSnackBar("Error loading blogs","Close")})}OpenBlog(e){this.router.navigate(["/blog-det",e])}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot),x(jG),x(Oh),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blog"]],decls:18,vars:6,consts:[["class","loading-screen",4,"ngIf"],[3,"ngClass"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/blog"],[1,"container"],[1,"row"],["class","col-12 col-sm-6 col-md-4 col-lg-3 blog-div",4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"col-12","col-sm-6","col-md-4","col-lg-3","blog-div"],[1,"card","mb-3",3,"click"],[1,"card-img-top",3,"src","alt"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"text-body-secondary"]],template:function(i,r){1&i&&(U(0,$G,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3),A(4,"div",4),p(5,"div",5)(6,"div")(7,"h1"),m(8,"Blog"),f()(),p(9,"div",6)(10,"a",7),m(11,"Home"),f(),m(12," / "),p(13,"a",8),m(14,"Blog"),f()()()(),p(15,"div",9)(16,"div",10),U(17,WG,11,5,"div",11),f()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("ngClass",vo(3,GG,!r.isDarkMode,r.isDarkMode)),M(16),T("ngForOf",r.blogData))},dependencies:[Ji,Dt,Le,Yt],styles:[".blog-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{max-width:640px;background-color:var(--color-surface-mixed-100)}.blog-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:var(--color-text-200)}.blog-div[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-text[_ngcontent-%COMP%] .text-body-secondary[_ngcontent-%COMP%]{color:var(--color-text-300)!important}"]})}return t})();var YG=[{id:1,blogId:1,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:1,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:0},{id:2,blogId:1,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:2,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:1},{id:3,blogId:1,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:3,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:2},{id:4,blogId:2,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:4,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:3},{id:5,blogId:2,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:5,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:4},{id:6,blogId:3,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:6,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:0},{id:7,blogId:4,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,comment:"This is a comment",reply:[{id:null,commentId:7,name:"John",email:"a@a.com",profile:"https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png",date:new Date,replyComment:"This is a reply comment"}],like:0}];let ZG=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllComments(){return this.http.get(this.baseUrl+"comment/all")}getCommentById(e){return this.http.get(this.baseUrl+"comment/"+e)}deleteComment(e){return this.http.delete(this.baseUrl+"comment/delete/"+e)}createComment(e){return this.http.post(this.baseUrl+"comment/save",{id:e.id,blogId:e.blogId,name:e.name,email:e.email,profile:e.profile,date:e.date,comment:e.comment,reply:e.reply,like:e.like})}updateComment(e){return this.http.put(this.baseUrl+"comment/update/"+e.id,{id:e.id,blogId:e.blogId,name:e.name,email:e.email,profile:e.profile,date:e.date,comment:e.comment,reply:e.reply,like:e.like})}likeComment(e){return this.http.put(this.baseUrl+"comment/like/"+e.id,{id:e.id,blogId:e.blogId,name:e.name,email:e.email,profile:e.profile,date:e.date,comment:e.comment,reply:e.reply,like:e.like})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),KG=(()=>{class t{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=ra(this.platformId)}static getCookieRegExp(e){const i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const r=t.getCookieRegExp(e).exec(this.document.cookie);return r[1]?t.safeDecodeURIComponent(r[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},i=this.document;return i.cookie&&""!==i.cookie&&i.cookie.split(";").forEach(r=>{const[o,s]=r.split("=");e[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(s)}),e}set(e,i,r,o,s,a,c){if(!this.documentIsAccessible)return;if("number"==typeof r||r instanceof Date||o||s||a||c)return void this.set(e,i,{expires:r,path:o,domain:s,secure:a,sameSite:c||"Lax"});let d=encodeURIComponent(e)+"="+encodeURIComponent(i)+";";const h=r||{};h.expires&&(d+="number"==typeof h.expires?"expires="+new Date((new Date).getTime()+1e3*h.expires*60*60*24).toUTCString()+";":"expires="+h.expires.toUTCString()+";"),h.path&&(d+="path="+h.path+";"),h.domain&&(d+="domain="+h.domain+";"),!1===h.secure&&"None"===h.sameSite&&(h.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),h.secure&&(d+="secure;"),h.sameSite||(h.sameSite="Lax"),d+="sameSite="+h.sameSite+";",this.document.cookie=d}delete(e,i,r,o,s="Lax"){this.documentIsAccessible&&this.set(e,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:i,domain:r,secure:o,sameSite:s})}deleteAll(e,i,r,o="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const a in s)s.hasOwnProperty(a)&&this.delete(a,e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(F(Oe),F(td))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Di=(()=>{class t{constructor(e){this.cookieService=e}createUser(e){this.cookieService.set("user-token",e,432e3)}createAdmin(e){this.cookieService.set("admin-token",e,432e3)}googleLogin(e){this.cookieService.set("profile-token",e,432e3)}googleLoginName(e){this.cookieService.set("profile-name",e,432e3)}googleLoginEmail(e){this.cookieService.set("profile-email",e,432e3)}googleLoginPicture(e){this.cookieService.set("profile-picture",e,432e3)}googleLoginFamilyName(e){this.cookieService.set("profile-family-name",e,432e3)}logout(){this.cookieService.delete("user-token")}logoutAdmin(){this.cookieService.delete("admin-token")}isExists(){return 0!==this.cookieService.get("user-token").length}isAdmin(){return 0!==this.cookieService.get("admin-token").length}isUserProfile(){return 0!==this.cookieService.get("profile-token").length}isUserProfileName(){return 0!==this.cookieService.get("profile-name").length}profileName(){return this.cookieService.get("profile-name").toString()}profileEmail(){return this.cookieService.get("profile-email").toString()}profilePicture(){return this.cookieService.get("profile-picture").toString()}profileFamilyName(){return this.cookieService.get("profile-family-name").toString()}userEmail(){return this.cookieService.get("user-token").toString()}adminEmail(){return this.cookieService.get("admin-token").toString()}userProfile(){return this.cookieService.get("profile-token").toString()}deleteUserProfile(){this.cookieService.delete("profile-token"),this.cookieService.delete("profile-name"),this.cookieService.delete("profile-email"),this.cookieService.delete("profile-picture"),this.cookieService.delete("profile-family-name")}acceptAllCookies(){this.cookieService.set("cookies-accepted","true",1728e3)}necessaryCookiesOnly(){this.cookieService.set("cookies-accepted","false",1728e3)}isCookiesAccepted(){return 0!==this.cookieService.get("cookies-accepted").length}static#e=this.\u0275fac=function(i){return new(i||t)(F(KG))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class QG extends Q{constructor(n=1/0,e=1/0,i=I0){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s"']/,eq=new RegExp(SI.source,"g"),kI=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tq=new RegExp(kI.source,"g"),nq={"&":"&","<":"<",">":">",'"':""","'":"'"},AI=t=>nq[t];function Bi(t,n){if(n){if(SI.test(t))return t.replace(eq,AI)}else if(kI.test(t))return t.replace(tq,AI);return t}const iq=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function EI(t){return t.replace(iq,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const rq=/(^|[^\[])\^/g;function nn(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(i,r)=>(r=(r=r.source||r).replace(rq,"$1"),t=t.replace(i,r),e),getRegex:()=>new RegExp(t,n)};return e}const oq=/[^\w:]/g,sq=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function TI(t,n,e){if(t){let i;try{i=decodeURIComponent(EI(e)).replace(oq,"").toLowerCase()}catch{return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}n&&!sq.test(e)&&(e=function dq(t,n){Og[" "+t]||(Og[" "+t]=aq.test(t)?t+"/":Rg(t,"/",!0));const e=-1===(t=Og[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(lq,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(cq,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Og={},aq=/^[^:]+:\/*[^/]*$/,lq=/^([^:]+:)[\s\S]*$/,cq=/^([^:]+:\/*[^/]*)[\s\S]*$/,Fg={exec:function(){}};function PI(t,n){const i=t.replace(/\|/g,(o,s,a)=>{let c=!1,d=s;for(;--d>=0&&"\\"===a[d];)c=!c;return c?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>n)i.splice(n);else for(;i.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function OI(t,n,e,i){const r=n.href,o=n.title?Bi(n.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const a={type:"link",raw:e,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,a}return{type:"image",raw:e,href:r,title:o,text:Bi(s)}}class ww{constructor(n){this.options=n||Ol}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Rg(i,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const i=e[0],r=function fq(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const i=e[1];return n.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[s]=o;return s.length>=i.length?r.slice(i.length):r}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:r}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let i=e[2].trim();if(/#$/.test(i)){const r=Rg(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const i=e[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:e[0],tokens:o,text:i}}}list(n){let e=this.rules.block.list.exec(n);if(e){let i,r,o,s,a,c,d,h,_,v,y,C,D=e[1].trim();const S=D.length>1,E={type:"list",raw:"",ordered:S,start:S?+D.slice(0,-1):"",loose:!1,items:[]};D=S?`\\d{1,9}\\${D.slice(-1)}`:`\\${D}`,this.options.pedantic&&(D=S?D:"[*+-]");const P=new RegExp(`^( {0,3}${D})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(C=!1,(e=P.exec(n))&&!this.rules.block.hr.test(n));){if(i=e[0],n=n.substring(i.length),h=e[2].split("\n",1)[0].replace(/^\t+/,R=>" ".repeat(3*R.length)),_=n.split("\n",1)[0],this.options.pedantic?(s=2,y=h.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,y=h.slice(s),s+=e[1].length),c=!1,!h&&/^ *$/.test(_)&&(i+=_+"\n",n=n.substring(_.length+1),C=!0),!C){const R=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),B=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),z=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),X=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;n&&(v=n.split("\n",1)[0],_=v,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(z.test(_)||X.test(_)||R.test(_)||B.test(n)));){if(_.search(/[^ ]/)>=s||!_.trim())y+="\n"+_.slice(s);else{if(c||h.search(/[^ ]/)>=4||z.test(h)||X.test(h)||B.test(h))break;y+="\n"+_}!c&&!_.trim()&&(c=!0),i+=v+"\n",n=n.substring(v.length+1),h=_.slice(s)}}E.loose||(d?E.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(y),r&&(o="[ ] "!==r[0],y=y.replace(/^\[[ xX]\] +/,""))),E.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:y}),E.raw+=i}E.items[E.items.length-1].raw=i.trimRight(),E.items[E.items.length-1].text=y.trimRight(),E.raw=E.raw.trimRight();const I=E.items.length;for(a=0;a"space"===z.type),B=R.length>0&&R.some(z=>/\n.*\n/.test(z.raw));E.loose=B}if(E.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:r,title:o}}}table(n){const e=this.rules.block.table.exec(n);if(e){const i={type:"table",header:PI(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let o,s,a,c,r=i.align.length;for(o=0;o({text:d}));for(r=i.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Bi(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const s=Rg(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function uq(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let i=0,r=0;for(;r-1){const c=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let r=e[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),OI(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return OI(i,r,i[0],this.lexer)}}emStrong(n,e,i=""){let r=this.rules.inline.emStrong.lDelim.exec(n);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){const s=r[0].length-1;let a,c,d=s,h=0;const _="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(_.lastIndex=0,e=e.slice(-1*n.length+s);null!=(r=_.exec(e));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(c=a.length,r[3]||r[4]){d+=c;continue}if((r[5]||r[6])&&s%3&&!((s+c)%3)){h+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+h);const v=n.slice(0,s+r.index+(r[0].length-a.length)+c);if(Math.min(s,c)%2){const C=v.slice(1,-1);return{type:"em",raw:v,text:C,tokens:this.lexer.inlineTokens(C)}}const y=v.slice(2,-2);return{type:"strong",raw:v,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let i=e[2].replace(/\n/g," ");const r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=Bi(i,!0),{type:"codespan",raw:e[0],text:i}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const i=this.rules.inline.autolink.exec(n);if(i){let r,o;return"@"===i[2]?(r=Bi(this.options.mangle?e(i[1]):i[1]),o="mailto:"+r):(r=Bi(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(n,e){let i;if(i=this.rules.inline.url.exec(n)){let r,o;if("@"===i[2])r=Bi(this.options.mangle?e(i[0]):i[0]),o="mailto:"+r;else{let s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);r=Bi(i[0]),o="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n,e){const i=this.rules.inline.text.exec(n);if(i){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Bi(i[0]):i[0]:Bi(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}}const xe={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Fg,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};xe.def=nn(xe.def).replace("label",xe._label).replace("title",xe._title).getRegex(),xe.bullet=/(?:[*+-]|\d{1,9}[.)])/,xe.listItemStart=nn(/^( *)(bull) */).replace("bull",xe.bullet).getRegex(),xe.list=nn(xe.list).replace(/bull/g,xe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xe.def.source+")").getRegex(),xe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xe._comment=/|$)/,xe.html=nn(xe.html,"i").replace("comment",xe._comment).replace("tag",xe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe.paragraph=nn(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.blockquote=nn(xe.blockquote).replace("paragraph",xe.paragraph).getRegex(),xe.normal={...xe},xe.gfm={...xe.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},xe.gfm.table=nn(xe.gfm.table).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.gfm.paragraph=nn(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",xe.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.pedantic={...xe.normal,html:nn("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fg,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nn(xe.normal._paragraph).replace("hr",xe.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",xe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const fe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Fg,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Fg,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+=""+i+";";return n}fe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",fe.punctuation=nn(fe.punctuation).replace(/punctuation/g,fe._punctuation).getRegex(),fe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,fe.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,fe._comment=nn(xe._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),fe.emStrong.lDelim=nn(fe.emStrong.lDelim).replace(/punct/g,fe._punctuation).getRegex(),fe.emStrong.rDelimAst=nn(fe.emStrong.rDelimAst,"g").replace(/punct/g,fe._punctuation).getRegex(),fe.emStrong.rDelimUnd=nn(fe.emStrong.rDelimUnd,"g").replace(/punct/g,fe._punctuation).getRegex(),fe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,fe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,fe._email=/[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])?)+(?![-_])/,fe.autolink=nn(fe.autolink).replace("scheme",fe._scheme).replace("email",fe._email).getRegex(),fe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,fe.tag=nn(fe.tag).replace("comment",fe._comment).replace("attribute",fe._attribute).getRegex(),fe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,fe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,fe.link=nn(fe.link).replace("label",fe._label).replace("href",fe._href).replace("title",fe._title).getRegex(),fe.reflink=nn(fe.reflink).replace("label",fe._label).replace("ref",xe._label).getRegex(),fe.nolink=nn(fe.nolink).replace("ref",xe._label).getRegex(),fe.reflinkSearch=nn(fe.reflinkSearch,"g").replace("reflink",fe.reflink).replace("nolink",fe.nolink).getRegex(),fe.normal={...fe},fe.pedantic={...fe.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:nn(/^!?\[(label)\]\((.*?)\)/).replace("label",fe._label).getRegex(),reflink:nn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fe._label).getRegex()},fe.gfm={...fe.normal,escape:nn(fe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(d.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(n)){n=n.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(n)){n=n.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(n)){n=n.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(n)){n=n.substring(i.raw.length),e.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=n.slice(1);let d;this.options.extensions.startBlock.forEach(function(h){d=h.call({lexer:this},c),"number"==typeof d&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(o=n.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=e[e.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),s=o.length!==n.length,n=n.substring(i.raw.length);continue}if(i=this.tokenizer.text(n)){n=n.substring(i.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let i,r,o,a,c,d,s=n;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)h.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+II("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+II("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>!!(i=h.call({lexer:this},n,e))&&(n=n.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.escape(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(n)){n=n.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.link(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(n,s,d)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(n,FI)){n=n.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(n,FI))){n=n.substring(i.raw.length),e.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const _=n.slice(1);let v;this.options.extensions.startInline.forEach(function(y){v=y.call({lexer:this},_),"number"==typeof v&&v>=0&&(h=Math.min(h,v))}),h<1/0&&h>=0&&(o=n.substring(0,h+1))}if(i=this.tokenizer.inlineText(o,pq)){n=n.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(d=i.raw.slice(-1)),c=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(n){const h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}return e}}class Fh{constructor(n){this.options=n||Ol}code(n,e,i){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(n,r);null!=o&&o!==n&&(i=!0,n=o)}return n=n.replace(/\n$/,"")+"\n",r?'
";return n?Promise.resolve(r):e?void e(null,r):r}if(n)return Promise.reject(i);if(!e)throw i;e(i)}}((i={...De.defaults,...o}).silent,i.async,r);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function hq(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){const a=i.highlight;let c;try{i.hooks&&(e=i.hooks.preprocess(e)),c=t(e,i)}catch(_){return s(_)}const d=function(_){let v;if(!_)try{i.walkTokens&&De.walkTokens(c,i.walkTokens),v=n(c,i),i.hooks&&(v=i.hooks.postprocess(v))}catch(y){_=y}return i.highlight=a,_?s(_):r(null,v)};if(!a||a.length<3||(delete i.highlight,!c.length))return d();let h=0;return De.walkTokens(c,function(_){"code"===_.type&&(h++,setTimeout(()=>{a(_.text,_.lang,function(v,y){if(v)return d(v);null!=y&&y!==_.text&&(_.text=y,_.escaped=!0),h--,0===h&&d()})},0))}),void(0===h&&d())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(a=>t(a,i)).then(a=>i.walkTokens?Promise.all(De.walkTokens(a,i.walkTokens)).then(()=>a):a).then(a=>n(a,i)).then(a=>i.hooks?i.hooks.postprocess(a):a).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));const a=t(e,i);i.walkTokens&&De.walkTokens(a,i.walkTokens);let c=n(a,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(a){return s(a)}}}function De(t,n,e){return NI(wa.lex,Ca.parse)(t,n,e)}De.options=De.setOptions=function(t){return function JG(t){Ol=t}(De.defaults={...De.defaults,...t}),De},De.getDefaults=function MI(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},De.defaults=Ol,De.use=function(...t){const n=De.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const i={...e};if(i.async=De.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const o=n.renderers[r.name];n.renderers[r.name]=o?function(...s){let a=r.renderer.apply(this,s);return!1===a&&(a=o.apply(this,s)),a}:r.renderer}if(r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");n[r.level]?n[r.level].unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&("block"===r.level?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:"inline"===r.level&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),i.extensions=n),e.renderer){const r=De.defaults.renderer||new Fh;for(const o in e.renderer){const s=r[o];r[o]=(...a)=>{let c=e.renderer[o].apply(r,a);return!1===c&&(c=s.apply(r,a)),c}}i.renderer=r}if(e.tokenizer){const r=De.defaults.tokenizer||new ww;for(const o in e.tokenizer){const s=r[o];r[o]=(...a)=>{let c=e.tokenizer[o].apply(r,a);return!1===c&&(c=s.apply(r,a)),c}}i.tokenizer=r}if(e.hooks){const r=De.defaults.hooks||new Cw;for(const o in e.hooks){const s=r[o];r[o]=Cw.passThroughHooks.has(o)?a=>{if(De.defaults.async)return Promise.resolve(e.hooks[o].call(r,a)).then(d=>s.call(r,d));const c=e.hooks[o].call(r,a);return s.call(r,c)}:(...a)=>{let c=e.hooks[o].apply(r,a);return!1===c&&(c=s.apply(r,a)),c}}i.hooks=r}if(e.walkTokens){const r=De.defaults.walkTokens;i.walkTokens=function(o){let s=[];return s.push(e.walkTokens.call(this,o)),r&&(s=s.concat(r.call(this,o))),s}}De.setOptions(i)})},De.walkTokens=function(t,n){let e=[];for(const i of t)switch(e=e.concat(n.call(De,i)),i.type){case"table":for(const r of i.header)e=e.concat(De.walkTokens(r.tokens,n));for(const r of i.rows)for(const o of r)e=e.concat(De.walkTokens(o.tokens,n));break;case"list":e=e.concat(De.walkTokens(i.items,n));break;default:De.defaults.extensions&&De.defaults.extensions.childTokens&&De.defaults.extensions.childTokens[i.type]?De.defaults.extensions.childTokens[i.type].forEach(function(r){e=e.concat(De.walkTokens(i[r],n))}):i.tokens&&(e=e.concat(De.walkTokens(i.tokens,n)))}return e},De.parseInline=NI(wa.lexInline,Ca.parseInline),De.Parser=Ca,De.parser=Ca.parse,De.Renderer=Fh,De.TextRenderer=RI,De.Lexer=wa,De.lexer=wa.lex,De.Tokenizer=ww,De.Slugger=LI,De.Hooks=Cw,De.parse=De;let xw=(()=>{class t{constructor(){this._buttonClick$=new Q,this.copied$=this._buttonClick$.pipe(Or(()=>fi(pe(!0),TT(3e3).pipe(Am(!1)))),ig(),function XG(t,n,e){let i,r=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t):i=t??1/0,Ue({connector:()=>new QG(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(Fr(!1),ve(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=G({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,i){1&e&&(p(0,"button",0),H("click",function(){return i.onCopyToClipboardClick()}),jn(1,"async"),m(2),jn(3,"async"),f()),2&e&&(ne("copied",Lo(1,3,i.copied$)),M(2),j(Lo(3,5,i.copiedText$)))},dependencies:[Lk],encapsulation:2,changeDetection:0}),t})();class bq{}class wq{}const BI=new Z("SECURITY_CONTEXT");let Dw=(()=>{class t{constructor(e,i,r,o,s,a){this.platform=e,this.securityContext=i,this.http=r,this.clipboardOptions=o,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new Fh},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Q,this.reload$=this._reload$.asObservable(),this.options=s}get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,disableSanitizer:c}=i,d={...this.options,...i.markedOptions};a&&(this.renderer=this.extendRenderer(d.renderer||new Fh));const h=this.trimIndentation(e),_=r?this.decodeHtml(h):h,v=s?this.parseEmoji(_):_,y=this.parseMarked(v,d,o);return(c?y:this.sanitizer.sanitize(this.securityContext,y))||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:c,mermaid:d,mermaidOptions:h}=i;o&&this.renderClipboard(e,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...c}),d&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...h}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ve(i=>this.handleExtension(e,i)))}highlight(e){if(!ra(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!ra(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendRenderer(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(o,s,a){return"mermaid"===s?`
${o}
`:r.call(this,o,s,a)},i.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,i){const r=e.lastIndexOf("://"),o=r>-1?e.substring(r+4):e,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",c=a.lastIndexOf("."),d=c>-1?a.substring(c+1):"";return d&&"md"!==d?"```"+d+"\n"+i+"\n```":i}parseMarked(e,i,r=!1){return r?De.parseInline(e,i):De.parse(e,i)}parseEmoji(e){if(!ra(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if(ra(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,r){if(!ra(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=e.querySelectorAll("pre");for(let c=0;c_.style.opacity="1",d.onmouseout=()=>_.style.opacity="0",v=o?i.createComponent(o).hostView:s?i.createEmbeddedView(s):i.createComponent(xw).hostView,v.rootNodes.forEach(C=>{C.onmouseover=()=>_.style.opacity="1",_.appendChild(C),y=new ClipboardJS(C,{text:()=>d.innerText})}),v.onDestroy(()=>y.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!ra(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.init(r))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(F(td),F(BI),F(tr,8),F(bq,8),F(wq,8),F(_l))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),xa=(()=>{class t{constructor(e,i,r,o,s){this.domSanitizer=e,this.elementRef=i,this.markdownService=r,this.viewContainerRef=o,this.zone=s}transform(e,i){if(null==e)return"";if("string"!=typeof e)return console.error(`MarkdownPipe has been invoked with an invalid value type [${typeof e}]`),e;const r=this.markdownService.parse(e,i);return this.zone.onStable.pipe(ps()).subscribe(()=>this.markdownService.render(this.elementRef.nativeElement,i,this.viewContainerRef)),this.domSanitizer.bypassSecurityTrustHtml(r)}}return t.\u0275fac=function(e){return new(e||t)(x(_l,16),x(be,16),x(Dw,16),x(vi,16),x(_e,16))},t.\u0275pipe=ai({name:"markdown",type:t,pure:!0}),t})(),Eq=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[Dw,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:BI,useValue:e&&null!=e.sanitize?e.sanitize:en.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[fs]}),t})();var VI;function Tq(t,n){1&t&&(p(0,"div",34),A(1,"img",35),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function Pq(t,n){if(1&t&&(p(0,"div",50)(1,"div",37)(2,"div",38),A(3,"img",18),f(),p(4,"div",39)(5,"p",40),m(6),f(),p(7,"p",41),m(8),f()()(),p(9,"div",42)(10,"p"),m(11),f()(),A(12,"hr",48),f()),2&t){const e=n.$implicit;M(3),ui("src",e.profile,Er),ui("alt",e.name),M(3),j(e.name),M(2),j(e.date),M(3),j(e.replyComment)}}!function(t){let n;var r;let e,i;(r=n=t.SecurityLevel||(t.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=t.Theme||(t.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=t.LogLevel||(t.LogLevel={}))}(VI||(VI={}));const Iq=function(t){return{color:t}};function Oq(t,n){if(1&t){const e=vn();p(0,"div",36)(1,"div",37)(2,"div",38),A(3,"img",18),f(),p(4,"div",39)(5,"p",40),m(6),f(),p(7,"p",41),m(8),f()()(),p(9,"div",42)(10,"p"),m(11),f()(),p(12,"div",43)(13,"div",25)(14,"div",44)(15,"div",13)(16,"p",45),H("click",function(){const o=ct(e).$implicit;return dt(he().like(o.id))}),A(17,"i",46),m(18),f(),p(19,"p",45),H("click",function(){const o=ct(e).$implicit;return dt(he().replyPopup(o.id))}),m(20,"Reply"),f(),p(21,"p"),m(22,"Share "),A(23,"i",47),f()()()(),A(24,"hr",48),f(),U(25,Pq,13,5,"div",49),f()}if(2&t){const e=n.$implicit,i=he();M(3),ui("src",e.profile,Er),ui("alt",e.name),M(3),j(e.name),M(2),j(e.date),M(3),j(e.comment),M(6),ft(Nt(9,Iq,i.isLikedComment(e.id)?"var(--color-primary-200)":"var(--color-text-200)")),M(1),bt(" Like ",e.like,""),M(7),T("ngForOf",e.reply)}}function Fq(t,n){if(1&t){const e=vn();p(0,"div",51)(1,"form",24)(2,"div",52)(3,"button",53),H("click",function(){return ct(e),dt(he().closeReplyForm())}),m(4,"x"),f()(),p(5,"div",25)(6,"div",26)(7,"mat-form-field",27)(8,"mat-label"),m(9,"Reply"),f(),A(10,"textarea",54),f()(),p(11,"div",29)(12,"div",30),A(13,"div",31),f(),p(14,"div",32)(15,"button",33),H("click",function(){return ct(e),dt(he().submitReply())}),m(16,"Reply"),f()()()()()()}if(2&t){const e=he();M(1),T("formGroup",e.replyForm)}}const Rq=function(t,n){return{"theme-light":t,"theme-dark":n}};let Lq=(()=>{class t{constructor(e,i,r,o,s,a,c,d){this.themeService=e,this.route=i,this.sanitizer=r,this.blogService=o,this.commentService=s,this.matSnackBar=a,this.router=c,this.cookieService=d,this.isReplyFormVisible=!1,this.commentData=YG,this.sortedComments=[],this.isLiked=!1,this.likedComments=new Set,this.userProfile=[{name:"",family_name:"",email:"",picture:"https://img.icons8.com/plumpy/24/user-male-circle.png"}],this.replyForm=new st({reply:new ie(null,[ue.required])}),this.commentForm=new st({comment:new ie(null,[ue.required])}),this.isLoading=!1,this.themeSubscription=this.themeService.getThemeObservable().subscribe(h=>{this.isDarkMode=h})}ngOnInit(){this.router.events.pipe(qt(e=>e instanceof Fn)).subscribe(()=>{window.location.reload()}),this.cookieService.isUserProfileName()||this.router.navigate(["/authorize"]),this.loadBlog(),this.userProfile.name=this.cookieService.profileName(),this.userProfile.family_name=this.cookieService.profileFamilyName(),this.userProfile.email=this.cookieService.profileEmail(),this.userProfile.picture=this.cookieService.profilePicture()}ngOnDestroy(){this.themeSubscription.unsubscribe()}loadBlog(){return this.isLoading=!0,this.blogService.getAllBlogs().subscribe(e=>{this.isLoading=!1,this.blogData=e,this.route.paramMap.subscribe(i=>{this.blogId=i.get("id"),this.blogData.forEach(r=>{r.id==this.blogId&&(this.blogData=r)}),this.commentService.getAllComments().subscribe(r=>{this.commentData=r,this.commentData.forEach(o=>{o.blogId==this.blogId&&this.sortedComments.push(o)})})}),this.blogData.content.mainContent=this.sanitizer.bypassSecurityTrustHtml(this.blogData.content.mainContent)}),this.blogData}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}submitReply(){let e;this.isLoading=!0,this.replyForm.valid&&this.commentService.getAllComments().subscribe(i=>{const r=i.filter(o=>o.id==this.selectedCommentId);r.length>0?(e=r[0],this.commentService.updateComment({id:e.id,blogId:e.blogId,name:this.userProfile.name,email:this.userProfile.email,profile:this.userProfile.picture,date:this.loadDate(),comment:e.comment,reply:[...e.reply,{id:Math.random().toString(36).slice(-8),commentId:e.id,name:this.userProfile.name,email:this.userProfile.email,profile:this.userProfile.picture,date:this.loadDate(),replyComment:this.replyForm.value.reply}],like:e.like}).subscribe(o=>{this.isLoading=!1,location.reload()},o=>{this.isLoading=!1,this.openSnackBar(o.message,"Close")})):this.openSnackBar("Comment not found","Close")})}closeReplyForm(){this.isReplyFormVisible=!1}replyPopup(e){return this.isReplyFormVisible=!0,this.selectedCommentId=e}comment(){this.isLoading=!0,this.commentForm.valid&&(null!=this.userProfile.name?"undefined"!==this.userProfile.name?this.commentService.createComment({id:null,blogId:this.blogId,name:this.userProfile.name,email:this.userProfile.email,profile:this.userProfile.picture,date:this.loadDate(),comment:this.commentForm.value.comment,reply:[{id:null,commentId:null,name:"Geographical Analysis Platform",email:null,profile:"https://e7.pngegg.com/pngimages/858/1004/png-clipart-computer-icons-verified-badge-others-blue-heart-thumbnail.png",date:this.loadDate(),replyComment:"Thanks for your comment!"}],like:0}).subscribe(e=>{this.isLoading=!1,this.commentData.push(e),this.commentForm.reset(),this.loadBlog(),location.reload()},e=>{this.isLoading=!1,this.openSnackBar(e.message,"Close")}):(this.openSnackBar("Something wrong with your email. Please try again with proper email","Close"),this.cookieService.deleteUserProfile()):this.openSnackBar("Please login to comment","Close"))}like(e){this.isLiked=this.likedComments.has(e);let r,i=0;this.commentService.getAllComments().subscribe(o=>{const s=o.filter(a=>a.id==e);s.length>0&&(r=s[0],i=parseInt(r.like),this.isLiked?(this.likedComments.delete(e),localStorage.setItem(r.id+"comment-like",JSON.stringify(!1)),i-=1):(this.likedComments.add(e),localStorage.setItem(r.id+"comment-like",JSON.stringify(!0)),i++),this.commentService.likeComment({id:r.id,blogId:this.blogId,name:this.userProfile.name,email:this.userProfile.email,profile:this.userProfile.picture,date:this.loadDate(),comment:this.commentForm.value.comment,reply:[{id:Math.random().toString(36).slice(-8),commentId:null,name:"Geographical Analysis Platform",email:null,profile:"https://e7.pngegg.com/pngimages/858/1004/png-clipart-computer-icons-verified-badge-others-blue-heart-thumbnail.png",date:this.loadDate(),replyComment:"Thanks for your comment!"}],like:i}).subscribe(a=>{this.matSnackBar.open(this.isLiked?"Liked Comment":"Disliked Comment","OK",{duration:1500}),location.reload()}))})}isLikedComment(e){return"true"==localStorage.getItem(e+"comment-like")}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(yl),x(_l),x(Oh),x(ZG),x(Qt),x(ot),x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blog-det"]],decls:62,vars:22,consts:[["class","loading-screen",4,"ngIf"],[3,"ngClass"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],[3,"routerLink"],[1,"container",2,"position","relative"],[1,"d-md-flex","align-items-start","justify-content-between"],[1,"blog-content-wrapper"],[1,"blog-top-details"],[1,"d-flex","align-items-center","justify-content-between"],[2,"min-width","50%","display","flex","align-items","center","justify-content","flex-start"],["src","https://cdn1.iconfinder.com/data/icons/heroicons-solid/20/user-circle-512.png","alt","author","height","50"],[2,"color","var(--color-primary-600)"],[3,"innerHTML"],[3,"src","alt"],[1,"blog-bottom-details"],[1,"comment-section"],["class","comment-wrapper",4,"ngFor","ngForOf"],["class","reply-comment",4,"ngIf"],[1,"write-comment"],[1,"feedback-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"feedback-form-full-width"],["matInput","","formControlName","comment","placeholder","Your comment here.."],[1,"d-sm-flex","justify-content-between"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-start"],["data-type","standard","data-shape","pill","data-theme","outline","data-text","signin_with","data-size","large","data-logo_alignment","left",1,"g_id_signin"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-end"],["type","submit",1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"comment-wrapper"],[1,"commenter"],[1,"profile"],[1,"name-tag"],[1,"name"],[1,"date"],[1,"comment-content"],[1,"comment-btns-wrapper"],[1,"col-12","col-md-6"],[3,"click"],["aria-hidden","true",1,"fa","fa-thumbs-up"],["aria-hidden","true",1,"fa","fa-share"],[2,"color","var(--color-primary-400)"],["class","reply-wrapper",4,"ngFor","ngForOf"],[1,"reply-wrapper"],[1,"reply-comment"],[1,"close-btn-div"],["type","reset",3,"click"],["matInput","","formControlName","reply","placeholder","Your reply here.."]],template:function(i,r){1&i&&(U(0,Tq,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3),A(4,"div",4),p(5,"div",5)(6,"div")(7,"h1"),m(8),f()(),p(9,"div",6)(10,"a",7),m(11,"Home"),f(),m(12," / "),p(13,"a",8),m(14),f()()()(),p(15,"div",9)(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"div",14)(21,"div"),A(22,"img",15),f(),p(23,"div")(24,"span"),m(25),f(),A(26,"br"),p(27,"span"),m(28),f()()(),p(29,"span"),m(30),f()()(),A(31,"hr",16),p(32,"h2"),m(33),f(),A(34,"p",17),f(),p(35,"div",11),A(36,"img",18),f()(),p(37,"div",11),A(38,"div",17),jn(39,"markdown"),f(),p(40,"div",11)(41,"div",19)(42,"span"),m(43),f()()(),A(44,"div"),p(45,"div",20),U(46,Oq,26,11,"div",21),f(),U(47,Fq,17,1,"div",22),p(48,"div",23)(49,"form",24)(50,"div",25)(51,"div",26)(52,"mat-form-field",27)(53,"mat-label"),m(54,"Comment"),f(),A(55,"textarea",28),f()(),p(56,"div",29)(57,"div",30),A(58,"div",31),f(),p(59,"div",32)(60,"button",33),H("click",function(){return r.comment()}),m(61,"Add Comment"),f()()()()()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("ngClass",vo(19,Rq,!r.isDarkMode,r.isDarkMode)),M(7),j(r.blogData.title),M(5),Gc("routerLink","/blog-det/",r.blogData.id,""),M(1),j(r.blogData.title),M(11),bt("Author : ",r.blogData.author,""),M(3),bt("Created at : ",r.blogData.created_at,""),M(2),bt("Tags : ",r.blogData.tags,""),M(3),j(r.blogData.content.mainTitle),M(1),T("innerHTML",r.blogData.content.mainContent,Yr),M(2),ui("src",r.blogData.image,Er),ui("alt",r.blogData.title),M(2),T("innerHTML",Lo(39,17,r.blogData.content.subContent),Yr),M(5),bt("Last update at : ",r.blogData.updated_at,""),M(3),T("ngForOf",r.sortedComments),M(1),T("ngIf",r.isReplyFormVisible),M(2),T("formGroup",r.commentForm))},dependencies:[Ji,Dt,Le,Yt,jt,Pt,xi,Vt,bn,At,Bt,at,It,xa],styles:[".blog-content-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:20px;padding:6px}.blog-content-wrapper[_ngcontent-%COMP%] .blog-top-details[_ngcontent-%COMP%], .blog-content-wrapper[_ngcontent-%COMP%] .blog-bottom-details[_ngcontent-%COMP%]{margin-bottom:20px}.blog-content-wrapper[_ngcontent-%COMP%] .blog-top-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .blog-content-wrapper[_ngcontent-%COMP%] .blog-bottom-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:11px;color:var(--color-text-300)}.blog-content-wrapper[_ngcontent-%COMP%] .blog-bottom-details[_ngcontent-%COMP%]{margin-top:20px}.blog-content-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.comment-wrapper[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:20px;padding:12px 25px;min-height:50px;background-color:var(--color-primary-600)}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%]{display:flex;align-items:center}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:100%;overflow:hidden}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%]{margin-left:10px}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%] .name[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{color:var(--color-text-200);margin:0}.comment-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%] .date[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .commenter[_ngcontent-%COMP%] .name-tag[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{color:var(--color-text-300);font-size:11px;margin:0}.comment-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%]{margin-top:10px;color:var(--color-text-200)}.comment-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}.comment-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%]{margin-top:10px}.comment-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .reply-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--color-text-300);font-size:12px;font-weight:700;cursor:pointer}.comment-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover, .reply-wrapper[_ngcontent-%COMP%] .comment-btns-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover{color:var(--color-text-200)}.reply-wrapper[_ngcontent-%COMP%]{padding-left:max(50px,10%);padding-top:0;padding-bottom:0;margin-bottom:5px}.reply-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%]{margin-top:10px;color:var(--color-text-200)}.reply-wrapper[_ngcontent-%COMP%] .comment-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.reply-comment[_ngcontent-%COMP%]{position:fixed;bottom:10%;left:0;right:0;display:flex;align-items:center;justify-content:center;width:100%;z-index:999}.reply-comment[_ngcontent-%COMP%] .feedback-form[_ngcontent-%COMP%]{width:max(50%,300px);background-color:var(--color-surface-mixed-200);padding:12px 20px}.reply-comment[_ngcontent-%COMP%] .feedback-form[_ngcontent-%COMP%] .close-btn-div[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end}.reply-comment[_ngcontent-%COMP%] .feedback-form[_ngcontent-%COMP%] .close-btn-div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;outline:none;background-color:var(--color-surface-400);color:var(--color-text-200);font-size:16px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;margin-bottom:3px;border-radius:100%}"]})}return t})();const Nq=function(t,n){return{"theme-light":t,"theme-dark":n}},zI=function(t){return{"background-color":t}};let Bq=(()=>{class t{constructor(e,i,r){this.themeService=e,this.router=i,this.cookieService=r,this.signInBtn=!0,this.signUpBtn=!1,this.themeSubscription=this.themeService.getThemeObservable().subscribe(o=>{this.isDarkMode=o})}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngOnInit(){this.cookieService.isExists()?this.router.navigate(["/dashboard"]):this.router.navigate(["/login/signin"])}signIn(){this.signInBtn=!0,this.signUpBtn=!1,this.router.navigate(["/login/signin"])}signUp(){this.signInBtn=!1,this.signUpBtn=!0,this.router.navigate(["/login/signup"])}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot),x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-login"]],decls:12,vars:10,consts:[[3,"ngClass"],[1,"bg"],[1,"container"],[1,"d-flex","align-items-center","justify-content-center"],[1,"login-container"],[1,"login-selection"],[1,"login-selection-btn",3,"ngStyle","click"],[1,"login-loader"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"button",6),H("click",function(){return r.signIn()}),m(7,"Sign in"),f(),p(8,"button",6),H("click",function(){return r.signUp()}),m(9,"Signup"),f()(),p(10,"div",7),A(11,"router-outlet"),f()()()()()()),2&i&&(T("ngClass",vo(3,Nq,!r.isDarkMode,r.isDarkMode)),M(6),T("ngStyle",Nt(6,zI,r.signInBtn?"var(--color-primary-400)":"var(--color-primary-600)")),M(2),T("ngStyle",Nt(8,zI,r.signUpBtn?"var(--color-primary-400)":"var(--color-primary-600)")))},dependencies:[Ji,Iy,Ci],styles:[".bg[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%]{width:528px;height:100%;border:2px solid var(--color-primary-600);border-radius:10px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%]{width:100%;display:flex}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]{width:50%;padding:4px;border:none;outline:none;background-color:var(--color-primary-600);color:var(--color-text-200);text-align:center;transition:all .3s ease-in-out;border-bottom:2px solid var(--color-primary-600)}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]:first-child{border-top-left-radius:8px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]:last-child{border-top-right-radius:8px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-loader[_ngcontent-%COMP%]{width:100%;height:100%;padding:2vw}"]})}return t})();const HI=["*"],Vq=["content"];function zq(t,n){if(1&t){const e=vn();p(0,"div",2),H("click",function(){return ct(e),dt(he()._onBackdropClicked())}),f()}2&t&&ne("mat-drawer-shown",he()._isShowingBackdrop())}function Hq(t,n){1&t&&(p(0,"mat-drawer-content"),Ut(1,2),f())}const Uq=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],jq=["mat-drawer","mat-drawer-content","*"],$q={transformDrawer:ws("transform",[eo("open, open-instant",un({transform:"none",visibility:"visible"})),eo("void",un({"box-shadow":"none",visibility:"hidden"})),Li("void => open-instant",ir("0ms")),Li("void <=> open, open-instant => void",ir("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wq=new Z("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Gq(){return!1}}),UI=new Z("MAT_DRAWER_CONTAINER");let Lh=(()=>{class t extends wh{constructor(e,i,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(x(Tn),x(rt(()=>Sw)),x(be),x(yd),x(_e))},t.\u0275cmp=G({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&as("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[nt([{provide:wh,useExisting:t}]),ye],ngContentSelectors:HI,decls:1,vars:0,template:function(e,i){1&e&&(Ki(),Ut(0))},encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=wt(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=wt(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(wt(e))}constructor(e,i,r,o,s,a,c,d){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=c,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Q,this._animationEnd=new Q,this._animationState="void",this.openedChange=new ae(!0),this._openedStream=this.openedChange.pipe(qt(h=>h),ve(()=>{})),this.openedStart=this._animationStarted.pipe(qt(h=>h.fromState!==h.toState&&0===h.toState.indexOf("open")),Am(void 0)),this._closedStream=this.openedChange.pipe(qt(h=>!h),ve(()=>{})),this.closedStart=this._animationStarted.pipe(qt(h=>h.fromState!==h.toState&&"void"===h.toState),Am(void 0)),this._destroyed=new Q,this.onPositionChanged=new ae,this._modeChanged=new Q,this.openedChange.subscribe(h=>{h?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{bh(this._elementRef.nativeElement,"keydown").pipe(qt(h=>27===h.keyCode&&!this.disableClose&&!nr(h)),yt(this._destroyed)).subscribe(h=>this._ngZone.run(()=>{this.close(),h.stopPropagation(),h.preventDefault()}))}),this._animationEnd.pipe(ig((h,_)=>h.fromState===_.fromState&&h.toState===_.toState)).subscribe(h=>{const{fromState:_,toState:v}=h;(0===v.indexOf("open")&&"void"===_||"void"===v&&0===_.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(On(1)).subscribe(s=>o(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(fh),x(Dl),x(Dn),x(_e),x(hh),x(Oe,8),x(UI,8))},t.\u0275cmp=G({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&tn(Vq,5),2&e){let r;$e(r=We())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Cu("@transform.start",function(o){return i._animationStarted.next(o)})("@transform.done",function(o){return i._animationEnd.next(o)}),2&e&&(tt("align",null),Du("@transform",i._animationState),ne("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:HI,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(Ki(),p(0,"div",0,1),Ut(2),f())},dependencies:[wh],encapsulation:2,data:{animation:[$q.transformDrawer]},changeDetection:0}),t})(),Sw=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=wt(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:wt(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,o,s,a=!1,c){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new Qc,this.backdropClick=new ae,this._destroyed=new Q,this._doCheckSubject=new Q,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Q,e&&e.change.pipe(yt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(yt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(Fr(this._allDrawers),yt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Fr(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(ng(10),yt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(qt(i=>i.fromState!==i.toState),yt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(yt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(yt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(On(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(yt(fi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(x(Ri,8),x(be),x(_e),x(Tn),x(Ch),x(Wq),x(Pr,8))},t.\u0275cmp=G({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(bi(r,Lh,5),bi(r,Mw,5)),2&e){let o;$e(o=We())&&(i._content=o.first),$e(o=We())&&(i._allDrawers=o)}},viewQuery:function(e,i){if(1&e&&tn(Lh,5),2&e){let r;$e(r=We())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&ne("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[nt([{provide:UI,useExisting:t}])],ngContentSelectors:jq,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(Ki(Uq),U(0,zq,1,2,"div",0),Ut(1),Ut(2,1),U(3,Hq,2,0,"mat-drawer-content",1)),2&e&&(T("ngIf",i.hasBackdrop),M(3),T("ngIf",!i._content))},dependencies:[Le,Lh],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),qq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({imports:[fs,Ln,Sl,Sl,Ln]}),t})(),Yq=(()=>{class t{constructor(e,i){this.cookieService=e,this.router=i,this.userEmail="",this.profileLetter=""}ngOnInit(){this.userEmail=this.cookieService.userEmail().toString(),this.profileLetter=this.userEmail[0]}signOut(){this.cookieService.logout(),this.router.navigate(["/login/signin"])}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-dashbord"]],decls:34,vars:2,consts:[[1,"bg"],[1,"dashboard-top-bar"],[1,"menu-icon",3,"click"],["src","./assets/images/icons/menu.png","alt","menu"],[1,"menu-icon-effect"],[1,"profile-tag"],[1,"profiler-image"],[1,"d-none","d-md-block"],[1,"sign-out",3,"click"],["hasBackdrop","false",1,"dashboard-container"],["mode","over"],["drawer",""],["routerLink","/dashboard/monitor"],["routerLink","/dashboard/metrological-data"],["routerLink","/dashboard/prediction"],["routerLink","/dashboard/stats"],["routerLink","/dashboard/graphs"],["routerLink","/dashboard/settings"],["routerLink","/dashboard/administration"],[1,"container"]],template:function(i,r){if(1&i){const o=vn();p(0,"div",0)(1,"div",1)(2,"div",2),H("click",function(){return ct(o),dt(ta(15).toggle())}),A(3,"img",3)(4,"div",4),f(),p(5,"div",5)(6,"div",6),m(7),f(),p(8,"div",7)(9,"p"),m(10),f(),p(11,"p",8),H("click",function(){return r.signOut()}),m(12,"sign out"),f()()()(),p(13,"mat-drawer-container",9)(14,"mat-drawer",10,11)(16,"ul")(17,"li",12),m(18,"Monitoring"),f(),p(19,"li",13),m(20,"Metrological Data"),f(),p(21,"li",14),m(22,"Prediction"),f(),p(23,"li",15),m(24,"Statistical Analysis"),f(),p(25,"li",16),m(26,"Graphs"),f(),p(27,"li",17),m(28,"Settings"),f(),p(29,"li",18),m(30,"Administration"),f()()(),p(31,"mat-drawer-content")(32,"div",19),A(33,"router-outlet"),f()()()()}2&i&&(M(7),bt(" ",r.profileLetter," "),M(3),j(r.userEmail))},dependencies:[Ci,Yt,Mw,Sw,Lh]})}return t})(),Zq=(()=>{class t{constructor(e,i){this.cookieService=e,this.route=i}canActivate(e,i){return!!this.cookieService.isExists()||(this.route.navigateByUrl("/login"),!1)}static#e=this.\u0275fac=function(i){return new(i||t)(F(Di),F(ot))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nh=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllAdmins(){return this.http.get(this.baseUrl+"admin/all")}getAdminById(e){return this.http.get(this.baseUrl+"admin/"+e)}getAdminByEmail(e){return this.http.get(this.baseUrl+"admin/email/"+e)}deleteAdmin(e){return this.http.delete(this.baseUrl+"admin/delete/"+e)}deleteAdminByEmail(e){return this.http.delete(this.baseUrl+"admin/delete/email/"+e)}createAdmin(e){return this.http.post(this.baseUrl+"admin",{id:e.id,name:e.name,email:e.email,phone:e.phone,password:e.password})}updateAdmin(e){return this.http.put(this.baseUrl+"admin/update/"+e.id,{id:e.id,name:e.name,email:e.email,phone:e.phone,password:e.password})}updateAdminPassword(e){return this.http.put(this.baseUrl+"admin/password/"+e.id,{id:e.id,name:e.name,email:e.email,phone:e.phone,password:e.password})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bh=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}setCredentials(e){return this.http.post(this.baseUrl+"login/save",{id:e.id,email:e.email,password:e.password})}deleteCredentials(e){return this.http.delete(this.baseUrl+"login/delete/"+e)}getCredentials(){return this.http.get(this.baseUrl+"login/get")}getCredentialByEmail(e){return this.http.get(this.baseUrl+"login/email/"+e)}updateCredentialsByEmail(e){return this.http.put(this.baseUrl+"login/update/"+e.email,{email:e.email,password:e.password})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kq(t,n){1&t&&(p(0,"div",10),A(1,"img",11),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let jI=(()=>{class t{constructor(e,i,r,o,s,a){this.cookieService=e,this.snackBar=i,this.router=r,this.userService=o,this.adminService=s,this.credentialService=a,this.urlState=this.router.url,this.isLoading=!1,this.signInForm=new st({email:new ie(null,[ue.required,ue.email]),password:new ie(null,[ue.required])})}ngOnInit(){}submit(){"/login/signin"===this.urlState?this.credentialService.getCredentials().subscribe(e=>{0===e.length?(this.userService.createUser({id:null,name:"test user",email:"tester@gmail.com",phone:null,country:null,remarks:null,active:!0}).subscribe(i=>{this.openSnackBar("Default User Created","OK")}),this.credentialService.setCredentials({id:null,email:"tester@gmail.com",password:"1234"}).subscribe(i=>{this.openSnackBar("Default Credentials Created","OK")}),this.cookieService.createAdmin("tester@gmail.com"),this.openSnackBar("Congratulations! You are the first user of this site and you are on tester mode. please change your credentials","OK"),this.router.navigate(["/dashboard"])):(this.isLoading=!0,this.userService.getUserByEmail(this.signInForm.get("email")?.value).subscribe(i=>{null===i?(this.isLoading=!1,this.openSnackBar("User Not Found","OK")):!1===i.active?(this.isLoading=!1,this.openSnackBar("User Not Verified","OK")):this.credentialService.getCredentialByEmail(this.signInForm.get("email")?.value).subscribe(r=>{r.email===this.signInForm.get("email")?.value?r.password===this.signInForm.get("password")?.value?(this.cookieService.createUser(r.email),this.isLoading=!1,this.router.navigate(["/dashboard"])):(this.isLoading=!1,this.openSnackBar("Password Incorrect","OK")):(this.isLoading=!1,this.openSnackBar("User Not Found","OK"))}),this.authData=i}))}):"/dashboard/administration/signin"===this.urlState&&(this.isLoading=!0,this.adminService.getAllAdmins().subscribe(e=>{this.isLoading=!1,0===e.length?this.adminService.createAdmin({id:null,name:"test admin",email:"test-admin@gmail.com",phone:null,password:"1234"}).subscribe(i=>{this.openSnackBar("Default Admin Created","OK"),this.cookieService.createAdmin("test-admin@gmail.com"),this.openSnackBar("Congratulations! Default Admin Created","OK")}):this.adminService.getAdminByEmail(this.signInForm.get("email")?.value).subscribe(i=>{this.isLoading=!1,i.email===this.signInForm.get("email")?.value?i.password===this.signInForm.get("password")?.value?(this.cookieService.createAdmin(i.email),this.isLoading=!1,this.router.navigate(["/admin"]),this.openSnackBar("Admin Found","OK")):(this.isLoading=!1,this.openSnackBar("Password Incorrect","OK")):(this.isLoading=!1,this.openSnackBar("Admin Not Found","OK"))})}))}openSnackBar(e,i){this.snackBar.open(e,i,{duration:2e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di),x(Qt),x(ot),x(Il),x(Nh),x(Bh))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-signin-form"]],decls:17,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"signIn-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"signIn-form-full-width"],["matInput","","formControlName","email","placeholder","Ex. sample@gmail.com"],["matInput","","formControlName","password","placeholder","Ex. qehj-wek@45","type","password"],[1,"d-flex","align-items-center","justify-content-end"],[1,"col-md-6"],["type","submit",1,"button-1","w-100",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,Kq,6,0,"div",0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),m(6,"Email"),f(),A(7,"input",5),f()(),p(8,"div",3)(9,"mat-form-field",4)(10,"mat-label"),m(11,"Password"),f(),A(12,"input",6),f()(),p(13,"div",7)(14,"div",8)(15,"button",9),H("click",function(){return r.submit()}),m(16,"Sign In"),f()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("formGroup",r.signInForm))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,at,It]})}return t})();function Qq(t,n){1&t&&(p(0,"div",15),A(1,"img",16),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function Xq(t,n){if(1&t&&(p(0,"mat-option",17),m(1),f()),2&t){const e=n.$implicit;T("value",e.name),M(1),j(e.name)}}let Jq=(()=>{class t{constructor(e,i,r,o,s){this.credentialService=e,this.userService=i,this.matSnackBar=r,this.cookieService=o,this.router=s,this.countries=bI,this.isLoading=!1,this.signupForm=new st({name:new ie(null,[ue.required]),email:new ie(null,[ue.required,ue.email]),phone:new ie(null,[ue.required,ue.minLength(10),ue.maxLength(12),ue.pattern("^[0-9]*$")]),country:new ie(null,[ue.required]),remarks:new ie(null)})}ngOnInit(){}submit(){this.isLoading=!0,this.signupForm.valid?this.userService.getAllUsers().subscribe(e=>{this.isLoading=!1;for(let i=0;i{this.cookieService.createUser(this.signupForm.get("email")?.value),this.isLoading=!1,this.signupForm.reset(),this.router.navigate(["/dashboard"]),this.openSnackbar("User Requested Successfully")},i=>{this.openSnackbar("User Request Failed")})}):this.openSnackbar("Please Fill All Fields")}openSnackbar(e){this.matSnackBar.open(e,"OK",{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Bh),x(Il),x(Qt),x(Di),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-signup-form"]],decls:35,vars:3,consts:[["class","loading-screen",4,"ngIf"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["matInput","","formControlName","name","placeholder","Ex. kavindu kokila"],["matInput","","formControlName","email","placeholder","Ex. sample@gmail.com"],["matInput","","formControlName","phone","placeholder","Ex. 0762343567"],["formControlName","country",1,"example-full-width","field"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-12"],["matInput","","formControlName","remarks","placeholder","Ex. I'm a university student"],[1,"d-flex","align-items-center","justify-content-end"],["type","submit",1,"button-1","w-100",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,Qq,6,0,"div",0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),m(6,"Name"),f(),A(7,"input",5),f()(),p(8,"div",3)(9,"mat-form-field",4)(10,"mat-label"),m(11,"Email"),f(),A(12,"input",6),f()(),p(13,"div",3)(14,"mat-form-field",4)(15,"mat-label"),m(16,"Phone"),f(),A(17,"input",7),f()(),p(18,"div",3)(19,"mat-form-field",4)(20,"mat-label"),m(21,"Country"),f(),p(22,"mat-select",8)(23,"mat-option",9),m(24,"Select Country *"),f(),U(25,Xq,2,2,"mat-option",10),f()()(),p(26,"div",11)(27,"mat-form-field",4)(28,"mat-label"),m(29,"Remarks (Optional)"),f(),A(30,"textarea",12),f()(),p(31,"div",13)(32,"div",3)(33,"button",14),H("click",function(){return r.submit()}),m(34,"Request"),f()()()()()),2&i&&(T("ngIf",r.isLoading),M(1),T("formGroup",r.signupForm),M(24),T("ngForOf",r.countries))},dependencies:[Dt,Le,jt,Pt,xi,Vt,bn,At,Bt,at,It,Yn,Bn]})}return t})(),$I=(()=>{class t{constructor(e){this.httpClient=e,this.baseUrl=Lr_apiUrl}getAllFeedback(){return this.httpClient.get(this.baseUrl+"feedback/all")}getFeedbackById(e){return this.httpClient.get(this.baseUrl+"feedback/"+e)}deleteFeedback(e){return this.httpClient.delete(this.baseUrl+"feedback/delete/"+e)}createFeedback(e){return this.httpClient.post(this.baseUrl+"feedback/save",{name:e.name,family_name:e.family_name,email:e.email,picture:e.picture,feedback:e.feedback,date:e.date})}updateFeedback(e){return this.httpClient.put(this.baseUrl+"feedback/update/"+e.id,{name:e.name,family_name:e.family_name,email:e.email,picture:e.picture,feedback:e.feedback,date:e.date})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eY(t,n){1&t&&(p(0,"div",24),A(1,"img",25),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function tY(t,n){if(1&t&&(p(0,"div",26)(1,"div",27)(2,"div",28),A(3,"img",29),f(),p(4,"div")(5,"p",30),m(6),f(),p(7,"p",31),m(8),f()()(),p(9,"div",32),m(10),f()()),2&t){const e=n.$implicit;M(3),ui("src",e.picture,Er),ui("alt",e.family_name),M(3),j(e.name),M(2),j(e.date),M(2),bt(" ",e.feedback," ")}}let nY=(()=>{class t{constructor(e,i,r,o){this.feedbackService=e,this.matSnackBar=i,this.router=r,this.cookieService=o,this.userProfile=[{name:"",family_name:"",email:"",picture:"https://img.icons8.com/plumpy/24/user-male-circle.png"}],this.isLoading=!0,this.feedbackForm=new st({feedback:new ie(null,[ue.required])})}ngOnInit(){this.router.events.pipe(qt(e=>e instanceof Fn)).subscribe(()=>{window.location.reload(),window.scrollTo(0,0)}),this.cookieService.isUserProfileName()||this.router.navigate(["/authorize"]),this.loadFeedback(),this.userProfile.name=this.cookieService.profileName(),this.userProfile.family_name=this.cookieService.profileFamilyName(),this.userProfile.email=this.cookieService.profileEmail(),this.userProfile.picture=this.cookieService.profilePicture()}loadFeedback(){this.feedbackService.getAllFeedback().subscribe(e=>{this.isLoading=!1,this.feedbacks=e},e=>{console.log(e)})}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}submit(){if(this.isLoading=!0,this.feedbackForm.valid)if(null!=this.userProfile.name)"undefined"!==this.userProfile.name?this.feedbackService.createFeedback({id:null,name:this.userProfile.name,family_name:this.userProfile.family_name,email:this.userProfile.email,picture:this.userProfile.picture,feedback:this.feedbackForm.value.feedback,date:this.loadDate()}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Feedback submitted successfully","OK"),this.feedbackForm.reset(),this.loadFeedback()},e=>{this.isLoading=!1,this.openSnackBar("Something went wrong","OK")}):this.openSnackBar("Something problem have with your email. Try proper email address","OK");else{const e=document.querySelector(".error-message");e.textContent="Please log in to submit feedback. Try to reload the page",e.style.display="block",location.reload()}else this.openSnackBar("Please Enter Your Feedback","OK")}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x($I),x(Qt),x(ot),x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-feedback"]],decls:36,vars:3,consts:[["class","loading-screen",4,"ngIf"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/feedback"],[1,"container"],[1,"sub-container"],[2,"margin-bottom","20px"],["class","feedback-wrapper",4,"ngFor","ngForOf"],[1,"feedback-write-area"],[1,"feedback-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"feedback-form-full-width"],["matInput","","formControlName","feedback","placeholder","Your feedback here.."],[1,"d-sm-flex","justify-content-between"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-start"],["data-type","standard","data-shape","pill","data-theme","outline","data-text","signin_with","data-size","large","data-logo_alignment","left",1,"g_id_signin"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-end"],["type","submit",1,"button-1",3,"click"],[1,"error-message"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"feedback-wrapper"],[1,"feedback-writer"],[1,"profile-wrapper"],["width","40","height","40",3,"src","alt"],[1,"username"],[1,"post-date"],[1,"feedback"]],template:function(i,r){1&i&&(U(0,eY,6,0,"div",0),p(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"Feedback"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"Feedback"),f()()()(),p(14,"div",8)(15,"div",9)(16,"h1",10),m(17,"How Customers Review Us..."),f(),A(18,"div"),U(19,tY,11,5,"div",11),p(20,"div",12)(21,"form",13)(22,"div",14)(23,"div",15)(24,"mat-form-field",16)(25,"mat-label"),m(26,"Feedback"),f(),A(27,"textarea",17),f()(),p(28,"div",18)(29,"div",19),A(30,"div",20),f(),p(31,"div",21)(32,"button",22),H("click",function(){return r.submit()}),m(33,"Add Feedback"),f()()()()()(),p(34,"div",23),m(35,"sd"),f()()()()),2&i&&(T("ngIf",r.isLoading),M(19),T("ngForOf",r.feedbacks),M(2),T("formGroup",r.feedbackForm))},dependencies:[Dt,Le,Yt,jt,Pt,xi,Vt,bn,At,Bt,at,It],styles:[".sub-container[_ngcontent-%COMP%]{width:100%;height:100%;min-height:200px;background-color:var(--color-primary-600);padding:2.5vw 2vw;display:flex;flex-direction:column;align-items:center;position:relative}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100px;background-color:var(--color-primary-400);padding:2vw 2.5vw;margin:12px 0;box-shadow:0 0 10px #0000001a}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%]{display:flex}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .profile-wrapper[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;overflow:hidden;margin-right:5px}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{font-size:14px;color:var(--color-text-200);margin-bottom:0!important}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .post-date[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-300);margin-bottom:0!important}.sub-container[_ngcontent-%COMP%] .feedback-wrapper[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{font-size:14px;margin-top:10px;color:var(--color-text-200)}.sub-container[_ngcontent-%COMP%] .feedback-write-area[_ngcontent-%COMP%]{background-color:var(--color-surface-mixed-200);padding:2vw;border-radius:5px;width:100%;height:100%;min-height:100px;margin-top:15px}.sub-container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:red;font-size:12px;position:absolute;bottom:20px;left:10%;right:0;text-align:center;width:80%;background-color:var(--color-surface-mixed-400);padding:4px;border-radius:12px;display:none;transition:all .3s ease}"]})}return t})(),Lg=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllFAQs(){return this.http.get(this.baseUrl+"faq/all")}getFAQById(e){return this.http.get(this.baseUrl+"faq/"+e)}deleteFAQ(e){return this.http.delete(this.baseUrl+"faq/delete/"+e)}createFAQ(e){return this.http.post(this.baseUrl+"faq",{question:e.question,answer:e.answer})}updateFAQ(e){return this.http.put(this.baseUrl+"faq/update/"+e.id,{id:e.id,question:e.question,answer:e.answer})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function iY(t,n){if(1&t&&(p(0,"div",13)(1,"h2",14)(2,"button",26),m(3),f()(),p(4,"div",27)(5,"div",17),m(6),f()()()),2&t){const e=n.$implicit,i=n.index;M(2),tt("data-bs-target","#accordian"+i)("aria-controls","accordian"+i),M(1),bt(" ",e.question," "),M(1),T("id","accordian"+i),M(2),j(e.answer)}}let rY=(()=>{class t{constructor(e,i){this.faqService=e,this.matSnackBar=i}ngOnInit(){this.loadFaqs()}loadFaqs(){this.faqService.getAllFAQs().subscribe(e=>{this.faqs=e},e=>{this.openSnackBar("Error loading FAQs","Close")})}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Lg),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-faq"]],decls:46,vars:1,consts:[[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/faq"],[1,"container"],[1,"d-md-flex","align-items-center","justify-content-between"],[1,"faq-banner"],["src","./assets/images/faq/banner-1.png","alt","banner"],[1,"faq-content"],["id","accordionFlushExample1",1,"accordion","accordion-flush"],[1,"accordion-item"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#flush-collapseOne","aria-expanded","false","aria-controls","flush-collapseOne",1,"accordion-button"],["id","flush-collapseOne","data-bs-parent","#accordionFlushExample1",1,"accordion-collapse","collapse","show"],[1,"accordion-body"],["type","button","data-bs-toggle","collapse","data-bs-target","#flush-collapseTwo","aria-expanded","false","aria-controls","flush-collapseTwo",1,"accordion-button","collapsed"],["id","flush-collapseTwo","data-bs-parent","#accordionFlushExample1",1,"accordion-collapse","collapse"],["type","button","data-bs-toggle","collapse","data-bs-target","#flush-collapseThree","aria-expanded","false","aria-controls","flush-collapseThree",1,"accordion-button","collapsed"],["id","flush-collapseThree","data-bs-parent","#accordionFlushExample1",1,"accordion-collapse","collapse"],[1,"d-md-flex","align-items-center","justify-content-between","flex-row-reverse"],["src","./assets/images/faq/banner-2.png","alt","banner"],["id","accordionFlushExample2",1,"accordion","accordion-flush"],["class","accordion-item",4,"ngFor","ngForOf"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"accordion-button","collapsed"],["data-bs-parent","#accordionFlushExample2",1,"accordion-collapse","collapse",3,"id"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1),A(2,"div",2),p(3,"div",3)(4,"div")(5,"h1"),m(6,"Frequently Asked Questions"),f()(),p(7,"div",4)(8,"a",5),m(9,"Home"),f(),m(10," / "),p(11,"a",6),m(12,"FAQ"),f()()()(),p(13,"div",7)(14,"div",8)(15,"div",9),A(16,"img",10),f(),p(17,"div",11)(18,"div",12)(19,"div",13)(20,"h2",14)(21,"button",15),m(22," What is the purpose of the Air Quality Monitoring application? "),f()(),p(23,"div",16)(24,"div",17),m(25,"The Air Quality Monitoring application is designed to provide real-time information about air quality, meteorological conditions, and land use factors in a specific geographic area. It aims to raise awareness about environmental conditions and assist users in making informed decisions based on accurate data."),f()()(),p(26,"div",13)(27,"h2",14)(28,"button",18),m(29," How does the application collect data for analysis? "),f()(),p(30,"div",19)(31,"div",17),m(32,"The application collects data through various sources, including sensors, weather stations, and publicly available datasets. The data is processed and analyzed using statistical methods and machine learning models to generate meaningful insights."),f()()(),p(33,"div",13)(34,"h2",14)(35,"button",20),m(36," What factors are considered in predicting air quality? "),f()(),p(37,"div",21)(38,"div",17),m(39,"The prediction of air quality takes into account multiple factors such as temperature, humidity, wind speed, land use patterns, and pollutant concentrations. Machine learning models are trained using historical data to make accurate predictions."),f()()()()()(),p(40,"div",22)(41,"div",9),A(42,"img",23),f(),p(43,"div",11)(44,"div",24),U(45,iY,7,5,"div",25),f()()()()()),2&i&&(M(45),T("ngForOf",r.faqs))},dependencies:[Dt,Yt],styles:[".faq-banner[_ngcontent-%COMP%], .faq-content[_ngcontent-%COMP%], .faq-banner[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.faq-content[_ngcontent-%COMP%] .accordion-flush[_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%] .accordion-button[_ngcontent-%COMP%], .faq-content[_ngcontent-%COMP%] .accordion-flush[_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%] .accordion-button.collapsed[_ngcontent-%COMP%]{background-color:var(--color-surface-mixed-100);color:var(--color-text-200)}.faq-content[_ngcontent-%COMP%] .accordion-flush[_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%] .accordion-button[_ngcontent-%COMP%]:focus, .faq-content[_ngcontent-%COMP%] .accordion-flush[_ngcontent-%COMP%] .accordion-item[_ngcontent-%COMP%] .accordion-button.collapsed[_ngcontent-%COMP%]:focus{box-shadow:none;border-color:transparent}.faq-content[_ngcontent-%COMP%] .accordion-body[_ngcontent-%COMP%]{color:var(--color-text-200);background-color:var(--color-surface-mixed-300)}"]})}return t})();const WI=function(t){return{"background-color":t}};let oY=(()=>{class t{constructor(e,i){this.router=e,this.cookieService=i,this.signInBtn=!0,this.signUpBtn=!1}ngOnInit(){}signIn(){this.signInBtn=!0,this.signUpBtn=!1,this.router.navigate(["/dashboard/administration/signin"])}signUp(){this.signInBtn=!1,this.signUpBtn=!0,this.router.navigate(["/dashboard/administration/signup"])}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot),x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-login"]],decls:11,vars:6,consts:[[1,"bg"],[1,"container"],[1,"d-flex","align-items-center","justify-content-center"],[1,"login-container"],[1,"login-selection"],[1,"login-selection-btn",3,"ngStyle","click"],[1,"login-loader"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),H("click",function(){return r.signIn()}),m(6,"Sign in"),f(),p(7,"button",5),H("click",function(){return r.signUp()}),m(8,"Signup"),f()(),p(9,"div",6),A(10,"router-outlet"),f()()()()()),2&i&&(M(5),T("ngStyle",Nt(2,WI,r.signInBtn?"var(--color-primary-400)":"var(--color-primary-600)")),M(2),T("ngStyle",Nt(4,WI,r.signUpBtn?"var(--color-primary-400)":"var(--color-primary-600)")))},dependencies:[Iy,Ci],styles:[".bg[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100vh - 200px)}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%]{width:528px;height:100%;border:2px solid var(--color-primary-600);border-radius:10px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%]{width:100%;display:flex}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]{width:50%;padding:4px;border:none;outline:none;background-color:var(--color-primary-600);color:var(--color-text-200);text-align:center;transition:all .3s ease-in-out;border-bottom:2px solid var(--color-primary-600)}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]:first-child{border-top-left-radius:8px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-selection[_ngcontent-%COMP%] .login-selection-btn[_ngcontent-%COMP%]:last-child{border-top-right-radius:8px}.bg[_ngcontent-%COMP%] .login-container[_ngcontent-%COMP%] .login-loader[_ngcontent-%COMP%]{width:100%;height:100%;padding:2vw}"]})}return t})(),sY=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-forbidden"]],decls:9,vars:0,consts:[[1,"forbidden-wrapper"],["routerLink","/home"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"h1"),m(2,"403"),f(),p(3,"h2"),m(4,"Forbidden"),f(),p(5,"p"),m(6,"You do not have permission to access this page."),f(),p(7,"a",1),m(8,"Home"),f()())},dependencies:[Yt],styles:[".forbidden-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}"]})}return t})(),aY=(()=>{class t{constructor(e,i){this.cookieService=e,this.router=i,this.userEmail="",this.profileLetter=""}ngOnInit(){this.userEmail=this.cookieService.adminEmail().toString(),this.profileLetter=this.userEmail[0]}signOut(){this.cookieService.logout(),this.router.navigate(["/login/signin"])}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-administration"]],decls:34,vars:2,consts:[[1,"bg"],[1,"dashboard-top-bar"],[1,"menu-icon",3,"click"],["src","./assets/images/icons/menu.png","alt","menu"],[1,"menu-icon-effect"],[1,"profile-tag"],[1,"profiler-image"],[1,"sign-out",3,"click"],["hasBackdrop","false",1,"dashboard-container"],["mode","over"],["drawer",""],["routerLink","/admin/forecast"],["routerLink","/admin/users"],["routerLink","/admin/blogs"],["routerLink","/admin/feedback"],["routerLink","/admin/comments"],["routerLink","/admin/faq"],["routerLink","/admin/settings"],[1,"container"]],template:function(i,r){if(1&i){const o=vn();p(0,"div",0)(1,"div",1)(2,"div",2),H("click",function(){return ct(o),dt(ta(15).toggle())}),A(3,"img",3)(4,"div",4),f(),p(5,"div",5)(6,"div",6),m(7),f(),p(8,"div")(9,"p"),m(10),f(),p(11,"p",7),H("click",function(){return r.signOut()}),m(12,"sign out"),f()()()(),p(13,"mat-drawer-container",8)(14,"mat-drawer",9,10)(16,"ul")(17,"li",11),m(18,"Forecast"),f(),p(19,"li",12),m(20,"Users"),f(),p(21,"li",13),m(22,"Blogs"),f(),p(23,"li",14),m(24,"Feedback"),f(),p(25,"li",15),m(26,"Comments"),f(),p(27,"li",16),m(28,"FAQ"),f(),p(29,"li",17),m(30,"Settings"),f()()(),p(31,"mat-drawer-content")(32,"div",18),A(33,"router-outlet"),f()()()()}2&i&&(M(7),bt(" ",r.profileLetter," "),M(3),j(r.userEmail))},dependencies:[Ci,Yt,Mw,Sw,Lh]})}return t})(),lY=(()=>{class t{constructor(e,i){this.themeService=e,this.router=i}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-forecast"]],decls:9,vars:4,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","new",1,"nav-link"],["aria-current","page","routerLink","edit",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"New"),f()(),p(4,"li",1)(5,"a",3),m(6,"Edit"),f()()(),p(7,"div",4),A(8,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/admin/forecast/new")),M(3),ne("active",r.isActive("/admin/forecast/edit")))},dependencies:[Ci,Yt]})}return t})();const cY=["tooltip"],GI=new Z("mat-tooltip-scroll-strategy"),hY={provide:GI,deps:[gr],useFactory:function uY(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},pY=new Z("mat-tooltip-default-options",{providedIn:"root",factory:function fY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),qI="tooltip-panel",YI=gd({passive:!0});let yY=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=wt(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=wt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=xl(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=xl(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,i,r,o,s,a,c,d,h,_,v,y){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=c,this._focusMonitor=d,this._dir=_,this._defaultOptions=v,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Q,this._scrollStrategy=h,this._document=y,v&&(v.position&&(this.position=v.position),v.positionAtOrigin&&(this.positionAtOrigin=v.positionAtOrigin),v.touchGestures&&(this.touchGestures=v.touchGestures)),_.change.pipe(yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yt(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(([i,r])=>{e.removeEventListener(i,r,YI)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new ga(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof be)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(yt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${qI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!nr(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(On(1),yt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const c=`${this._cssClassPrefix}-${qI}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,YI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){ul()},t.\u0275dir=ee({type:t,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"]}}),t})(),Vh=(()=>{class t extends yY{constructor(e,i,r,o,s,a,c,d,h,_,v,y){super(e,i,r,o,s,a,c,d,h,_,v,y),this._tooltipComponent=CY,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return t.\u0275fac=function(e){return new(e||t)(x(gr),x(be),x(yd),x(vi),x(_e),x(Dn),x(Gj),x(Dl),x(GI),x(Ri,8),x(pY,8),x(Oe))},t.\u0275dir=ee({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[ye]}),t})(),wY=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Q,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){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(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(x(Tn),x(Pr,8))},t.\u0275dir=ee({type:t}),t})(),CY=(()=>{class t extends wY{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return t.\u0275fac=function(e){return new(e||t)(x(Tn),x(be),x(Pr,8))},t.\u0275cmp=G({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&tn(cY,7),2&e){let r;$e(r=We())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&H("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&as("zoom",i.isVisible()?1:null)},features:[ye],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,i){1&e&&(p(0,"div",0,1),H("animationend",function(o){return i._handleAnimationEnd(o)}),p(2,"div",2),m(3),f()()),2&e&&(ne("mdc-tooltip--multiline",i._isMultiline),T("ngClass",i.tooltipClass),M(3),j(i.message))},dependencies:[Ji],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.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{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}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.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-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}),t})(),xY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[hY],imports:[z0,fs,wd,Ln,Ln,Sl]}),t})();function DY(t,n){1&t&&(p(0,"div",20),A(1,"img",21),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let MY=(()=>{class t{constructor(e,i,r){this.sanitizer=e,this.forecastService=i,this.snackBar=r,this.isLoading=!1,this.addForecastForm=new st({title:new ie(null,[ue.required]),cont:new ie(null,[ue.required])})}ngOnInit(){null!=localStorage.getItem("addForecastForm")?(this.draftItem=JSON.parse(localStorage.getItem("addForecastForm")),this.addForecastForm.setValue(JSON.parse(localStorage.getItem("addForecastForm"))),this.draftItem.cont=this.sanitizer.bypassSecurityTrustHtml(this.draftItem.cont)):(this.draftItem=[{title:null,cont:null}],this.addForecastForm.reset())}getDate(){let e;return e=(new Date).toString(),e.split(" ").slice(1,4).join(" ")}saveForecast(){this.isLoading=!0,this.forecastService.getForecast().subscribe(e=>{null!=e&&e.length>0?this.forecastService.deleteForecast(1).subscribe(i=>{this.forecastService.createForecast({id:1,title:this.addForecastForm.get("title")?.value,dateTime:this.getDate(),description:this.addForecastForm.get("cont")?.value,likes:0,visible:!0}).subscribe(r=>{this.isLoading=!1,this.openSnackBar("Forecast Created","OK")},r=>{this.isLoading=!1,this.openSnackBar(r.error.message,"OK")})},i=>{this.isLoading=!1,this.openSnackBar(i.error.message,"OK")}):this.forecastService.createForecast({id:1,title:this.addForecastForm.get("title")?.value,dateTime:this.getDate(),description:this.addForecastForm.get("cont")?.value,likes:0,visible:!0}).subscribe(i=>{this.isLoading=!1,this.openSnackBar("Forecast Created","OK")},i=>{this.isLoading=!1,this.openSnackBar(i.error.message,"OK")})})}saveDraft(){localStorage.setItem("addForecastForm",JSON.stringify(this.addForecastForm.value)),location.reload()}discardDraft(){localStorage.removeItem("addForecastForm"),location.reload()}openSnackBar(e,i){this.snackBar.open(e,i,{duration:2e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(_l),x(k0),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-forecast-new"]],decls:34,vars:4,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"d-flex","align-items-center","justify-content-end","w-100"],[1,"button-1",3,"click"],[1,"button-1",2,"margin-left","5px",3,"click"],[1,"forecast-add-form-wrapper"],[1,"forecast-form-wrapper-top"],["aria-hidden","true","matTooltip","use tags for get better experience. example: bold",1,"fa","fa-info-circle"],[1,"feedback-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"contact-form-full-width"],["matInput","","formControlName","title","placeholder","Title here..."],["appearance","outline","color","accent",1,"feedback-form-full-width"],["matInput","","formControlName","cont","placeholder","Hello this is bold and I'm second para...",2,"min-height","220px"],[1,"d-sm-flex","justify-content-end","align-items-center"],["type","submit",1,"button-1",3,"click"],["data-bs-toggle","collapse","data-bs-target","#collapseExample","aria-expanded","false","aria-controls","collapseExample",1,"button-1",2,"margin-left","5px"],["id","collapseExample",1,"collapse"],[3,"innerHTML"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,DY,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"button",3),H("click",function(){return r.saveDraft()}),m(4,"save draft"),f(),p(5,"button",4),H("click",function(){return r.discardDraft()}),m(6,"discard"),f()(),p(7,"div",5)(8,"div",6)(9,"h6"),m(10,"New Forecast"),f(),A(11,"i",7),f(),p(12,"div",1)(13,"form",8)(14,"div",9)(15,"div",10)(16,"mat-form-field",11)(17,"mat-label"),m(18,"Title"),f(),A(19,"input",12),f()(),p(20,"div",10)(21,"mat-form-field",13)(22,"mat-label"),m(23,"Forecast"),f(),A(24,"textarea",14),f()(),p(25,"div",15)(26,"button",16),H("click",function(){return r.saveForecast()}),m(27,"save"),f(),p(28,"button",17),m(29,"preview"),f()()()(),p(30,"div",18)(31,"h2"),m(32),f(),A(33,"p",19),f()()()()),2&i&&(T("ngIf",r.isLoading),M(13),T("formGroup",r.addForecastForm),M(19),j(r.draftItem.title),M(1),T("innerHTML",r.draftItem.cont,Yr))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,at,It,Vh],styles:[".forecast-add-form-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100px;border:2px solid var(--color-primary-600);border-radius:12px;margin-top:10px}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%]{width:100%;padding:4px 16px;border-bottom:2px solid var(--color-primary-600);color:var(--color-text-200);font-size:14px;display:flex;align-items:center;justify-content:space-between}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-primary-200)}"]})}return t})();function SY(t,n){1&t&&(p(0,"div",33),A(1,"img",34),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let kY=(()=>{class t{constructor(e,i,r){this.sanitizer=e,this.forecastService=i,this.snackBar=r,this.isLoading=!1,this.editForecastForm=new st({description:new ie(null,[ue.required])})}ngOnInit(){this.loadCurrentForecast()}loadCurrentForecast(){this.isLoading=!0,this.forecastService.getForecast().subscribe(e=>{if(this.isLoading=!1,null!=e&&e.length>0){this.forecast=e[0],this.visibility=this.forecast.visible;let r=new Array({description:this.forecast.description});null!=this.forecast.description&&this.editForecastForm.setValue(r[0]),this.forecast.description=this.sanitizer.bypassSecurityTrustHtml(this.forecast.description)}})}updateForecast(){this.isLoading=!0,this.editForecastForm.valid?this.forecastService.updateForecast({id:1,title:this.forecast.title,dateTime:this.forecast.dateTime,description:this.editForecastForm.value.description,likes:this.forecast.likes,visible:!0}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Forecast Updated","OK")},e=>{this.isLoading=!1,this.openSnackBar(e.error.message,"OK")}):(this.isLoading=!1,this.openSnackBar("Please fill all required fields","OK")),this.loadCurrentForecast()}openSnackBar(e,i){this.snackBar.open(e,i,{duration:2e3})}changeVisibility(){this.visibility=!this.visibility;let e=this.visibility;this.forecastService.updateForecast({id:1,title:this.forecast.title,dateTime:this.forecast.dateTime,description:this.forecast.description.toString(),likes:this.forecast.likes,visible:e}).subscribe(i=>{this.openSnackBar("Visibility Updated","OK")},i=>{this.openSnackBar(i.error.message,"OK")}),this.loadCurrentForecast(),location.reload()}deleteForecast(){confirm("Are you sure you want to delete this forecast?")&&(this.isLoading=!0,this.forecastService.deleteForecast(1).subscribe(i=>{this.isLoading=!1,this.openSnackBar("Forecast Deleted","OK")},i=>{this.openSnackBar(i.error.message,"OK")}),location.reload())}static#e=this.\u0275fac=function(i){return new(i||t)(x(_l),x(k0),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-forecast-edit"]],decls:68,vars:9,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"forecast-add-form-wrapper"],[1,"forecast-form-wrapper-top"],["aria-hidden","true","matTooltip","use tags for get better experience. example: bold",1,"fa","fa-info-circle"],[1,"feedback-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"feedback-form-full-width"],["id","edit-field","matInput","","formControlName","description","placeholder","Your new forecast here..",2,"min-height","220px"],[1,"d-sm-flex","justify-content-end","align-items-center"],["type","submit",1,"button-1",3,"click"],["data-bs-toggle","collapse","data-bs-target","#collapseExample","aria-expanded","false","aria-controls","collapseExample",1,"button-1",2,"margin-left","5px"],["id","collapseExample",1,"collapse"],[3,"innerHTML"],[1,"forecast-danger-zone"],[2,"color","var(--color-primary-600)"],[1,"card","mb-3",2,"width","100%"],[1,"row","g-0"],[1,"card-body"],[1,"card-title"],[1,"d-sm-flex","align-items-center","justify-content-between"],[1,"card-text"],["data-bs-toggle","collapse","data-bs-target","#collapseVisibility","aria-expanded","false","aria-controls","collapseVisibility",1,"button-1"],["id","collapseVisibility",1,"collapse"],["role","alert",1,"alert","alert-warning"],[1,"d-flex","align-items-center","justify-content-center","flex-column"],[2,"color","black"],["data-bs-toggle","collapse","data-bs-target","#collapseVisibility","aria-expanded","false","aria-controls","collapseVisibility",1,"button-2",3,"click"],["data-bs-toggle","collapse","data-bs-target","#collapseDelete","aria-expanded","false","aria-controls","collapseDelete",1,"button-1"],["id","collapseDelete",1,"collapse"],["role","alert",1,"alert","alert-danger"],["data-bs-toggle","collapse","data-bs-target","#collapseDelete","aria-expanded","false","aria-controls","collapseDelete",1,"button-2",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,SY,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3)(4,"h6"),m(5,"Edit Forecast"),f(),A(6,"i",4),f(),p(7,"div",1)(8,"form",5)(9,"div",6)(10,"div",7)(11,"h4"),m(12),f()(),p(13,"div",7)(14,"mat-form-field",8)(15,"mat-label"),m(16,"Forecast"),f(),A(17,"textarea",9),f()(),p(18,"div",10)(19,"button",11),H("click",function(){return r.updateForecast()}),m(20,"update"),f(),p(21,"button",12),m(22,"preview"),f()()()(),p(23,"div",13)(24,"h2"),m(25),f(),A(26,"p",14),f()()(),p(27,"div",15)(28,"div",1)(29,"h1"),m(30,"Danger Zone"),f(),A(31,"hr",16),p(32,"div",17)(33,"div",18)(34,"div",7)(35,"div",19)(36,"h5",20),m(37,"Change visibility"),f(),p(38,"div",21)(39,"p",22),m(40),f(),p(41,"button",23),m(42),f()()()()()(),p(43,"div",24)(44,"div",25)(45,"div",26)(46,"p",27),m(47),f(),p(48,"button",28),H("click",function(){return r.changeVisibility()}),m(49),f()()()(),p(50,"div",17)(51,"div",18)(52,"div",7)(53,"div",19)(54,"h5",20),m(55,"Delete Forecast"),f(),p(56,"div",21)(57,"p",22),m(58,"This will completely disappear the forecast from main page. Don't delete the forecast if you don't have a new forcast to submit."),f(),p(59,"button",29),m(60,"Delete"),f()()()()()(),p(61,"div",30)(62,"div",31)(63,"div",26)(64,"p",27),m(65,"Are you sure you want to delete main forecast?"),f(),p(66,"button",32),H("click",function(){return r.deleteForecast()}),m(67,"Delete Permanently"),f()()()()()()()),2&i&&(T("ngIf",r.isLoading),M(8),T("formGroup",r.editForecastForm),M(4),j(r.forecast.title),M(13),j(r.forecast.title),M(1),T("innerHTML",r.forecast.description,Yr),M(14),j(r.visibility?"If you make change the forecast visibility to private, it will disappear from main web page":"Make visibility to public for share forecast with users"),M(2),j(r.visibility?"Private":"Public"),M(5),bt("Are you sure you want to make forecast ",r.visibility?"private":"public","?"),M(2),j(r.visibility?"Make Private":"Make Public"))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,at,It,Vh],styles:[".forecast-add-form-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100px;border:2px solid var(--color-primary-600);border-radius:12px;margin-top:10px}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%]{width:100%;padding:4px 16px;border-bottom:2px solid var(--color-primary-600);color:var(--color-text-200);font-size:14px;display:flex;align-items:center;justify-content:space-between}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.forecast-add-form-wrapper[_ngcontent-%COMP%] .forecast-form-wrapper-top[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-primary-200)}.forecast-danger-zone[_ngcontent-%COMP%]{width:100%;margin-top:18px}.forecast-danger-zone[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--color-danger-100)}.forecast-danger-zone[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:100%;border:1px solid var(--color-danger-100);background-color:var(--color-surface-mixed-100)}.forecast-danger-zone[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:var(--color-text-200)}"]})}return t})(),AY=(()=>{class t{constructor(e,i){this.themeService=e,this.router=i}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-users"]],decls:15,vars:8,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","list",1,"nav-link"],["aria-current","page","routerLink","requests",1,"nav-link"],["aria-current","page","routerLink","admins",1,"nav-link"],["aria-current","page","routerLink","new",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"Users List"),f()(),p(4,"li",1)(5,"a",3),m(6,"Requests"),f()(),p(7,"li",1)(8,"a",4),m(9,"Admins"),f()(),p(10,"li",1)(11,"a",5),m(12,"New"),f()()(),p(13,"div",6),A(14,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/admin/users/list")),M(3),ne("active",r.isActive("/admin/users/requests")),M(3),ne("active",r.isActive("/admin/users/admins")),M(3),ne("active",r.isActive("/admin/users/new")))},dependencies:[Ci,Yt]})}return t})();function EY(t,n){1&t&&(p(0,"div",5),A(1,"img",6),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function TY(t,n){if(1&t){const e=vn();p(0,"tr")(1,"th",7),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f(),p(7,"td")(8,"button",8),H("click",function(){const o=ct(e).$implicit;return dt(he().deleteUser(o.id))}),m(9,"Delete"),f()()()}if(2&t){const e=n.$implicit;M(2),j(e.id),M(2),j(e.name),M(2),j(e.email)}}let PY=(()=>{class t{constructor(e,i,r){this.userService=e,this.matSnackbar=i,this.credentialService=r,this.isLoading=!1}ngOnInit(){this.loadUsers()}loadUsers(){this.isLoading=!0,this.userService.getAllUsers().subscribe(e=>{this.isLoading=!1,e&&(this.users=e.filter(i=>i.active))})}deleteUser(e){confirm("Are you sure you want to delete this user?")&&(this.isLoading=!0,this.userService.deleteUser(e).subscribe(i=>{this.isLoading=!1,i&&(this.openSnackbar("User deleted successfully","Close"),this.loadUsers())},i=>{this.isLoading=!1,this.openSnackbar("Failed to delete user","Close")}),this.credentialService.deleteCredentials(e).subscribe(i=>{this.isLoading=!1,this.openSnackbar("Credentials deleted successfully","Close")},i=>{this.isLoading=!1,this.openSnackbar("Failed to delete user credentials","Close")}))}openSnackbar(e,i){this.matSnackbar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Il),x(Qt),x(Bh))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-users-list"]],decls:15,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"table","table-hover"],["scope","col"],[4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],["scope","row"],[1,"button-1",3,"click"]],template:function(i,r){1&i&&(U(0,EY,6,0,"div",0),p(1,"div",1)(2,"table",2)(3,"thead")(4,"tr")(5,"th",3),m(6,"#"),f(),p(7,"th",3),m(8,"Name"),f(),p(9,"th",3),m(10,"Email"),f(),p(11,"th",3),m(12,"Action"),f()()(),p(13,"tbody"),U(14,TY,10,3,"tr",4),f()()()),2&i&&(T("ngIf",r.isLoading),M(14),T("ngForOf",r.users))},dependencies:[Dt,Le]})}return t})();function IY(t,n){1&t&&(p(0,"div",5),A(1,"img",6),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function OY(t,n){if(1&t){const e=vn();p(0,"tr")(1,"th",7),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f(),p(7,"td"),m(8),f(),p(9,"td"),m(10),f(),p(11,"td"),m(12),f(),p(13,"td")(14,"div",8)(15,"button",9),H("click",function(){const o=ct(e).$implicit;return dt(he().approveUser(o.id))}),m(16,"Approve"),f(),p(17,"button",9),H("click",function(){const o=ct(e).$implicit;return dt(he().deleteUser(o.id))}),m(18,"Delete"),f()()()()}if(2&t){const e=n.$implicit;M(2),j(e.id),M(2),j(e.name),M(2),j(e.email),M(2),j(e.phone),M(2),j(e.country),M(2),j(e.remarks)}}let FY=(()=>{class t{constructor(e,i,r){this.userService=e,this.matSnackbar=i,this.credentialService=r,this.isLoading=!1}ngOnInit(){this.loadUsers()}loadUsers(){this.isLoading=!0,this.userService.getAllUsers().subscribe(e=>{this.isLoading=!1,e&&(this.users=e.filter(i=>!1===i.active))})}deleteUser(e){confirm("Are you sure you want to delete this user?")&&(this.isLoading=!0,this.userService.deleteUser(e).subscribe(i=>{this.isLoading=!1,i&&(this.openSnackbar("User deleted successfully","Close"),this.loadUsers())},i=>{this.openSnackbar("Failed to delete user","Close")}),this.credentialService.deleteCredentials(e).subscribe(i=>{this.isLoading=!1,this.openSnackbar("User deleted successfully","Close")},i=>{this.isLoading=!1,this.openSnackbar("Failed to delete user","Close")}))}approveUser(e){let i=Math.random().toString(36).slice(-8);this.credentialService.setCredentials({id:e,email:this.users.find(r=>r.id===e).email,password:i}).subscribe(r=>{this.openSnackbar("User approved successfully","Close"),this.loadUsers()}),this.isLoading=!0,this.userService.approveUser(e).subscribe(r=>{this.isLoading=!1,this.openSnackbar("User approved successfully","Close"),this.loadUsers()},r=>{this.openSnackbar("Failed to approve user","Close")})}openSnackbar(e,i){this.matSnackbar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Il),x(Qt),x(Bh))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-users-requests"]],decls:21,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"table","table-hover"],["scope","col"],[4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],["scope","row"],[1,"d-flex","align-items-center","justify-content-around"],[1,"button-1",3,"click"]],template:function(i,r){1&i&&(U(0,IY,6,0,"div",0),p(1,"div",1)(2,"table",2)(3,"thead")(4,"tr")(5,"th",3),m(6,"#"),f(),p(7,"th",3),m(8,"Name"),f(),p(9,"th",3),m(10,"Email"),f(),p(11,"th",3),m(12,"Phone"),f(),p(13,"th",3),m(14,"Country"),f(),p(15,"th",3),m(16,"Remarks"),f(),p(17,"th",3),m(18,"Action"),f()()(),p(19,"tbody"),U(20,OY,19,6,"tr",4),f()()()),2&i&&(T("ngIf",r.isLoading),M(20),T("ngForOf",r.users))},dependencies:[Dt,Le]})}return t})();function RY(t,n){1&t&&(p(0,"div",5),A(1,"img",6),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function LY(t,n){if(1&t&&(p(0,"tr")(1,"th",7),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f(),p(7,"td"),m(8),f(),p(9,"td")(10,"div",8)(11,"a",9),A(12,"i",10),f(),p(13,"a",11),A(14,"i",12),f()()()()),2&t){const e=n.$implicit;M(2),j(e.id),M(2),j(e.name),M(2),j(e.email),M(2),j(e.phone),M(3),Gc("href","mailto:",e.email,"",Er),M(2),Gc("href","tel:",e.phone,"",Er)}}let NY=(()=>{class t{constructor(e,i){this.adminService=e,this.matSnackbar=i,this.isLoading=!0}ngOnInit(){this.loadAdmins()}loadAdmins(){this.adminService.getAllAdmins().subscribe(e=>{this.isLoading=!1,this.admins=e})}openSnackbar(e,i){this.matSnackbar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Nh),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-users-admins"]],decls:17,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"table","table-hover"],["scope","col"],[4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],["scope","row"],[1,"d-flex","align-items-center","justify-content-around"],["matTooltip","Send Mail",3,"href"],["aria-hidden","true",1,"fa","fa-envelope-o"],["matTooltip","Get Call",3,"href"],["aria-hidden","true",1,"fa","fa-phone"]],template:function(i,r){1&i&&(U(0,RY,6,0,"div",0),p(1,"div",1)(2,"table",2)(3,"thead")(4,"tr")(5,"th",3),m(6,"#"),f(),p(7,"th",3),m(8,"Name"),f(),p(9,"th",3),m(10,"Email"),f(),p(11,"th",3),m(12,"Phone"),f(),p(13,"th",3),m(14,"Action"),f()()(),p(15,"tbody"),U(16,LY,15,6,"tr",4),f()()()),2&i&&(T("ngIf",r.isLoading),M(16),T("ngForOf",r.admins))},dependencies:[Dt,Le,Vh],styles:["a[_ngcontent-%COMP%]{text-decoration:none;color:var(--color-text-200)}a[_ngcontent-%COMP%]:hover{color:var(--color-primary-400)}"]})}return t})();function BY(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let VY=(()=>{class t{constructor(e,i){this.adminService=e,this.matSnackbar=i,this.adminForm=new st({name:new ie(null,[ue.required]),email:new ie(null,[ue.required,ue.email]),phone:new ie(null,[ue.required]),password:new ie(null,[ue.required])}),this.isLoading=!1}ngOnInit(){}submit(){this.isLoading=!0,this.adminService.createAdmin({id:null,name:this.adminForm.value.name,email:this.adminForm.value.email,phone:this.adminForm.value.phone,password:this.adminForm.value.password}).subscribe(e=>{this.isLoading=!1,this.openSnackbar("Admin created successfully","Close"),this.adminForm.reset()})}openSnackbar(e,i){this.matSnackbar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Nh),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-users-new-admin"]],decls:30,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["matInput","","formControlName","name","placeholder","Ex. kavindu kokila"],["matInput","","formControlName","email","placeholder","Ex. sample@gmail.com"],["matInput","","formControlName","phone","placeholder","Ex. 0762343567"],["matInput","","formControlName","password","placeholder","Ex. qwet-sjh4-opnd"],["type","submit",1,"button-1","w-100",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,BY,6,0,"div",0),p(1,"div",1)(2,"h2"),m(3,"Add new admin to the system"),f(),p(4,"form",2)(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),m(9,"Name"),f(),A(10,"input",6),f()(),p(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),m(14,"Email"),f(),A(15,"input",7),f()(),p(16,"div",4)(17,"mat-form-field",5)(18,"mat-label"),m(19,"Phone"),f(),A(20,"input",8),f()(),p(21,"div",4)(22,"mat-form-field",5)(23,"mat-label"),m(24,"Default Password"),f(),A(25,"input",9),f()(),A(26,"div",4),p(27,"div",4)(28,"button",10),H("click",function(){return r.submit()}),m(29,"Request"),f()()()()()),2&i&&(T("ngIf",r.isLoading),M(4),T("formGroup",r.adminForm))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,at,It],styles:[".signup-form[_ngcontent-%COMP%]{margin-top:20px}"]})}return t})(),zY=(()=>{class t{constructor(e,i){this.themeService=e,this.router=i}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blogs"]],decls:12,vars:6,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","new",1,"nav-link"],["aria-current","page","routerLink","list",1,"nav-link"],["aria-current","page","routerLink","edit",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"New"),f()(),p(4,"li",1)(5,"a",3),m(6,"List"),f()(),p(7,"li",1)(8,"a",4),m(9,"Edit"),f()()(),p(10,"div",5),A(11,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/admin/blogs/new")),M(3),ne("active",r.isActive("/admin/blogs/list")),M(3),ne("active",r.isActive("/admin/blogs/edit")))},dependencies:[Ci,Yt]})}return t})();function HY(t,n){1&t&&(p(0,"div",21),A(1,"img",22),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let UY=(()=>{class t{constructor(e,i,r,o,s){this.fb=e,this.blogService=i,this.matSnackBar=r,this.cookieService=o,this.adminService=s,this.markdownContent="",this.author="",this.tags=["Seed","Sprout","Root"],this.isLoading=!1}ngOnInit(){this.initForm(),this.loadAuthor()}initForm(){this.blogForm=this.fb.group({title:"",description:"",content:this.fb.group({mainTitle:"",mainContent:"",subContent:""}),image:"",tags:"",author:""})}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}loadAuthor(){let e=this.cookieService.adminEmail();null!=e&&this.adminService.getAdminByEmail(e).subscribe(i=>{sessionStorage.setItem("author",JSON.stringify(i.name))},i=>{console.log(i)})}onSubmit(){const e=this.blogForm?.value;let i,r,o=sessionStorage.getItem("author");this.blogForm.valid&&(i=null!=e.author&&""!==e.author?e.author:o,r=null!=e.tags&&""!==e.tags?e.tags:"Seed",this.isLoading=!0,this.blogService.createBlog({id:null,title:e.title,description:e.description,content:e.content,image:e.image,tags:r,created_at:this.loadDate(),updated_at:this.loadDate(),author:i}).subscribe(s=>{this.isLoading=!1,this.openSnackBar("Blog created successfully","Close"),this.blogForm.reset()},s=>{this.openSnackBar("Error creating blog","Close")}))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(mI),x(Oh),x(Qt),x(Di),x(Nh))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blogs-new"]],decls:64,vars:9,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],["aria-hidden","true","matTooltip","Use HTML tags for create more accurate main content. example: bold next paragraph. Use markdown to sub content",1,"fa","fa-question-circle-o"],[1,"blog-form",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"blog-form-full-width"],["matInput","","formControlName","title","placeholder","Title","required",""],["matInput","","formControlName","description","placeholder","Description","required",""],["formGroupName","content",1,"blo-form-content","row"],["matInput","","formControlName","mainTitle","placeholder","Content main title","required",""],[1,"col-12"],["matInput","","formControlName","mainContent","placeholder","Description under main title","required",""],["matInput","","formControlName","subContent","placeholder","Sub-Content","required","",3,"ngModel","ngModelChange"],[3,"innerHTML"],["matInput","","formControlName","image","placeholder","Image","required",""],["formControlName","tags",1,"blog-form-full-width"],["value","","disabled","","selected",""],[3,"value"],["matInput","","formControlName","author","placeholder","Author"],["type","submit",1,"button-1"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,HY,6,0,"div",0),p(1,"div",1)(2,"span"),m(3,"learn how to write a blog "),A(4,"i",2),f(),p(5,"form",3),H("ngSubmit",function(){return r.onSubmit()}),p(6,"div",4)(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),m(10,"Title"),f(),A(11,"input",7),f()(),p(12,"div",5)(13,"mat-form-field",6)(14,"mat-label"),m(15,"Description"),f(),A(16,"input",8),f()()(),p(17,"h4"),m(18,"Content"),f(),p(19,"div",9)(20,"div",5)(21,"mat-form-field",6)(22,"mat-label"),m(23,"Main Title"),f(),A(24,"input",10),f()(),p(25,"div",11)(26,"mat-form-field",6)(27,"mat-label"),m(28,"Main Content"),f(),A(29,"textarea",12),f()(),p(30,"div",5)(31,"mat-form-field",6)(32,"mat-label"),m(33,"Sub Content"),f(),p(34,"textarea",13),H("ngModelChange",function(s){return r.markdownContent=s}),f()()(),p(35,"div",5),A(36,"div",14),jn(37,"markdown"),f()(),p(38,"div",4)(39,"div",5)(40,"mat-form-field",6)(41,"mat-label"),m(42,"Image"),f(),A(43,"input",15),f()(),p(44,"div",5)(45,"mat-form-field",6)(46,"mat-label"),m(47,"Tag"),f(),p(48,"mat-select",16)(49,"mat-option",17),m(50,"Select Tag *"),f(),p(51,"mat-option",18),m(52,"Seed"),f(),p(53,"mat-option",18),m(54,"Sprout"),f(),p(55,"mat-option",18),m(56,"Root"),f()()()(),p(57,"div",5)(58,"mat-form-field",6)(59,"mat-label"),m(60,"Author"),f(),A(61,"input",19),f()()(),p(62,"button",20),m(63,"Save"),f()()()),2&i&&(T("ngIf",r.isLoading),M(5),T("formGroup",r.blogForm),M(29),T("ngModel",r.markdownContent),M(2),T("innerHTML",Lo(37,7,r.markdownContent),Yr),M(15),T("value",r.tags[0]),M(2),T("value",r.tags[1]),M(2),T("value",r.tags[2]))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,Pl,at,It,Ih,Yn,Bn,Vh,xa],styles:["span[_ngcontent-%COMP%]{color:var(--color-text-200);font-size:14px}span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.blog-form[_ngcontent-%COMP%]{margin-top:20px}"]})}return t})();function jY(t,n){1&t&&(p(0,"div",3),A(1,"img",4),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function $Y(t,n){if(1&t){const e=vn();p(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8),A(4,"img",9),f(),p(5,"div",10)(6,"h5"),m(7),f(),p(8,"p"),m(9),f()(),p(10,"div",11)(11,"button",12),H("click",function(){const o=ct(e).$implicit;return dt(he().deleteBlog(o.id))}),m(12,"Delete"),f()()()(),A(13,"hr",13),f()}if(2&t){const e=n.$implicit;M(4),ui("src",e.image,Er),ui("alt",e.title),M(3),j(e.title),M(2),j(e.description)}}let WY=(()=>{class t{constructor(e,i){this.blogService=e,this.matSnackBar=i,this.isLoading=!0}ngOnInit(){this.loadBlogs()}loadBlogs(){this.blogService.getAllBlogs().subscribe(e=>{this.isLoading=!1,this.blogs=e})}deleteBlog(e){confirm("Are you sure you want to delete this blog?")&&(this.isLoading=!0,this.blogService.deleteBlog(e).subscribe(()=>{this.loadBlogs(),this.isLoading=!1,this.openSnackBar("Blog deleted successfully","Close")},i=>{this.openSnackBar("Error deleting blog","Close")}))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Oh),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blogs-list"]],decls:3,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"row"],[1,"col-12"],[1,"d-flex","align-items-center","justify-content-between"],[1,"blog-image"],[3,"src","alt"],[1,"blog-content"],[1,"action"],[1,"button-2",3,"click"],[2,"color","var(--color-primary-600)"]],template:function(i,r){1&i&&(U(0,jY,6,0,"div",0),p(1,"div",1),U(2,$Y,14,4,"div",2),f()),2&i&&(T("ngIf",r.isLoading),M(2),T("ngForOf",r.blogs))},dependencies:[Dt,Le],styles:[".blog-image[_ngcontent-%COMP%]{width:100px}.blog-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.blog-content[_ngcontent-%COMP%]{width:100%;padding:0 16px}.blog-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.action[_ngcontent-%COMP%]{width:100px;display:flex;align-items:center;justify-content:center}"]})}return t})();function GY(t,n){1&t&&(p(0,"div",21),A(1,"img",22),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function qY(t,n){if(1&t){const e=vn();p(0,"mat-option",23),H("onSelectionChange",function(){const o=ct(e).$implicit;return dt(he().loadCurrentBlog(o.title))}),m(1),f()}if(2&t){const e=n.$implicit;T("value",e.title),M(1),j(e.title)}}let YY=(()=>{class t{constructor(e,i,r){this.fb=e,this.blogService=i,this.matSnackBar=r,this.markdownContent="",this.tags=["Seed","Sprout","Root"],this.destroy$=new Q,this.isLoading=!1}ngOnInit(){this.initForm(),this.loadBlogs(),this.blogForm.get("title")?.valueChanges.pipe(yt(this.destroy$)).subscribe(e=>{this.loadCurrentBlog(e)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initForm(){this.blogForm=this.fb.group({title:"",description:"",content:this.fb.group({mainTitle:"",mainContent:"",subContent:""}),image:"",tags:""})}loadBlogs(){this.blogService.getAllBlogs().subscribe(e=>{this.blogData=e},e=>{console.log(e)})}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}loadCurrentBlog(e){this.selectedBlog=this.blogData.find(i=>i.title===e),this.selectedBlog&&(this.blogForm.get("description")?.setValue(this.selectedBlog.description),this.blogForm.get("image")?.setValue(this.selectedBlog.image),this.blogForm.get("tags")?.setValue(this.selectedBlog.tags),this.blogForm.get("content.mainTitle")?.setValue(this.selectedBlog.content.mainTitle),this.blogForm.get("content.mainContent")?.setValue(this.selectedBlog.content.mainContent),this.blogForm.get("content.subContent")?.setValue(this.selectedBlog.content.subContent),this.markdownContent=this.selectedBlog.content.subContent)}onSubmit(){const e=this.blogForm?.value;this.isLoading=!0,this.blogForm.valid?this.blogService.updateBlog({id:this.selectedBlog.id,title:e.title,description:e.description,content:e.content,image:e.image,tags:e.tags,created_at:null,updated_at:this.loadDate(),author:null}).subscribe(i=>{this.isLoading=!1,this.openSnackBar("Blog updated successfully","Close"),this.loadBlogs(),this.blogForm.reset()},i=>{console.log(i)}):(this.isLoading=!1,this.openSnackBar("Please fill all required fields","Close"))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(mI),x(Oh),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-blogs-edit"]],decls:63,vars:10,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],["aria-hidden","true","matTooltip","Use HTML tags for create more accurate main content. example: bold next paragraph. Use markdown to sub content",1,"fa","fa-question-circle-o"],[1,"blog-form",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6"],["appearance","outline","color","accent",1,"blog-form-full-width"],["formControlName","title","required","",1,"blog-form-full-width"],["value","","disabled","","selected",""],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","formControlName","description","placeholder","Description","required",""],["formGroupName","content",1,"blo-form-content","row"],["matInput","","formControlName","mainTitle","placeholder","Content main title","required",""],[1,"col-12"],["matInput","","formControlName","mainContent","placeholder","Description under main title","required",""],["matInput","","formControlName","subContent","placeholder","Sub-Content","required","",3,"ngModel","ngModelChange"],[3,"innerHTML"],["matInput","","formControlName","image","placeholder","Image","required",""],["formControlName","tags",1,"blog-form-full-width"],[3,"value"],["type","submit",1,"button-1"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value","onSelectionChange"]],template:function(i,r){1&i&&(U(0,GY,6,0,"div",0),p(1,"div",1)(2,"div",1)(3,"span"),m(4,"learn how to write a blog "),A(5,"i",2),f(),p(6,"form",3),H("ngSubmit",function(){return r.onSubmit()}),p(7,"div",4)(8,"div",5)(9,"mat-form-field",6)(10,"mat-label"),m(11,"Title"),f(),p(12,"mat-select",7)(13,"mat-option",8),m(14,"Select Title *"),f(),U(15,qY,2,2,"mat-option",9),f()()(),p(16,"div",5)(17,"mat-form-field",6)(18,"mat-label"),m(19,"Description"),f(),A(20,"input",10),f()()(),p(21,"h4"),m(22,"Content"),f(),p(23,"div",11)(24,"div",5)(25,"mat-form-field",6)(26,"mat-label"),m(27,"Main Title"),f(),A(28,"input",12),f()(),p(29,"div",13)(30,"mat-form-field",6)(31,"mat-label"),m(32,"Main Content"),f(),A(33,"textarea",14),f()(),p(34,"div",5)(35,"mat-form-field",6)(36,"mat-label"),m(37,"Sub Content"),f(),p(38,"textarea",15),H("ngModelChange",function(s){return r.markdownContent=s}),f()()(),p(39,"div",5),A(40,"div",16),jn(41,"markdown"),f()(),p(42,"div",4)(43,"div",5)(44,"mat-form-field",6)(45,"mat-label"),m(46,"Image"),f(),A(47,"input",17),f()(),p(48,"div",5)(49,"mat-form-field",6)(50,"mat-label"),m(51,"Tags"),f(),p(52,"mat-select",18)(53,"mat-option",8),m(54,"Select Tag *"),f(),p(55,"mat-option",19),m(56,"Seed"),f(),p(57,"mat-option",19),m(58,"Sprout"),f(),p(59,"mat-option",19),m(60,"Root"),f()()()()(),p(61,"button",20),m(62,"Update"),f()()()()),2&i&&(T("ngIf",r.isLoading),M(6),T("formGroup",r.blogForm),M(9),T("ngForOf",r.blogData),M(23),T("ngModel",r.markdownContent),M(2),T("innerHTML",Lo(41,8,r.markdownContent),Yr),M(15),T("value",r.tags[0]),M(2),T("value",r.tags[1]),M(2),T("value",r.tags[2]))},dependencies:[Dt,Le,jt,Pt,xi,Vt,bn,At,Bt,Pl,at,It,Ih,Yn,Bn,Vh,xa],styles:["span[_ngcontent-%COMP%]{color:var(--color-text-200);font-size:14px}span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.blog-form[_ngcontent-%COMP%]{margin-top:20px}"]})}return t})();function ZY(t,n){1&t&&(p(0,"div",4),A(1,"img",5),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function KY(t,n){if(1&t){const e=vn();p(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9),A(4,"img",10),f(),p(5,"div")(6,"p",11),m(7),f(),p(8,"p",12),m(9),f()()(),p(10,"div")(11,"button",13),H("click",function(){const o=ct(e).$implicit;return dt(he().deleteFeedback(o.id))}),m(12,"Delete"),f()()(),p(13,"div",14),m(14),f()()}if(2&t){const e=n.$implicit;M(4),ui("src",e.picture,Er),ui("alt",e.family_name),M(3),j(e.name),M(2),j(e.date),M(5),bt(" ",e.feedback," ")}}let QY=(()=>{class t{constructor(e,i){this.feedbackService=e,this.matSnackBar=i,this.isLoading=!0}ngOnInit(){this.loadFeedbacks()}loadFeedbacks(){this.feedbackService.getAllFeedback().subscribe(e=>{this.isLoading=!1,this.feedbacks=e})}deleteFeedback(e){confirm("Are you sure you want to delete this feedback?")&&(this.isLoading=!0,this.feedbackService.deleteFeedback(e).subscribe(()=>{this.loadFeedbacks(),this.isLoading=!1,this.openSnackBar("Feedback deleted successfully","Close")},i=>{this.openSnackBar("Error deleting feedback","Close")}))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x($I),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-feedbacks"]],decls:5,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[2,"margin-bottom","20px"],["class","feedback-wrapper",4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"feedback-wrapper"],[1,"d-flex","align-items-center","justify-content-between"],[1,"feedback-writer"],[1,"profile-wrapper"],["width","40","height","40",3,"src","alt"],[1,"username"],[1,"post-date"],[1,"button-2",3,"click"],[1,"feedback"]],template:function(i,r){1&i&&(U(0,ZY,6,0,"div",0),p(1,"div",1)(2,"h4",2),m(3,"Delete unwanted feedbacks"),f(),U(4,KY,15,5,"div",3),f()),2&i&&(T("ngIf",r.isLoading),M(4),T("ngForOf",r.feedbacks))},dependencies:[Dt,Le],styles:[".feedback-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100px;background-color:var(--color-primary-600);padding:2vw 2.5vw;margin:12px 0;box-shadow:0 0 10px #0000001a}.feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%]{display:flex}.feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .profile-wrapper[_ngcontent-%COMP%]{max-width:40px;max-height:40px;border-radius:50%;overflow:hidden;margin-right:5px}.feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .profile-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{font-size:14px;color:var(--color-text-200);margin-bottom:0!important}.feedback-wrapper[_ngcontent-%COMP%] .feedback-writer[_ngcontent-%COMP%] .post-date[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-300);margin-bottom:0!important}.feedback-wrapper[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{font-size:14px;margin-top:10px;color:var(--color-text-200)}"]})}return t})(),XY=(()=>{class t{constructor(e,i){this.themeService=e,this.router=i}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-faqs"]],decls:12,vars:6,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","new",1,"nav-link"],["aria-current","page","routerLink","list",1,"nav-link"],["aria-current","page","routerLink","edit",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"New"),f()(),p(4,"li",1)(5,"a",3),m(6,"List"),f()(),p(7,"li",1)(8,"a",4),m(9,"Edit"),f()()(),p(10,"div",5),A(11,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/admin/faq/new")),M(3),ne("active",r.isActive("/admin/faq/list")),M(3),ne("active",r.isActive("/admin/faq/edit")))},dependencies:[Ci,Yt]})}return t})();function JY(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let eZ=(()=>{class t{constructor(e,i){this.faqsService=e,this.matSnackBar=i,this.faqForm=new st({question:new ie(null,[ue.required]),answer:new ie(null,[ue.required])}),this.isLoading=!1}ngOnInit(){}submit(){this.isLoading=!0,this.faqForm.valid?this.faqsService.createFAQ({id:null,question:this.faqForm.value.question,answer:this.faqForm.value.answer}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("FAQ created","Close"),this.faqForm.reset()},e=>{this.isLoading=!1,this.openSnackBar("Error creating FAQ","Close")}):(this.isLoading=!1,this.openSnackBar("Please fill all required fields","Close"))}openSnackBar(e,i){this.matSnackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Lg),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-faqs-new"]],decls:20,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"contact-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"contact-form-full-width"],["matInput","","formControlName","question","placeholder","Ex. Question"],["matInput","","formControlName","answer","placeholder","Ex. Answer"],[1,"d-flex","justify-content-end"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-end"],["type","submit",1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,JY,6,0,"div",0),p(1,"div",1)(2,"h4"),m(3,"Add new FA Question"),f(),p(4,"form",2)(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),m(9,"Question"),f(),A(10,"input",6),f()(),p(11,"div",4)(12,"mat-form-field",5)(13,"mat-label"),m(14,"Answer"),f(),A(15,"textarea",7),f()(),p(16,"div",8)(17,"div",9)(18,"button",10),H("click",function(){return r.submit()}),m(19,"Add FAQ"),f()()()()()()),2&i&&(T("ngIf",r.isLoading),M(4),T("formGroup",r.faqForm))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,at,It]})}return t})();function tZ(t,n){1&t&&(p(0,"div",7),A(1,"img",8),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function nZ(t,n){if(1&t){const e=vn();p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td")(6,"button",9),H("click",function(){const o=ct(e).$implicit;return dt(he().delete(o.id))}),m(7,"Delete"),f()()()}if(2&t){const e=n.$implicit;M(2),j(e.question),M(2),j(e.answer)}}let iZ=(()=>{class t{constructor(e,i){this.faqService=e,this.matSnackBar=i,this.isLoading=!0}ngOnInit(){this.loadFaqs()}loadFaqs(){this.faqService.getAllFAQs().subscribe(e=>{this.isLoading=!1,e&&(this.faqs=e)})}delete(e){confirm("Are you sure you want to delete this FAQ?")&&(this.isLoading=!0,this.faqService.deleteFAQ(e).subscribe(i=>{this.loadFaqs(),this.isLoading=!1,this.openSnackBar("FAQ deleted","Close")},i=>{this.openSnackBar("Error deleting FAQ","Close")}))}openSnackBar(e,i){this.matSnackBar.open(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Lg),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-faqs-list"]],decls:18,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"row"],[1,"col-12"],[1,"table-responsive"],[1,"table"],[4,"ngFor","ngForOf"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(U(0,tZ,6,0,"div",0),p(1,"div",1)(2,"h4"),m(3,"List of FAQs"),f(),p(4,"div",2)(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead")(9,"tr")(10,"th"),m(11,"Question"),f(),p(12,"th"),m(13,"Answer"),f(),p(14,"th"),m(15,"Action"),f()()(),p(16,"tbody"),U(17,nZ,8,2,"tr",6),f()()()()()()),2&i&&(T("ngIf",r.isLoading),M(17),T("ngForOf",r.faqs))},dependencies:[Dt,Le]})}return t})();function rZ(t,n){1&t&&(p(0,"div",13),A(1,"img",14),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function oZ(t,n){if(1&t){const e=vn();p(0,"mat-option",15),H("onSelectionChange",function(){const o=ct(e).$implicit;return dt(he().loadCurrentFAQ(o.question))}),m(1),f()}if(2&t){const e=n.$implicit;ui("value",e.question),M(1),j(e.question)}}let sZ=(()=>{class t{constructor(e,i){this.faqService=e,this.matSnackBar=i,this.isLoading=!1,this.faqForm=new st({question:new ie(null,[ue.required]),answer:new ie(null,[ue.required])}),this.destroy$=new Q}ngOnInit(){this.loadFaqs(),this.faqForm.get("question")?.valueChanges.pipe(yt(this.destroy$)).subscribe(e=>{this.loadCurrentFAQ(e)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadFaqs(){this.faqService.getAllFAQs().subscribe(e=>{e&&(this.faqs=e)},e=>{this.openSnackBar("Error loading FAQs","Close")})}loadCurrentFAQ(e){this.selectedFAQ=this.faqs.find(i=>i.question===e),this.selectedFAQ&&this.faqForm.get("answer")?.setValue(this.selectedFAQ.answer)}updateFAQ(){this.isLoading=!0,this.faqForm.valid?this.faqService.updateFAQ({id:this.selectedFAQ.id,question:this.faqForm.value.question,answer:this.faqForm.value.answer}).subscribe(e=>{this.isLoading=!1,e&&(this.loadFaqs(),this.openSnackBar("FAQ updated successfully","Close"))},e=>{this.isLoading=!1,this.openSnackBar("Error updating FAQ","Close")}):(this.isLoading=!1,this.openSnackBar("Please fill in all required fields","Close"))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Lg),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-faqs-edit"]],decls:21,vars:3,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"contact-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","question",1,"signup-form-full-width"],["value","","disabled","","selected",""],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","formControlName","answer","placeholder","Ex. Answer"],[1,"d-flex","justify-content-end"],[1,"col-12","col-sm-6","col-md-3","d-flex","justify-content-end"],["type","submit",1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value","onSelectionChange"]],template:function(i,r){1&i&&(U(0,rZ,6,0,"div",0),p(1,"div",1)(2,"form",2)(3,"div",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),m(7,"Question"),f(),p(8,"mat-select",6)(9,"mat-option",7),m(10,"Select Question *"),f(),U(11,oZ,2,2,"mat-option",8),f()()(),p(12,"div",4)(13,"mat-form-field",5)(14,"mat-label"),m(15,"Answer"),f(),A(16,"textarea",9),f()(),p(17,"div",10)(18,"div",11)(19,"button",12),H("click",function(){return r.updateFAQ()}),m(20,"Update FAQ"),f()()()()()()),2&i&&(T("ngIf",r.isLoading),M(2),T("formGroup",r.faqForm),M(9),T("ngForOf",r.faqs))},dependencies:[Dt,Le,jt,Pt,xi,Vt,bn,At,Bt,at,It,Yn,Bn]})}return t})(),aZ=(()=>{class t{constructor(e,i){this.cookieService=e,this.route=i}canActivate(e,i){return!!this.cookieService.isAdmin()||(this.route.navigateByUrl("/login"),!1)}static#e=this.\u0275fac=function(i){return new(i||t)(F(Di),F(ot))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lZ=(()=>{class t{constructor(e,i){this.themeService=e,this.router=i}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(er),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-settings"]],decls:15,vars:8,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","user-policy",1,"nav-link"],["aria-current","page","routerLink","user-terms",1,"nav-link"],["aria-current","page","routerLink","policy",1,"nav-link"],["aria-current","page","routerLink","privacy",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"User Policy"),f()(),p(4,"li",1)(5,"a",3),m(6,"User Terms"),f()(),p(7,"li",1)(8,"a",4),m(9,"Privacy & Policy"),f()(),p(10,"li",1)(11,"a",5),m(12,"Settings"),f()()(),p(13,"div",6),A(14,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/admin/settings/user-policy")),M(3),ne("active",r.isActive("/admin/settings/user-terms")),M(3),ne("active",r.isActive("/admin/settings/policy")),M(3),ne("active",r.isActive("/admin/settings/privacy")))},dependencies:[Ci,Yt]})}return t})(),cZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-settings-policy"]],decls:62,vars:0,consts:[[1,"container"],[2,"margin-bottom","30px"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"h3",1),m(2,"Admin Privacy Policy"),f(),p(3,"h5"),m(4,"Information We Collect:"),f(),p(5,"ul")(6,"li")(7,"b"),m(8,"User Management:"),f()(),p(9,"ul")(10,"li"),m(11,"As an administrator, you may have access to user profiles, including names, email addresses, and profile images, for the purpose of user management and platform administration. "),f()(),p(12,"li")(13,"b"),m(14,"Google Authentication Data:"),f()(),p(15,"ul")(16,"li"),m(17,"When reviewing user activities, you may have access to data collected through Google Authentication, including user names and emails. "),f()(),p(18,"li")(19,"b"),m(20,"Tawk Cookies:"),f()(),p(21,"ul")(22,"li"),m(23,"Administrators may have access to Tawk cookie data for monitoring and managing real-time messaging features. "),f()()(),p(24,"h5"),m(25,"How We Use Your Information:"),f(),p(26,"ul")(27,"li")(28,"b"),m(29,"User Administration:"),f()(),p(30,"ul")(31,"li"),m(32,"Administrator access is primarily for user management, monitoring user activities, and ensuring the security and integrity of the platform. "),f()(),p(33,"li")(34,"b"),m(35,"Support and Communication:"),f()(),p(36,"ul")(37,"li"),m(38,"Administrators may use collected data for user support, addressing user inquiries, and maintaining effective communication. "),f()(),p(39,"li")(40,"b"),m(41,"Platform Improvement:"),f()(),p(42,"ul")(43,"li"),m(44,"Data collected by administrators may be used for analyzing user behavior, identifying trends, and making improvements to the platform. "),f()()(),p(45,"h5"),m(46,"Your Privacy Responsibilities:"),f(),p(47,"ul")(48,"li")(49,"b"),m(50,"Data Security:"),f()(),p(51,"ul")(52,"li"),m(53,"Administrators are responsible for maintaining the security of user data and ensuring compliance with privacy policies and regulations. "),f()(),p(54,"li")(55,"b"),m(56,"Authorized Access:"),f()(),p(57,"ul")(58,"li"),m(59,"Access to user data should be limited to authorized personnel and used for legitimate administrative purposes. "),f()()(),p(60,"p"),m(61,"[last update: 2024.01.14]"),f()())}})}return t})(),ZI=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllUserPolicies(){return this.http.get(this.baseUrl+"UserPolicy")}getUserPolicyById(e){return this.http.get(this.baseUrl+"UserPolicy/"+e)}createUserPolicy(e){return this.http.post(this.baseUrl+"UserPolicy/save",{markdownContent:e.markdownContent,date:e.date})}updateUserPolicy(e){return this.http.put(this.baseUrl+"UserPolicy/update/"+e.id,{markdownContent:e.markdownContent,date:e.date})}deleteUserPolicy(e){return this.http.delete(this.baseUrl+"UserPolicy/"+e)}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dZ(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let uZ=(()=>{class t{constructor(e,i){this.userPolicyService=e,this.matSnackBar=i,this.markdownContent="",this.saveBtnDisabled=!1,this.isLoading=!1}ngOnInit(){this.loadUserPolicy()}loadUserPolicy(){this.userPolicyService.getAllUserPolicies().subscribe(e=>(this.markdownData=e,null!==this.markdownData&&this.markdownData.length>0&&(this.markdownContent=this.markdownData[0].markdownContent),this.markdownData))}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}savePolicy(){this.markdownData.length>0?(this.markdownData[0].markdownContent=this.markdownContent,this.saveBtnDisabled=!0,this.openSnackBar("Already have a policy in que. Try to update!","Close")):(this.isLoading=!0,this.userPolicyService.createUserPolicy({id:0,markdownContent:this.markdownContent,date:this.loadDate()}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Policy saved successfully","Close")},e=>{this.openSnackBar("Error saving policy","Close")}))}updatePolicy(){this.isLoading=!0,this.markdownData.length>0?this.userPolicyService.updateUserPolicy({id:this.markdownData[0].id,markdownContent:this.markdownContent,date:this.loadDate()}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Policy updated successfully","Close"),this.loadUserPolicy()},e=>{this.openSnackBar("Error updating policy","Close")}):(this.isLoading=!1,this.openSnackBar("No policy to update. Create one first!","Close"))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(ZI),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-settings-user-policy"]],decls:19,vars:6,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"markdown-editor"],[1,"d-md-flex","align-items-start","justify-content-between"],[1,"w-100"],[1,"input-area"],["placeholder","Type your Markdown here...",3,"ngModel","ngModelChange"],[1,"preview-area",3,"innerHTML"],[1,"d-flex","justify-content-end","align-items-center"],[1,"button-1",2,"margin-right","5px",3,"disabled","click"],[1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,dZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h6"),m(6,"Write area (Markdown Support)"),f(),p(7,"div",5)(8,"textarea",6),H("ngModelChange",function(s){return r.markdownContent=s}),f()()(),p(9,"div",4)(10,"h6"),m(11,"Preview area"),f(),A(12,"div",7),jn(13,"markdown"),f()(),p(14,"div",8)(15,"button",9),H("click",function(){return r.savePolicy()}),m(16,"Save"),f(),p(17,"button",10),H("click",function(){return r.updatePolicy()}),m(18,"Update"),f()()()()),2&i&&(T("ngIf",r.isLoading),M(8),T("ngModel",r.markdownContent),M(4),T("innerHTML",Lo(13,4,r.markdownContent),Yr),M(3),T("disabled",r.saveBtnDisabled))},dependencies:[Le,bn,At,Pg,xa]})}return t})(),KI=(()=>{class t{constructor(e){this.http=e,this.baseUrl=Lr_apiUrl}getAllUserTerms(){return this.http.get(this.baseUrl+"UserTerms")}getUserTermsById(e){return this.http.get(this.baseUrl+"UserTerms/"+e)}createUserTerms(e){return this.http.post(this.baseUrl+"UserTerms/save",{content:e.content,date:e.date})}updateUserTerms(e){return this.http.put(this.baseUrl+"UserTerms/update/"+e.id,{content:e.content,date:e.date})}static#e=this.\u0275fac=function(i){return new(i||t)(F(tr))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hZ(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let fZ=(()=>{class t{constructor(e,i){this.userTermsService=e,this.matSnackBar=i,this.markdownContent="",this.saveBtnDisabled=!1,this.isLoading=!1}ngOnInit(){this.loadUserTerms()}loadUserTerms(){this.userTermsService.getAllUserTerms().subscribe(e=>(this.markdownData=e,null!==this.markdownData&&this.markdownData.length>0&&(this.markdownContent=this.markdownData[0].content),this.markdownData))}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}saveTerms(){this.markdownData.length>0?(this.markdownData[0].content=this.markdownContent,this.saveBtnDisabled=!0,this.openSnackBar("Already have a terms in que. Try to update!","Close")):(this.isLoading=!0,this.userTermsService.createUserTerms({id:0,content:this.markdownContent,date:this.loadDate()}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Terms saved successfully","Close")},e=>{this.openSnackBar("Error saving terms","Close")}))}updateTerms(){this.isLoading=!0,this.markdownData.length>0?this.userTermsService.updateUserTerms({id:this.markdownData[0].id,content:this.markdownContent,date:this.loadDate()}).subscribe(e=>{this.isLoading=!1,this.openSnackBar("Terms updated successfully","Close"),this.loadUserTerms()},e=>{this.openSnackBar("Error updating terms","Close")}):(this.isLoading=!1,this.openSnackBar("No terms to update. Create one first!","Close"))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(KI),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-settings-user-terms"]],decls:19,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"markdown-editor"],[1,"d-md-flex","align-items-start","justify-content-between"],[1,"w-100"],[1,"input-area"],["placeholder","Type your Markdown here...",3,"ngModel","ngModelChange"],[1,"preview-area",3,"innerHTML"],[1,"d-flex","justify-content-end","align-items-center"],[1,"button-1",2,"margin-right","5px",3,"click"],[1,"button-1",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,hZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h6"),m(6,"Write area (Markdown Support)"),f(),p(7,"div",5)(8,"textarea",6),H("ngModelChange",function(s){return r.markdownContent=s}),f()()(),p(9,"div",4)(10,"h6"),m(11,"Preview area"),f(),A(12,"div",7),jn(13,"markdown"),f()(),p(14,"div",8)(15,"button",9),H("click",function(){return r.saveTerms()}),m(16,"Save"),f(),p(17,"button",10),H("click",function(){return r.updateTerms()}),m(18,"Update"),f()()()()),2&i&&(T("ngIf",r.isLoading),M(8),T("ngModel",r.markdownContent),M(4),T("innerHTML",Lo(13,3,r.markdownContent),Yr))},dependencies:[Le,bn,At,Pg,xa]})}return t})();function pZ(t,n){1&t&&(p(0,"div",13),A(1,"img",14),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let mZ=(()=>{class t{constructor(e,i,r,o){this.cookieService=e,this.adminService=i,this.matSnackBar=r,this.router=o,this.passwordForm=new st({currentPassword:new ie(null,[ue.required]),newPassword:new ie(null,[ue.required])}),this.isLoading=!1}ngOnInit(){this.loadAdmin()}loadAdmin(){return this.cookieService.adminEmail()}onSubmit(){this.isLoading=!0,this.passwordForm.valid&&this.adminService.getAdminByEmail(this.loadAdmin()).subscribe(e=>{this.isLoading=!1,e.password===this.passwordForm.value.currentPassword?this.adminService.updateAdminPassword({id:e.id,name:e.name,email:e.email,phone:e.phone,password:this.passwordForm.value.newPassword}).subscribe(i=>{this.passwordForm.reset(),this.openSnackBar("Password updated successfully","Close")},i=>{this.openSnackBar("Error updating password","Close")}):this.openSnackBar("Current password is incorrect","Close")})}deleteAccount(){confirm("Are you sure you want to delete your account?")&&(this.isLoading=!0,this.adminService.deleteAdminByEmail(this.loadAdmin()).subscribe(e=>{this.cookieService.logoutAdmin(),this.isLoading=!1,this.router.navigate(["/login"]),this.openSnackBar("Account deleted successfully","Close")},e=>{this.openSnackBar("Error deleting account","Close")}))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di),x(Nh),x(Qt),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-admin-settings-privacy"]],decls:26,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"d-flex","align-items-center"],[1,"password-form"],[3,"formGroup","ngSubmit"],["appearance","outline","color","accent",1,"password-form-full-width"],["matInput","","formControlName","currentPassword","placeholder","Current Password","required",""],["matInput","","formControlName","newPassword","placeholder","New Password","required",""],["type","submit",1,"button-1"],[2,"color","var(--color-primary-600)"],[1,"d-flex","align-items-center","justify-content-between"],[2,"margin-bottom","0"],[1,"button-2",2,"margin-right","5px",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,pZ,6,0,"div",0),p(1,"div",1)(2,"h4"),m(3,"Change Password"),f(),p(4,"div",2)(5,"div",3)(6,"form",4),H("ngSubmit",function(){return r.onSubmit()}),p(7,"mat-form-field",5)(8,"mat-label"),m(9,"Current Password"),f(),A(10,"input",6),f(),p(11,"mat-form-field",5)(12,"mat-label"),m(13,"New Password"),f(),A(14,"input",7),f(),p(15,"button",8),m(16,"Submit"),f()()()(),A(17,"hr",9),p(18,"h4"),m(19,"Delete Account"),f(),p(20,"div",10)(21,"div")(22,"p",11),m(23,"If you delete your account it will be permanently delete. Are you sure you want to delete it?"),f()(),p(24,"button",12),H("click",function(){return r.deleteAccount()}),m(25,"Delete"),f()()()),2&i&&(T("ngIf",r.isLoading),M(6),T("formGroup",r.passwordForm))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,Pl,at,It],styles:[".password-form[_ngcontent-%COMP%]{max-width:580px;margin:20px auto;border:2px solid var(--color-primary-600);border-radius:20px;padding:20px 25px}.password-form[_ngcontent-%COMP%] .password-form-full-width[_ngcontent-%COMP%]{width:100%}"]})}return t})(),gZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-coming-soon"]],decls:6,vars:0,consts:[[1,"container",2,"width","100%","height","70vh","display","flex","align-items","center","justify-content","center"],[1,"d-flex","flex-column","align-items-center","justify-content-center"],[2,"max-width","780px"],["src","./assets/images/shared/coming-soon.gif","alt","coming soon",2,"width","100%"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"h2"),m(3,"This page is under development process"),f(),p(4,"div",2),A(5,"img",3),f()()())}})}return t})(),_Z=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-comments"]],decls:2,vars:0,consts:[[1,"container"]],template:function(i,r){1&i&&(p(0,"div",0),A(1,"app-coming-soon"),f())},dependencies:[gZ]})}return t})();function vZ(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let bZ=(()=>{class t{constructor(e,i){this.userPolicyService=e,this.matSnackBar=i,this.isLoading=!0}ngOnInit(){this.loadUserPolicy()}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}loadUserPolicy(){this.userPolicyService.getAllUserPolicies().subscribe(e=>(this.isLoading=!1,this.policy=e.length>0?e:[{id:0,markdownContent:"USER POLICY IS CURRENTLY UNAVAILABLE! SORRY FOR THE INCONVENIENCE.",date:this.loadDate()}],this.policy))}static#e=this.\u0275fac=function(i){return new(i||t)(x(ZI),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-privacy-policy"]],decls:20,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/privacy-policy"],[1,"container"],[3,"innerHTML"],[2,"color","var(--color-primary-600)"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,vZ,6,0,"div",0),p(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"Privacy Policy"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"Privacy Policy"),f()()()(),p(14,"div",8),A(15,"div",9),jn(16,"markdown"),A(17,"hr",10),p(18,"p"),m(19),f()()()),2&i&&(T("ngIf",r.isLoading),M(15),T("innerHTML",Lo(16,3,r.policy[0].markdownContent),Yr),M(4),bt("[last update: ",r.policy[0].date,"]"))},dependencies:[Le,Yt,xa]})}return t})();function yZ(t,n){1&t&&(p(0,"div",11),A(1,"img",12),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let wZ=(()=>{class t{constructor(e,i){this.termsService=e,this.matSnackBar=i,this.isLoading=!0}ngOnInit(){this.loadUserTerms()}loadDate(){return(new Date).toString().split(" ").slice(1,4).join(" ")}loadUserTerms(){this.termsService.getAllUserTerms().subscribe(e=>(this.isLoading=!1,this.terms=e.length>0?e:[{id:0,content:"USER TERMS ARE CURRENTLY UNAVAILABLE! SORRY FOR THE INCONVENIENCE.",date:this.loadDate()}],this.terms),e=>{this.openSnackBar("Error loading terms","Close")})}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(KI),x(Qt))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-terms-conditions"]],decls:20,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"bg"],[1,"sub-banner"],[1,"shadow-layer"],[1,"banner-content"],[1,"banner-route-div"],["routerLink","/home"],["routerLink","/terms"],[1,"container"],[3,"innerHTML"],[2,"color","var(--color-primary-600)"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,yZ,6,0,"div",0),p(1,"div",1)(2,"div",2),A(3,"div",3),p(4,"div",4)(5,"div")(6,"h1"),m(7,"Terms & Conditions"),f()(),p(8,"div",5)(9,"a",6),m(10,"Home"),f(),m(11," / "),p(12,"a",7),m(13,"Terms & Conditions"),f()()()(),p(14,"div",8),A(15,"div",9),jn(16,"markdown"),A(17,"hr",10),p(18,"p"),m(19),f()()()),2&i&&(T("ngIf",r.isLoading),M(15),T("innerHTML",Lo(16,3,r.terms[0].content),Yr),M(4),bt("[last update: ",r.terms[0].date,"]"))},dependencies:[Le,Yt,xa]})}return t})(),CZ=(()=>{class t{constructor(e){this.cookieService=e}ngOnInit(){this.userProfile=JSON.parse(sessionStorage.getItem("loggedInUser")||"{}"),null==this.userProfile?location.reload():(this.cookieService.googleLogin(this.userProfile),this.cookieService.googleLoginName(this.userProfile.name),this.cookieService.googleLoginEmail(this.userProfile.email),this.cookieService.googleLoginPicture(this.userProfile.picture),this.cookieService.googleLoginFamilyName(this.userProfile.family_name)),this.calculateTime()}calculateTime(){this.timer=15,setInterval(()=>{this.timer=this.timer-1,0===this.timer&&location.reload()},1e3)}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-authorized"]],decls:23,vars:1,consts:[[1,"bg"],["id","g_id_onload","data-client_id","224343102685-g87ri6br0gfhv2724chsngpcs52s7rrm.apps.googleusercontent.com","data-context","use","data-login_uri","https://air-quality-platform.onrender.com/api/v1/feedback","data-auto_select","true","data-itp_support","true","data-callback","handleCredentialResponse"],[1,"authorize-wrapper"],["aria-hidden","true",1,"fa","fa-free-code-camp"],["routerLink","/home"],["href","mailto:kavindu.kokila.info@gmail.com"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div"),A(2,"div",1),f(),p(3,"div",2)(4,"h1"),m(5,"Authorization"),f(),p(6,"h2"),m(7,"Authorization Processing..."),f(),p(8,"p"),m(9,"After authorization process you will automatically redirect "),A(10,"i",3),f(),p(11,"p"),m(12),f(),p(13,"a",4),m(14,"Home"),f(),A(15,"br")(16,"br")(17,"br")(18,"br"),p(19,"p"),m(20,"If you have any problem with authorize, please "),p(21,"a",5),m(22,"contact support"),f()()()()),2&i&&(M(12),bt("Please wait a moment (",r.timer,")"))},dependencies:[Yt],styles:[".authorize-wrapper[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 200px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}"]})}return t})(),xZ=(()=>{class t{constructor(e,i){this.cookieService=e,this.route=i}canActivate(e,i){return!!this.cookieService.isUserProfileName()||(this.route.navigateByUrl("/authorize"),!1)}static#e=this.\u0275fac=function(i){return new(i||t)(F(Di),F(ot))};static#t=this.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-loading"]],decls:2,vars:0,template:function(i,r){1&i&&(p(0,"p"),m(1,"loading works!"),f())}})}return t})();function MZ(t,n){1&t&&(p(0,"div",13),A(1,"img",14),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}let SZ=(()=>{class t{constructor(e,i,r,o,s){this.cookieService=e,this.userService=i,this.credentialService=r,this.matSnackBar=o,this.router=s,this.passwordForm=new st({currentPassword:new ie(null,[ue.required]),newPassword:new ie(null,[ue.required])}),this.isLoading=!1}ngOnInit(){this.loadUser()}loadUser(){return this.cookieService.userEmail()}onSubmit(){this.isLoading=!0,this.passwordForm.valid&&this.credentialService.getCredentialByEmail(this.loadUser()).subscribe(e=>{this.isLoading=!1,e.password===this.passwordForm.value.currentPassword?this.credentialService.updateCredentialsByEmail({id:e.id,email:e.email,password:this.passwordForm.value.newPassword}).subscribe(i=>{this.passwordForm.reset(),this.isLoading=!1,this.openSnackBar("Password updated successfully","Close")},i=>{this.isLoading=!1,this.openSnackBar("Error updating password","Close")}):(this.isLoading=!1,this.openSnackBar("Current password is incorrect","Close"))})}deleteAccount(){confirm("Are you sure you want to delete your account?")&&(this.isLoading=!0,this.userService.getUserByEmail(this.loadUser()).subscribe(e=>{const i=e.id;this.userService.deleteUser(i).subscribe(r=>{this.isLoading=!1,this.cookieService.logout(),this.isLoading=!1,this.router.navigate(["/login"]),this.openSnackBar("Account deleted successfully","Close")},r=>{this.isLoading=!1,this.openSnackBar("Error deleting account","Close")}),this.credentialService.deleteCredentials(i).subscribe(r=>{this.isLoading=!1},r=>{this.isLoading=!1,this.openSnackBar("Error deleting credentials","Close")})}))}openSnackBar(e,i){this.matSnackBar.open(e,i,{duration:3e3})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Di),x(Il),x(Bh),x(Qt),x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-user-settings"]],decls:26,vars:2,consts:[["class","loading-screen",4,"ngIf"],[1,"container"],[1,"d-flex","align-items-center"],[1,"password-form"],[3,"formGroup","ngSubmit"],["appearance","outline","color","accent",1,"password-form-full-width"],["matInput","","formControlName","currentPassword","placeholder","Current Password","required",""],["matInput","","formControlName","newPassword","placeholder","New Password","required",""],["type","submit",1,"button-1"],[2,"color","var(--color-primary-600)"],[1,"d-flex","align-items-center","justify-content-between"],[2,"margin-bottom","0"],[1,"button-2",2,"margin-right","5px",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."]],template:function(i,r){1&i&&(U(0,MZ,6,0,"div",0),p(1,"div",1)(2,"h4"),m(3,"Change Password"),f(),p(4,"div",2)(5,"div",3)(6,"form",4),H("ngSubmit",function(){return r.onSubmit()}),p(7,"mat-form-field",5)(8,"mat-label"),m(9,"Current Password"),f(),A(10,"input",6),f(),p(11,"mat-form-field",5)(12,"mat-label"),m(13,"New Password"),f(),A(14,"input",7),f(),p(15,"button",8),m(16,"Submit"),f()()()(),A(17,"hr",9),p(18,"h4"),m(19,"Delete Account"),f(),p(20,"div",10)(21,"div")(22,"p",11),m(23,"If you delete your account it will be permanently delete. Are you sure you want to delete it?"),f()(),p(24,"button",12),H("click",function(){return r.deleteAccount()}),m(25,"Delete"),f()()()),2&i&&(T("ngIf",r.isLoading),M(6),T("formGroup",r.passwordForm))},dependencies:[Le,jt,Pt,xi,Vt,bn,At,Bt,Pl,at,It],styles:[".password-form[_ngcontent-%COMP%]{max-width:580px;margin:20px auto;border:2px solid var(--color-primary-600);border-radius:20px;padding:20px 25px}.password-form[_ngcontent-%COMP%] .password-form-full-width[_ngcontent-%COMP%]{width:100%}"]})}return t})(),kZ=(()=>{class t{constructor(e,i){this.userService=e,this.cookieService=i}ngOnInit(){this.getUser()}getUser(){this.userService.getUserByEmail(this.cookieService.userEmail()).subscribe(e=>{this.user=e.name})}static#e=this.\u0275fac=function(i){return new(i||t)(x(Il),x(Di))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-welcome"]],decls:22,vars:1,consts:[[1,"container"],[1,"welcome-wrapper"],[1,"shapes"],[1,"cube"],[1,"circle"],[1,"pyramid"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"h1"),m(3),f(),p(4,"h3"),m(5,"To Geographic Analysis Platform"),f()(),p(6,"div",2)(7,"div",3),A(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div"),f(),A(14,"div",4)(15,"div"),p(16,"div",5),A(17,"div")(18,"div")(19,"div")(20,"div")(21,"div"),f()()()),2&i&&(M(3),bt("Welcome ",r.user,"!"))},styles:[".container[_ngcontent-%COMP%]{background-image:url(grid-bg.a276b9cc828d9130.png);background-size:cover;background-position:center;background-repeat:no-repeat}.welcome-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 230px);width:100%}.cube[_ngcontent-%COMP%]{--cube-half: 12vmin;transform-style:preserve-3d}.cube[_ngcontent-%COMP%], .cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:calc(var(--cube-half) * 2);height:calc(var(--cube-half) * 2)}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:0;transform:rotateY(var(--cube-ry, 0deg)) rotateX(var(--cube-rx, 0deg)) translateZ(var(--cube-tz, var(--cube-half)))}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){--cube-rx: 270deg}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){--cube-rx: 90deg}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){--cube-ry: 0deg}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){--cube-ry: 90deg}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){--cube-ry: 180deg}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){--cube-ry: 270deg}.cube[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin var(--duration, 10s) infinite linear}.cube[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background:hsl(var(--hue, 193),50%,55%) linear-gradient(135deg,rgba(0,0,0,0),rgba(0,0,0,.6))}.pyramid[_ngcontent-%COMP%]{--pyramid-half: 10vmin;transform-style:preserve-3d;animation:_ngcontent-%COMP%_spin 8s infinite linear}.pyramid[_ngcontent-%COMP%], .pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:calc(var(--pyramid-half) * 2);height:calc(var(--pyramid-half) * 2)}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;z-index:0;transform:rotateY(var(--pyramid-ry, 0deg)) rotateX(var(--pyramid-rx, 0deg)) translateZ(var(--pyramid-tz, var(--pyramid-half))) rotateX(var(--pyramid-tilt, 30deg));transform-origin:50% 100%}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(n+2){clip-path:polygon(0% 100%,50% 0%,100% 100%)}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){transform-origin:50% 50%;--pyramid-tilt: 0deg;--pyramid-rx: 270deg}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){--pyramid-ry: 0deg}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){--pyramid-ry: 90deg}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){--pyramid-ry: 180deg}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){--pyramid-ry: 270deg}.pyramid[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin var(--duration, 10s) infinite linear}.pyramid[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background:hsl(var(--hue, 13),80%,55%) linear-gradient(135deg,rgba(0,0,0,0),rgba(0,0,0,.6))}.circle[_ngcontent-%COMP%]{width:70px;height:70px;border-radius:50%;background-image:radial-gradient(white,black)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotateY(0) rotateX(0) rotate(0)}to{transform:rotateY(720deg) rotateX(0) rotate(0)}}.shapes[_ngcontent-%COMP%]{position:absolute;inset:10% 0;width:100%;min-height:calc(100vh - 230px);display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;place-items:center;perspective:100vmax;--duration: 10s}"]})}return t})(),AZ=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-monitor"]],decls:18,vars:10,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","pm25",1,"nav-link"],["aria-current","page","routerLink","pm10",1,"nav-link"],["aria-current","page","routerLink","co2",1,"nav-link"],["aria-current","page","routerLink","ozone",1,"nav-link"],["aria-current","page","routerLink","no2",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"PM25"),f()(),p(4,"li",1)(5,"a",3),m(6,"PM10"),f()(),p(7,"li",1)(8,"a",4),m(9,"CO2"),f()(),p(10,"li",1)(11,"a",5),m(12,"OZONE"),f()(),p(13,"li",1)(14,"a",6),m(15,"NO2"),f()()(),p(16,"div",7),A(17,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/dashboard/monitor/pm25")),M(3),ne("active",r.isActive("/dashboard/monitor/pm10")),M(3),ne("active",r.isActive("/dashboard/monitor/co2")),M(3),ne("active",r.isActive("/dashboard/monitor/ozone")),M(3),ne("active",r.isActive("/dashboard/monitor/no2")))},dependencies:[Ci,Yt]})}return t})();function EZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function TZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function PZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.pm25)}}let IZ=(()=>{class t{constructor(e){this.airQualityService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Colombo","Galle","Matara","Hambantota"]}ngOnInit(){this.loadLatestAirQuality()}loadLatestAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllAirQuality():this.loadLatestAirQuality()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.airQualityService.getAllAirQuality().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestAirQuality(),this.airQuality=r}this.loadLatestAirQuality()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-pm25"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,EZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,TZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,PZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function OZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function FZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function RZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.pm10)}}let LZ=(()=>{class t{constructor(e){this.airQualityService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Colombo","Galle","Matara","Hambantota"]}ngOnInit(){this.loadLatestAirQuality()}loadLatestAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllAirQuality():this.loadLatestAirQuality()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.airQualityService.getAllAirQuality().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestAirQuality(),this.airQuality=r}this.loadLatestAirQuality()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-pm10"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,OZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,FZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,RZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function NZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function BZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function VZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.co2)}}let zZ=(()=>{class t{constructor(e){this.airQualityService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Colombo","Galle","Matara","Hambantota"]}ngOnInit(){this.loadLatestAirQuality()}loadLatestAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllAirQuality():this.loadLatestAirQuality()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.airQualityService.getAllAirQuality().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestAirQuality(),this.airQuality=r}this.loadLatestAirQuality()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-co2"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,NZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,BZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,VZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function HZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function UZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function jZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.ozone)}}let $Z=(()=>{class t{constructor(e){this.airQualityService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Colombo","Galle","Matara","Hambantota"]}ngOnInit(){this.loadLatestAirQuality()}loadLatestAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllAirQuality():this.loadLatestAirQuality()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.airQualityService.getAllAirQuality().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestAirQuality(),this.airQuality=r}this.loadLatestAirQuality()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-ozone"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,HZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,UZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,jZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function WZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function GZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function qZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.no2)}}let YZ=(()=>{class t{constructor(e){this.airQualityService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Colombo","Galle","Matara","Hambantota"]}ngOnInit(){this.loadLatestAirQuality()}loadLatestAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllAirQuality(){this.airQualityService.getAllAirQuality().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllAirQuality():this.loadLatestAirQuality()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.airQualityService.getAllAirQuality().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestAirQuality(),this.airQuality=r}this.loadLatestAirQuality()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-no2"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,WZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,GZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,qZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})(),ZZ=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-metrological-data"]],decls:15,vars:8,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","temperature",1,"nav-link"],["aria-current","page","routerLink","humidity",1,"nav-link"],["aria-current","page","routerLink","wind-speed",1,"nav-link"],["aria-current","page","routerLink","precipitation",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"TEMPERATURE"),f()(),p(4,"li",1)(5,"a",3),m(6,"HUMIDITY"),f()(),p(7,"li",1)(8,"a",4),m(9,"WIND SPEED"),f()(),p(10,"li",1)(11,"a",5),m(12,"PRECIPITATION"),f()()(),p(13,"div",6),A(14,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/dashboard/metrological-data/temperature")),M(3),ne("active",r.isActive("/dashboard/metrological-data/humidity")),M(3),ne("active",r.isActive("/dashboard/metrological-data/wind-speed")),M(3),ne("active",r.isActive("/dashboard/metrological-data/precipitation")))},dependencies:[Ci,Yt]})}return t})();function KZ(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function QZ(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function XZ(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.temperature)}}let JZ=(()=>{class t{constructor(e){this.metrologicalService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Industrial","Residential","Commercial","Park"]}ngOnInit(){this.loadLatestMetrological()}loadLatestMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.airQuality=i}})}loadAllMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(e)return this.airQuality=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllMetrological():this.loadLatestMetrological()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.metrologicalService.getAllMetrological().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestMetrological(),this.airQuality=r}this.loadLatestMetrological()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-temperature"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,KZ,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,QZ,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,XZ,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.airQuality),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function eK(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function tK(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function nK(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.humidity)}}let iK=(()=>{class t{constructor(e){this.metrologicalService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie("")}),this.locations=["All","Industrial","Residential","Commercial","Park"]}ngOnInit(){this.loadLatestMetrological()}loadLatestMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.metrological=i}})}loadAllMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(e)return this.metrological=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllMetrological():this.loadLatestMetrological()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.metrologicalService.getAllMetrological().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestMetrological(),this.metrological=r}this.loadLatestMetrological()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-humidity"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,eK,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,tK,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,nK,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.metrological),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function rK(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function oK(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function sK(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.windSpeed)}}let aK=(()=>{class t{constructor(e){this.metrologicalService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Industrial","Residential","Commercial","Park"]}ngOnInit(){this.loadLatestMetrological()}loadLatestMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.metrological=i}})}loadAllMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(e)return this.metrological=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllMetrological():this.loadLatestMetrological()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.metrologicalService.getAllMetrological().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestMetrological(),this.metrological=r}this.loadLatestMetrological()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-wind-speed"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,rK,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,oK,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,sK,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.metrological),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})();function lK(t,n){1&t&&(p(0,"div",17),A(1,"img",18),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Starts server configuration"),f()())}function cK(t,n){if(1&t&&(p(0,"mat-option",19),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function dK(t,n){if(1&t&&(p(0,"tr")(1,"td"),m(2),f(),p(3,"td"),m(4),f(),p(5,"td"),m(6),f()()),2&t){const e=n.$implicit;M(2),j(e.timestamp),M(2),j(e.location),M(2),j(e.precipitation)}}let uK=(()=>{class t{constructor(e){this.metrologicalService=e,this.isExpanded=!1,this.isLoading=!0,this.filterForm=new st({filter:new ie(null)}),this.locations=["All","Industrial","Residential","Commercial","Park"]}ngOnInit(){this.loadLatestMetrological()}loadLatestMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(this.isLoading=!1,e){let i=e.slice(-10);return e.splice(0,1),this.metrological=i}})}loadAllMetrological(){this.metrologicalService.getAllMetrological().subscribe(e=>{if(e)return this.metrological=e})}seeMore(){this.isExpanded=!this.isExpanded,this.isExpanded?this.loadAllMetrological():this.loadLatestMetrological()}filterByLocation(){let e=this.filterForm.controls.filter.value;this.metrologicalService.getAllMetrological().subscribe(i=>{if(i){let r=i.filter(o=>o.location===e);return 0===r.length&&this.loadLatestMetrological(),this.metrological=r}this.loadLatestMetrological()})}filterValue(){this.filterByLocation()}static#e=this.\u0275fac=function(i){return new(i||t)(x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-precipitation"]],decls:37,vars:5,consts:[["class","loading-screen",4,"ngIf"],[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"example-full-width","field"],["value","asc"],["value","desc"],[1,"table","table-hover"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"hr-div"],[1,"see-more",3,"click"],[1,"loading-screen"],["src","./assets/images/shared/loading.gif","alt","loading..."],[3,"value"]],template:function(i,r){1&i&&(U(0,lK,6,0,"div",0),p(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),m(8,"Filter"),f(),p(9,"mat-select",7),H("selectionChange",function(){return r.filterValue()}),U(10,cK,2,2,"mat-option",8),f()()(),p(11,"div",5)(12,"mat-form-field",6)(13,"mat-label"),m(14,"Order"),f(),p(15,"mat-select",9)(16,"mat-option",10),m(17,"Ascending"),f(),p(18,"mat-option",11),m(19,"Descending"),f()()()()()()(),p(20,"table",12)(21,"thead")(22,"tr")(23,"th"),m(24,"Timestamp"),f(),p(25,"th"),m(26,"Location"),f(),p(27,"th"),m(28,"Received Value"),f()()(),p(29,"tbody"),U(30,dK,7,3,"tr",13),f()(),p(31,"div",14),A(32,"div",15),p(33,"div",16),H("click",function(){return r.seeMore()}),p(34,"p"),m(35),f()(),A(36,"div",15),f()()),2&i&&(T("ngIf",r.isLoading),M(3),T("formGroup",r.filterForm),M(7),T("ngForOf",r.locations),M(20),T("ngForOf",r.metrological),M(5),j(r.isExpanded?"See less":"See more"))},dependencies:[Dt,Le,jt,Pt,Vt,At,Bt,at,It,Yn,Bn]})}return t})(),hK=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-prediction"]],decls:19,vars:6,consts:[[1,"container"],[1,"title-wrapper"],["src","./assets/images/shared/robot-1.png","alt","robot"],[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","guide",1,"nav-link"],["aria-current","page","routerLink","airQuality",1,"nav-link"],["aria-current","page","routerLink","metrological",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1),A(2,"img",2),p(3,"h1"),m(4,"Predict Measurements"),f()(),p(5,"p"),m(6," This feature was implemented to predict air quality and meteorological data by AI. You can use this feature for analysis purposes. This AI prediction model is trained after deep analysis of how measurements work in selected areas. You can use this feature to get unknown factor values using known factor values. This feature is recommended for experienced analyzers. Start your prediction below! "),f()(),p(7,"ul",3)(8,"li",4)(9,"a",5),m(10,"GUIDE"),f()(),p(11,"li",4)(12,"a",6),m(13,"AIR QUALITY"),f()(),p(14,"li",4)(15,"a",7),m(16,"METROLOGICAL"),f()()(),p(17,"div",8),A(18,"router-outlet"),f()),2&i&&(M(9),ne("active",r.isActive("/dashboard/prediction/guide")),M(3),ne("active",r.isActive("/dashboard/prediction/airQuality")),M(3),ne("active",r.isActive("/dashboard/prediction/metrological")))},dependencies:[Ci,Yt],styles:[".title-wrapper[_ngcontent-%COMP%]{text-align:center;display:flex;align-items:center;justify-content:center}.title-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100px}p[_ngcontent-%COMP%]{text-align:center;font-size:18px}"]})}return t})(),fK=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=G({type:t,selectors:[["app-prediction-guide"]],decls:26,vars:0,consts:[[1,"container",2,"margin","15px 0"],["routerLink","/dashboard/monitor"],["routerLink","/dashboard/metrological-data"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"h3"),m(2,"Guidance to make predictions"),f(),p(3,"ul")(4,"li"),m(5,"First you need to understand how air quality and metrological data work"),f(),p(6,"li"),m(7,"Use "),p(8,"a",1),m(9,"Monitoring"),f(),m(10," or "),p(11,"a",2),m(12,"Metrological Data"),f(),m(13," tabs to learn how data work on selected areas "),f(),p(14,"li"),m(15,"Choose what's you need to predict(Air quality factor or Metrological factor)"),f(),p(16,"li"),m(17,"Select the factor you need to predict from selection"),f(),p(18,"li"),m(19,"Enter the values to all required input fields(you can use any real value(21.234568904))"),f(),p(20,"li"),m(21,"Submit the Predict button"),f(),p(22,"li"),m(23,"Result will show you in result field"),f(),p(24,"li"),m(25,"Enjoy and Learn!!"),f()()())},dependencies:[Yt]})}return t})();function pK(t,n){if(1&t&&(p(0,"mat-option",21),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}let mK=(()=>{class t{constructor(e){this.airQualityService=e,this.isLoading=!1,this.factors=["pm25","pm10","co2","ozone","no2"],this.filterForm=new st({filter:new ie(""),pm25:new ie(0,[ue.required]),pm10:new ie(0,[ue.required]),co2:new ie(0,[ue.required]),ozone:new ie(0,[ue.required]),no2:new ie(0,[ue.required]),temperature:new ie(0,[ue.required]),humidity:new ie(0,[ue.required]),windSpeed:new ie(0,[ue.required])})}ngOnInit(){this.changeFactor()}changeFactor(){switch(this.filterForm.get("filter")?.value){case"pm25":this.filterForm.enable(),this.filterForm.controls.pm25.disable();break;case"pm10":this.filterForm.enable(),this.filterForm.controls.pm10.disable();break;case"co2":this.filterForm.enable(),this.filterForm.controls.co2.disable();break;case"ozone":this.filterForm.enable(),this.filterForm.controls.ozone.disable();break;case"no2":this.filterForm.enable(),this.filterForm.controls.no2.disable();break;case"temperature":this.filterForm.enable(),this.filterForm.controls.temperature.disable();break;case"humidity":this.filterForm.enable(),this.filterForm.controls.humidity.disable();break;case"windSpeed":this.filterForm.enable(),this.filterForm.controls.windSpeed.disable();break;default:this.filterForm.disable(),this.filterForm.controls.filter.enable()}document.getElementById("result").innerHTML="Result will appear here"}loading(){this.isLoading=!this.isLoading,document.getElementById("predict").innerHTML=this.isLoading?'':"Predict"}predict(){let e=document.getElementById("result");"pm25"==this.filterForm.get("filter")?.value?(this.loading(),this.airQualityService.predictPm25([this.filterForm.value.pm10,this.filterForm.value.co2,this.filterForm.value.ozone,this.filterForm.value.no2,this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"pm10"==this.filterForm.get("filter")?.value?(this.loading(),this.airQualityService.predictPm10([this.filterForm.value.pm25,this.filterForm.value.co2,this.filterForm.value.ozone,this.filterForm.value.no2,this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"co2"==this.filterForm.get("filter")?.value?(this.loading(),this.airQualityService.predictCo2([this.filterForm.value.pm25,this.filterForm.value.pm10,this.filterForm.value.ozone,this.filterForm.value.no2,this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"ozone"==this.filterForm.get("filter")?.value?(this.loading(),this.airQualityService.predictOzone([this.filterForm.value.pm25,this.filterForm.value.pm10,this.filterForm.value.co2,this.filterForm.value.no2,this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"no2"==this.filterForm.get("filter")?.value&&(this.loading(),this.airQualityService.predictNo2([this.filterForm.value.pm25,this.filterForm.value.pm10,this.filterForm.value.co2,this.filterForm.value.ozone,this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()}))}static#e=this.\u0275fac=function(i){return new(i||t)(x(Cs))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-prediction-air"]],decls:60,vars:2,consts:[[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-6","col-md-3","col-lg-2"],["matInput","","formControlName","pm25","placeholder","21.345574326","type","number"],["matInput","","formControlName","pm10","placeholder","21.345574326","type","number"],["matInput","","formControlName","co2","placeholder","21.345574326","type","number"],["matInput","","formControlName","ozone","placeholder","21.345574326","type","number"],["matInput","","formControlName","no2","placeholder","21.345574326","type","number"],["matInput","","formControlName","temperature","placeholder","21.345574326","type","number"],["matInput","","formControlName","humidity","placeholder","21.345574326","type","number"],["matInput","","formControlName","windSpeed","placeholder","21.345574326","type","number"],["id","predict",1,"button-1",3,"click"],[1,"result-div"],["id","result"],[3,"value"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"form",2)(3,"div",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),m(7,"Select a Factor to Predict"),f(),p(8,"mat-select",6),H("selectionChange",function(){return r.changeFactor()}),p(9,"mat-option",7),m(10,"Select a Factor"),f(),U(11,pK,2,2,"mat-option",8),f()()(),A(12,"div"),p(13,"div",9)(14,"mat-form-field",5)(15,"mat-label"),m(16,"Pm25"),f(),A(17,"input",10),f()(),p(18,"div",9)(19,"mat-form-field",5)(20,"mat-label"),m(21,"Pm10"),f(),A(22,"input",11),f()(),p(23,"div",9)(24,"mat-form-field",5)(25,"mat-label"),m(26,"CO2"),f(),A(27,"input",12),f()(),p(28,"div",9)(29,"mat-form-field",5)(30,"mat-label"),m(31,"Ozone"),f(),A(32,"input",13),f()(),p(33,"div",9)(34,"mat-form-field",5)(35,"mat-label"),m(36,"NO2"),f(),A(37,"input",14),f()(),p(38,"div",9)(39,"mat-form-field",5)(40,"mat-label"),m(41,"Temperature"),f(),A(42,"input",15),f()(),p(43,"div",9)(44,"mat-form-field",5)(45,"mat-label"),m(46,"Humidity"),f(),A(47,"input",16),f()(),p(48,"div",9)(49,"mat-form-field",5)(50,"mat-label"),m(51,"Wind Speed"),f(),A(52,"input",17),f()()(),p(53,"div",3)(54,"div",4)(55,"button",18),H("click",function(){return r.predict()}),m(56,"Predict"),f()()()(),p(57,"div",19)(58,"h1",20),m(59,"Result will appear here"),f()()()()),2&i&&(M(2),T("formGroup",r.filterForm),M(9),T("ngForOf",r.factors))},dependencies:[Dt,jt,Pt,xi,Vt,bn,Ig,At,Bt,at,It,Yn,Bn],styles:[".result-div[_ngcontent-%COMP%]{width:100%;height:100%;min-height:40px;display:flex;align-items:center;justify-content:center;border:2px solid var(--color-primary-600);border-radius:10px;padding:20px;margin:20px 0}"]})}return t})();function gK(t,n){if(1&t&&(p(0,"mat-option",17),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}let _K=(()=>{class t{constructor(e){this.metrologicalService=e,this.isLoading=!1,this.factors=["temperature","humidity","windSpeed","precipitation"],this.filterForm=new st({filter:new ie(""),temperature:new ie(0,[ue.required]),humidity:new ie(0,[ue.required]),windSpeed:new ie(0,[ue.required]),precipitation:new ie(0,[ue.required])})}ngOnInit(){this.changeFactor()}changeFactor(){switch(this.filterForm.get("filter")?.value){case"temperature":this.filterForm.enable(),this.filterForm.controls.temperature.disable();break;case"humidity":this.filterForm.enable(),this.filterForm.controls.humidity.disable();break;case"windSpeed":this.filterForm.enable(),this.filterForm.controls.windSpeed.disable();break;case"precipitation":this.filterForm.enable(),this.filterForm.controls.precipitation.disable();break;default:this.filterForm.disable(),this.filterForm.controls.filter.enable()}document.getElementById("result").innerHTML="Result will appear here"}predict(){let e=document.getElementById("result");"temperature"==this.filterForm.get("filter")?.value?(this.loading(),this.metrologicalService.predictTemperature([this.filterForm.value.humidity,this.filterForm.value.windSpeed,this.filterForm.value.precipitation]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"humidity"==this.filterForm.get("filter")?.value?(this.loading(),this.metrologicalService.predictHumidity([this.filterForm.value.temperature,this.filterForm.value.windSpeed,this.filterForm.value.precipitation]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"windSpeed"==this.filterForm.get("filter")?.value?(this.loading(),this.metrologicalService.predictWindSpeed([this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.precipitation]).subscribe(i=>{e.innerHTML=i.message,this.loading()})):"precipitation"==this.filterForm.get("filter")?.value&&(this.loading(),this.metrologicalService.predictPrecipitation([this.filterForm.value.temperature,this.filterForm.value.humidity,this.filterForm.value.windSpeed]).subscribe(i=>{e.innerHTML=i.message,this.loading()}))}loading(){this.isLoading=!this.isLoading,document.getElementById("predict").innerHTML=this.isLoading?'':"Predict"}static#e=this.\u0275fac=function(i){return new(i||t)(x(_a))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-prediction-metro"]],decls:40,vars:2,consts:[[1,"container",2,"overflow-x","auto"],[1,"filter-wrapper"],[1,"signup-form",3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],["appearance","outline","color","accent",1,"signup-form-full-width"],["formControlName","filter",1,"example-full-width","field",3,"selectionChange"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-6","col-md-3","col-lg-2"],["matInput","","formControlName","temperature","placeholder","21.345574326","type","number"],["matInput","","formControlName","humidity","placeholder","21.345574326","type","number"],["matInput","","formControlName","windSpeed","placeholder","21.345574326","type","number"],["matInput","","formControlName","precipitation","placeholder","21.345574326","type","number"],["id","predict",1,"button-1",3,"click"],[1,"result-div"],["id","result"],[3,"value"]],template:function(i,r){1&i&&(p(0,"div",0)(1,"div",1)(2,"form",2)(3,"div",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),m(7,"Select a Factor to Predict"),f(),p(8,"mat-select",6),H("selectionChange",function(){return r.changeFactor()}),p(9,"mat-option",7),m(10,"Select a Factor"),f(),U(11,gK,2,2,"mat-option",8),f()()(),A(12,"div"),p(13,"div",9)(14,"mat-form-field",5)(15,"mat-label"),m(16,"Temperature"),f(),A(17,"input",10),f()(),p(18,"div",9)(19,"mat-form-field",5)(20,"mat-label"),m(21,"Humidity"),f(),A(22,"input",11),f()(),p(23,"div",9)(24,"mat-form-field",5)(25,"mat-label"),m(26,"Wind Speed"),f(),A(27,"input",12),f()(),p(28,"div",9)(29,"mat-form-field",5)(30,"mat-label"),m(31,"Precipitation"),f(),A(32,"input",13),f()()(),p(33,"div",3)(34,"div",4)(35,"button",14),H("click",function(){return r.predict()}),m(36,"Predict"),f()()()(),p(37,"div",15)(38,"h1",16),m(39,"Result will appear here"),f()()()()),2&i&&(M(2),T("formGroup",r.filterForm),M(9),T("ngForOf",r.factors))},dependencies:[Dt,jt,Pt,xi,Vt,bn,Ig,At,Bt,at,It,Yn,Bn],styles:[".result-div[_ngcontent-%COMP%]{width:100%;height:100%;min-height:40px;display:flex;align-items:center;justify-content:center;border:2px solid var(--color-primary-600);border-radius:10px;padding:20px;margin:20px 0}"]})}return t})(),vK=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-stats"]],decls:9,vars:4,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","airQuality",1,"nav-link"],["aria-current","page","routerLink","metrological",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"AIR QUALITY"),f()(),p(4,"li",1)(5,"a",3),m(6,"METROLOGICAL DATA"),f()()(),p(7,"div",4),A(8,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/dashboard/stats/airQuality")),M(3),ne("active",r.isActive("/dashboard/stats/metrological")))},dependencies:[Ci,Yt]})}return t})();const bK=["mat-calendar-body",""];function yK(t,n){if(1&t&&(p(0,"tr",3)(1,"td",4),m(2),f()()),2&t){const e=he();M(1),as("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),tt("colspan",e.numCols),M(1),bt(" ",e.label," ")}}function wK(t,n){if(1&t&&(p(0,"td",4),m(1),f()),2&t){const e=he(2);as("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),tt("colspan",e._firstRowOffset),M(1),bt(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function CK(t,n){if(1&t){const e=vn();p(0,"td",8)(1,"button",9),H("click",function(r){const s=ct(e).$implicit;return dt(he(2)._cellClicked(s,r))})("focus",function(r){const s=ct(e).$implicit;return dt(he(2)._emitActiveDateChange(s,r))}),p(2,"span",10),m(3),f(),A(4,"span",11),f()()}if(2&t){const e=n.$implicit,i=n.index,r=he().index,o=he();as("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),tt("data-mat-row",r)("data-mat-col",i),M(1),ne("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),T("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),tt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),M(1),ne("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),M(1),bt(" ",e.displayValue," ")}}function xK(t,n){if(1&t&&(p(0,"tr",5),U(1,wK,2,6,"td",6),U(2,CK,5,48,"td",7),f()),2&t){const e=n.$implicit,i=n.index,r=he();M(1),T("ngIf",0===i&&r._firstRowOffset),M(1),T("ngForOf",e)}}function DK(t,n){if(1&t&&(p(0,"th",5)(1,"span",6),m(2),f(),p(3,"span",7),m(4),f()()),2&t){const e=n.$implicit;M(2),j(e.long),M(2),j(e.narrow)}}const MK=["*"];function SK(t,n){}function kK(t,n){if(1&t){const e=vn();p(0,"mat-month-view",5),H("activeDateChange",function(r){return ct(e),dt(he().activeDate=r)})("_userSelection",function(r){return ct(e),dt(he()._dateSelected(r))})("dragStarted",function(r){return ct(e),dt(he()._dragStarted(r))})("dragEnded",function(r){return ct(e),dt(he()._dragEnded(r))}),f()}if(2&t){const e=he();T("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function AK(t,n){if(1&t){const e=vn();p(0,"mat-year-view",6),H("activeDateChange",function(r){return ct(e),dt(he().activeDate=r)})("monthSelected",function(r){return ct(e),dt(he()._monthSelectedInYearView(r))})("selectedChange",function(r){return ct(e),dt(he()._goToDateInView(r,"month"))}),f()}if(2&t){const e=he();T("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function EK(t,n){if(1&t){const e=vn();p(0,"mat-multi-year-view",7),H("activeDateChange",function(r){return ct(e),dt(he().activeDate=r)})("yearSelected",function(r){return ct(e),dt(he()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return ct(e),dt(he()._goToDateInView(r,"year"))}),f()}if(2&t){const e=he();T("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function TK(t,n){}const PK=["button"];function IK(t,n){1&t&&(iu(),p(0,"svg",3),A(1,"path",4),f())}const OK=[[["","matDatepickerToggleIcon",""]]],FK=["[matDatepickerToggleIcon]"],RK=[[["input","matStartDate",""]],[["input","matEndDate",""]]],LK=["input[matStartDate]","input[matEndDate]"];let zh=(()=>{class t{constructor(){this.changes=new Q,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,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class kw{constructor(n,e,i,r,o={},s=n,a){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=s,this.rawValue=a}}let NK=1,xd=(()=>{class t{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,i){this._elementRef=e,this._ngZone=i,this._platform=Ce(Dn),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ae,this.previewChange=new ae,this.activeDateChange=new ae,this.dragStarted=new ae,this.dragEnded=new ae,this._didDragSinceMouseDown=!1,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._touchmoveHandler=r=>{if(!this.isRange)return;const o=QI(r),s=o?this._getCellFromElement(o):null;o!==r.target&&(this._didDragSinceMouseDown=!0),Ew(r.target)&&r.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:r}))},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&("blur"!==r.type&&(this._didDragSinceMouseDown=!0),r.target&&this._getCellFromElement(r.target)&&(!r.relatedTarget||!this._getCellFromElement(r.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r})))},this._mousedownHandler=r=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const o=r.target&&this._getCellFromElement(r.target);!o||!this._isInRange(o.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:o.rawValue,event:r})})},this._mouseupHandler=r=>{if(!this.isRange)return;const o=Ew(r.target);o?o.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const s=this._getCellFromElement(o);this.dragEnded.emit({value:s?.rawValue??null,event:r})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:r})})},this._touchendHandler=r=>{const o=QI(r);o&&this._mouseupHandler({target:o})},this._id="mat-calendar-body-"+NK++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("touchmove",this._touchmoveHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0),r.addEventListener("mousedown",this._mousedownHandler),r.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/o+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/o+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("touchmove",this._touchmoveHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0),e.removeEventListener("mousedown",this._mousedownHandler),e.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(On(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Tw(e,this.startValue,this.endValue)}_isRangeEnd(e){return Pw(e,this.startValue,this.endValue)}_isInRange(e){return Iw(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Tw(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){const s=this.rows[i-1];o=s&&s[s.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){const s=this.rows[i+1];o=s&&s[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return Pw(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Iw(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Tw(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Pw(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Iw(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 i=Ew(e);if(i){const r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(_e))},t.\u0275cmp=G({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:[je],attrs:bK,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["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"]],template:function(e,i){1&e&&(U(0,yK,3,6,"tr",0),U(1,xK,3,2,"tr",1),p(2,"label",2),m(3),f(),p(4,"label",2),m(5),f()),2&e&&(T("ngIf",i._firstRowOffset=n&&t===e}function Iw(t,n,e,i){return i&&null!==n&&null!==e&&n!==e&&t>=n&&t<=e}function QI(t){const n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}class Mi{constructor(n,e){this.start=n,this.end=e}}let Da=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new Q,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return t.\u0275fac=function(e){ul()},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),BK=(()=>{class t extends Da{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 t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(F(Nn))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})(),VK=(()=>{class t extends Da{constructor(e){super(new Mi(null,null),e)}add(e){let{start:i,end:r}=this.selection;null==i?i=e:null==r?r=e:(i=e,r=null),super.updateSelection(new Mi(i,r),this)}isValid(){const{start:e,end:i}=this.selection;return null==e&&null==i||(null!=e&&null!=i?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(null==e||this._isValidDateInstance(e))&&(null==i||this._isValidDateInstance(i)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(F(Nn))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const HK={provide:Da,deps:[[new ns,new ea,Da],Nn],useFactory:function zK(t,n){return t||new BK(n)}},jK={provide:Da,deps:[[new ns,new ea,Da],Nn],useFactory:function UK(t,n){return t||new VK(n)}},Ng=new Z("MAT_DATE_RANGE_SELECTION_STRATEGY");let $K=(()=>{class t{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:o}=i;return null==r?r=e:null==o&&e&&this._dateAdapter.compareDate(e,r)>=0?o=e:(r=e,o=null),new Mi(r,o)}createPreview(e,i){let r=null,o=null;return i.start&&!i.end&&e&&(r=i.start,o=e),new Mi(r,o)}createDrag(e,i,r){let o=i.start,s=i.end;if(!o||!s)return null;const a=this._dateAdapter,c=0!==a.compareDate(o,s),d=a.getYear(r)-a.getYear(e),h=a.getMonth(r)-a.getMonth(e),_=a.getDate(r)-a.getDate(e);return c&&a.sameDate(e,i.start)?(o=r,a.compareDate(r,s)>0&&(s=a.addCalendarYears(s,d),s=a.addCalendarMonths(s,h),s=a.addCalendarDays(s,_))):c&&a.sameDate(e,i.end)?(s=r,a.compareDate(r,o)<0&&(o=a.addCalendarYears(o,d),o=a.addCalendarMonths(o,h),o=a.addCalendarDays(o,_))):(o=a.addCalendarYears(o,d),o=a.addCalendarMonths(o,h),o=a.addCalendarDays(o,_),s=a.addCalendarYears(s,d),s=a.addCalendarMonths(s,h),s=a.addCalendarDays(s,_)),new Mi(o,s)}}return t.\u0275fac=function(e){return new(e||t)(F(Nn))},t.\u0275prov=W({token:t,factory:t.\u0275fac}),t})();const GK={provide:Ng,deps:[[new ns,new ea,Ng],Nn],useFactory:function WK(t,n){return t||new $K(n)}};let XI=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Mi?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,i,r,o,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rangeStrategy=s,this._rerenderSubscription=mt.EMPTY,this.activeDrag=null,this.selectedChange=new ae,this._userSelection=new ae,this.dragStarted=new ae,this.dragEnded=new ae,this.activeDateChange=new ae,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Fr(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._getDateFromDayOfMonth(i);let o,s;this._selected instanceof Mi?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==i||s!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-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&&!nr(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(i,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:i}){if(this._rangeStrategy){const r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){const s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){const i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??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(),i=this._dateAdapter.getDayOfWeekNames("narrow");let o=this._dateAdapter.getDayOfWeekNames("long").map((s,a)=>({long:s,narrow:i[a]}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=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,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Mi?(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.\u0275fac=function(e){return new(e||t)(x(Tn),x(Ho,8),x(Nn,8),x(Ri,8),x(Ng,8))},t.\u0275cmp=G({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&tn(xd,5),2&e){let r;$e(r=We())&&(i._matCalendarBody=r.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:[je],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["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,i){1&e&&(p(0,"table",0)(1,"thead",1)(2,"tr"),U(3,DK,5,2,"th",2),f(),p(4,"tr"),A(5,"th",3),f()(),p(6,"tbody",4),H("selectedValueChange",function(o){return i._dateSelected(o)})("activeDateChange",function(o){return i._updateActiveDate(o)})("previewChange",function(o){return i._previewChanged(o)})("dragStarted",function(o){return i.dragStarted.emit(o)})("dragEnded",function(o){return i._dragEnded(o)})("keyup",function(o){return i._handleCalendarBodyKeyup(o)})("keydown",function(o){return i._handleCalendarBodyKeydown(o)}),f()()),2&e&&(M(3),T("ngForOf",i._weekdays),M(3),T("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1)("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName))},dependencies:[Dt,xd],encapsulation:2,changeDetection:0}),t})();const Br=24;let JI=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),eO(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Mi?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,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=mt.EMPTY,this.selectedChange=new ae,this.yearSelected=new ae,this.activeDateChange=new ae,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Fr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-Hh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r this._createCellForYear(s))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-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,-Hh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Br-Hh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-Br:-Br);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*Br:Br);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,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 Hh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new kw(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Mi?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,i,r,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=mt.EMPTY,this.selectedChange=new ae,this.monthSelected=new ae,this.activeDateChange=new ae,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Fr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-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(i,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(i=>i.map(r=>this._createCellForMonth(r,e[r]))),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 i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(r,"year"):void 0;return new kw(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let o=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{constructor(e,i,r,o,s){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=o,this._id="mat-calendar-header-"+YK++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.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:-Br)}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:Br)}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,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):eO(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const i=this._dateAdapter.getYear(this.calendar.activeDate)-Hh(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Br-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1))]}}return t.\u0275fac=function(e){return new(e||t)(x(zh),x(rt(()=>Rw)),x(Nn,8),x(Ho,8),x(Tn))},t.\u0275cmp=G({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:MK,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,i){1&e&&(Ki(),p(0,"div",0)(1,"div",1)(2,"button",2),H("click",function(){return i.currentPeriodClicked()}),p(3,"span",3),m(4),f(),iu(),p(5,"svg",4),A(6,"polygon",5),f()(),bv(),A(7,"div",6),Ut(8),p(9,"button",7),H("click",function(){return i.previousClicked()}),f(),p(10,"button",8),H("click",function(){return i.nextClicked()}),f()()(),p(11,"label",9),m(12),f()),2&e&&(M(2),tt("aria-label",i.periodButtonLabel)("aria-describedby",i._periodButtonLabelId),M(2),j(i.periodButtonText),M(1),ne("mat-calendar-invert","month"!==i.calendar.currentView),M(4),T("disabled",!i.previousEnabled()),tt("aria-label",i.prevButtonLabel),M(1),T("disabled",!i.nextEnabled()),tt("aria-label",i.nextButtonLabel),M(1),T("id",i._periodButtonLabelId),M(1),j(i.periodButtonDescription))},dependencies:[j0,wT],encapsulation:2,changeDetection:0}),t})(),Rw=(()=>{class t{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 Mi?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 i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}constructor(e,i,r,o){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new ae,this.yearSelected=new ae,this.monthSelected=new ae,this.viewChanged=new ae(!0),this._userSelection=new ae,this._userDragDrop=new ae,this._activeDrag=null,this.stateChanges=new Q,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ga(this.headerComponent||ZK),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 i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){const s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Mi||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_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.\u0275fac=function(e){return new(e||t)(x(zh),x(Nn,8),x(Ho,8),x(Tn))},t.\u0275cmp=G({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(tn(XI,5),tn(nO,5),tn(JI,5)),2&e){let r;$e(r=We())&&(i.monthView=r.first),$e(r=We())&&(i.yearView=r.first),$e(r=We())&&(i.multiYearView=r.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:[nt([HK]),je],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[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,i){1&e&&(U(0,SK,0,0,"ng-template",0),p(1,"div",1),U(2,kK,1,11,"mat-month-view",2),U(3,AK,1,6,"mat-year-view",3),U(4,EK,1,6,"mat-multi-year-view",4),f()),2&e&&(T("cdkPortalOutlet",i._calendarHeaderPortal),M(1),T("ngSwitch",i.currentView),M(1),T("ngSwitchCase","month"),M(1),T("ngSwitchCase","year"),M(1),T("ngSwitchCase","multi-year"))},dependencies:[rd,_m,nT,Ml,XI,nO,JI],styles:['.mat-calendar{display:block}.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}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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}),t})();const iO={transformPanel:ws("transformPanel",[Li("void => enter-dropdown",ir("120ms cubic-bezier(0, 0, 0.2, 1)",MT([un({opacity:0,transform:"scale(1, 0.8)"}),un({opacity:1,transform:"scale(1, 1)"})]))),Li("void => enter-dialog",ir("150ms cubic-bezier(0, 0, 0.2, 1)",MT([un({opacity:0,transform:"scale(0.7)"}),un({transform:"none",opacity:1})]))),Li("* => void",ir("100ms linear",un({opacity:0})))]),fadeInCalendar:ws("fadeInCalendar",[eo("void",un({opacity:0})),eo("enter",un({opacity:1})),Li("void => *",ir("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let KK=0;const rO=new Z("mat-datepicker-scroll-strategy"),XK={provide:rO,deps:[gr],useFactory:function QK(t){return()=>t.scrollStrategies.reposition()}},JK=cT(class{constructor(t){this._elementRef=t}});let eQ=(()=>{class t extends JK{constructor(e,i,r,o,s,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=s,this._subscriptions=new mt,this._animationDone=new Q,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=a.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 i=this._model.selection,r=e.value,o=i instanceof Mi;if(o&&this._rangeSelectionStrategy){const s=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(s,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!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,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Tn),x(Da),x(Nn),x(Ng,8),x(zh))},t.\u0275cmp=G({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&tn(Rw,5),2&e){let r;$e(r=We())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&Cu("@transformPanel.start",function(o){return i._handleAnimationEvent(o)})("@transformPanel.done",function(o){return i._handleAnimationEvent(o)}),2&e&&(Du("@transformPanel",i._animationState),ne("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[ye],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,i){if(1&e&&(p(0,"div",0)(1,"mat-calendar",1),H("yearSelected",function(o){return i.datepicker._selectYear(o)})("monthSelected",function(o){return i.datepicker._selectMonth(o)})("viewChanged",function(o){return i.datepicker._viewChanged(o)})("_userSelection",function(o){return i._handleUserSelection(o)})("_userDragDrop",function(o){return i._handleUserDragDrop(o)}),f(),U(2,TK,0,0,"ng-template",2),p(3,"button",3),H("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),m(4),f()()),2&e){let r;ne("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),tt("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),M(1),T("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName),M(1),T("cdkPortalOutlet",i._actionsPortal),M(1),ne("cdk-visually-hidden",!i._closeButtonFocused),T("color",i.color||"primary"),M(1),j(i._closeButtonText)}},dependencies:[Ji,j0,s$,Ml,Rw],styles:[".mat-datepicker-content{display:block;border-radius:4px}.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{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:[iO.transformPanel,iO.fadeInCalendar]},changeDetection:0}),t})(),oO=(()=>{class t{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=wt(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=wt(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=wt(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function Nj(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e)}get opened(){return this._opened}set opened(e){wt(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,i,r,o,s,a,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=s,this._dir=a,this._model=c,this._inputStateChanges=mt.EMPTY,this._document=Ce(Oe),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ae,this.monthSelected=new ae,this.viewChanged=new ae(!0),this.openedStream=new ae,this.closedStream=new ae,this._opened=!1,this.id="mat-datepicker-"+KK++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Q,this._scrollStrategy=o}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof BT&&(this._setConnectedPositions(r),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){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=lh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:r,location:o}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(On(1)).subscribe(()=>{const s=this._document.activeElement;e&&(!s||s===this._document.activeElement||o.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._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,i=new ga(eQ,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new xh({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(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{const s=o.keyCode;(38===s||40===s||37===s||39===s||33===s||34===s)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(On(1)).subscribe(()=>r.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 i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",o="above"===this.yPosition?"bottom":"top",s="top"===o?"bottom":"top";return e.withPositions([{originX:i,originY:s,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s}])}_getCloseStream(e){const i=["ctrlKey","shiftKey","metaKey"];return fi(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(qt(r=>27===r.keyCode&&!nr(r)||this.datepickerInput&&nr(r,"altKey")&&38===r.keyCode&&i.every(o=>!nr(r,o)))))}}return t.\u0275fac=function(e){return new(e||t)(x(gr),x(_e),x(vi),x(rO),x(Nn,8),x(Ri,8),x(Da))},t.\u0275dir=ee({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:[je]}),t})();class Bg{constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}}let sO=(()=>{class t{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 i=wt(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.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(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Bg(this,this._elementRef.nativeElement)),this.dateChange.emit(new Bg(this,this._elementRef.nativeElement))}})}constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new ae,this.dateInput=new ae,this.stateChanges=new Q,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=mt.EMPTY,this._localeSubscription=mt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),a=this._getMinDate();return!a||!s||this._dateAdapter.compareDate(a,s)<=0?null:{matDatepickerMin:{min:a,actual:s}}},this._maxValidator=o=>{const s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),a=this._getMaxDate();return!a||!s||this._dateAdapter.compareDate(a,s)>=0?null:{matDatepickerMax:{max:a,actual:s}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){aO(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){nr(e,"altKey")&&40===e.keyCode&&["ctrlKey","shiftKey","metaKey"].every(o=>!nr(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new Bg(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Bg(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 i=this._getDateFilter();return!i||i(e)}}return t.\u0275fac=function(e){return new(e||t)(x(be),x(Nn,8),x(Ho,8))},t.\u0275dir=ee({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[je]}),t})();function aO(t,n){const e=Object.keys(t);for(let i of e){const{previousValue:r,currentValue:o}=t[i];if(!n.isDateInstance(r)||!n.isDateInstance(o))return!0;if(!n.sameDate(r,o))return!0}return!1}let iQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),cO=(()=>{class t{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=wt(e)}constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=mt.EMPTY;const o=Number(r);this.tabIndex=o||0===o?o: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:pe(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:pe(),r=this.datepicker?fi(this.datepicker.openedStream,this.datepicker.closedStream):pe();this._stateChanges.unsubscribe(),this._stateChanges=fi(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(x(zh),x(Tn),Cc("tabindex"))},t.\u0275cmp=G({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&bi(r,iQ,5),2&e){let o;$e(o=We())&&(i._customIcon=o.first)}},viewQuery:function(e,i){if(1&e&&tn(PK,5),2&e){let r;$e(r=We())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&H("click",function(o){return i._open(o)}),2&e&&(tt("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),ne("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[je],ngContentSelectors:FK,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",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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,i){1&e&&(Ki(OK),p(0,"button",0,1),U(2,IK,2,0,"svg",2),Ut(3),f()),2&e&&(T("disabled",i.disabled)("disableRipple",i.disableRipple),tt("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),M(2),T("ngIf",!i._customIcon))},dependencies:[Le,wT],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),t})();function rQ(t){return Lw(t,!0)}function dO(t){return t.nodeType===Node.ELEMENT_NODE}function Lw(t,n){if(dO(t)&&n){const i=(t.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((r,o)=>{const s=document.getElementById(o);return s&&r.push(s),r},[]);if(i.length)return i.map(r=>Lw(r,!1)).join(" ")}if(dO(t)){const e=t.getAttribute("aria-label")?.trim();if(e)return e}if(function oQ(t){return"INPUT"===t.nodeName}(t)||function sQ(t){return"TEXTAREA"===t.nodeName}(t)){if(t.labels?.length)return Array.from(t.labels).map(r=>Lw(r,!1)).join(" ");const e=t.getAttribute("placeholder")?.trim();if(e)return e;const i=t.getAttribute("title")?.trim();if(i)return i}return(t.textContent||"").replace(/\s+/g," ").trim()}const Vg=new Z("MAT_DATE_RANGE_INPUT_PARENT"),uO=H0((()=>{class t extends sO{constructor(e,i,r,o,s,a,c,d){super(i,c,d),this._rangeInput=e,this._elementRef=i,this._defaultErrorStateMatcher=r,this._injector=o,this._parentForm=s,this._parentFormGroup=a,this._dir=Ce(Ri,{optional:!0})}ngOnInit(){const e=this._injector.get(xo,null,{optional:!0,self:!0});e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return rQ(this._elementRef.nativeElement)}}return t.\u0275fac=function(e){return new(e||t)(x(Vg),x(be),x(mh),x(_n),x(ya,8),x(at,8),x(Nn,8),x(Ho,8))},t.\u0275dir=ee({type:t,features:[ye]}),t})());let Nw=(()=>{class t extends uO{constructor(e,i,r,o,s,a,c,d){super(e,i,r,o,s,a,c,d),this._startValidator=h=>{const _=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h.value)),v=this._model?this._model.selection.end:null;return!_||!v||this._dateAdapter.compareDate(_,v)<=0?null:{matStartDateInvalid:{end:v,actual:_}}},this._validator=ue.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const i=new Mi(e,this._model.selection.end);this._model.updateSelection(i,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){const i=this._rangeInput._endInput,r=this._elementRef.nativeElement,o="rtl"!==this._dir?.value;(39===e.keyCode&&o||37===e.keyCode&&!o)&&r.selectionStart===r.value.length&&r.selectionEnd===r.value.length?(e.preventDefault(),i._elementRef.nativeElement.setSelectionRange(0,0),i.focus()):super._onKeydown(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Vg),x(be),x(mh),x(_n),x(ya,8),x(at,8),x(Nn,8),x(Ho,8))},t.\u0275dir=ee({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&H("input",function(o){return i._onInput(o.target.value)})("change",function(){return i._onChange()})("keydown",function(o){return i._onKeydown(o)})("blur",function(){return i._onBlur()}),2&e&&(ls("disabled",i.disabled),tt("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[nt([{provide:Nr,useExisting:t,multi:!0},{provide:ii,useExisting:t,multi:!0}]),ye]}),t})(),Bw=(()=>{class t extends uO{constructor(e,i,r,o,s,a,c,d){super(e,i,r,o,s,a,c,d),this._endValidator=h=>{const _=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h.value)),v=this._model?this._model.selection.start:null;return!_||!v||this._dateAdapter.compareDate(_,v)>=0?null:{matEndDateInvalid:{start:v,actual:_}}},this._validator=ue.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const i=new Mi(this._model.selection.start,e);this._model.updateSelection(i,this)}}_onKeydown(e){const i=this._rangeInput._startInput,r=this._elementRef.nativeElement,o="rtl"!==this._dir?.value;if(8!==e.keyCode||r.value)if((37===e.keyCode&&o||39===e.keyCode&&!o)&&0===r.selectionStart&&0===r.selectionEnd){e.preventDefault();const s=i._elementRef.nativeElement.value.length;i._elementRef.nativeElement.setSelectionRange(s,s),i.focus()}else super._onKeydown(e);else i.focus()}}return t.\u0275fac=function(e){return new(e||t)(x(Vg),x(be),x(mh),x(_n),x(ya,8),x(at,8),x(Nn,8),x(Ho,8))},t.\u0275dir=ee({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&H("input",function(o){return i._onInput(o.target.value)})("change",function(){return i._onChange()})("keydown",function(o){return i._onKeydown(o)})("blur",function(){return i._onBlur()}),2&e&&(ls("disabled",i.disabled),tt("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[nt([{provide:Nr,useExisting:t,multi:!0},{provide:ii,useExisting:t,multi:!0}]),ye]}),t})(),aQ=0,hO=(()=>{class t{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const e=this._startInput?._getPlaceholder()||"",i=this._endInput?._getPlaceholder()||"";return e||i?`${e} ${this.separator} ${i}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=wt(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._startInput,r=this._endInput,o=i&&i._matchesFilter(i.value),s=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==o&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==s&&r._validatorOnChange()}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const i=wt(e);i!==this._groupDisabled&&(this._groupDisabled=i,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),i=!!this._endInput&&this._endInput.isEmpty();return e&&i}constructor(e,i,r,o,s){this._changeDetectorRef=e,this._elementRef=i,this._dateAdapter=o,this._formField=s,this._closedSubscription=mt.EMPTY,this.id="mat-date-range-input-"+aQ++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new Q,s?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&i.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=r}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),fi(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){aO(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){const i="start"===e?this._startInput:this._endInput;return i?i.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(ue.required)}}return t.\u0275fac=function(e){return new(e||t)(x(Tn),x(be),x(Ni,10),x(Nn,8),x(Mh,8))},t.\u0275cmp=G({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(e,i,r){if(1&e&&(bi(r,Nw,5),bi(r,Bw,5)),2&e){let o;$e(o=We())&&(i._startInput=o.first),$e(o=We())&&(i._endInput=o.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,i){2&e&&(tt("id",i.id)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),ne("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[nt([{provide:yg,useExisting:t},{provide:Vg,useExisting:t}]),je],ngContentSelectors:LK,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(e,i){1&e&&(Ki(RK),p(0,"div",0),H("cdkFocusChange",function(o){return i._updateFocus(o)}),p(1,"div",1),Ut(2),p(3,"span",2),m(4),f()(),p(5,"span",3),m(6),f(),p(7,"div",4),Ut(8,1),p(9,"span",2),m(10),f()()()),2&e&&(M(4),j(i._getInputMirrorValue("start")),M(1),ne("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),M(1),j(i.separator),M(4),j(i._getInputMirrorValue("end")))},dependencies:[nT],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),t})(),fO=(()=>{class t extends oO{_forwardContentValues(e){super._forwardContentValues(e);const i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd,e.startDateAccessibleName=i._getStartDateAccessibleName(),e.endDateAccessibleName=i._getEndDateAccessibleName())}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Un(t)))(i||t)}}(),t.\u0275cmp=G({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[nt([jK,GK,{provide:oO,useExisting:t}]),ye],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),t})(),lQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=qe({providers:[zh,XK],imports:[fs,cg,wd,z0,bd,Ln,Sl]}),t})();function cQ(t,n){if(1&t&&(p(0,"mat-option",30),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function dQ(t,n){if(1&t&&(p(0,"mat-option",30),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function uQ(t,n){if(1&t&&(p(0,"mat-option",30),m(1),f()),2&t){const e=n.$implicit;T("value",e),M(1),j(e)}}function hQ(t,n){1&t&&(p(0,"div",31),A(1,"img",32),p(2,"h2"),m(3,"Please wait a moment..."),f(),p(4,"p"),m(5,"Data Retrieving Starts..."),f()())}function fQ(t,n){if(1&t&&(p(0,"th"),m(1),f()),2&t){const e=n.$implicit;M(1),j(e)}}function pQ(t,n){if(1&t&&(p(0,"td"),m(1),jn(2,"number"),f()),2&t){const e=n.$implicit;M(1),j(bo(2,1,e,"1.2-5"))}}function mQ(t,n){if(1&t&&(p(0,"tr")(1,"td",33),m(2),f(),U(3,pQ,3,4,"td",29),f()),2&t){const e=n.$implicit,i=n.index,r=he();M(2),j(r.factors[i]),M(1),T("ngForOf",e)}}let gQ=(()=>{class t{constructor(e,i){this.airQualityService=e,this.datePipe=i,this.isLoading=!1,this.isLoadingLg=!1,this.factors=["Pm25","Pm10","Co2","Ozone","No2","Temperature","Humidity","WindSpeed"],this.correlationMatrix=[],this.medianForm=new st({median:new ie("",[ue.required])}),this.modeForm=new st({mode:new ie("",[ue.required])}),this.avgForm=new st({mean:new ie("",[ue.required]),start:new ie(new Date(2023,1,15)),end:new ie(new Date(2024,1,19))})}ngOnInit(){this.loadCorrelationMatrix()}loading(e){this.isLoading=!this.isLoading,document.getElementById(e).innerHTML=this.isLoading?'':"Calculate"}changeMedianFactor(){document.getElementById("median-result").innerHTML="RESULT"}changeModeFactor(){document.getElementById("mode-result").innerHTML="RESULT"}changeMeanFactor(){document.getElementById("mean-result").innerHTML="RESULT"}calculateMedian(){let e=this.medianForm.get("median")?.value,i=document.getElementById("median-result");this.medianForm.valid&&(this.loading("median"),this.airQualityService.calculateMedian(e).subscribe({next:r=>{i.innerHTML=r,this.loading("median")},error:r=>{this.loading("median"),console.log(r)}}))}calculateMode(){let e=this.modeForm.get("mode")?.value,i=document.getElementById("mode-result");this.modeForm.valid&&(this.loading("mode"),this.airQualityService.calculateMode(e).subscribe({next:r=>{i.innerHTML=r,this.loading("mode")},error:r=>{this.loading("mode"),console.log(r)}}))}formatDateRange(e,i){return`startDate=${this.datePipe.transform(e,"yyyy-MM-dd")||""}&endDate=${this.datePipe.transform(i,"yyyy-MM-dd")||""}`}formatDateRangeHint(e,i){return`${this.datePipe.transform(e,"yyyy-MM-dd")||""} - ${this.datePipe.transform(i,"yyyy-MM-dd")||""}`}calculateAvg(){let e=this.avgForm.get("start")?.value,i=this.avgForm.get("end")?.value,r=document.getElementById("mean-result");this.avgForm.valid&&(this.loading("avg"),this.airQualityService.calculateAvgByDateRange({factor:this.avgForm.get("mean")?.value,dateRange:this.formatDateRange(e,i)}).subscribe({next:o=>{r.innerHTML=o,this.loading("avg")},error:o=>{this.loading("avg"),console.log(o)}}))}loadCorrelationMatrix(){const e=[];for(let i=0;iparseFloat(c)),Bo(c=>pe(1)));this.isLoadingLg=!1,e.push(a)}rw(e).subscribe(i=>{let r=0;for(let o=0;o{class t{constructor(e,i){this.metrologicalService=e,this.datePipe=i,this.isLoading=!1,this.isLoadingLg=!1,this.factors=["Temperature","Humidity","WindSpeed","Precipitation"],this.correlationMatrix=[],this.avgForm=new st({mean:new ie("",[ue.required]),start:new ie(new Date(2023,1,15)),end:new ie(new Date(2024,1,19))}),this.medianForm=new st({median:new ie("",[ue.required])}),this.modeForm=new st({mode:new ie("",[ue.required])})}ngOnInit(){this.loadCorrelationMatrix()}loading(e){this.isLoading=!this.isLoading,document.getElementById(e).innerHTML=this.isLoading?'':"Calculate"}changeMeanFactor(){document.getElementById("mean-result").innerHTML="RESULT"}changeMedianFactor(){document.getElementById("median-result").innerHTML="RESULT"}changeModeFactor(){document.getElementById("mode-result").innerHTML="RESULT"}calculateMedian(){let e=this.medianForm.get("median")?.value,i=document.getElementById("median-result");this.medianForm.valid&&(this.loading("median"),this.metrologicalService.calculateMedian(e).subscribe({next:r=>{i.innerHTML=r,this.loading("median")},error:r=>{this.loading("median"),console.log(r)}}))}calculateMode(){let e=this.modeForm.get("mode")?.value,i=document.getElementById("mode-result");this.modeForm.valid&&(this.loading("mode"),this.metrologicalService.calculateMode(e).subscribe({next:r=>{i.innerHTML=r,this.loading("mode")},error:r=>{this.loading("mode"),console.log(r)}}))}calculateAvg(){let e=this.avgForm.get("start")?.value,i=this.avgForm.get("end")?.value,r=document.getElementById("mean-result");this.avgForm.valid&&(this.loading("avg"),this.metrologicalService.calculateAvgByDateRange({factor:this.avgForm.get("mean")?.value,dateRange:this.formatDateRange(e,i)}).subscribe({next:o=>{r.innerHTML=o,this.loading("avg")},error:o=>{this.loading("avg"),console.log(o)}}))}formatDateRange(e,i){return`startDate=${this.datePipe.transform(e,"yyyy-MM-dd")||""}&endDate=${this.datePipe.transform(i,"yyyy-MM-dd")||""}`}formatDateRangeHint(e,i){return`${this.datePipe.transform(e,"yyyy-MM-dd")||""} - ${this.datePipe.transform(i,"yyyy-MM-dd")||""}`}loadCorrelationMatrix(){const e=[];for(let i=0;iparseFloat(c)),Bo(c=>pe(1)));this.isLoadingLg=!1,e.push(a)}rw(e).subscribe(i=>{let r=0;for(let o=0;o{class t{constructor(e){this.router=e}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Fn&&this.updateActiveClass()})}updateActiveClass(){const e=this.router.url;document.querySelectorAll(".nav-link").forEach(r=>{r.classList.remove("active")});const i=document.querySelector(`.nav-link[href="${e}"]`);i&&i.classList.add("active")}isActive(e){return this.router.url===e}static#e=this.\u0275fac=function(i){return new(i||t)(x(ot))};static#t=this.\u0275cmp=G({type:t,selectors:[["app-graphs"]],decls:9,vars:4,consts:[[1,"nav","nav-tabs"],[1,"nav-item"],["aria-current","page","routerLink","air",1,"nav-link"],["aria-current","page","routerLink","metro",1,"nav-link"],[1,"admin-sub-page-loader"]],template:function(i,r){1&i&&(p(0,"ul",0)(1,"li",1)(2,"a",2),m(3,"AIR QUALITY"),f()(),p(4,"li",1)(5,"a",3),m(6,"METROLOGICAL DATA"),f()()(),p(7,"div",4),A(8,"router-outlet"),f()),2&i&&(M(2),ne("active",r.isActive("/dashboard/graphs/air")),M(3),ne("active",r.isActive("/dashboard/graphs/metro")))},dependencies:[Ci,Yt]})}return t})();function Dd(t){return t+.5|0}const xs=(t,n,e)=>Math.max(Math.min(t,e),n);function Uh(t){return xs(Dd(2.55*t),0,255)}function Ma(t){return xs(Dd(255*t),0,255)}function Ds(t){return xs(Dd(t/2.55)/100,0,1)}function pO(t){return xs(Dd(100*t),0,100)}const to={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Vw=[..."0123456789ABCDEF"],SQ=t=>Vw[15&t],kQ=t=>Vw[(240&t)>>4]+Vw[15&t],zg=t=>(240&t)>>4==(15&t),IQ=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mO(t,n,e){const i=n*Math.min(e,1-e),r=(o,s=(o+t/30)%12)=>e-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function OQ(t,n,e){const i=(r,o=(r+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function FQ(t,n,e){const i=mO(t,1,.5);let r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function zw(t){const e=t.r/255,i=t.g/255,r=t.b/255,o=Math.max(e,i,r),s=Math.min(e,i,r),a=(o+s)/2;let c,d,h;return o!==s&&(h=o-s,d=a>.5?h/(2-o-s):h/(o+s),c=function RQ(t,n,e,i,r){return t===r?(n-e)/i+(nt<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Md=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ug(t,n,e){if(t){let i=zw(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,0===n?360:1)),i=Uw(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function bO(t,n){return t&&Object.assign(n||{},t)}function yO(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Ma(t[3]))):(n=bO(t,{r:0,g:0,b:0,a:1})).a=Ma(n.a),n}function qQ(t){return"r"===t.charAt(0)?function $Q(t){const n=jQ.exec(t);let i,r,o,e=255;if(n){if(n[7]!==i){const s=+n[7];e=n[8]?Uh(s):xs(255*s,0,255)}return i=+n[1],r=+n[3],o=+n[5],i=255&(n[2]?Uh(i):xs(i,0,255)),r=255&(n[4]?Uh(r):xs(r,0,255)),o=255&(n[6]?Uh(o):xs(o,0,255)),{r:i,g:r,b:o,a:e}}}(t):function BQ(t){const n=IQ.exec(t);let i,e=255;if(!n)return;n[5]!==i&&(e=n[6]?Uh(+n[5]):Ma(+n[5]));const r=gO(+n[2]),o=+n[3]/100,s=+n[4]/100;return i="hwb"===n[1]?function LQ(t,n,e){return Hw(FQ,t,n,e)}(r,o,s):"hsv"===n[1]?function NQ(t,n,e){return Hw(OQ,t,n,e)}(r,o,s):Uw(r,o,s),{r:i[0],g:i[1],b:i[2],a:e}}(t)}class Sd{constructor(n){if(n instanceof Sd)return n;const e=typeof n;let i;"object"===e?i=yO(n):"string"===e&&(i=function EQ(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*to[t[1]],g:255&17*to[t[2]],b:255&17*to[t[3]],a:5===n?17*to[t[4]]:255}:(7===n||9===n)&&(e={r:to[t[1]]<<4|to[t[2]],g:to[t[3]]<<4|to[t[4]],b:to[t[5]]<<4|to[t[6]],a:9===n?to[t[7]]<<4|to[t[8]]:255})),e}(n)||function UQ(t){Hg||(Hg=function HQ(){const t={},n=Object.keys(vO),e=Object.keys(_O);let i,r,o,s,a;for(i=0;i>16&255,o>>8&255,255&o]}return t}(),Hg.transparent=[0,0,0,0]);const n=Hg[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||qQ(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=bO(this._rgb);return n&&(n.a=Ds(n.a)),n}set rgb(n){this._rgb=yO(n)}rgbString(){return this._valid?function WQ(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ds(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function PQ(t){var n=(t=>zg(t.r)&&zg(t.g)&&zg(t.b)&&zg(t.a))(t)?SQ:kQ;return t?"#"+n(t.r)+n(t.g)+n(t.b)+((t,n)=>t<255?n(t):"")(t.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function zQ(t){if(!t)return;const n=zw(t),e=n[0],i=pO(n[1]),r=pO(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${Ds(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(n,e){if(n){const i=this.rgb,r=n.rgb;let o;const s=e===o?.5:e,a=2*s-1,c=i.a-r.a,d=((a*c==-1?a:(a+c)/(1+a*c))+1)/2;o=1-d,i.r=255&d*i.r+o*r.r+.5,i.g=255&d*i.g+o*r.g+.5,i.b=255&d*i.b+o*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=function GQ(t,n,e){const i=Md(Ds(t.r)),r=Md(Ds(t.g)),o=Md(Ds(t.b));return{r:Ma(jw(i+e*(Md(Ds(n.r))-i))),g:Ma(jw(r+e*(Md(Ds(n.g))-r))),b:Ma(jw(o+e*(Md(Ds(n.b))-o))),a:t.a+e*(n.a-t.a)}}(this._rgb,n._rgb,e)),this}clone(){return new Sd(this.rgb)}alpha(n){return this._rgb.a=Ma(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,e=Dd(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=e,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return Ug(this._rgb,2,n),this}darken(n){return Ug(this._rgb,2,-n),this}saturate(n){return Ug(this._rgb,1,n),this}desaturate(n){return Ug(this._rgb,1,-n),this}rotate(n){return function VQ(t,n){var e=zw(t);e[0]=gO(e[0]+n),e=Uw(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,n),this}}function Ms(){}const YQ=(()=>{let t=0;return()=>t++})();function Et(t){return null===t||typeof t>"u"}function hn(t){if(Array.isArray&&Array.isArray(t))return!0;const n=Object.prototype.toString.call(t);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function pt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function kn(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Vr(t,n){return kn(t)?t:n}function Ze(t,n){return typeof t>"u"?n:t}const wO=(t,n)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*n:+t;function ln(t,n,e){if(t&&"function"==typeof t.call)return t.apply(e,n)}function Zt(t,n,e,i){let r,o,s;if(hn(t))if(o=t.length,i)for(r=o-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function Sa(t,n){return(xO[n]||(xO[n]=function JQ(t){const n=function XQ(t){const n=t.split("."),e=[];let i="";for(const r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}(t);return e=>{for(const i of n){if(""===i)break;e=e&&e[i]}return e}}(n)))(t)}function $w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Wh=t=>typeof t<"u",ka=t=>"function"==typeof t,DO=(t,n)=>{if(t.size!==n.size)return!1;for(const e of t)if(!n.has(e))return!1;return!0},fn=Math.PI,pn=2*fn,tX=pn+fn,Wg=Number.POSITIVE_INFINITY,nX=fn/180,Vn=fn/2,Fl=fn/4,MO=2*fn/3,Aa=Math.log10,jo=Math.sign;function Gh(t,n,e){return Math.abs(t-n)c&&d=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function qw(t,n,e){e=e||(s=>t[s]1;)o=r+i>>1,e(o)?r=o:i=o;return{lo:r,hi:i}}const ks=(t,n,e,i)=>qw(t,e,i?r=>{const o=t[r][n];return ot[r][n]qw(t,e,i=>t[i][n]>=e),TO=["push","pop","shift","splice","unshift"];function PO(t,n){const e=t._chartjs;if(!e)return;const i=e.listeners,r=i.indexOf(n);-1!==r&&i.splice(r,1),!(i.length>0)&&(TO.forEach(o=>{delete t[o]}),delete t._chartjs)}function IO(t){const n=new Set(t);return n.size===t.length?t:Array.from(n)}const OO=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function FO(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,OO.call(window,()=>{i=!1,t.apply(n,e)}))}}const Yw=t=>"start"===t?"left":"end"===t?"right":"center",Vi=(t,n,e)=>"start"===t?n:"end"===t?e:(n+e)/2;function RO(t,n,e){const i=n.length;let r=0,o=i;if(t._sorted){const{iScale:s,_parsed:a}=t,c=s.axis,{min:d,max:h,minDefined:_,maxDefined:v}=s.getUserBounds();_&&(r=hi(Math.min(ks(a,c,d).lo,e?i:ks(n,c,s.getPixelForValue(d)).lo),0,i-1)),o=v?hi(Math.max(ks(a,s.axis,h,!0).hi+1,e?0:ks(n,c,s.getPixelForValue(h),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}function LO(t){const{xScale:n,yScale:e,_scaleRanges:i}=t,r={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=r,!0;const o=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}const Gg=t=>0===t||1===t,NO=(t,n,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-n)*pn/e),BO=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*pn/e)+1,Yh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Vn),easeOutSine:t=>Math.sin(t*Vn),easeInOutSine:t=>-.5*(Math.cos(fn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Gg(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Gg(t)?t:NO(t,.075,.3),easeOutElastic:t=>Gg(t)?t:BO(t,.075,.3),easeInOutElastic:t=>Gg(t)?t:t<.5?.5*NO(2*t,.1125,.45):.5+.5*BO(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let n=1.70158;return(t/=.5)<1?t*t*((1+(n*=1.525))*t-n)*.5:.5*((t-=2)*t*((1+(n*=1.525))*t+n)+2)},easeInBounce:t=>1-Yh.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Yh.easeInBounce(2*t):.5*Yh.easeOutBounce(2*t-1)+.5};function Zw(t){if(t&&"object"==typeof t){const n=t.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function VO(t){return Zw(t)?t:new Sd(t)}function Kw(t){return Zw(t)?t:new Sd(t).saturate(.5).darken(.1).hexString()}const hX=["x","y","borderWidth","radius","tension"],fX=["color","borderColor","backgroundColor"],zO=new Map;function Zh(t,n,e){return function gX(t,n){n=n||{};const e=t+JSON.stringify(n);let i=zO.get(e);return i||(i=new Intl.NumberFormat(t,n),zO.set(e,i)),i}(n,e).format(t)}const HO={values:t=>hn(t)?t:""+t,numeric(t,n,e){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(e.length>1){const d=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(d<1e-4||d>1e15)&&(r="scientific"),o=function _X(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const s=Aa(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),Zh(t,i,c)},logarithmic(t,n,e){if(0===t)return"0";const i=e[n].significand||t/Math.pow(10,Math.floor(Aa(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?HO.numeric.call(this,t,n,e):""}};var qg={formatters:HO};const Rl=Object.create(null),Qw=Object.create(null);function Kh(t,n){if(!n)return t;const e=n.split(".");for(let i=0,r=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Kw(r.backgroundColor),this.hoverBorderColor=(i,r)=>Kw(r.borderColor),this.hoverColor=(i,r)=>Kw(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return Xw(this,n,e)}get(n){return Kh(this,n)}describe(n,e){return Xw(Qw,n,e)}override(n,e){return Xw(Rl,n,e)}route(n,e,i,r){const o=Kh(this,n),s=Kh(this,i),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const c=this[a],d=s[r];return pt(c)?Object.assign({},d,c):Ze(c,d)},set(c){this[a]=c}}})}apply(n){n.forEach(e=>e(this))}}var An=new bX({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function pX(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),t.set("animations",{colors:{type:"color",properties:fX},numbers:{type:"number",properties:hX}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>0|n}}}})},function mX(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function vX(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qg.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n&&"dash"!==n}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n})}]);function Yg(t,n,e,i,r){let o=n[r];return o||(o=n[r]=t.measureText(r).width,e.push(r)),o>i&&(i=o),i}function wX(t,n,e,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(r=i.data={},o=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let s=0;const a=e.length;let c,d,h,_,v;for(c=0;ce.length){for(c=0;c0&&t.stroke()}}function As(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.xn.top-e&&t.y0&&""!==o.strokeColor;let c,d;for(t.save(),t.font=r.string,function DX(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),Et(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}(t,o),c=0;c+t||0;function eC(t,n){const e={},i=pt(n),r=i?Object.keys(n):n,o=pt(t)?i?s=>Ze(t[s],t[n[s]]):s=>t[s]:()=>t;for(const s of r)e[s]=TX(o(s));return e}function $O(t){return eC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Bl(t){return eC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function zi(t){const n=$O(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function ri(t,n){let e=Ze((t=t||{}).size,(n=n||An.font).size);"string"==typeof e&&(e=parseInt(e,10));let i=Ze(t.style,n.style);i&&!(""+i).match(AX)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Ze(t.family,n.family),lineHeight:EX(Ze(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:Ze(t.weight,n.weight),string:""};return r.string=function yX(t){return!t||Et(t.size)||Et(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function Xh(t,n,e,i){let o,s,a,r=!0;for(o=0,s=t.length;ot[0])){const o=e||t;typeof i>"u"&&(i=ZO("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:a=>tC([a,...t],n,o,i)};return new Proxy(s,{deleteProperty:(a,c)=>(delete a[c],delete a._keys,delete t[0][c],!0),get:(a,c)=>GO(a,c,()=>function VX(t,n,e,i){let r;for(const o of n)if(r=ZO(IX(o,t),e),typeof r<"u")return nC(t,r)?iC(e,i,t,r):r}(c,n,t,a)),getOwnPropertyDescriptor:(a,c)=>Reflect.getOwnPropertyDescriptor(a._scopes[0],c),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(a,c)=>KO(a).includes(c),ownKeys:a=>KO(a),set(a,c,d){const h=a._storage||(a._storage=r());return a[c]=h[c]=d,delete a._keys,!0}})}function Ad(t,n,e,i){const r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:WO(t,i),setContext:o=>Ad(t,o,e,i),override:o=>Ad(t.override(o),n,e,i)};return new Proxy(r,{deleteProperty:(o,s)=>(delete o[s],delete t[s],!0),get:(o,s,a)=>GO(o,s,()=>function OX(t,n,e){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;let a=i[n];return ka(a)&&s.isScriptable(n)&&(a=function FX(t,n,e,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let c=n(o,s||i);return a.delete(t),nC(t,c)&&(c=iC(r._scopes,r,t,c)),c}(n,a,t,e)),hn(a)&&a.length&&(a=function RX(t,n,e,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=e;if(typeof o.index<"u"&&i(t))return n[o.index%n.length];if(pt(n[0])){const c=n,d=r._scopes.filter(h=>h!==c);n=[];for(const h of c){const _=iC(d,r,t,h);n.push(Ad(_,o,s&&s[t],a))}}return n}(n,a,t,s.isIndexable)),nC(n,a)&&(a=Ad(a,r,o&&o[n],s)),a}(o,s,a)),getOwnPropertyDescriptor:(o,s)=>o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(o,s)=>Reflect.has(t,s),ownKeys:()=>Reflect.ownKeys(t),set:(o,s,a)=>(t[s]=a,delete o[s],!0)})}function WO(t,n={scriptable:!0,indexable:!0}){const{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:ka(e)?e:()=>e,isIndexable:ka(i)?i:()=>i}}const IX=(t,n)=>t?t+$w(n):n,nC=(t,n)=>pt(n)&&"adapters"!==t&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function GO(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n))return t[n];const i=e();return t[n]=i,i}function qO(t,n,e){return ka(t)?t(n,e):t}const LX=(t,n)=>!0===t?n:"string"==typeof t?Sa(n,t):void 0;function NX(t,n,e,i,r){for(const o of n){const s=LX(e,o);if(s){t.add(s);const a=qO(s._fallback,e,r);if(typeof a<"u"&&a!==e&&a!==i)return a}else if(!1===s&&typeof i<"u"&&e!==i)return null}return!1}function iC(t,n,e,i){const r=n._rootScopes,o=qO(n._fallback,e,i),s=[...t,...r],a=new Set;a.add(i);let c=YO(a,s,e,o||e,i);return!(null===c||typeof o<"u"&&o!==e&&(c=YO(a,s,o,c,i),null===c))&&tC(Array.from(a),[""],r,o,()=>function BX(t,n,e){const i=t._getTarget();n in i||(i[n]={});const r=i[n];return hn(r)&&pt(e)?e:r||{}}(n,e,i))}function YO(t,n,e,i,r){for(;e;)e=NX(t,n,e,i,r);return e}function ZO(t,n){for(const e of n){if(!e)continue;const i=e[t];if(typeof i<"u")return i}}function KO(t){let n=t._keys;return n||(n=t._keys=function zX(t){const n=new Set;for(const e of t)for(const i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}(t._scopes)),n}function QO(t,n,e,i){const{iScale:r}=t,{key:o="r"}=this._parsing,s=new Array(i);let a,c,d,h;for(a=0,c=i;an"x"===t?"y":"x";function UX(t,n,e,i){const r=t.skip?n:t,o=n,s=e.skip?n:e,a=Gw(o,r),c=Gw(s,o);let d=a/(a+c),h=c/(a+c);d=isNaN(d)?0:d,h=isNaN(h)?0:h;const _=i*d,v=i*h;return{previous:{x:o.x-_*(s.x-r.x),y:o.y-_*(s.y-r.y)},next:{x:o.x+v*(s.x-r.x),y:o.y+v*(s.y-r.y)}}}function Qg(t,n,e){return Math.max(Math.min(t,e),n)}function qX(t,n,e,i,r){let o,s,a,c;if(n.spanGaps&&(t=t.filter(d=>!d.skip)),"monotone"===n.cubicInterpolationMode)!function WX(t,n="x"){const e=XO(n),i=t.length,r=Array(i).fill(0),o=Array(i);let s,a,c,d=Ed(t,0);for(s=0;st.ownerDocument.defaultView.getComputedStyle(t,null),ZX=["top","right","bottom","left"];function Vl(t,n,e){const i={};e=e?"-"+e:"";for(let r=0;r<4;r++){const o=ZX[r];i[o]=parseFloat(t[n+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const KX=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function zl(t,n){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:i}=n,r=Jg(e),o="border-box"===r.boxSizing,s=Vl(r,"padding"),a=Vl(r,"border","width"),{x:c,y:d,box:h}=function QX(t,n){const e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:o}=i;let a,c,s=!1;if(KX(r,o,t.target))a=r,c=o;else{const d=n.getBoundingClientRect();a=i.clientX-d.left,c=i.clientY-d.top,s=!0}return{x:a,y:c,box:s}}(t,e),_=s.left+(h&&a.left),v=s.top+(h&&a.top);let{width:y,height:C}=n;return o&&(y-=s.width+a.width,C-=s.height+a.height),{x:Math.round((c-_)/y*e.width/i),y:Math.round((d-v)/C*e.height/i)}}const e_=t=>Math.round(10*t)/10;function JO(t,n,e){const i=n||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(e||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const eJ=function(){let t=!1;try{const n={get passive(){return t=!0,!1}};rC()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t}();function e2(t,n){const e=function YX(t,n){return Jg(t).getPropertyValue(n)}(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Hl(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function tJ(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:"middle"===i?e<.5?t.y:n.y:"after"===i?e<1?t.y:n.y:e>0?n.y:t.y}}function nJ(t,n,e,i){const r={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},s=Hl(t,r,e),a=Hl(r,o,e),c=Hl(o,n,e),d=Hl(s,a,e),h=Hl(a,c,e);return Hl(d,h,e)}const iJ=function(t,n){return{x:e=>t+t+n-e,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,i)=>e-i,leftForLtr:(e,i)=>e-i}},rJ=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,n)=>t+n,leftForLtr:(t,n)=>t}};function Td(t,n,e){return t?iJ(n,e):rJ()}function t2(t,n){let e,i;("ltr"===n||"rtl"===n)&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function n2(t,n){void 0!==n&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function r2(t){return"angle"===t?{between:qh,compare:oX,normalize:zr}:{between:Ss,compare:(n,e)=>n-e,normalize:n=>n}}function o2({start:t,end:n,count:e,loop:i,style:r}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e==0,style:r}}function s2(t,n,e){if(!e)return[t];const{property:i,start:r,end:o}=e,s=n.length,{compare:a,between:c,normalize:d}=r2(i),{start:h,end:_,loop:v,style:y}=function oJ(t,n,e){const{property:i,start:r,end:o}=e,{between:s,normalize:a}=r2(i),c=n.length;let v,y,{start:d,end:h,loop:_}=t;if(_){for(d+=c,h+=c,v=0,y=c;va({chart:n,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=OO.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const o=i.items;let c,s=o.length-1,a=!1;for(;s>=0;--s)c=o[s],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(n),a=!0):(o[s]=o[o.length-1],o.pop());a&&(r.draw(),this._notify(r,i,n,"progress")),o.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=o.length}),this._lastDate=n,0===e&&(this._running=!1)}_getAnims(n){const e=this._charts;let i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){const e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;const e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){const e=this._charts.get(n);if(!e||!e.items.length)return;const i=e.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}}var Es=new uJ;const d2="transparent",hJ={boolean:(t,n,e)=>e>.5?n:t,color(t,n,e){const i=VO(t||d2),r=i.valid&&VO(n||d2);return r&&r.valid?r.mix(i,e).hexString():n},number:(t,n,e)=>t+(n-t)*e};class fJ{constructor(n,e,i,r){const o=e[i];r=Xh([n.to,r,o,n.from]);const s=Xh([n.from,o,r]);this._active=!0,this._fn=n.fn||hJ[n.type||typeof s],this._easing=Yh[n.easing]||Yh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Xh([n.to,e,r,n.from]),this._from=Xh([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const e=n-this._start,i=this._duration,r=this._prop,o=this._from,s=this._loop,a=this._to;let c;if(this._active=o!==a&&(s||e1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(o,a,c))}wait(){const n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){const e=n?"res":"rej",i=this._promises||[];for(let r=0;r{const o=n[r];if(!pt(o))return;const s={};for(const a of e)s[a]=o[a];(hn(o.properties)&&o.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,s)})})}_animateOptions(n,e){const i=e.options,r=function mJ(t,n){if(!n)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=n}(n,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&function pJ(t,n){const e=[],i=Object.keys(n);for(let r=0;r{n.options=i},()=>{}),o}_createAnimations(n,e){const i=this._properties,r=[],o=n.$animations||(n.$animations={}),s=Object.keys(e),a=Date.now();let c;for(c=s.length-1;c>=0;--c){const d=s[c];if("$"===d.charAt(0))continue;if("options"===d){r.push(...this._animateOptions(n,e));continue}const h=e[d];let _=o[d];const v=i.get(d);if(_){if(v&&_.active()){_.update(v,h,a);continue}_.cancel()}v&&v.duration?(o[d]=_=new fJ(v,n,d,h),r.push(_)):n[d]=h}return r}update(n,e){if(0===this._properties.size)return void Object.assign(n,e);const i=this._createAnimations(n,e);return i.length?(Es.add(this._chart,i),!0):void 0}}function h2(t,n){const e=t&&t.options||{},i=e.reverse,r=void 0===e.min?n:0,o=void 0===e.max?n:0;return{start:i?o:r,end:i?r:o}}function f2(t,n){const e=[],i=t._getSortedDatasetMetas(n);let r,o;for(r=0,o=i.length;r0||!e&&o<0)return r.index}return null}function _2(t,n){const{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:o,vScale:s,index:a}=i,c=o.axis,d=s.axis,h=function bJ(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}(o,s,i),_=n.length;let v;for(let y=0;y<_;++y){const C=n[y],{[c]:D,[d]:S}=C;v=(C._stacks||(C._stacks={}))[d]=wJ(r,h,D),v[a]=S,v._top=g2(v,s,!0,i.type),v._bottom=g2(v,s,!1,i.type),(v._visualValues||(v._visualValues={}))[a]=S}}function sC(t,n){const e=t.scales;return Object.keys(e).filter(i=>e[i].axis===n).shift()}function Jh(t,n){const e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(const r of n){const o=r._stacks;if(!o||void 0===o[i]||void 0===o[i][e])return;delete o[i][e],void 0!==o[i]._visualValues&&void 0!==o[i]._visualValues[e]&&delete o[i]._visualValues[e]}}}const aC=t=>"reset"===t||"none"===t,v2=(t,n)=>n?t:Object.assign({},t);let Ta=(()=>class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=m2(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Jh(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(v,y,C,D)=>"x"===v?y:"r"===v?D:C,s=i.xAxisID=Ze(r.xAxisID,sC(e,"x")),a=i.yAxisID=Ze(r.yAxisID,sC(e,"y")),c=i.rAxisID=Ze(r.rAxisID,sC(e,"r")),d=i.indexAxis,h=i.iAxisID=o(d,s,a,c),_=i.vAxisID=o(d,a,s,c);i.xScale=this.getScaleForId(s),i.yScale=this.getScaleForId(a),i.rScale=this.getScaleForId(c),i.iScale=this.getScaleForId(h),i.vScale=this.getScaleForId(_)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&PO(this._data,this),e._stacked&&Jh(e)}_dataCheck(){const e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(pt(i))this._data=function vJ(t){const n=Object.keys(t),e=new Array(n.length);let i,r,o;for(i=0,r=n.length;i{const i="_onData"+$w(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){const s=r.apply(this,o);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[i]&&a[i](...o)}),s}})}))}(i,this),this._syncList=[],this._data=i}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const i=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const s=i._stacked;i._stacked=m2(i.vScale,i),i.stack!==r.stack&&(o=!0,Jh(i),i.stack=r.stack),this._resyncElements(e),(o||s!==i._stacked)&&_2(this,i._parsed)}configure(){const e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){const{_cachedMeta:r,_data:o}=this,{iScale:s,_stacked:a}=r,c=s.axis;let _,v,y,d=0===e&&i===o.length||r._sorted,h=e>0&&r._parsed[e-1];if(!1===this._parsing)r._parsed=o,r._sorted=!0,y=o;else{y=hn(o[e])?this.parseArrayData(r,o,e,i):pt(o[e])?this.parseObjectData(r,o,e,i):this.parsePrimitiveData(r,o,e,i);const C=()=>null===v[c]||h&&v[c]t&&!n.hidden&&n._stacked&&{keys:f2(this.chart,!0),values:null})(i,r),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:_,max:v}=function yJ(t){const{min:n,max:e,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}(c);let y,C;function D(){C=o[y];const S=C[c.axis];return!kn(C[e.axis])||_>S||v=0;--y)if(!D()){this.updateRangeFromParsed(h,e,C,d);break}return h}getAllParsedValues(e){const i=this._cachedMeta._parsed,r=[];let o,s,a;for(o=0,s=i.length;o=0&ðis.getContext(r,o,i),v);return S.$shared&&(S.$shared=d,s[a]=Object.freeze(v2(S,d))),S}_resolveAnimations(e,i,r){const o=this.chart,s=this._cachedDataOpts,a=`animation-${i}`,c=s[a];if(c)return c;let d;if(!1!==o.options.animation){const _=this.chart.config,v=_.datasetAnimationScopeKeys(this._type,i),y=_.getOptionScopes(this.getDataset(),v);d=_.createResolver(y,this.getContext(e,r,i))}const h=new u2(o,d&&d.animations);return d&&d._cacheable&&(s[a]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||aC(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){const r=this.resolveDataElementOptions(e,i),o=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(i,s)||s!==o;return this.updateSharedOptions(s,i,r),{sharedOptions:s,includeOptions:a}}updateElement(e,i,r,o){aC(o)?Object.assign(e,r):this._resolveAnimations(i,o).update(e,r)}updateSharedOptions(e,i,r){e&&!aC(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,o){e.active=o;const s=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(e,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const i=this._data,r=this._cachedMeta.data;for(const[c,d,h]of this._syncList)this[c](d,h);this._syncList=[];const o=r.length,s=i.length,a=Math.min(s,o);a&&this.parse(0,a),s>o?this._insertElements(o,s-o,e):s{for(h.length+=i,c=h.length-1;c>=a;c--)h[c]=h[c-i]};for(d(s),c=e;cr-o))}return t._cache.$bar}(n,t.type);let r,o,s,a,i=n._length;const c=()=>{32767===s||-32768===s||(Wh(a)&&(i=Math.min(i,Math.abs(s-a)||i)),a=s)};for(r=0,o=e.length;rMath.abs(a)&&(c=a,d=s),n[e.axis]=d,n._custom={barStart:c,barEnd:d,start:r,end:o,min:s,max:a}}(t,n,e,i):n[e.axis]=e.parse(t,i),n}function y2(t,n,e,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,c=[];let d,h,_,v;for(d=e,h=e+i;dt.x,e="left",i="right"):(n=t.baseclass t extends Ta{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,r,o){return y2(e,i,r,o)}parseArrayData(e,i,r,o){return y2(e,i,r,o)}parseObjectData(e,i,r,o){const{iScale:s,vScale:a}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,h="x"===s.axis?c:d,_="x"===a.axis?c:d,v=[];let y,C,D,S;for(y=r,C=r+o;yd.controller.options.grouped),s=r.options.stacked,a=[],c=d=>{const h=d.controller.getParsed(i),_=h&&h[d.vScale.axis];if(Et(_)||isNaN(_))return!0};for(const d of o)if((void 0===i||!c(d))&&((!1===s||-1===a.indexOf(d.stack)||void 0===s&&void 0===d.stack)&&a.push(d.stack),d.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,i,r){const o=this._getStacks(e,r),s=void 0!==i?o.indexOf(i):-1;return-1===s?o.length-1:s}_getRuler(){const e=this.options,i=this._cachedMeta,r=i.iScale,o=[];let s,a;for(s=0,a=i.data.length;s=e?1:-1)}(S,i,c)*a,v===c&&(P-=S/2);const I=i.getPixelForDecimal(0),R=i.getPixelForDecimal(1),B=Math.min(I,R),z=Math.max(I,R);P=Math.max(Math.min(P,z),B),D=P+S,r&&!_&&(d._stacks[i.axis]._visualValues[o]=i.getValueForPixel(D)-i.getValueForPixel(P))}if(P===i.getPixelForValue(c)){const I=jo(S)*i.getLineWidthForValue(c)/2;P+=I,S-=I}return{size:S,base:P,head:D,center:D+S/2}}_calculateBarIndexPixels(e,i){const r=i.scale,o=this.options,s=o.skipNull,a=Ze(o.maxBarThickness,1/0);let c,d;if(i.grouped){const h=s?this._getStackCount(e):i.stackCount,_="flex"===o.barThickness?function AJ(t,n,e,i){const r=n.pixels,o=r[t];let s=t>0?r[t-1]:null,a=tclass t extends Ta{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,r,o){const s=super.parsePrimitiveData(e,i,r,o);for(let a=0;a=0;--r)i=Math.max(i,e[r].size(this.resolveDataElementOptions(r))/2);return i>0&&i}getLabelAndValue(e){const i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:s}=i,a=this.getParsed(e),c=o.getLabelForValue(a.x),d=s.getLabelForValue(a.y),h=a._custom;return{label:r[e]||"",value:"("+c+", "+d+(h?", "+h:"")+")"}}update(e){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,r,o){const s="reset"===o,{iScale:a,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(i,o),_=a.axis,v=c.axis;for(let y=i;yclass t extends Ta{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const i=e.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((s,a)=>{const d=e.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:o,lineWidth:d.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){const r=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=r;else{let a,c,s=d=>+r[d];if(pt(r[e])){const{key:d="value"}=this._parsing;s=h=>+Sa(r[h],d)}for(a=e,c=e+i;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/n)(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:_,rotation:v}=this._getRotationExtents(),{ratioX:y,ratioY:C,offsetX:D,offsetY:S}=function NJ(t,n,e){let i=1,r=1,o=0,s=0;if(nqh(I,a,c,!0)?1:Math.max(R,R*e,B,B*e),C=(I,R,B)=>qh(I,a,c,!0)?-1:Math.min(R,R*e,B,B*e),D=y(0,d,_),S=y(Vn,h,v),E=C(fn,d,_),P=C(fn+Vn,h,v);i=(D-E)/2,r=(S-P)/2,o=-(D+E)/2,s=-(S+P)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}(v,_,d),I=Math.max(Math.min((r.width-a)/y,(r.height-a)/C)/2,0),R=wO(this.options.radius,I),z=(R-Math.max(R*d,0))/this._getVisibleDatasetWeightTotal();this.offsetX=D*R,this.offsetY=S*R,o.total=this.calculateTotal(),this.outerRadius=R-z*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-z*h,0),this.updateElements(s,0,s.length,e)}_circumference(e,i){const r=this.options,o=this._cachedMeta,s=this._getCircumference();return i&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*s/pn)}updateElements(e,i,r,o){const s="reset"===o,a=this.chart,c=a.chartArea,_=(c.left+c.right)/2,v=(c.top+c.bottom)/2,y=s&&a.options.animation.animateScale,C=y?0:this.innerRadius,D=y?0:this.outerRadius,{sharedOptions:S,includeOptions:E}=this._getSharedOptions(i,o);let I,P=this._getRotation();for(I=0;I0&&!isNaN(e)?pn*(Math.abs(e)/i):0}getLabelAndValue(e){const r=this.chart,o=r.data.labels||[],s=Zh(this._cachedMeta._parsed[e],r.options.locale);return{label:o[e]||"",value:s}}getMaxBorderWidth(e){let i=0;const r=this.chart;let o,s,a,c,d;if(!e)for(o=0,s=r.data.datasets.length;oclass t extends Ta{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const i=this._cachedMeta,{dataset:r,data:o=[],_dataset:s}=i,a=this.chart._animationsDisabled;let{start:c,count:d}=RO(i,o,a);this._drawStart=c,this._drawCount=d,LO(i)&&(c=0,d=o.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=o;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:h},e),this.updateElements(o,c,d,e)}updateElements(e,i,r,o){const s="reset"===o,{iScale:a,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:_,includeOptions:v}=this._getSharedOptions(i,o),y=a.axis,C=c.axis,{spanGaps:D,segment:S}=this.options,E=kd(D)?D:Number.POSITIVE_INFINITY,P=this.chart._animationsDisabled||s||"none"===o,I=i+r,R=e.length;let B=i>0&&this.getParsed(i-1);for(let z=0;z=I){K.skip=!0;continue}const de=this.getParsed(z),ke=Et(de[C]),He=K[y]=a.getPixelForValue(de[y],z),Ke=K[C]=s||ke?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,de,d):de[C],z);K.skip=isNaN(He)||isNaN(Ke)||ke,K.stop=z>0&&Math.abs(de[y]-B[y])>E,S&&(K.parsed=de,K.raw=h.data[z]),v&&(K.options=_||this.resolveDataElementOptions(z,X.active?"active":o)),P||this.updateElement(X,z,K,o),B=de}}getMaxOverflow(){const e=this._cachedMeta,i=e.dataset,r=i.options&&i.options.borderWidth||0,o=e.data||[];if(!o.length)return r;const s=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}})(),x2=(()=>class t extends Ta{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const i=e.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:r,color:o}}=e.legend.options;return i.labels.map((s,a)=>{const d=e.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:o,lineWidth:d.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const r=this.chart,o=r.data.labels||[],s=Zh(this._cachedMeta._parsed[e].r,r.options.locale);return{label:o[e]||"",value:s}}parseObjectData(e,i,r,o){return QO.bind(this)(e,i,r,o)}update(e){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){const i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((r,o)=>{const s=this.getParsed(o).r;!isNaN(s)&&this.chart.getDataVisibility(o)&&(si.max&&(i.max=s))}),i}_updateRadius(){const e=this.chart,i=e.chartArea,r=e.options,o=Math.min(i.right-i.left,i.bottom-i.top),s=Math.max(o/2,0),c=(s-Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=s-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,i,r,o){const s="reset"===o,a=this.chart,d=a.options.animation,h=this._cachedMeta.rScale,_=h.xCenter,v=h.yCenter,y=h.getIndexAngle(0)-.5*fn;let D,C=y;const S=360/this.countVisibleElements();for(D=0;D{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&i++}),i}_computeAngle(e,i,r){return this.chart.getDataVisibility(e)?Do(this.resolveDataElementOptions(e,i).angle||r):0}})();var VJ=Object.freeze({__proto__:null,BarController:RJ,BubbleController:LJ,DoughnutController:cC,LineController:BJ,PieController:(()=>class t extends cC{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),PolarAreaController:x2,RadarController:(()=>class t extends Ta{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const i=this._cachedMeta.vScale,r=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(r[i.axis])}}parseObjectData(e,i,r,o){return QO.bind(this)(e,i,r,o)}update(e){const i=this._cachedMeta,r=i.dataset,o=i.data||[],s=i.iScale.getLabels();if(r.points=o,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(r,void 0,{_loop:!0,_fullLoop:s.length===o.length,options:a},e)}this.updateElements(o,0,o.length,e)}updateElements(e,i,r,o){const s=this._cachedMeta.rScale,a="reset"===o;for(let c=i;cclass t extends Ta{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const i=this._cachedMeta,r=this.chart.data.labels||[],{xScale:o,yScale:s}=i,a=this.getParsed(e),c=o.getLabelForValue(a.x),d=s.getLabelForValue(a.y);return{label:r[e]||"",value:"("+c+", "+d+")"}}update(e){const i=this._cachedMeta,{data:r=[]}=i,o=this.chart._animationsDisabled;let{start:s,count:a}=RO(i,r,o);if(this._drawStart=s,this._drawCount=a,LO(i)&&(s=0,a=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=i;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=r;const h=this.resolveDatasetElementOptions(e);h.segment=this.options.segment,this.updateElement(c,void 0,{animated:!o,options:h},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(r,s,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,r,o){const s="reset"===o,{iScale:a,vScale:c,_stacked:d,_dataset:h}=this._cachedMeta,_=this.resolveDataElementOptions(i,o),v=this.getSharedOptions(_),y=this.includeOptions(o,v),C=a.axis,D=c.axis,{spanGaps:S,segment:E}=this.options,P=kd(S)?S:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||s||"none"===o;let R=i>0&&this.getParsed(i-1);for(let B=i;B0&&Math.abs(X[C]-R[C])>P,E&&(K.parsed=X,K.raw=h.data[B]),y&&(K.options=v||this.resolveDataElementOptions(B,z.active?"active":o)),I||this.updateElement(z,B,K,o),R=X}this.updateSharedOptions(v,o,_)}getMaxOverflow(){const e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let c=0;for(let d=i.length-1;d>=0;--d)c=Math.max(c,i[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const r=e.dataset,o=r.options&&r.options.borderWidth||0;if(!i.length)return o;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,s,a)/2}})()});function Ul(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dC{static override(n){Object.assign(dC.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return Ul()}parse(){return Ul()}format(){return Ul()}add(){return Ul()}diff(){return Ul()}startOf(){return Ul()}endOf(){return Ul()}}var zJ__date=dC;function HJ(t,n,e,i){const{controller:r,data:o,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&n===a.axis&&"r"!==n&&s&&o.length){const c=a._reversePixels?aX:ks;if(!i)return c(o,n,e);if(r._sharedOptions){const d=o[0],h="function"==typeof d.getRange&&d.getRange(n);if(h){const _=c(o,n,e-h),v=c(o,n,e+h);return{lo:_.lo,hi:v.hi}}}}return{lo:0,hi:o.length-1}}function ef(t,n,e,i,r){const o=t.getSortedVisibleDatasetMetas(),s=e[n];for(let a=0,c=o.length;a{c[s](n[e],r)&&(o.push({element:c,datasetIndex:d,index:h}),a=a||c.inRange(n.x,n.y,r))}),i&&!a?[]:o}var WJ={evaluateInteractionItems:ef,modes:{index(t,n,e,i){const r=zl(n,t),o=e.axis||"x",s=e.includeInvisible||!1,a=e.intersect?uC(t,r,o,i,s):hC(t,r,o,!1,i,s),c=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const h=a[0].index,_=d.data[h];_&&!_.skip&&c.push({element:_,datasetIndex:d.index,index:h})}),c):[]},dataset(t,n,e,i){const r=zl(n,t),o=e.axis||"xy",s=e.includeInvisible||!1;let a=e.intersect?uC(t,r,o,i,s):hC(t,r,o,!1,i,s);if(a.length>0){const c=a[0].datasetIndex,d=t.getDatasetMeta(c).data;a=[];for(let h=0;huC(t,zl(n,t),e.axis||"xy",i,e.includeInvisible||!1),nearest:(t,n,e,i)=>hC(t,zl(n,t),e.axis||"xy",e.intersect,i,e.includeInvisible||!1),x:(t,n,e,i)=>D2(t,zl(n,t),"x",e.intersect,i),y:(t,n,e,i)=>D2(t,zl(n,t),"y",e.intersect,i)}};const M2=["left","top","right","bottom"];function tf(t,n){return t.filter(e=>e.pos===n)}function S2(t,n){return t.filter(e=>-1===M2.indexOf(e.pos)&&e.box.axis===n)}function nf(t,n){return t.sort((e,i)=>{const r=n?i:e,o=n?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function k2(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function A2(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function KJ(t,n,e,i){const{pos:r,box:o}=e,s=t.maxPadding;if(!pt(r)){e.size&&(t[r]-=e.size);const _=i[e.stack]||{size:0,count:1};_.size=Math.max(_.size,e.horizontal?o.height:o.width),e.size=_.size/_.count,t[r]+=e.size}o.getPadding&&A2(s,o.getPadding());const a=Math.max(0,n.outerWidth-k2(s,t,"left","right")),c=Math.max(0,n.outerHeight-k2(s,t,"top","bottom")),d=a!==t.w,h=c!==t.h;return t.w=a,t.h=c,e.horizontal?{same:d,other:h}:{same:h,other:d}}function XJ(t,n){const e=n.maxPadding;return function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{o[s]=Math.max(n[s],e[s])}),o}(t?["left","right"]:["top","bottom"])}function rf(t,n,e,i){const r=[];let o,s,a,c,d,h;for(o=0,s=t.length,d=0;od.box.fullSize),!0),i=nf(tf(n,"left"),!0),r=nf(tf(n,"right")),o=nf(tf(n,"top"),!0),s=nf(tf(n,"bottom")),a=S2(n,"x"),c=S2(n,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:r.concat(c).concat(s).concat(a),chartArea:tf(n,"chartArea"),vertical:i.concat(r).concat(c),horizontal:o.concat(s).concat(a)}}(t.boxes),c=a.vertical,d=a.horizontal;Zt(t.boxes,D=>{"function"==typeof D.beforeLayout&&D.beforeLayout()});const h=c.reduce((D,S)=>S.box.options&&!1===S.box.options.display?D:D+1,0)||1,_=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/h,hBoxMaxHeight:s/2}),v=Object.assign({},r);A2(v,zi(i));const y=Object.assign({maxPadding:v,w:o,h:s,x:r.left,y:r.top},r),C=function YJ(t,n){const e=function qJ(t){const n={};for(const e of t){const{stack:i,pos:r,stackWeight:o}=e;if(!i||!M2.includes(r))continue;const s=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return n}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=n;let o,s,a;for(o=0,s=t.length;o{const S=D.box;Object.assign(S,t.chartArea),S.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class T2{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}}class JJ extends T2{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const n_="$chartjs",eee={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},P2=t=>null===t||""===t,I2=!!eJ&&{passive:!0};function iee(t,n,e){t.canvas.removeEventListener(n,e,I2)}function i_(t,n){for(const e of t)if(e===n||e.contains(n))return!0}function oee(t,n,e){const i=t.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||i_(a.addedNodes,i),s=s&&!i_(a.removedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function see(t,n,e){const i=t.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||i_(a.removedNodes,i),s=s&&!i_(a.addedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}const sf=new Map;let O2=0;function F2(){const t=window.devicePixelRatio;t!==O2&&(O2=t,sf.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function cee(t,n,e){const i=t.canvas,r=i&&oC(i);if(!r)return;const o=FO((a,c)=>{const d=r.clientWidth;e(a,c),d{const c=a[0],d=c.contentRect.width,h=c.contentRect.height;0===d&&0===h||o(d,h)});return s.observe(r),function aee(t,n){sf.size||window.addEventListener("resize",F2),sf.set(t,n)}(t,o),s}function fC(t,n,e){e&&e.disconnect(),"resize"===n&&function lee(t){sf.delete(t),sf.size||window.removeEventListener("resize",F2)}(t)}function dee(t,n,e){const i=t.canvas,r=FO(o=>{null!==t.ctx&&e(function ree(t,n){const e=eee[t.type]||t.type,{x:i,y:r}=zl(t,n);return{type:e,chart:n,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(o,t))},t);return function nee(t,n,e){t.addEventListener(n,e,I2)}(i,n,r),r}class uee extends T2{acquireContext(n,e){const i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(function tee(t,n){const e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[n_]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",P2(r)){const o=e2(t,"width");void 0!==o&&(t.width=o)}if(P2(i))if(""===t.style.height)t.height=t.width/(n||2);else{const o=e2(t,"height");void 0!==o&&(t.height=o)}}(n,e),i):null}releaseContext(n){const e=n.canvas;if(!e[n_])return!1;const i=e[n_].initial;["height","width"].forEach(o=>{const s=i[o];Et(s)?e.removeAttribute(o):e.setAttribute(o,s)});const r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e[n_],!0}addEventListener(n,e,i){this.removeEventListener(n,e),(n.$proxies||(n.$proxies={}))[e]=({attach:oee,detach:see,resize:cee}[e]||dee)(n,e,i)}removeEventListener(n,e){const i=n.$proxies||(n.$proxies={}),r=i[e];r&&(({attach:fC,detach:fC,resize:fC}[e]||iee)(n,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return function JX(t,n,e,i){const r=Jg(t),o=Vl(r,"margin"),s=Xg(r.maxWidth,t,"clientWidth")||Wg,a=Xg(r.maxHeight,t,"clientHeight")||Wg,c=function XX(t,n,e){let i,r;if(void 0===n||void 0===e){const o=oC(t);if(o){const s=o.getBoundingClientRect(),a=Jg(o),c=Vl(a,"border","width"),d=Vl(a,"padding");n=s.width-d.width-c.width,e=s.height-d.height-c.height,i=Xg(a.maxWidth,o,"clientWidth"),r=Xg(a.maxHeight,o,"clientHeight")}else n=t.clientWidth,e=t.clientHeight}return{width:n,height:e,maxWidth:i||Wg,maxHeight:r||Wg}}(t,n,e);let{width:d,height:h}=c;if("content-box"===r.boxSizing){const v=Vl(r,"border","width"),y=Vl(r,"padding");d-=y.width+v.width,h-=y.height+v.height}return d=Math.max(0,d-o.width),h=Math.max(0,i?d/i:h-o.height),d=e_(Math.min(d,s,c.maxWidth)),h=e_(Math.min(h,a,c.maxHeight)),d&&!h&&(h=e_(d/2)),(void 0!==n||void 0!==e)&&i&&c.height&&h>c.height&&(h=c.height,d=e_(Math.floor(h*i))),{width:d,height:h}}(n,e,i,r)}isAttached(n){const e=oC(n);return!(!e||!e.isConnected)}}class Ts{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){const{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return kd(this.x)&&kd(this.y)}getProps(n,e){const i=this.$animations;if(!e||!i)return this;const r={};return n.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}}function r_(t,n,e,i,r){const o=Ze(i,0),s=Math.min(Ze(r,t.length),t.length);let c,d,h,a=0;for(e=Math.ceil(e),r&&(c=r-i,e=c/Math.floor(c/e)),h=o;h<0;)a++,h=Math.round(o+a*e);for(d=Math.max(o,0);d"left"===t?"right":"right"===t?"left":t,R2=(t,n,e)=>"top"===n||"left"===n?t[n]+e:t[n]-e,L2=(t,n)=>Math.min(n||t,t);function N2(t,n){const e=[],i=t.length/n,r=t.length;let o=0;for(;os+a)))return c}function af(t){return t.drawTicks?t.tickLength:0}function B2(t,n){if(!t.display)return 0;const e=ri(t.font,n),i=zi(t.padding);return(hn(t.text)?t.text.length:1)*e.lineHeight+i.height}function Dee(t,n,e){let i=Yw(t);return(e&&"right"!==n||!e&&"right"===n)&&(i=bee(i)),i}class jl extends Ts{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return n=Vr(n,Number.POSITIVE_INFINITY),e=Vr(e,Number.NEGATIVE_INFINITY),i=Vr(i,Number.POSITIVE_INFINITY),r=Vr(r,Number.NEGATIVE_INFINITY),{min:Vr(n,i),max:Vr(e,r),minDefined:kn(n),maxDefined:kn(e)}}getMinMax(n){let s,{min:e,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:e,max:i};const a=this.getMatchingVisibleMetas();for(let c=0,d=a.length;ci?i:e,i=r&&e>i?e:i,{min:Vr(e,Vr(i,e)),max:Vr(i,Vr(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ln(this.options.beforeUpdate,[this])}update(n,e,i){const{beginAtZero:r,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function PX(t,n,e){const{min:i,max:r}=t,o=wO(n,(r-i)/2),s=(a,c)=>e&&0===a?0:a+c;return{min:s(i,-Math.abs(o)),max:s(r,o)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=ar)return function _ee(t,n,e,i){let s,r=0,o=e[0];for(i=Math.ceil(i),s=0;sr-o).pop(),n}(i);for(let s=0,a=o.length-1;sr)return c}return Math.max(r,1)}(o,n,r);if(s>0){let _,v;const y=s>1?Math.round((c-a)/(s-1)):null;for(r_(n,d,h,Et(y)?0:a-y,a),_=0,v=s-1;_=o||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const h=this._getLabelSizes(),_=h.widest.width,v=h.highest.height,y=hi(this.chart.width-_,0,this.maxWidth);a=n.offset?this.maxWidth/i:y/(i-1),_+6>a&&(a=y/(i-(n.offset?.5:1)),c=this.maxHeight-af(n.grid)-e.padding-B2(n.title,this.chart.options.font),d=Math.sqrt(_*_+v*v),s=Ww(Math.min(Math.asin(hi((h.highest.height+6)/a,-1,1)),Math.asin(hi(c/d,-1,1))-Math.asin(hi(v/d,-1,1)))),s=Math.max(r,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){ln(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ln(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const c=B2(r,e.options.font);if(a?(n.width=this.maxWidth,n.height=af(o)+c):(n.height=this.maxHeight,n.width=af(o)+c),i.display&&this.ticks.length){const{first:d,last:h,widest:_,highest:v}=this._getLabelSizes(),y=2*i.padding,C=Do(this.labelRotation),D=Math.cos(C),S=Math.sin(C);a?n.height=Math.min(this.maxHeight,n.height+(i.mirror?0:S*_.width+D*v.height)+y):n.width=Math.min(this.maxWidth,n.width+(i.mirror?0:D*_.width+S*v.height)+y),this._calculatePadding(d,h,S,D)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){const{ticks:{align:o,padding:s},position:a}=this.options,c=0!==this.labelRotation,d="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,_=this.right-this.getPixelForTick(this.ticks.length-1);let v=0,y=0;c?d?(v=r*n.width,y=i*e.height):(v=i*n.height,y=r*e.width):"start"===o?y=e.width:"end"===o?v=n.width:"inner"!==o&&(v=n.width/2,y=e.width/2),this.paddingLeft=Math.max((v-h+s)*this.width/(this.width-h),0),this.paddingRight=Math.max((y-_+s)*this.width/(this.width-_),0)}else{let h=e.height/2,_=n.height/2;"start"===o?(h=0,_=n.height):"end"===o&&(h=e.height,_=0),this.paddingTop=h+s,this.paddingBottom=_+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ln(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:e}=this.options;return"top"===e||"bottom"===e||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),e=0,i=n.length;e{const i=e.gc,r=i.length/2;let o;if(r>n){for(o=0;o({width:s[de]||0,height:a[de]||0});return{first:K(0),last:K(e-1),widest:K(z),highest:K(X),widths:s,heights:a}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){const e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const e=this._startPixel+n*this._length;return function sX(t){return hi(t,-32768,32767)}(this._alignToPixels?Ll(this.chart,e,0):e)}getDecimalForPixel(n){const e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){const e=this.ticks||[];if(n>=0&&na*r?a/i:c/r:c*r0}_computeGridLineItems(n){const e=this.axis,i=this.chart,r=this.options,{grid:o,position:s,border:a}=r,c=o.offset,d=this.isHorizontal(),_=this.ticks.length+(c?1:0),v=af(o),y=[],C=a.setContext(this.getContext()),D=C.display?C.width:0,S=D/2,E=function(J){return Ll(i,J,D)};let P,I,R,B,z,X,K,de,ke,He,Ke,mn;if("top"===s)P=E(this.bottom),X=this.bottom-v,de=P-S,He=E(n.top)+S,mn=n.bottom;else if("bottom"===s)P=E(this.top),He=n.top,mn=E(n.bottom)-S,X=P+S,de=this.top+v;else if("left"===s)P=E(this.right),z=this.right-v,K=P-S,ke=E(n.left)+S,Ke=n.right;else if("right"===s)P=E(this.left),ke=n.left,Ke=E(n.right)-S,z=P+S,K=this.left+v;else if("x"===e){if("center"===s)P=E((n.top+n.bottom)/2+.5);else if(pt(s)){const J=Object.keys(s)[0];P=E(this.chart.scales[J].getPixelForValue(s[J]))}He=n.top,mn=n.bottom,X=P+S,de=X+v}else if("y"===e){if("center"===s)P=E((n.left+n.right)/2);else if(pt(s)){const J=Object.keys(s)[0];P=E(this.chart.scales[J].getPixelForValue(s[J]))}z=P-S,K=z-v,ke=n.left,Ke=n.right}const Ui=Ze(r.ticks.maxTicksLimit,_),zt=Math.max(1,Math.ceil(_/Ui));for(I=0;I<_;I+=zt){const J=this.getContext(I),re=o.setContext(J),me=a.setContext(J),Ae=re.lineWidth,gn=re.color,or=me.dash||[],Zn=me.dashOffset,br=re.tickWidth,Ht=re.tickColor,Fa=re.tickBorderDash||[],Os=re.tickBorderDashOffset;R=yee(this,I,c),void 0!==R&&(B=Ll(i,R,Ae),d?z=K=ke=Ke=B:X=de=He=mn=B,y.push({tx1:z,ty1:X,tx2:K,ty2:de,x1:ke,y1:He,x2:Ke,y2:mn,width:Ae,color:gn,borderDash:or,borderDashOffset:Zn,tickWidth:br,tickColor:Ht,tickBorderDash:Fa,tickBorderDashOffset:Os}))}return this._ticksLength=_,this._borderValue=P,y}_computeLabelItems(n){const e=this.axis,i=this.options,{position:r,ticks:o}=i,s=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:d,padding:h,mirror:_}=o,v=af(i.grid),y=v+h,C=_?-h:y,D=-Do(this.labelRotation),S=[];let E,P,I,R,B,z,X,K,de,ke,He,Ke,mn="middle";if("top"===r)z=this.bottom-C,X=this._getXAxisLabelAlignment();else if("bottom"===r)z=this.top+C,X=this._getXAxisLabelAlignment();else if("left"===r){const zt=this._getYAxisLabelAlignment(v);X=zt.textAlign,B=zt.x}else if("right"===r){const zt=this._getYAxisLabelAlignment(v);X=zt.textAlign,B=zt.x}else if("x"===e){if("center"===r)z=(n.top+n.bottom)/2+y;else if(pt(r)){const zt=Object.keys(r)[0];z=this.chart.scales[zt].getPixelForValue(r[zt])+y}X=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)B=(n.left+n.right)/2-y;else if(pt(r)){const zt=Object.keys(r)[0];B=this.chart.scales[zt].getPixelForValue(r[zt])}X=this._getYAxisLabelAlignment(v).textAlign}"y"===e&&("start"===c?mn="top":"end"===c&&(mn="bottom"));const Ui=this._getLabelSizes();for(E=0,P=a.length;E